Changeset 26e7d6d in mainline for uspace/drv/bus/usb/usbmast/cmdw.c
- Timestamp:
- 2011-09-19T16:31:00Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a347a11
- Parents:
- 3842a955 (diff), 086290d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbmast/cmdw.c
r3842a955 r26e7d6d 34 34 */ 35 35 36 #ifndef USB_USBMAST_CMDS_H_ 37 #define USB_USBMAST_CMDS_H_ 38 36 #include <byteorder.h> 37 #include <mem.h> 39 38 #include <sys/types.h> 40 39 #include <usb/usb.h> 40 #include "cmdw.h" 41 41 42 typedef struct { 43 uint32_t dCBWSignature; 44 uint32_t dCBWTag; 45 uint32_t dCBWDataTransferLength; 46 uint8_t bmCBWFlags; 47 uint8_t bCBWLUN; 48 uint8_t bCBWBLength; 49 uint8_t CBWCB[16]; 50 } __attribute__((packed)) usb_massstor_cbw_t; 51 52 typedef struct { 53 uint32_t dCSWSignature; 54 uint32_t dCSWTag; 55 uint32_t dCSWDataResidue; 56 uint8_t dCSWStatus; 57 } __attribute__((packed)) usb_massstor_csw_t; 58 59 static inline void usb_massstor_cbw_prepare(usb_massstor_cbw_t *cbw, 42 void usb_massstor_cbw_prepare(usb_massstor_cbw_t *cbw, 60 43 uint32_t tag, uint32_t transfer_length, usb_direction_t dir, 61 uint8_t lun, uint8_t cmd_len, uint8_t *cmd)44 uint8_t lun, uint8_t cmd_len, const uint8_t *cmd) 62 45 { 63 46 cbw->dCBWSignature = uint32_host2usb(0x43425355); … … 79 62 } 80 63 81 #endif82 83 64 /** 84 65 * @}
Note:
See TracChangeset
for help on using the changeset viewer.