Changeset cf002dbf in mainline for uspace/drv/usbmast/inquiry.c
- Timestamp:
- 2011-05-11T19:31:16Z (12 years ago)
- Branches:
- lfn, master, serial
- Children:
- 5f0fe4e9
- Parents:
- 70c12d6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbmast/inquiry.c
r70c12d6 rcf002dbf 55 55 56 56 #define STR_UNKNOWN "<unknown>" 57 58 /** String constants for SCSI peripheral device types. */ 57 59 static const char *str_peripheral_device_types[] = { 58 60 "direct-access device", … … 92 94 (sizeof(str_peripheral_device_types)/sizeof(str_peripheral_device_types[0])) 93 95 96 /** Get string representation for SCSI peripheral device type. 97 * 98 * See for example here for a list 99 * http://en.wikipedia.org/wiki/SCSI_Peripheral_Device_Type. 100 * 101 * @param type SCSI peripheral device type code. 102 * @return String representation. 103 */ 94 104 const char *usb_str_masstor_scsi_peripheral_device_type(int type) 95 105 { … … 101 111 } 102 112 113 /** Trim trailing spaces from a string (rewrite with string terminator). 114 * 115 * @param name String to be trimmed (in-out parameter). 116 */ 103 117 static void trim_trailing_spaces(char *name) 104 118 { … … 110 124 } 111 125 126 /** Perform SCSI INQUIRY command on USB mass storage device. 127 * 128 * @param dev USB device. 129 * @param bulk_in_idx Index (in dev->pipes) of bulk in pipe. 130 * @param bulk_out_idx Index of bulk out pipe. 131 * @param inquiry_result Where to store parsed inquiry result. 132 * @return Error code. 133 */ 112 134 int usb_massstor_inquiry(usb_device_t *dev, 113 135 size_t bulk_in_idx, size_t bulk_out_idx,
Note: See TracChangeset
for help on using the changeset viewer.