mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 00:23:10 +00:00
[USBSTOR]
- Read Capacity cmd length is 10 bytes svn path=/branches/usb-bringup-trunk/; revision=55531
This commit is contained in:
parent
1ecef805ff
commit
3a5a6bf017
2 changed files with 3 additions and 2 deletions
|
@ -819,7 +819,7 @@ USBSTOR_SendCapacityCmd(
|
||||||
//
|
//
|
||||||
// send request, response will be freed in completion routine
|
// send request, response will be freed in completion routine
|
||||||
//
|
//
|
||||||
return USBSTOR_SendRequest(DeviceObject, Irp, NULL, UFI_INQUIRY_CMD_LEN, (PUCHAR)&Cmd, sizeof(UFI_CAPACITY_RESPONSE), (PUCHAR)Response);
|
return USBSTOR_SendRequest(DeviceObject, Irp, NULL, UFI_READ_CAPACITY_CMD_LEN, (PUCHAR)&Cmd, sizeof(UFI_CAPACITY_RESPONSE), (PUCHAR)Response);
|
||||||
}
|
}
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
|
@ -1167,7 +1167,7 @@ USBSTOR_HandleExecuteSCSI(
|
||||||
//
|
//
|
||||||
ASSERT(Request->DataBuffer);
|
ASSERT(Request->DataBuffer);
|
||||||
|
|
||||||
DPRINT("SCSIOP_READ_CAPACITY Length %\n", Request->DataTransferLength);
|
DPRINT("SCSIOP_READ_CAPACITY Length %lu\n", Request->DataTransferLength);
|
||||||
Status = USBSTOR_SendCapacityCmd(DeviceObject, Irp);
|
Status = USBSTOR_SendCapacityCmd(DeviceObject, Irp);
|
||||||
}
|
}
|
||||||
else if (pCDB->MODE_SENSE.OperationCode == SCSIOP_MODE_SENSE)
|
else if (pCDB->MODE_SENSE.OperationCode == SCSIOP_MODE_SENSE)
|
||||||
|
|
|
@ -198,6 +198,7 @@ typedef struct
|
||||||
ULONG BlockLength; // block length in bytes
|
ULONG BlockLength; // block length in bytes
|
||||||
}UFI_CAPACITY_RESPONSE, *PUFI_CAPACITY_RESPONSE;
|
}UFI_CAPACITY_RESPONSE, *PUFI_CAPACITY_RESPONSE;
|
||||||
|
|
||||||
|
#define UFI_READ_CAPACITY_CMD_LEN 0xA
|
||||||
C_ASSERT(sizeof(UFI_CAPACITY_RESPONSE) == 8);
|
C_ASSERT(sizeof(UFI_CAPACITY_RESPONSE) == 8);
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue