nusb/disk: also drive usb attached scsi devices
This commit is contained in:
parent
22fc5467a4
commit
2d221e61e3
|
@ -929,7 +929,7 @@ findendpoints(Ums *ums)
|
|||
continue;
|
||||
csp = ep->iface->csp;
|
||||
sc = Subclass(csp);
|
||||
if(!(Class(csp) == Clstorage && (Proto(csp) == Protobulk)))
|
||||
if(!(Class(csp) == Clstorage && (Proto(csp) == Protobulk || Proto(csp) == Protouas)))
|
||||
continue;
|
||||
if(sc != Subatapi && sc != Sub8070 && sc != Subscsi)
|
||||
fprint(2, "disk: subclass %#ulx not supported. trying anyway\n", sc);
|
||||
|
|
|
@ -14,6 +14,7 @@ enum
|
|||
Protocbi = 0, /* control/bulk/interrupt; mainly floppies */
|
||||
Protocb = 1, /* " with no interrupt; mainly floppies */
|
||||
Protobulk = 0x50, /* bulk only */
|
||||
Protouas = 0x62, /* USB-attached SCSI */
|
||||
|
||||
Subrbc = 1, /* reduced blk cmds */
|
||||
Subatapi = 2, /* cd/dvd using sff-8020i or mmc-2 cmd blks */
|
||||
|
|
Loading…
Reference in a new issue