Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

class.h File Reference

#include <ntdddisk.h>
#include <ntddcdrm.h>
#include <ntddtape.h>
#include <ntddchgr.h>
#include <ntddstor.h>
#include "ntddscsi.h"
#include <stdio.h>

Go to the source code of this file.

Classes

struct  _DEVICE_EXTENSION
struct  _COMPLETION_CONTEXT

Defines

#define DebugPrint(x)
#define MAXIMUM_RETRIES   4

Typedefs

typedef VOID(* PCLASS_ERROR )(IN PDEVICE_OBJECT DeviceObject, IN PSCSI_REQUEST_BLOCK Srb, IN OUT NTSTATUS *Status, IN OUT BOOLEAN *Retry)
typedef _DEVICE_EXTENSION DEVICE_EXTENSION
typedef _DEVICE_EXTENSIONPDEVICE_EXTENSION
typedef _COMPLETION_CONTEXT COMPLETION_CONTEXT
typedef _COMPLETION_CONTEXTPCOMPLETION_CONTEXT

Functions

NTSTATUS ScsiClassGetCapabilities (IN PDEVICE_OBJECT PortDeviceObject, OUT PIO_SCSI_CAPABILITIES *PortCapabilities)
NTSTATUS ScsiClassGetInquiryData (IN PDEVICE_OBJECT PortDeviceObject, IN PSCSI_ADAPTER_BUS_INFO *ConfigInfo)
NTSTATUS ScsiClassReadDriveCapacity (IN PDEVICE_OBJECT DeviceObject)
VOID ScsiClassReleaseQueue (IN PDEVICE_OBJECT DeviceObject)
NTSTATUS ScsiClassRemoveDevice (IN PDEVICE_OBJECT PortDeviceObject, IN UCHAR PathId, IN UCHAR TargetId, IN UCHAR Lun)
NTSTATUS ScsiClassAsynchronousCompletion (PDEVICE_OBJECT DeviceObject, PIRP Irp, PVOID Context)
VOID ScsiClassSplitRequest (IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp, IN ULONG MaximumBytes)
NTSTATUS ScsiClassDeviceControl (PDEVICE_OBJECT DeviceObject, PIRP Irp)
NTSTATUS ScsiClassIoComplete (IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp, IN PVOID Context)
NTSTATUS ScsiClassIoCompleteAssociated (IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp, IN PVOID Context)
BOOLEAN ScsiClassInterpretSenseInfo (IN PDEVICE_OBJECT DeviceObject, IN PSCSI_REQUEST_BLOCK Srb, IN UCHAR MajorFunctionCode, IN ULONG IoDeviceCode, IN ULONG RetryCount, OUT NTSTATUS *Status)
NTSTATUS ScsiClassSendSrbSynchronous (PDEVICE_OBJECT DeviceObject, PSCSI_REQUEST_BLOCK Srb, PVOID BufferAddress, ULONG BufferLength, BOOLEAN WriteToDevice)
NTSTATUS ScsiClassSendSrbAsynchronous (PDEVICE_OBJECT DeviceObject, PSCSI_REQUEST_BLOCK Srb, PIRP Irp, PVOID BufferAddress, ULONG BufferLength, BOOLEAN WriteToDevice)
VOID ScsiClassBuildRequest (PDEVICE_OBJECT DeviceObject, PIRP Irp)
ULONG ScsiClassModeSense (IN PDEVICE_OBJECT DeviceObject, IN PCHAR ModeSenseBuffer, IN ULONG Length, IN UCHAR PageMode)
BOOLEAN ScsiClassModeSelect (IN PDEVICE_OBJECT DeviceObject, IN PCHAR ModeSelectBuffer, IN ULONG Length, IN BOOLEAN SavePage)
PVOID ScsiClassFindModePage (IN PCHAR ModeSenseBuffer, IN ULONG Length, IN UCHAR PageMode)
NTSTATUS ScsiClassClaimDevice (IN PDEVICE_OBJECT PortDeviceObject, IN PSCSI_INQUIRY_DATA LunInfo, IN BOOLEAN Release, OUT PDEVICE_OBJECT *NewPortDeviceObject OPTIONAL)
NTSTATUS ScsiClassInternalIoControl (IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)


Define Documentation

#define DebugPrint  ) 
 

Definition at line 41 of file class.h.

#define MAXIMUM_RETRIES   4
 

Definition at line 54 of file class.h.

Referenced by KdpSendPacket().


Typedef Documentation

typedef struct _COMPLETION_CONTEXT COMPLETION_CONTEXT
 

typedef struct _DEVICE_EXTENSION DEVICE_EXTENSION
 

typedef VOID(* PCLASS_ERROR)(IN PDEVICE_OBJECT DeviceObject, IN PSCSI_REQUEST_BLOCK Srb, IN OUT NTSTATUS *Status, IN OUT BOOLEAN *Retry)
 

Definition at line 58 of file class.h.

typedef struct _COMPLETION_CONTEXT * PCOMPLETION_CONTEXT
 

typedef struct _DEVICE_EXTENSION * PDEVICE_EXTENSION
 


Function Documentation

NTSTATUS ScsiClassAsynchronousCompletion PDEVICE_OBJECT  DeviceObject,
PIRP  Irp,
PVOID  Context
 

VOID ScsiClassBuildRequest PDEVICE_OBJECT  DeviceObject,
PIRP  Irp
 

NTSTATUS ScsiClassClaimDevice IN PDEVICE_OBJECT  PortDeviceObject,
IN PSCSI_INQUIRY_DATA  LunInfo,
IN BOOLEAN  Release,
OUT PDEVICE_OBJECT *NewPortDeviceObject  OPTIONAL
 

NTSTATUS ScsiClassDeviceControl PDEVICE_OBJECT  DeviceObject,
PIRP  Irp
 

PVOID ScsiClassFindModePage IN PCHAR  ModeSenseBuffer,
IN ULONG  Length,
IN UCHAR  PageMode
 

NTSTATUS ScsiClassGetCapabilities IN PDEVICE_OBJECT  PortDeviceObject,
OUT PIO_SCSI_CAPABILITIES *  PortCapabilities
 

NTSTATUS ScsiClassGetInquiryData IN PDEVICE_OBJECT  PortDeviceObject,
IN PSCSI_ADAPTER_BUS_INFO *  ConfigInfo
 

NTSTATUS ScsiClassInternalIoControl IN PDEVICE_OBJECT  DeviceObject,
IN PIRP  Irp
 

BOOLEAN ScsiClassInterpretSenseInfo IN PDEVICE_OBJECT  DeviceObject,
IN PSCSI_REQUEST_BLOCK  Srb,
IN UCHAR  MajorFunctionCode,
IN ULONG  IoDeviceCode,
IN ULONG  RetryCount,
OUT NTSTATUS *  Status
 

NTSTATUS ScsiClassIoComplete IN PDEVICE_OBJECT  DeviceObject,
IN PIRP  Irp,
IN PVOID  Context
 

NTSTATUS ScsiClassIoCompleteAssociated IN PDEVICE_OBJECT  DeviceObject,
IN PIRP  Irp,
IN PVOID  Context
 

BOOLEAN ScsiClassModeSelect IN PDEVICE_OBJECT  DeviceObject,
IN PCHAR  ModeSelectBuffer,
IN ULONG  Length,
IN BOOLEAN  SavePage
 

ULONG ScsiClassModeSense IN PDEVICE_OBJECT  DeviceObject,
IN PCHAR  ModeSenseBuffer,
IN ULONG  Length,
IN UCHAR  PageMode
 

NTSTATUS ScsiClassReadDriveCapacity IN PDEVICE_OBJECT  DeviceObject  ) 
 

VOID ScsiClassReleaseQueue IN PDEVICE_OBJECT  DeviceObject  ) 
 

NTSTATUS ScsiClassRemoveDevice IN PDEVICE_OBJECT  PortDeviceObject,
IN UCHAR  PathId,
IN UCHAR  TargetId,
IN UCHAR  Lun
 

NTSTATUS ScsiClassSendSrbAsynchronous PDEVICE_OBJECT  DeviceObject,
PSCSI_REQUEST_BLOCK  Srb,
PIRP  Irp,
PVOID  BufferAddress,
ULONG  BufferLength,
BOOLEAN  WriteToDevice
 

NTSTATUS ScsiClassSendSrbSynchronous PDEVICE_OBJECT  DeviceObject,
PSCSI_REQUEST_BLOCK  Srb,
PVOID  BufferAddress,
ULONG  BufferLength,
BOOLEAN  WriteToDevice
 

VOID ScsiClassSplitRequest IN PDEVICE_OBJECT  DeviceObject,
IN PIRP  Irp,
IN ULONG  MaximumBytes
 


Generated on Sat May 15 19:43:04 2004 for test by doxygen 1.3.7