3 usb.h.in | 10 +++++-----
4 1 file changed, 5 insertions(+), 5 deletions(-)
9 struct usb_descriptor_header {
11 u_int8_t bDescriptorType;
13 +} __attribute__ ((packed));
15 /* String descriptor */
16 struct usb_string_descriptor {
18 u_int8_t bDescriptorType;
21 +} __attribute__ ((packed));
24 struct usb_hid_descriptor {
26 /* u_int8_t bReportDescriptorType; */
27 /* u_int16_t wDescriptorLength; */
30 +} __attribute__ ((packed));
32 /* Endpoint descriptor */
33 #define USB_MAXENDPOINTS 32
36 u_int8_t iSerialNumber;
37 u_int8_t bNumConfigurations;
39 +} __attribute__ ((packed));
41 struct usb_ctrl_setup {
42 u_int8_t bRequestType;
48 +} __attribute__ ((packed));