[USBSTOR]

- Read Capacity cmd length is 10 bytes

svn path=/branches/usb-bringup-trunk/; revision=55531
This commit is contained in:
Johannes Anderwald 2012-02-10 21:42:42 +00:00
parent 1ecef805ff
commit 3a5a6bf017
2 changed files with 3 additions and 2 deletions

View file

@ -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)

View file

@ -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);
//-------------------------------------------------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------------------------------------------------