nusb/disk: also drive usb attached scsi devices

This commit is contained in:
mischief 2018-10-15 04:14:59 -07:00
parent 22fc5467a4
commit 2d221e61e3
2 changed files with 2 additions and 1 deletions

View file

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

View file

@ -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 */