Changeset 6430ac6 in mainline for uspace/drv/bus/usb/usbmast/mast.h


Ignore:
Timestamp:
2011-07-03T10:53:17Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
71fa44c
Parents:
3f08fd2b
Message:

Refactor inquiry.c a little.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbmast/mast.h

    r3f08fd2b r6430ac6  
    4646#define BULK_OUT_EP 1
    4747
    48 /** Result of SCSI INQUIRY command.
    49  * This is already parsed structure, not the original buffer returned by
    50  * the device.
    51  */
    52 typedef struct {
    53         /** SCSI peripheral device type */
    54         unsigned device_type;
    55         /** Whether the device is removable */
    56         bool removable;
    57         /** Vendor ID string */
    58         char vendor[SCSI_INQ_VENDOR_STR_BUFSIZE];
    59         /** Product ID string */
    60         char product[SCSI_INQ_PRODUCT_STR_BUFSIZE];
    61         /** Revision string */
    62         char revision[SCSI_INQ_REVISION_STR_BUFSIZE];
    63 } usb_massstor_inquiry_result_t;
    64 
    6548int usb_massstor_data_in(usb_device_t *dev, uint32_t, uint8_t, void *,
    6649    size_t, void *, size_t, size_t *);
     
    6952int usb_massstor_get_max_lun(usb_device_t *);
    7053size_t usb_masstor_get_lun_count(usb_device_t *);
    71 int usb_massstor_inquiry(usb_device_t *, usb_massstor_inquiry_result_t *);
    72 const char *usb_str_masstor_scsi_peripheral_device_type(unsigned);
    7354
    7455#endif
Note: See TracChangeset for help on using the changeset viewer.