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


Ignore:
Timestamp:
2011-05-11T19:31:16Z (13 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/inquiry.c

    r70c12d6 rcf002dbf  
    5555
    5656#define STR_UNKNOWN "<unknown>"
     57
     58/** String constants for SCSI peripheral device types. */
    5759static const char *str_peripheral_device_types[] = {
    5860        "direct-access device",
     
    9294        (sizeof(str_peripheral_device_types)/sizeof(str_peripheral_device_types[0]))
    9395
     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 */
    94104const char *usb_str_masstor_scsi_peripheral_device_type(int type)
    95105{
     
    101111}
    102112
     113/** Trim trailing spaces from a string (rewrite with string terminator).
     114 *
     115 * @param name String to be trimmed (in-out parameter).
     116 */
    103117static void trim_trailing_spaces(char *name)
    104118{
     
    110124}
    111125
     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 */
    112134int usb_massstor_inquiry(usb_device_t *dev,
    113135    size_t bulk_in_idx, size_t bulk_out_idx,
Note: See TracChangeset for help on using the changeset viewer.