Changeset ae3a941 in mainline for uspace/lib/usb/include/usb/descriptor.h
- Timestamp:
- 2018-02-26T16:51:40Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e773f58
- Parents:
- 3692678
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/descriptor.h
r3692678 rae3a941 101 101 /** Number of possible configurations. */ 102 102 uint8_t configuration_count; 103 } __attribute__ 103 } __attribute__((packed)) usb_standard_device_descriptor_t; 104 104 105 105 /** USB device qualifier decriptor is basically a cut down version of the device … … 129 129 uint8_t configuration_count; 130 130 uint8_t reserved; 131 } __attribute__ 131 } __attribute__((packed)) usb_standard_device_qualifier_descriptor_t; 132 132 133 133 /** Standard USB configuration descriptor. … … 156 156 */ 157 157 uint8_t max_power; 158 } __attribute__ 158 } __attribute__((packed)) usb_standard_configuration_descriptor_t; 159 159 160 160 /** USB Other Speed Configuration descriptor shows values that would change … … 191 191 /** String descriptor describing this interface. */ 192 192 uint8_t str_interface; 193 } __attribute__ 193 } __attribute__((packed)) usb_standard_interface_descriptor_t; 194 194 195 195 /** Standard USB endpoint descriptor. … … 223 223 */ 224 224 uint8_t poll_interval; 225 } __attribute__ 225 } __attribute__((packed)) usb_standard_endpoint_descriptor_t; 226 226 227 227 /** Superspeed USB endpoint companion descriptor. … … 254 254 */ 255 255 uint16_t bytes_per_interval; 256 } __attribute__ 256 } __attribute__((packed)) usb_superspeed_endpoint_companion_descriptor_t; 257 257 258 258 /** Part of standard USB HID descriptor specifying one class descriptor. … … 265 265 /** Length of class-specific descriptor in bytes. */ 266 266 uint16_t length; 267 } __attribute__ 267 } __attribute__((packed)) usb_standard_hid_class_descriptor_info_t; 268 268 269 269 /** Standard USB HID descriptor. … … 296 296 /** First mandatory class descriptor (Report) info. */ 297 297 usb_standard_hid_class_descriptor_info_t report_desc_info; 298 } __attribute__ 298 } __attribute__((packed)) usb_standard_hid_descriptor_t; 299 299 300 300 #endif
Note:
See TracChangeset
for help on using the changeset viewer.