Changeset 70c12d6 in mainline for uspace/drv/usbmast/mast.h


Ignore:
Timestamp:
2011-05-11T19:20:06Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cf002dbf
Parents:
19387b61
Message:

Fix inquiry of USB mass storage

The problem was bad endianness in SCSI command descriptor block
(damn, why we need different endianness at all?).

File:
1 edited

Legend:

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

    r19387b61 r70c12d6  
    4040#include <usb/usb.h>
    4141#include <usb/pipes.h>
     42#include <usb/devdrv.h>
    4243
    43 int usb_massstor_data_in(usb_pipe_t *, usb_pipe_t *, uint32_t, uint8_t,
    44     void *, size_t, void *, size_t, size_t *);
     44typedef struct {
     45        int peripheral_device_type;
     46        bool removable;
     47        char vendor_id[9];
     48        char product_and_revision[12];
     49} usb_massstor_inquiry_result_t;
     50
     51int usb_massstor_data_in(usb_device_t *dev, size_t, size_t,
     52    uint32_t, uint8_t, void *, size_t, void *, size_t, size_t *);
     53int usb_massstor_reset(usb_device_t *);
     54void usb_massstor_reset_recovery(usb_device_t *, size_t, size_t);
     55int usb_massstor_get_max_lun(usb_device_t *);
     56int usb_massstor_inquiry(usb_device_t *, size_t, size_t,
     57    usb_massstor_inquiry_result_t *);
     58const char *usb_str_masstor_scsi_peripheral_device_type(int);
    4559
    4660#endif
Note: See TracChangeset for help on using the changeset viewer.