Skip to content

Commit a5a4ad2

Browse files
authored
Update usb_mass.c add mass_dev
1 parent 7cbb64f commit a5a4ad2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

iop/usb/usbmass_bd/src/usb_mass.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,20 @@
3737
#define CBW_TAG 0x43425355
3838
#define CSW_TAG 0x53425355
3939

40+
typedef struct _mass_dev
41+
{
42+
int controlEp; // config endpoint id
43+
int bulkEpI; // in endpoint id
44+
int bulkEpO; // out endpoint id
45+
int devId; // device id
46+
unsigned char configId; // configuration id
47+
unsigned char status;
48+
unsigned char interfaceNumber; // interface number
49+
unsigned char interfaceAlt; // interface alternate setting
50+
int usbPortNumber; //physical port number the USB device is connected to
51+
int ioSema;
52+
struct scsi_interface scsi;
53+
} mass_dev;
4054

4155
typedef struct _cbw_packet
4256
{

0 commit comments

Comments
 (0)