2014-02-06 11:18:34 +00:00
|
|
|
#ifndef _USBSTOR_H_
|
|
|
|
#define _USBSTOR_H_
|
2011-05-03 00:15:23 +00:00
|
|
|
|
2014-01-03 19:27:01 +00:00
|
|
|
#include <wdm.h>
|
2024-02-16 15:48:33 +00:00
|
|
|
#include <ntstrsafe.h>
|
2005-12-01 21:37:19 +00:00
|
|
|
#include <usbdi.h>
|
2011-05-03 00:15:23 +00:00
|
|
|
#include <usbbusif.h>
|
|
|
|
#include <usbdlib.h>
|
2011-05-05 00:39:00 +00:00
|
|
|
#include <classpnp.h>
|
2005-08-14 22:27:15 +00:00
|
|
|
|
2009-08-24 17:38:50 +00:00
|
|
|
#define USB_STOR_TAG 'sbsu'
|
2011-05-10 23:26:56 +00:00
|
|
|
|
2019-04-13 12:48:14 +00:00
|
|
|
#ifndef BooleanFlagOn
|
|
|
|
#define BooleanFlagOn(Flags, SingleFlag) ((BOOLEAN)((((Flags) & (SingleFlag)) != 0)))
|
|
|
|
#endif
|
|
|
|
|
2019-06-25 16:04:20 +00:00
|
|
|
#ifndef SrbGetCdb
|
|
|
|
#define SrbGetCdb(srb) ((PCDB)(srb->Cdb))
|
|
|
|
#endif
|
|
|
|
|
2019-11-09 22:05:47 +00:00
|
|
|
// Storage subclass codes
|
|
|
|
|
|
|
|
#define USB_SUBCLASS_RBC 0x01 // Typically, flash devices
|
|
|
|
#define USB_SUBCLASS_8020 0x02 // CD-ROM
|
|
|
|
#define USB_SUBCLASS_QIC 0x03 // QIC-157 Tapes
|
|
|
|
#define USB_SUBCLASS_UFI 0x04 // Floppy
|
|
|
|
#define USB_SUBCLASS_8070 0x05 // Removable media
|
|
|
|
#define USB_SUBCLASS_SCSI 0x06 // Transparent
|
|
|
|
#define USB_SUBCLASS_LOCKABLE 0x07 // Password-protected
|
|
|
|
|
|
|
|
#define USB_SUBCLASS_ISD200 0xF0 // ISD200 ATA
|
|
|
|
#define USB_SUBCLASS_CYP_ATACB 0xF1 // Cypress ATACB
|
|
|
|
#define USB_SUBCLASS_VENDOR 0xFF // Use vendor specific
|
|
|
|
|
|
|
|
// Storage protocol codes
|
|
|
|
|
|
|
|
#define USB_PROTOCOL_CBI 0x00 // Control/Bulk/Interrupt
|
|
|
|
#define USB_PROTOCOL_CB 0x01 // Control/Bulk w/o interrupt
|
|
|
|
#define USB_PROTOCOL_BULK 0x50 // bulk only
|
|
|
|
#define USB_PROTOCOL_UAS 0x62 // USB Attached SCSI
|
|
|
|
#define USB_PROTOCOL_USBAT 0x80 // SCM-ATAPI bridge
|
|
|
|
#define USB_PROTOCOL_EUSB_SDDR09 0x81 // SCM-SCSI bridge for SDDR-09
|
|
|
|
#define USB_PROTOCOL_SDDR55 0x82 // SDDR-55 (made up)
|
|
|
|
|
|
|
|
#define USB_PROTOCOL_DPCM_USB 0xF0 // Combination CB/SDDR09
|
|
|
|
#define USB_PROTOCOL_FREECOM 0xF1 // Freecom
|
|
|
|
#define USB_PROTOCOL_DATAFAB 0xF2 // Datafab chipsets
|
|
|
|
#define USB_PROTOCOL_JUMPSHOT 0xF3 // Lexar Jumpshot
|
|
|
|
#define USB_PROTOCOL_ALAUDA 0xF4 // Alauda chipsets
|
|
|
|
#define USB_PROTOCOL_KARMA 0xF5 // Rio Karma
|
|
|
|
#define USB_PROTOCOL_VENDOR 0xFF // Use vendor specific
|
|
|
|
|
|
|
|
// Mass storage class-specific commands
|
|
|
|
|
|
|
|
#define USB_BULK_GET_MAX_LUN 0xFE
|
|
|
|
#define USB_BULK_RESET_DEVICE 0xFF
|
|
|
|
|
2011-05-17 11:26:25 +00:00
|
|
|
#define USB_RECOVERABLE_ERRORS (USBD_STATUS_STALL_PID | USBD_STATUS_DEV_NOT_RESPONDING \
|
|
|
|
| USBD_STATUS_ENDPOINT_HALTED | USBD_STATUS_NO_BANDWIDTH)
|
|
|
|
|
2019-11-09 22:05:47 +00:00
|
|
|
#define USB_MAXCHILDREN 16
|
|
|
|
#define MAX_LUN 0xF
|
|
|
|
#define USBSTOR_DEFAULT_MAX_TRANSFER_LENGTH 0x10000
|
|
|
|
|
2020-06-12 13:51:42 +00:00
|
|
|
#define CBW_SIGNATURE 0x43425355
|
|
|
|
#define CSW_SIGNATURE 0x53425355
|
|
|
|
|
|
|
|
#include <pshpack1.h>
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
ULONG Signature; // CBW signature
|
|
|
|
ULONG Tag; // CBW Tag of operation
|
|
|
|
ULONG DataTransferLength; // data transfer length
|
|
|
|
UCHAR Flags; // CBW Flags endpoint direction
|
|
|
|
UCHAR LUN; // lun unit
|
|
|
|
UCHAR CommandBlockLength; // Command block length
|
|
|
|
UCHAR CommandBlock[16];
|
|
|
|
} CBW, *PCBW;
|
|
|
|
|
|
|
|
C_ASSERT(sizeof(CBW) == 31);
|
|
|
|
|
|
|
|
#define CSW_STATUS_COMMAND_PASSED 0x00
|
|
|
|
#define CSW_STATUS_COMMAND_FAILED 0x01
|
|
|
|
#define CSW_STATUS_PHASE_ERROR 0x02
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
ULONG Signature; // CSW signature
|
|
|
|
ULONG Tag; // CSW tag
|
|
|
|
ULONG DataResidue; // CSW data transfer diff
|
|
|
|
UCHAR Status; // CSW status
|
|
|
|
} CSW, *PCSW;
|
|
|
|
|
|
|
|
#include <poppack.h>
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
PIRP Irp;
|
|
|
|
ULONG ErrorIndex;
|
|
|
|
ULONG StallRetryCount; // the number of retries after receiving USBD_STATUS_STALL_PID status
|
|
|
|
union
|
|
|
|
{
|
|
|
|
CBW cbw;
|
|
|
|
CSW csw;
|
|
|
|
};
|
|
|
|
URB Urb;
|
|
|
|
SCSI_REQUEST_BLOCK SenseSrb;
|
|
|
|
} IRP_CONTEXT, *PIRP_CONTEXT;
|
|
|
|
|
2011-05-05 00:39:00 +00:00
|
|
|
typedef struct __COMMON_DEVICE_EXTENSION__
|
2005-08-14 22:27:15 +00:00
|
|
|
{
|
2011-05-03 00:15:23 +00:00
|
|
|
BOOLEAN IsFDO;
|
2005-08-14 22:27:15 +00:00
|
|
|
|
2011-05-05 00:39:00 +00:00
|
|
|
}USBSTOR_COMMON_DEVICE_EXTENSION, *PUSBSTOR_COMMON_DEVICE_EXTENSION;
|
2007-10-19 23:21:45 +00:00
|
|
|
|
2019-04-13 12:48:14 +00:00
|
|
|
#define USBSTOR_FDO_FLAGS_DEVICE_RESETTING 0x00000001 // hard reset is in progress
|
|
|
|
#define USBSTOR_FDO_FLAGS_IRP_LIST_FREEZE 0x00000002 // the irp list is freezed
|
|
|
|
|
2011-05-03 00:15:23 +00:00
|
|
|
typedef struct
|
|
|
|
{
|
2011-05-05 00:39:00 +00:00
|
|
|
USBSTOR_COMMON_DEVICE_EXTENSION Common; // common device extension
|
2011-05-03 00:15:23 +00:00
|
|
|
|
|
|
|
PDEVICE_OBJECT FunctionalDeviceObject; // functional device object
|
|
|
|
PDEVICE_OBJECT PhysicalDeviceObject; // physical device object
|
|
|
|
PDEVICE_OBJECT LowerDeviceObject; // lower device object
|
|
|
|
USB_BUS_INTERFACE_USBDI_V2 BusInterface; // bus interface of device
|
|
|
|
PUSB_DEVICE_DESCRIPTOR DeviceDescriptor; // usb device descriptor
|
|
|
|
PUSB_CONFIGURATION_DESCRIPTOR ConfigurationDescriptor; // usb configuration descriptor
|
2011-05-15 17:57:02 +00:00
|
|
|
PUSB_STRING_DESCRIPTOR SerialNumber; // usb serial number
|
2011-05-03 00:15:23 +00:00
|
|
|
PUSBD_INTERFACE_INFORMATION InterfaceInformation; // usb interface information
|
|
|
|
USBD_CONFIGURATION_HANDLE ConfigurationHandle; // usb configuration handle
|
|
|
|
UCHAR BulkInPipeIndex; // bulk in pipe index
|
|
|
|
UCHAR BulkOutPipeIndex; // bulk out pipe index
|
|
|
|
UCHAR MaxLUN; // max lun for device
|
2019-11-09 22:05:47 +00:00
|
|
|
PDEVICE_OBJECT ChildPDO[USB_MAXCHILDREN]; // max 16 child pdo devices
|
2011-05-14 18:09:00 +00:00
|
|
|
KSPIN_LOCK IrpListLock; // irp list lock
|
|
|
|
LIST_ENTRY IrpListHead; // irp list head
|
2011-05-15 12:47:54 +00:00
|
|
|
ULONG IrpPendingCount; // count of irp pending
|
2012-01-24 23:04:31 +00:00
|
|
|
PSCSI_REQUEST_BLOCK ActiveSrb; // stores the current active SRB
|
2012-01-31 15:33:32 +00:00
|
|
|
KEVENT NoPendingRequests; // set if no pending or in progress requests
|
2012-02-17 03:02:14 +00:00
|
|
|
PSCSI_REQUEST_BLOCK LastTimerActiveSrb; // last timer tick active srb
|
|
|
|
ULONG SrbErrorHandlingActive; // error handling of srb is activated
|
|
|
|
ULONG TimerWorkQueueEnabled; // timer work queue enabled
|
2012-10-22 11:33:26 +00:00
|
|
|
ULONG InstanceCount; // pdo instance count
|
2019-04-13 12:48:14 +00:00
|
|
|
KSPIN_LOCK CommonLock;
|
|
|
|
PIO_WORKITEM ResetDeviceWorkItem;
|
|
|
|
ULONG Flags;
|
2020-06-12 13:51:42 +00:00
|
|
|
IRP_CONTEXT CurrentIrpContext;
|
2011-05-03 00:15:23 +00:00
|
|
|
}FDO_DEVICE_EXTENSION, *PFDO_DEVICE_EXTENSION;
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
2011-05-05 00:39:00 +00:00
|
|
|
USBSTOR_COMMON_DEVICE_EXTENSION Common;
|
2019-11-09 22:05:47 +00:00
|
|
|
|
2011-05-03 19:40:03 +00:00
|
|
|
UCHAR LUN; // lun id
|
2019-11-09 22:05:47 +00:00
|
|
|
BOOLEAN Claimed; // indicating if it has been claimed by upper driver
|
|
|
|
PDEVICE_OBJECT LowerDeviceObject; // points to FDO
|
2012-02-05 15:36:00 +00:00
|
|
|
PDEVICE_OBJECT *PDODeviceObject; // entry in pdo list
|
2012-02-17 03:02:14 +00:00
|
|
|
PDEVICE_OBJECT Self; // self
|
2020-06-12 13:51:42 +00:00
|
|
|
// the whole structure is not stored
|
|
|
|
UCHAR InquiryData[INQUIRYDATABUFFERSIZE]; // USB SCSI inquiry data
|
2011-05-03 00:15:23 +00:00
|
|
|
}PDO_DEVICE_EXTENSION, *PPDO_DEVICE_EXTENSION;
|
2005-08-14 22:27:15 +00:00
|
|
|
|
2011-05-17 11:26:25 +00:00
|
|
|
typedef struct _ERRORHANDLER_WORKITEM_DATA
|
|
|
|
{
|
2012-02-19 02:47:35 +00:00
|
|
|
PDEVICE_OBJECT DeviceObject;
|
|
|
|
PIRP_CONTEXT Context;
|
|
|
|
WORK_QUEUE_ITEM WorkQueueItem;
|
2012-02-15 03:52:37 +00:00
|
|
|
PIRP Irp;
|
2011-05-17 11:26:25 +00:00
|
|
|
} ERRORHANDLER_WORKITEM_DATA, *PERRORHANDLER_WORKITEM_DATA;
|
2011-05-11 03:49:15 +00:00
|
|
|
|
2020-12-05 22:57:56 +00:00
|
|
|
// we need this to be compatible with ReactOS' classpnp (which is compiled with NTDDI_WIN8)
|
|
|
|
typedef struct _STORAGE_ADAPTER_DESCRIPTOR_WIN8 {
|
|
|
|
ULONG Version;
|
|
|
|
ULONG Size;
|
|
|
|
ULONG MaximumTransferLength;
|
|
|
|
ULONG MaximumPhysicalPages;
|
|
|
|
ULONG AlignmentMask;
|
|
|
|
BOOLEAN AdapterUsesPio;
|
|
|
|
BOOLEAN AdapterScansDown;
|
|
|
|
BOOLEAN CommandQueueing;
|
|
|
|
BOOLEAN AcceleratedTransfer;
|
|
|
|
UCHAR BusType;
|
|
|
|
USHORT BusMajorVersion;
|
|
|
|
USHORT BusMinorVersion;
|
|
|
|
UCHAR SrbType;
|
|
|
|
UCHAR AddressType;
|
|
|
|
} STORAGE_ADAPTER_DESCRIPTOR_WIN8, *PSTORAGE_ADAPTER_DESCRIPTOR_WIN8;
|
|
|
|
|
2011-05-11 03:49:15 +00:00
|
|
|
|
2011-05-03 00:15:23 +00:00
|
|
|
//---------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// fdo.c routines
|
|
|
|
//
|
2005-08-14 22:27:15 +00:00
|
|
|
NTSTATUS
|
2011-05-03 00:15:23 +00:00
|
|
|
USBSTOR_FdoHandlePnp(
|
|
|
|
IN PDEVICE_OBJECT DeviceObject,
|
|
|
|
IN OUT PIRP Irp);
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// pdo.c routines
|
|
|
|
//
|
|
|
|
NTSTATUS
|
|
|
|
USBSTOR_PdoHandlePnp(
|
|
|
|
IN PDEVICE_OBJECT DeviceObject,
|
|
|
|
IN OUT PIRP Irp);
|
2005-08-14 22:27:15 +00:00
|
|
|
|
|
|
|
NTSTATUS
|
2011-05-03 00:15:23 +00:00
|
|
|
USBSTOR_CreatePDO(
|
|
|
|
IN PDEVICE_OBJECT DeviceObject,
|
2012-10-22 11:33:26 +00:00
|
|
|
IN UCHAR LUN);
|
2011-05-03 00:15:23 +00:00
|
|
|
|
|
|
|
//---------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// misc.c routines
|
|
|
|
//
|
2005-08-14 22:27:15 +00:00
|
|
|
|
2011-05-03 00:15:23 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
USBSTOR_GetBusInterface(
|
|
|
|
IN PDEVICE_OBJECT DeviceObject,
|
|
|
|
OUT PUSB_BUS_INTERFACE_USBDI_V2 BusInterface);
|
|
|
|
|
|
|
|
PVOID
|
|
|
|
AllocateItem(
|
2013-05-27 18:39:32 +00:00
|
|
|
IN POOL_TYPE PoolType,
|
2011-05-03 00:15:23 +00:00
|
|
|
IN ULONG ItemSize);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
FreeItem(
|
|
|
|
IN PVOID Item);
|
2005-08-14 22:27:15 +00:00
|
|
|
|
|
|
|
NTSTATUS
|
2011-05-03 00:15:23 +00:00
|
|
|
USBSTOR_SyncUrbRequest(
|
|
|
|
IN PDEVICE_OBJECT DeviceObject,
|
|
|
|
OUT PURB UrbRequest);
|
2005-08-14 22:27:15 +00:00
|
|
|
|
|
|
|
NTSTATUS
|
2011-05-03 00:15:23 +00:00
|
|
|
USBSTOR_GetMaxLUN(
|
|
|
|
IN PDEVICE_OBJECT DeviceObject,
|
|
|
|
IN PFDO_DEVICE_EXTENSION DeviceExtension);
|
2005-08-14 22:27:15 +00:00
|
|
|
|
2012-02-11 19:26:18 +00:00
|
|
|
NTSTATUS
|
|
|
|
USBSTOR_ResetDevice(
|
|
|
|
IN PDEVICE_OBJECT DeviceObject,
|
|
|
|
IN PFDO_DEVICE_EXTENSION DeviceExtension);
|
2011-05-03 00:15:23 +00:00
|
|
|
|
|
|
|
//---------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// descriptor.c routines
|
|
|
|
//
|
|
|
|
|
|
|
|
NTSTATUS
|
|
|
|
USBSTOR_GetDescriptors(
|
|
|
|
IN PDEVICE_OBJECT DeviceObject);
|
|
|
|
|
|
|
|
NTSTATUS
|
|
|
|
USBSTOR_SelectConfigurationAndInterface(
|
|
|
|
IN PDEVICE_OBJECT DeviceObject,
|
|
|
|
IN PFDO_DEVICE_EXTENSION DeviceExtension);
|
2005-08-14 22:27:15 +00:00
|
|
|
|
|
|
|
NTSTATUS
|
2011-05-03 00:15:23 +00:00
|
|
|
USBSTOR_GetPipeHandles(
|
|
|
|
IN PFDO_DEVICE_EXTENSION DeviceExtension);
|
2005-08-14 22:27:15 +00:00
|
|
|
|
2011-05-03 19:40:03 +00:00
|
|
|
//---------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// scsi.c routines
|
|
|
|
//
|
|
|
|
NTSTATUS
|
2011-05-14 18:09:00 +00:00
|
|
|
USBSTOR_HandleExecuteSCSI(
|
2011-05-06 17:23:19 +00:00
|
|
|
IN PDEVICE_OBJECT DeviceObject,
|
2019-04-10 00:22:03 +00:00
|
|
|
IN PIRP Irp);
|
2011-05-06 17:23:19 +00:00
|
|
|
|
2012-02-15 03:52:37 +00:00
|
|
|
NTSTATUS
|
2019-03-31 22:07:55 +00:00
|
|
|
USBSTOR_SendCSWRequest(
|
2020-06-12 13:51:42 +00:00
|
|
|
PFDO_DEVICE_EXTENSION FDODeviceExtension,
|
2012-02-17 03:02:14 +00:00
|
|
|
PIRP Irp);
|
|
|
|
|
|
|
|
|
2011-05-14 18:09:00 +00:00
|
|
|
//---------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// disk.c routines
|
|
|
|
//
|
2011-05-10 23:26:56 +00:00
|
|
|
NTSTATUS
|
2011-05-14 18:09:00 +00:00
|
|
|
USBSTOR_HandleInternalDeviceControl(
|
2011-05-10 23:26:56 +00:00
|
|
|
IN PDEVICE_OBJECT DeviceObject,
|
2011-05-11 03:49:15 +00:00
|
|
|
IN PIRP Irp);
|
2011-05-10 23:26:56 +00:00
|
|
|
|
|
|
|
NTSTATUS
|
2011-05-14 18:09:00 +00:00
|
|
|
USBSTOR_HandleDeviceControl(
|
2011-05-10 23:26:56 +00:00
|
|
|
IN PDEVICE_OBJECT DeviceObject,
|
2011-05-11 03:49:15 +00:00
|
|
|
IN PIRP Irp);
|
2011-05-10 23:26:56 +00:00
|
|
|
|
2011-05-05 00:39:00 +00:00
|
|
|
//---------------------------------------------------------------------
|
|
|
|
//
|
2011-05-14 18:09:00 +00:00
|
|
|
// queue.c routines
|
2011-05-05 00:39:00 +00:00
|
|
|
//
|
2011-05-14 18:09:00 +00:00
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
USBSTOR_StartIo(
|
|
|
|
PDEVICE_OBJECT DeviceObject,
|
|
|
|
PIRP Irp);
|
2011-05-05 00:39:00 +00:00
|
|
|
|
2011-05-14 18:09:00 +00:00
|
|
|
VOID
|
2012-01-31 15:33:32 +00:00
|
|
|
USBSTOR_QueueWaitForPendingRequests(
|
2011-05-14 18:09:00 +00:00
|
|
|
IN PDEVICE_OBJECT DeviceObject);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
USBSTOR_QueueRelease(
|
|
|
|
IN PDEVICE_OBJECT DeviceObject);
|
|
|
|
|
|
|
|
BOOLEAN
|
|
|
|
USBSTOR_QueueAddIrp(
|
2011-05-05 00:39:00 +00:00
|
|
|
IN PDEVICE_OBJECT DeviceObject,
|
|
|
|
IN PIRP Irp);
|
2011-05-06 17:23:19 +00:00
|
|
|
|
2011-05-14 18:09:00 +00:00
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
USBSTOR_CancelIo(
|
|
|
|
IN PDEVICE_OBJECT DeviceObject,
|
|
|
|
IN PIRP Irp);
|
2011-05-06 17:23:19 +00:00
|
|
|
|
2011-05-14 18:09:00 +00:00
|
|
|
VOID
|
|
|
|
USBSTOR_QueueInitialize(
|
|
|
|
PFDO_DEVICE_EXTENSION FDODeviceExtension);
|
2011-05-15 12:47:54 +00:00
|
|
|
|
2011-05-15 14:59:16 +00:00
|
|
|
VOID
|
|
|
|
USBSTOR_QueueNextRequest(
|
|
|
|
IN PDEVICE_OBJECT DeviceObject);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
USBSTOR_QueueTerminateRequest(
|
|
|
|
IN PDEVICE_OBJECT DeviceObject,
|
2012-01-24 23:04:31 +00:00
|
|
|
IN PIRP Irp);
|
2012-02-11 19:26:18 +00:00
|
|
|
|
2019-11-09 22:05:47 +00:00
|
|
|
//---------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// error.c routines
|
|
|
|
//
|
2012-02-11 19:26:18 +00:00
|
|
|
NTSTATUS
|
|
|
|
USBSTOR_GetEndpointStatus(
|
|
|
|
IN PDEVICE_OBJECT DeviceObject,
|
|
|
|
IN UCHAR bEndpointAddress,
|
|
|
|
OUT PUSHORT Value);
|
|
|
|
|
2012-02-15 03:52:37 +00:00
|
|
|
NTSTATUS
|
|
|
|
USBSTOR_ResetPipeWithHandle(
|
|
|
|
IN PDEVICE_OBJECT DeviceObject,
|
|
|
|
IN USBD_PIPE_HANDLE PipeHandle);
|
|
|
|
|
2012-02-17 03:02:14 +00:00
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
USBSTOR_TimerRoutine(
|
|
|
|
PDEVICE_OBJECT DeviceObject,
|
|
|
|
PVOID Context);
|
|
|
|
|
2019-04-13 12:48:14 +00:00
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
USBSTOR_QueueResetPipe(
|
2020-06-12 13:51:42 +00:00
|
|
|
IN PFDO_DEVICE_EXTENSION FDODeviceExtension);
|
2019-04-13 12:48:14 +00:00
|
|
|
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
USBSTOR_QueueResetDevice(
|
|
|
|
IN PFDO_DEVICE_EXTENSION FDODeviceExtension);
|
|
|
|
|
2019-11-09 22:05:47 +00:00
|
|
|
#endif // _USBSTOR_H_
|