Changeset cf002dbf in mainline for uspace/drv/usbmast/mast.c
- Timestamp:
- 2011-05-11T19:31:16Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5f0fe4e9
- Parents:
- 70c12d6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbmast/mast.c
r70c12d6 rcf002dbf 139 139 } 140 140 141 /** Perform bulk-only mass storage reset. 142 * 143 * @param dev Device to be reseted. 144 * @return Error code. 145 */ 141 146 int usb_massstor_reset(usb_device_t *dev) 142 147 { … … 146 151 } 147 152 153 /** Perform complete reset recovery of bulk-only mass storage. 154 * 155 * Notice that no error is reported because if this fails, the error 156 * would reappear on next transaction somehow. 157 * 158 * @param dev Device to be reseted. 159 * @param bulk_in_idx Index of bulk in pipe. 160 * @param bulk_out_idx Index of bulk out pipe. 161 */ 148 162 void usb_massstor_reset_recovery(usb_device_t *dev, 149 163 size_t bulk_in_idx, size_t bulk_out_idx) … … 157 171 } 158 172 173 /** Get max LUN of a mass storage device. 174 * 175 * @warning Error from this command does not necessarily indicate malfunction 176 * of the device. Device does not need to support this request. 177 * 178 * @param dev Mass storage device. 179 * @return Error code of maximum LUN (index, not count). 180 */ 159 181 int usb_massstor_get_max_lun(usb_device_t *dev) 160 182 {
Note:
See TracChangeset
for help on using the changeset viewer.