mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 14:51:44 +00:00
[USBSTOR] Weaken the type checks of a device.
This adds usb-cdrom support to usbstor.sys
This commit is contained in:
parent
7bb93db372
commit
b7de5870e6
3 changed files with 6 additions and 4 deletions
|
@ -177,12 +177,12 @@ USBSTOR_FdoHandleStartDevice(
|
|||
return STATUS_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
if (InterfaceDesc->bInterfaceSubClass != 0x06)
|
||||
if (InterfaceDesc->bInterfaceSubClass == 0x04) // UFI subclass
|
||||
{
|
||||
// FIXME: need to pad CDBs to 12 byte
|
||||
// mode select commands must be translated from 1AH / 15h to 5AH / 55h
|
||||
DPRINT1("[USBSTOR] Error: need to pad CDBs\n");
|
||||
return STATUS_NOT_IMPLEMENTED;
|
||||
return STATUS_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
// now select an interface
|
||||
|
|
|
@ -897,7 +897,7 @@ USBSTOR_CreatePDO(
|
|||
return Status;
|
||||
}
|
||||
|
||||
if (PDODeviceExtension->InquiryData->DeviceType == DIRECT_ACCESS_DEVICE)
|
||||
if (PDODeviceExtension->InquiryData->DeviceType == DIRECT_ACCESS_DEVICE || PDODeviceExtension->InquiryData->DeviceType == READ_ONLY_DIRECT_ACCESS_DEVICE)
|
||||
{
|
||||
PDODeviceExtension->IsFloppy = FALSE; // TODO: implement the actual check
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue