mirror of
https://github.com/reactos/reactos.git
synced 2024-08-29 14:48:37 +00:00
[DDK]
* Annotate storport.h. svn path=/trunk/; revision=59619
This commit is contained in:
parent
455bd30134
commit
1b6aa1d473
|
@ -76,331 +76,344 @@ STORPORTAPI
|
||||||
ULONG
|
ULONG
|
||||||
NTAPI
|
NTAPI
|
||||||
StorPortInitialize(
|
StorPortInitialize(
|
||||||
IN PVOID Argument1,
|
_In_ PVOID Argument1,
|
||||||
IN PVOID Argument2,
|
_In_ PVOID Argument2,
|
||||||
IN PHW_INITIALIZATION_DATA HwInitializationData,
|
_In_ PHW_INITIALIZATION_DATA HwInitializationData,
|
||||||
IN PVOID Unused);
|
_In_opt_ PVOID Unused);
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
StorPortFreeDeviceBase(
|
StorPortFreeDeviceBase(
|
||||||
IN PVOID HwDeviceExtension,
|
_In_ PVOID HwDeviceExtension,
|
||||||
IN PVOID MappedAddress);
|
_In_ PVOID MappedAddress);
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
ULONG
|
ULONG
|
||||||
NTAPI
|
NTAPI
|
||||||
StorPortGetBusData(
|
StorPortGetBusData(
|
||||||
IN PVOID DeviceExtension,
|
_In_ PVOID DeviceExtension,
|
||||||
IN ULONG BusDataType,
|
_In_ ULONG BusDataType,
|
||||||
IN ULONG SystemIoBusNumber,
|
_In_ ULONG SystemIoBusNumber,
|
||||||
IN ULONG SlotNumber,
|
_In_ ULONG SlotNumber,
|
||||||
IN PVOID Buffer,
|
_Out_ _When_(Length != 0, _Out_writes_bytes_(Length)) PVOID Buffer,
|
||||||
IN ULONG Length);
|
_In_ ULONG Length);
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
ULONG
|
ULONG
|
||||||
NTAPI
|
NTAPI
|
||||||
StorPortSetBusDataByOffset(
|
StorPortSetBusDataByOffset(
|
||||||
IN PVOID DeviceExtension,
|
_In_ PVOID DeviceExtension,
|
||||||
IN ULONG BusDataType,
|
_In_ ULONG BusDataType,
|
||||||
IN ULONG SystemIoBusNumber,
|
_In_ ULONG SystemIoBusNumber,
|
||||||
IN ULONG SlotNumber,
|
_In_ ULONG SlotNumber,
|
||||||
IN PVOID Buffer,
|
_In_reads_bytes_(Length) PVOID Buffer,
|
||||||
IN ULONG Offset,
|
_In_ ULONG Offset,
|
||||||
IN ULONG Length);
|
_In_ ULONG Length);
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
PVOID
|
PVOID
|
||||||
NTAPI
|
NTAPI
|
||||||
StorPortGetDeviceBase(
|
StorPortGetDeviceBase(
|
||||||
IN PVOID HwDeviceExtension,
|
_In_ PVOID HwDeviceExtension,
|
||||||
IN INTERFACE_TYPE BusType,
|
_In_ INTERFACE_TYPE BusType,
|
||||||
IN ULONG SystemIoBusNumber,
|
_In_ ULONG SystemIoBusNumber,
|
||||||
IN SCSI_PHYSICAL_ADDRESS IoAddress,
|
_In_ SCSI_PHYSICAL_ADDRESS IoAddress,
|
||||||
IN ULONG NumberOfBytes,
|
_In_ ULONG NumberOfBytes,
|
||||||
IN BOOLEAN InIoSpace);
|
_In_ BOOLEAN InIoSpace);
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
PVOID
|
PVOID
|
||||||
NTAPI
|
NTAPI
|
||||||
StorPortGetLogicalUnit(
|
StorPortGetLogicalUnit(
|
||||||
IN PVOID HwDeviceExtension,
|
_In_ PVOID HwDeviceExtension,
|
||||||
IN UCHAR PathId,
|
_In_ UCHAR PathId,
|
||||||
IN UCHAR TargetId,
|
_In_ UCHAR TargetId,
|
||||||
IN UCHAR Lun);
|
_In_ UCHAR Lun);
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
PSCSI_REQUEST_BLOCK
|
PSCSI_REQUEST_BLOCK
|
||||||
NTAPI
|
NTAPI
|
||||||
StorPortGetSrb(
|
StorPortGetSrb(
|
||||||
IN PVOID DeviceExtension,
|
_In_ PVOID DeviceExtension,
|
||||||
IN UCHAR PathId,
|
_In_ UCHAR PathId,
|
||||||
IN UCHAR TargetId,
|
_In_ UCHAR TargetId,
|
||||||
IN UCHAR Lun,
|
_In_ UCHAR Lun,
|
||||||
IN LONG QueueTag);
|
_In_ LONG QueueTag);
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
STOR_PHYSICAL_ADDRESS
|
STOR_PHYSICAL_ADDRESS
|
||||||
NTAPI
|
NTAPI
|
||||||
StorPortGetPhysicalAddress(
|
StorPortGetPhysicalAddress(
|
||||||
IN PVOID HwDeviceExtension,
|
_In_ PVOID HwDeviceExtension,
|
||||||
IN PSCSI_REQUEST_BLOCK Srb,
|
_In_opt_ PSCSI_REQUEST_BLOCK Srb,
|
||||||
IN PVOID VirtualAddress,
|
_In_ PVOID VirtualAddress,
|
||||||
OUT ULONG *Length);
|
_Out_ ULONG *Length);
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
PVOID
|
PVOID
|
||||||
NTAPI
|
NTAPI
|
||||||
StorPortGetVirtualAddress(
|
StorPortGetVirtualAddress(
|
||||||
IN PVOID HwDeviceExtension,
|
_In_ PVOID HwDeviceExtension,
|
||||||
IN STOR_PHYSICAL_ADDRESS PhysicalAddress);
|
_In_ STOR_PHYSICAL_ADDRESS PhysicalAddress);
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
PVOID
|
PVOID
|
||||||
NTAPI
|
NTAPI
|
||||||
StorPortGetUncachedExtension(
|
StorPortGetUncachedExtension(
|
||||||
IN PVOID HwDeviceExtension,
|
_In_ PVOID HwDeviceExtension,
|
||||||
IN PPORT_CONFIGURATION_INFORMATION ConfigInfo,
|
_In_ PPORT_CONFIGURATION_INFORMATION ConfigInfo,
|
||||||
IN ULONG NumberOfBytes);
|
_In_ ULONG NumberOfBytes);
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
VOID
|
VOID
|
||||||
__cdecl
|
__cdecl
|
||||||
StorPortNotification(
|
StorPortNotification(
|
||||||
IN SCSI_NOTIFICATION_TYPE NotificationType,
|
_In_ SCSI_NOTIFICATION_TYPE NotificationType,
|
||||||
IN PVOID HwDeviceExtension,
|
_In_ PVOID HwDeviceExtension,
|
||||||
IN ...);
|
...);
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
StorPortLogError(
|
StorPortLogError(
|
||||||
IN PVOID HwDeviceExtension,
|
_In_ PVOID HwDeviceExtension,
|
||||||
IN PSCSI_REQUEST_BLOCK Srb OPTIONAL,
|
_In_opt_ PSCSI_REQUEST_BLOCK Srb,
|
||||||
IN UCHAR PathId,
|
_In_ UCHAR PathId,
|
||||||
IN UCHAR TargetId,
|
_In_ UCHAR TargetId,
|
||||||
IN UCHAR Lun,
|
_In_ UCHAR Lun,
|
||||||
IN ULONG ErrorCode,
|
_In_ ULONG ErrorCode,
|
||||||
IN ULONG UniqueId);
|
_In_ ULONG UniqueId);
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
StorPortCompleteRequest(
|
StorPortCompleteRequest(
|
||||||
IN PVOID HwDeviceExtension,
|
_In_ PVOID HwDeviceExtension,
|
||||||
IN UCHAR PathId,
|
_In_ UCHAR PathId,
|
||||||
IN UCHAR TargetId,
|
_In_ UCHAR TargetId,
|
||||||
IN UCHAR Lun,
|
_In_ UCHAR Lun,
|
||||||
IN UCHAR SrbStatus);
|
_In_ UCHAR SrbStatus);
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
StorPortMoveMemory(
|
StorPortMoveMemory(
|
||||||
IN PVOID WriteBuffer,
|
_Out_writes_bytes_(Length) PVOID WriteBuffer,
|
||||||
IN PVOID ReadBuffer,
|
_In_reads_bytes_(Length) PVOID ReadBuffer,
|
||||||
IN ULONG Length);
|
_In_ ULONG Length);
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
StorPortStallExecution(
|
StorPortStallExecution(
|
||||||
IN ULONG Delay);
|
_In_ ULONG Delay);
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
STOR_PHYSICAL_ADDRESS
|
STOR_PHYSICAL_ADDRESS
|
||||||
NTAPI
|
NTAPI
|
||||||
StorPortConvertUlong64ToPhysicalAddress(
|
StorPortConvertUlong64ToPhysicalAddress(
|
||||||
IN ULONG64 UlongAddress);
|
_In_ ULONG64 UlongAddress);
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
ULONG64
|
ULONG64
|
||||||
NTAPI
|
NTAPI
|
||||||
StorPortConvertPhysicalAddressToUlong64(
|
StorPortConvertPhysicalAddressToUlong64(
|
||||||
IN STOR_PHYSICAL_ADDRESS Address);
|
_In_ STOR_PHYSICAL_ADDRESS Address);
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
StorPortValidateRange(
|
StorPortValidateRange(
|
||||||
IN PVOID HwDeviceExtension,
|
_In_ PVOID HwDeviceExtension,
|
||||||
IN INTERFACE_TYPE BusType,
|
_In_ INTERFACE_TYPE BusType,
|
||||||
IN ULONG SystemIoBusNumber,
|
_In_ ULONG SystemIoBusNumber,
|
||||||
IN STOR_PHYSICAL_ADDRESS IoAddress,
|
_In_ STOR_PHYSICAL_ADDRESS IoAddress,
|
||||||
IN ULONG NumberOfBytes,
|
_In_ ULONG NumberOfBytes,
|
||||||
IN BOOLEAN InIoSpace);
|
_In_ BOOLEAN InIoSpace);
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
VOID
|
VOID
|
||||||
__cdecl
|
__cdecl
|
||||||
StorPortDebugPrint(
|
StorPortDebugPrint(
|
||||||
IN ULONG DebugPrintLevel,
|
_In_ ULONG DebugPrintLevel,
|
||||||
IN PCCHAR DebugMessage,
|
_In_ PCCHAR DebugMessage,
|
||||||
IN ...);
|
...);
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
UCHAR
|
UCHAR
|
||||||
NTAPI
|
NTAPI
|
||||||
StorPortReadPortUchar(
|
StorPortReadPortUchar(
|
||||||
IN PUCHAR Port);
|
_In_ PVOID HwDeviceExtension,
|
||||||
|
_In_ PUCHAR Port);
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
ULONG
|
ULONG
|
||||||
NTAPI
|
NTAPI
|
||||||
StorPortReadPortUlong(
|
StorPortReadPortUlong(
|
||||||
IN PULONG Port);
|
_In_ PVOID HwDeviceExtension,
|
||||||
|
_In_ PULONG Port);
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
USHORT
|
USHORT
|
||||||
NTAPI
|
NTAPI
|
||||||
StorPortReadPortUshort(
|
StorPortReadPortUshort(
|
||||||
IN PUSHORT Port);
|
_In_ PVOID HwDeviceExtension,
|
||||||
|
_In_ PUSHORT Port);
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
UCHAR
|
UCHAR
|
||||||
NTAPI
|
NTAPI
|
||||||
StorPortReadRegisterUchar(
|
StorPortReadRegisterUchar(
|
||||||
IN PUCHAR Register);
|
_In_ PVOID HwDeviceExtension,
|
||||||
|
_In_ PUCHAR Register);
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
ULONG
|
ULONG
|
||||||
NTAPI
|
NTAPI
|
||||||
StorPortReadRegisterUlong(
|
StorPortReadRegisterUlong(
|
||||||
IN PULONG Register);
|
_In_ PVOID HwDeviceExtension,
|
||||||
|
_In_ PULONG Register);
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
USHORT
|
USHORT
|
||||||
NTAPI
|
NTAPI
|
||||||
StorPortReadRegisterUshort(
|
StorPortReadRegisterUshort(
|
||||||
IN PUSHORT Register);
|
_In_ PVOID HwDeviceExtension,
|
||||||
|
_In_ PUSHORT Register);
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
StorPortWritePortUchar(
|
StorPortWritePortUchar(
|
||||||
IN PUCHAR Port,
|
_In_ PVOID HwDeviceExtension,
|
||||||
IN UCHAR Value);
|
_In_ PUCHAR Port,
|
||||||
|
_In_ UCHAR Value);
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
StorPortWritePortUlong(
|
StorPortWritePortUlong(
|
||||||
IN PULONG Port,
|
_In_ PVOID HwDeviceExtension,
|
||||||
IN ULONG Value);
|
_In_ PULONG Port,
|
||||||
|
_In_ ULONG Value);
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
StorPortWritePortUshort(
|
StorPortWritePortUshort(
|
||||||
IN PUSHORT Port,
|
_In_ PVOID HwDeviceExtension,
|
||||||
IN USHORT Value);
|
_In_ PUSHORT Port,
|
||||||
|
_In_ USHORT Value);
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
StorPortWriteRegisterUchar(
|
StorPortWriteRegisterUchar(
|
||||||
IN PUCHAR Port,
|
_In_ PVOID HwDeviceExtension,
|
||||||
IN UCHAR Value);
|
_In_ PUCHAR Register,
|
||||||
|
_In_ UCHAR Value);
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
StorPortWriteRegisterUlong(
|
StorPortWriteRegisterUlong(
|
||||||
IN PULONG Port,
|
_In_ PVOID HwDeviceExtension,
|
||||||
IN ULONG Value);
|
_In_ PULONG Register,
|
||||||
|
_In_ ULONG Value);
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
StorPortWriteRegisterUshort(
|
StorPortWriteRegisterUshort(
|
||||||
IN PUSHORT Port,
|
_In_ PVOID HwDeviceExtension,
|
||||||
IN USHORT Value);
|
_In_ PUSHORT Register,
|
||||||
|
_In_ USHORT Value);
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
StorPortPauseDevice(
|
StorPortPauseDevice(
|
||||||
IN PVOID HwDeviceExtension,
|
_In_ PVOID HwDeviceExtension,
|
||||||
IN UCHAR PathId,
|
_In_ UCHAR PathId,
|
||||||
IN UCHAR TargetId,
|
_In_ UCHAR TargetId,
|
||||||
IN UCHAR Lun,
|
_In_ UCHAR Lun,
|
||||||
IN ULONG TimeOut);
|
_In_ ULONG TimeOut);
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
StorPortResumeDevice(
|
StorPortResumeDevice(
|
||||||
IN PVOID HwDeviceExtension,
|
_In_ PVOID HwDeviceExtension,
|
||||||
IN UCHAR PathId,
|
_In_ UCHAR PathId,
|
||||||
IN UCHAR TargetId,
|
_In_ UCHAR TargetId,
|
||||||
IN UCHAR Lun);
|
_In_ UCHAR Lun);
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
StorPortPause(
|
StorPortPause(
|
||||||
IN PVOID HwDeviceExtension,
|
_In_ PVOID HwDeviceExtension,
|
||||||
IN ULONG TimeOut);
|
_In_ ULONG TimeOut);
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
StorPortResume(
|
StorPortResume(
|
||||||
IN PVOID HwDeviceExtension);
|
_In_ PVOID HwDeviceExtension);
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
StorPortDeviceBusy(
|
StorPortDeviceBusy(
|
||||||
IN PVOID HwDeviceExtension,
|
_In_ PVOID HwDeviceExtension,
|
||||||
IN UCHAR PathId,
|
_In_ UCHAR PathId,
|
||||||
IN UCHAR TargetId,
|
_In_ UCHAR TargetId,
|
||||||
IN UCHAR Lun,
|
_In_ UCHAR Lun,
|
||||||
IN ULONG RequestsToComplete);
|
_In_ ULONG RequestsToComplete);
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
StorPortDeviceReady(
|
StorPortDeviceReady(
|
||||||
IN PVOID HwDeviceExtension,
|
_In_ PVOID HwDeviceExtension,
|
||||||
IN UCHAR PathId,
|
_In_ UCHAR PathId,
|
||||||
IN UCHAR TargetId,
|
_In_ UCHAR TargetId,
|
||||||
IN UCHAR Lun);
|
_In_ UCHAR Lun);
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
StorPortBusy(
|
StorPortBusy(
|
||||||
IN PVOID HwDeviceExtension,
|
_In_ PVOID HwDeviceExtension,
|
||||||
IN ULONG RequestsToComplete);
|
_In_ ULONG RequestsToComplete);
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
StorPortReady(
|
StorPortReady(
|
||||||
IN PVOID HwDeviceExtension);
|
_In_ PVOID HwDeviceExtension);
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
PSTOR_SCATTER_GATHER_LIST
|
PSTOR_SCATTER_GATHER_LIST
|
||||||
NTAPI
|
NTAPI
|
||||||
StorPortGetScatterGatherList(
|
StorPortGetScatterGatherList(
|
||||||
IN PVOID DeviceExtension,
|
_In_ PVOID DeviceExtension,
|
||||||
IN PSCSI_REQUEST_BLOCK Srb);
|
_In_ PSCSI_REQUEST_BLOCK Srb);
|
||||||
|
|
||||||
typedef BOOLEAN
|
typedef BOOLEAN
|
||||||
(NTAPI *PSTOR_SYNCHRONIZED_ACCESS)(
|
(NTAPI STOR_SYNCHRONIZED_ACCESS)(
|
||||||
IN PVOID HwDeviceExtension,
|
_In_ PVOID HwDeviceExtension,
|
||||||
IN PVOID Context);
|
_In_ PVOID Context);
|
||||||
|
typedef STOR_SYNCHRONIZED_ACCESS *PSTOR_SYNCHRONIZED_ACCESS;
|
||||||
|
|
||||||
STORPORTAPI
|
STORPORTAPI
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
StorPortSynchronizeAccess(
|
StorPortSynchronizeAccess(
|
||||||
IN PVOID HwDeviceExtension,
|
_In_ PVOID HwDeviceExtension,
|
||||||
IN PSTOR_SYNCHRONIZED_ACCESS SynchronizedAccessRoutine,
|
_In_ PSTOR_SYNCHRONIZED_ACCESS SynchronizedAccessRoutine,
|
||||||
IN PVOID Context);
|
_In_opt_ PVOID Context);
|
||||||
|
|
||||||
#if DBG
|
#if DBG
|
||||||
#define DebugPrint(x) StorPortDebugPrint x
|
#define DebugPrint(x) StorPortDebugPrint x
|
||||||
|
|
Loading…
Reference in a new issue