Changeset cf002dbf in mainline for uspace/drv/usbmast/mast.c


Ignore:
Timestamp:
2011-05-11T19:31:16Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5f0fe4e9
Parents:
70c12d6
Message:

Add comments to mass storage driver

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbmast/mast.c

    r70c12d6 rcf002dbf  
    139139}
    140140
     141/** Perform bulk-only mass storage reset.
     142 *
     143 * @param dev Device to be reseted.
     144 * @return Error code.
     145 */
    141146int usb_massstor_reset(usb_device_t *dev)
    142147{
     
    146151}
    147152
     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 */
    148162void usb_massstor_reset_recovery(usb_device_t *dev,
    149163    size_t bulk_in_idx, size_t bulk_out_idx)
     
    157171}
    158172
     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 */
    159181int usb_massstor_get_max_lun(usb_device_t *dev)
    160182{
Note: See TracChangeset for help on using the changeset viewer.