Changes in uspace/drv/bus/usb/usbmast/mast.h [5203e256:38c9505] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbmast/mast.h
r5203e256 r38c9505 37 37 #define USB_USBMAST_MAST_H_ 38 38 39 #include <scsi/spc.h> 39 40 #include <sys/types.h> 40 41 #include <usb/usb.h> … … 42 43 #include <usb/dev/driver.h> 43 44 44 /** Result of SCSI INQUIRY command. 45 * This is already parsed structure, not the original buffer returned by 46 * the device. 47 */ 48 typedef struct { 49 /** SCSI peripheral device type. */ 50 int peripheral_device_type; 51 /** Whether the device is removable. */ 52 bool removable; 53 /** Vendor ID string. */ 54 char vendor_id[9]; 55 /** Product ID and product revision string. */ 56 char product_and_revision[12]; 57 } usb_massstor_inquiry_result_t; 45 #define BULK_IN_EP 0 46 #define BULK_OUT_EP 1 58 47 59 int usb_massstor_data_in(usb_device_t *dev, size_t, size_t, 60 uint32_t, uint8_t, void *, size_t, void *, size_t, size_t *); 61 int usb_massstor_reset(usb_device_t *); 62 void usb_massstor_reset_recovery(usb_device_t *, size_t, size_t); 63 int usb_massstor_get_max_lun(usb_device_t *); 64 size_t usb_masstor_get_lun_count(usb_device_t *); 65 int usb_massstor_inquiry(usb_device_t *, size_t, size_t, 66 usb_massstor_inquiry_result_t *); 67 const char *usb_str_masstor_scsi_peripheral_device_type(int); 48 extern int usb_massstor_data_in(usb_device_t *, uint32_t, uint8_t, const void *, 49 size_t, void *, size_t, size_t *); 50 extern int usb_massstor_data_out(usb_device_t *, uint32_t, uint8_t, const void *, 51 size_t, const void *, size_t, size_t *); 52 extern int usb_massstor_reset(usb_device_t *); 53 extern void usb_massstor_reset_recovery(usb_device_t *); 54 extern int usb_massstor_get_max_lun(usb_device_t *); 55 extern size_t usb_masstor_get_lun_count(usb_device_t *); 68 56 69 57 #endif
Note:
See TracChangeset
for help on using the changeset viewer.