2006-02-17 23:20:14 +00:00
|
|
|
/*
|
|
|
|
* storport.h
|
|
|
|
*
|
|
|
|
* StorPort interface
|
|
|
|
*
|
|
|
|
* This file is part of the w32api package.
|
|
|
|
*
|
|
|
|
* Contributors:
|
|
|
|
* Created by Casper S. Hornstrup <chorns@users.sourceforge.net>
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS NOT COPYRIGHTED
|
|
|
|
*
|
|
|
|
* This source code is offered for use in the public domain. You may
|
|
|
|
* use, modify or distribute it freely.
|
|
|
|
*
|
|
|
|
* This code is distributed in the hope that it will be useful but
|
|
|
|
* WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
|
|
|
|
* DISCLAIMED. This includes but is not limited to warranties of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __STORPORT_H
|
|
|
|
#define __STORPORT_H
|
|
|
|
|
|
|
|
#include "srb.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(_STORPORT_)
|
2010-08-10 20:50:55 +00:00
|
|
|
#define STORPORTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
#else
|
2010-08-10 20:50:55 +00:00
|
|
|
#define STORPORTAPI DECLSPEC_IMPORT
|
2006-02-17 23:20:14 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef PHYSICAL_ADDRESS STOR_PHYSICAL_ADDRESS;
|
|
|
|
|
|
|
|
typedef struct _STOR_SCATTER_GATHER_ELEMENT {
|
2010-08-10 20:50:55 +00:00
|
|
|
STOR_PHYSICAL_ADDRESS PhysicalAddress;
|
|
|
|
ULONG Length;
|
|
|
|
ULONG_PTR Reserved;
|
2006-02-17 23:20:14 +00:00
|
|
|
} STOR_SCATTER_GATHER_ELEMENT, *PSTOR_SCATTER_GATHER_ELEMENT;
|
|
|
|
|
|
|
|
typedef struct _STOR_SCATTER_GATHER_LIST {
|
2010-08-10 20:50:55 +00:00
|
|
|
ULONG NumberOfElements;
|
|
|
|
ULONG_PTR Reserved;
|
|
|
|
STOR_SCATTER_GATHER_ELEMENT List[0];
|
2006-02-17 23:20:14 +00:00
|
|
|
} STOR_SCATTER_GATHER_LIST, *PSTOR_SCATTER_GATHER_LIST;
|
|
|
|
|
|
|
|
typedef struct _SCSI_WMI_REQUEST_BLOCK {
|
2010-08-10 20:50:55 +00:00
|
|
|
USHORT Length;
|
|
|
|
UCHAR Function;
|
|
|
|
UCHAR SrbStatus;
|
|
|
|
UCHAR WMISubFunction;
|
|
|
|
UCHAR PathId;
|
|
|
|
UCHAR TargetId;
|
|
|
|
UCHAR Lun;
|
|
|
|
UCHAR Reserved1;
|
|
|
|
UCHAR WMIFlags;
|
|
|
|
UCHAR Reserved2[2];
|
|
|
|
ULONG SrbFlags;
|
|
|
|
ULONG DataTransferLength;
|
|
|
|
ULONG TimeOutValue;
|
|
|
|
PVOID DataBuffer;
|
|
|
|
PVOID DataPath;
|
|
|
|
PVOID Reserved3;
|
|
|
|
PVOID OriginalRequest;
|
|
|
|
PVOID SrbExtension;
|
|
|
|
ULONG Reserved4;
|
|
|
|
UCHAR Reserved5[16];
|
2006-02-17 23:20:14 +00:00
|
|
|
} SCSI_WMI_REQUEST_BLOCK, *PSCSI_WMI_REQUEST_BLOCK;
|
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
ULONG
|
2010-03-29 01:51:11 +00:00
|
|
|
NTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortInitialize(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ PVOID Argument1,
|
|
|
|
_In_ PVOID Argument2,
|
|
|
|
_In_ PHW_INITIALIZATION_DATA HwInitializationData,
|
|
|
|
_In_opt_ PVOID Unused);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
VOID
|
2010-03-29 01:51:11 +00:00
|
|
|
NTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortFreeDeviceBase(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ PVOID HwDeviceExtension,
|
|
|
|
_In_ PVOID MappedAddress);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
ULONG
|
2010-03-29 01:51:11 +00:00
|
|
|
NTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortGetBusData(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ PVOID DeviceExtension,
|
|
|
|
_In_ ULONG BusDataType,
|
|
|
|
_In_ ULONG SystemIoBusNumber,
|
|
|
|
_In_ ULONG SlotNumber,
|
|
|
|
_Out_ _When_(Length != 0, _Out_writes_bytes_(Length)) PVOID Buffer,
|
|
|
|
_In_ ULONG Length);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
ULONG
|
2010-03-29 01:51:11 +00:00
|
|
|
NTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortSetBusDataByOffset(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ PVOID DeviceExtension,
|
|
|
|
_In_ ULONG BusDataType,
|
|
|
|
_In_ ULONG SystemIoBusNumber,
|
|
|
|
_In_ ULONG SlotNumber,
|
|
|
|
_In_reads_bytes_(Length) PVOID Buffer,
|
|
|
|
_In_ ULONG Offset,
|
|
|
|
_In_ ULONG Length);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
PVOID
|
2010-03-29 01:51:11 +00:00
|
|
|
NTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortGetDeviceBase(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ PVOID HwDeviceExtension,
|
|
|
|
_In_ INTERFACE_TYPE BusType,
|
|
|
|
_In_ ULONG SystemIoBusNumber,
|
|
|
|
_In_ SCSI_PHYSICAL_ADDRESS IoAddress,
|
|
|
|
_In_ ULONG NumberOfBytes,
|
|
|
|
_In_ BOOLEAN InIoSpace);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
PVOID
|
2010-03-29 01:51:11 +00:00
|
|
|
NTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortGetLogicalUnit(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ PVOID HwDeviceExtension,
|
|
|
|
_In_ UCHAR PathId,
|
|
|
|
_In_ UCHAR TargetId,
|
|
|
|
_In_ UCHAR Lun);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
PSCSI_REQUEST_BLOCK
|
2010-03-29 01:51:11 +00:00
|
|
|
NTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortGetSrb(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ PVOID DeviceExtension,
|
|
|
|
_In_ UCHAR PathId,
|
|
|
|
_In_ UCHAR TargetId,
|
|
|
|
_In_ UCHAR Lun,
|
|
|
|
_In_ LONG QueueTag);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
STOR_PHYSICAL_ADDRESS
|
2010-03-29 01:51:11 +00:00
|
|
|
NTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortGetPhysicalAddress(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ PVOID HwDeviceExtension,
|
|
|
|
_In_opt_ PSCSI_REQUEST_BLOCK Srb,
|
|
|
|
_In_ PVOID VirtualAddress,
|
|
|
|
_Out_ ULONG *Length);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
PVOID
|
2010-03-29 01:51:11 +00:00
|
|
|
NTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortGetVirtualAddress(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ PVOID HwDeviceExtension,
|
|
|
|
_In_ STOR_PHYSICAL_ADDRESS PhysicalAddress);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
PVOID
|
2010-03-29 01:51:11 +00:00
|
|
|
NTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortGetUncachedExtension(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ PVOID HwDeviceExtension,
|
|
|
|
_In_ PPORT_CONFIGURATION_INFORMATION ConfigInfo,
|
|
|
|
_In_ ULONG NumberOfBytes);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
VOID
|
2010-03-29 01:51:11 +00:00
|
|
|
__cdecl
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortNotification(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ SCSI_NOTIFICATION_TYPE NotificationType,
|
|
|
|
_In_ PVOID HwDeviceExtension,
|
|
|
|
...);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
VOID
|
2010-03-29 01:51:11 +00:00
|
|
|
NTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortLogError(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ PVOID HwDeviceExtension,
|
|
|
|
_In_opt_ PSCSI_REQUEST_BLOCK Srb,
|
|
|
|
_In_ UCHAR PathId,
|
|
|
|
_In_ UCHAR TargetId,
|
|
|
|
_In_ UCHAR Lun,
|
|
|
|
_In_ ULONG ErrorCode,
|
|
|
|
_In_ ULONG UniqueId);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
VOID
|
2010-03-29 01:51:11 +00:00
|
|
|
NTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortCompleteRequest(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ PVOID HwDeviceExtension,
|
|
|
|
_In_ UCHAR PathId,
|
|
|
|
_In_ UCHAR TargetId,
|
|
|
|
_In_ UCHAR Lun,
|
|
|
|
_In_ UCHAR SrbStatus);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
VOID
|
2010-03-29 01:51:11 +00:00
|
|
|
NTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortMoveMemory(
|
2013-08-02 16:02:54 +00:00
|
|
|
_Out_writes_bytes_(Length) PVOID WriteBuffer,
|
|
|
|
_In_reads_bytes_(Length) PVOID ReadBuffer,
|
|
|
|
_In_ ULONG Length);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
VOID
|
2010-03-29 01:51:11 +00:00
|
|
|
NTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortStallExecution(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ ULONG Delay);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
STOR_PHYSICAL_ADDRESS
|
2010-03-29 01:51:11 +00:00
|
|
|
NTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortConvertUlong64ToPhysicalAddress(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ ULONG64 UlongAddress);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
ULONG64
|
2010-03-29 01:51:11 +00:00
|
|
|
NTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortConvertPhysicalAddressToUlong64(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ STOR_PHYSICAL_ADDRESS Address);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
BOOLEAN
|
2010-03-29 01:51:11 +00:00
|
|
|
NTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortValidateRange(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ PVOID HwDeviceExtension,
|
|
|
|
_In_ INTERFACE_TYPE BusType,
|
|
|
|
_In_ ULONG SystemIoBusNumber,
|
|
|
|
_In_ STOR_PHYSICAL_ADDRESS IoAddress,
|
|
|
|
_In_ ULONG NumberOfBytes,
|
|
|
|
_In_ BOOLEAN InIoSpace);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
VOID
|
2010-03-29 01:51:11 +00:00
|
|
|
__cdecl
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortDebugPrint(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ ULONG DebugPrintLevel,
|
|
|
|
_In_ PCCHAR DebugMessage,
|
|
|
|
...);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
UCHAR
|
2010-03-29 01:51:11 +00:00
|
|
|
NTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortReadPortUchar(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ PVOID HwDeviceExtension,
|
|
|
|
_In_ PUCHAR Port);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
ULONG
|
2010-03-29 01:51:11 +00:00
|
|
|
NTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortReadPortUlong(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ PVOID HwDeviceExtension,
|
|
|
|
_In_ PULONG Port);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
USHORT
|
2010-03-29 01:51:11 +00:00
|
|
|
NTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortReadPortUshort(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ PVOID HwDeviceExtension,
|
|
|
|
_In_ PUSHORT Port);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
UCHAR
|
2010-03-29 01:51:11 +00:00
|
|
|
NTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortReadRegisterUchar(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ PVOID HwDeviceExtension,
|
|
|
|
_In_ PUCHAR Register);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
ULONG
|
2010-03-29 01:51:11 +00:00
|
|
|
NTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortReadRegisterUlong(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ PVOID HwDeviceExtension,
|
|
|
|
_In_ PULONG Register);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
USHORT
|
2010-03-29 01:51:11 +00:00
|
|
|
NTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortReadRegisterUshort(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ PVOID HwDeviceExtension,
|
|
|
|
_In_ PUSHORT Register);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
VOID
|
2010-03-29 01:51:11 +00:00
|
|
|
NTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortWritePortUchar(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ PVOID HwDeviceExtension,
|
|
|
|
_In_ PUCHAR Port,
|
|
|
|
_In_ UCHAR Value);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
VOID
|
2010-03-29 01:51:11 +00:00
|
|
|
NTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortWritePortUlong(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ PVOID HwDeviceExtension,
|
|
|
|
_In_ PULONG Port,
|
|
|
|
_In_ ULONG Value);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
VOID
|
2010-03-29 01:51:11 +00:00
|
|
|
NTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortWritePortUshort(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ PVOID HwDeviceExtension,
|
|
|
|
_In_ PUSHORT Port,
|
|
|
|
_In_ USHORT Value);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
VOID
|
2010-03-29 01:51:11 +00:00
|
|
|
NTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortWriteRegisterUchar(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ PVOID HwDeviceExtension,
|
|
|
|
_In_ PUCHAR Register,
|
|
|
|
_In_ UCHAR Value);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
VOID
|
2010-03-29 01:51:11 +00:00
|
|
|
NTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortWriteRegisterUlong(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ PVOID HwDeviceExtension,
|
|
|
|
_In_ PULONG Register,
|
|
|
|
_In_ ULONG Value);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
VOID
|
2010-03-29 01:51:11 +00:00
|
|
|
NTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortWriteRegisterUshort(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ PVOID HwDeviceExtension,
|
|
|
|
_In_ PUSHORT Register,
|
|
|
|
_In_ USHORT Value);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
BOOLEAN
|
2010-03-29 01:51:11 +00:00
|
|
|
NTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortPauseDevice(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ PVOID HwDeviceExtension,
|
|
|
|
_In_ UCHAR PathId,
|
|
|
|
_In_ UCHAR TargetId,
|
|
|
|
_In_ UCHAR Lun,
|
|
|
|
_In_ ULONG TimeOut);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
BOOLEAN
|
2010-03-29 01:51:11 +00:00
|
|
|
NTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortResumeDevice(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ PVOID HwDeviceExtension,
|
|
|
|
_In_ UCHAR PathId,
|
|
|
|
_In_ UCHAR TargetId,
|
|
|
|
_In_ UCHAR Lun);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
BOOLEAN
|
2010-03-29 01:51:11 +00:00
|
|
|
NTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortPause(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ PVOID HwDeviceExtension,
|
|
|
|
_In_ ULONG TimeOut);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
BOOLEAN
|
2010-03-29 01:51:11 +00:00
|
|
|
NTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortResume(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ PVOID HwDeviceExtension);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
BOOLEAN
|
2010-03-29 01:51:11 +00:00
|
|
|
NTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortDeviceBusy(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ PVOID HwDeviceExtension,
|
|
|
|
_In_ UCHAR PathId,
|
|
|
|
_In_ UCHAR TargetId,
|
|
|
|
_In_ UCHAR Lun,
|
|
|
|
_In_ ULONG RequestsToComplete);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
BOOLEAN
|
2010-03-29 01:51:11 +00:00
|
|
|
NTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortDeviceReady(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ PVOID HwDeviceExtension,
|
|
|
|
_In_ UCHAR PathId,
|
|
|
|
_In_ UCHAR TargetId,
|
|
|
|
_In_ UCHAR Lun);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
BOOLEAN
|
2010-03-29 01:51:11 +00:00
|
|
|
NTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortBusy(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ PVOID HwDeviceExtension,
|
|
|
|
_In_ ULONG RequestsToComplete);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
BOOLEAN
|
2010-03-29 01:51:11 +00:00
|
|
|
NTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortReady(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ PVOID HwDeviceExtension);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
PSTOR_SCATTER_GATHER_LIST
|
2010-03-29 01:51:11 +00:00
|
|
|
NTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortGetScatterGatherList(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ PVOID DeviceExtension,
|
|
|
|
_In_ PSCSI_REQUEST_BLOCK Srb);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
2009-08-20 12:09:16 +00:00
|
|
|
typedef BOOLEAN
|
2013-08-02 16:02:54 +00:00
|
|
|
(NTAPI STOR_SYNCHRONIZED_ACCESS)(
|
|
|
|
_In_ PVOID HwDeviceExtension,
|
|
|
|
_In_ PVOID Context);
|
|
|
|
typedef STOR_SYNCHRONIZED_ACCESS *PSTOR_SYNCHRONIZED_ACCESS;
|
2006-02-17 23:20:14 +00:00
|
|
|
|
|
|
|
STORPORTAPI
|
|
|
|
VOID
|
2010-03-29 01:51:11 +00:00
|
|
|
NTAPI
|
2006-02-17 23:20:14 +00:00
|
|
|
StorPortSynchronizeAccess(
|
2013-08-02 16:02:54 +00:00
|
|
|
_In_ PVOID HwDeviceExtension,
|
|
|
|
_In_ PSTOR_SYNCHRONIZED_ACCESS SynchronizedAccessRoutine,
|
|
|
|
_In_opt_ PVOID Context);
|
2006-02-17 23:20:14 +00:00
|
|
|
|
2009-06-17 12:44:05 +00:00
|
|
|
#if DBG
|
2006-02-17 23:20:14 +00:00
|
|
|
#define DebugPrint(x) StorPortDebugPrint x
|
|
|
|
#else
|
|
|
|
#define DebugPrint(x)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* __STORPORT_H */
|