Changeset 7f70d1c in mainline
- Timestamp:
- 2017-12-19T09:07:15Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0bb4738
- Parents:
- 32fb6bce
- Location:
- uspace
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/usbinfo/dump.c
r32fb6bce r7f70d1c 61 61 INDENT INDENT INDENT, 62 62 INDENT INDENT INDENT INDENT, 63 INDENT INDENT INDENT INDENT INDENT 63 INDENT INDENT INDENT INDENT INDENT, 64 INDENT INDENT INDENT INDENT INDENT INDENT, 64 65 }; 65 66 static size_t indents_count = sizeof(indents)/sizeof(indents[0]); -
uspace/app/usbinfo/info.c
r32fb6bce r7f70d1c 151 151 } 152 152 153 static void dump_descriptor_tree_brief_superspeed_endpoint_companion(const char *prefix, 154 usb_superspeed_endpoint_companion_descriptor_t *descriptor) 155 { 156 printf("%sSuperspeed endpoint companion\n", prefix); 157 } 158 153 159 static void dump_descriptor_tree_brief_hid(const char *prefix, 154 160 usb_standard_hid_descriptor_t *descriptor) … … 206 212 usb_standard_endpoint_descriptor_t, 207 213 dump_descriptor_tree_brief_endpoint); 214 _BRANCH(USB_DESCTYPE_SSPEED_EP_COMPANION, 215 usb_superspeed_endpoint_companion_descriptor_t, 216 dump_descriptor_tree_brief_superspeed_endpoint_companion); 208 217 _BRANCH(USB_DESCTYPE_HID, 209 218 usb_standard_hid_descriptor_t, -
uspace/lib/usb/src/dump.c
r32fb6bce r7f70d1c 61 61 static void usb_dump_descriptor_endpoint(FILE *, const char *, const char *, 62 62 const uint8_t *, size_t); 63 static void usb_dump_descriptor_superspeed_endpoint_companion(FILE *, const char *, const char *, 64 const uint8_t *, size_t); 63 65 static void usb_dump_descriptor_hid(FILE *, const char *, const char *, 64 66 const uint8_t *, size_t); … … 75 77 { USB_DESCTYPE_INTERFACE, usb_dump_descriptor_interface }, 76 78 { USB_DESCTYPE_ENDPOINT, usb_dump_descriptor_endpoint }, 79 { USB_DESCTYPE_SSPEED_EP_COMPANION, usb_dump_descriptor_superspeed_endpoint_companion }, 77 80 { USB_DESCTYPE_HID, usb_dump_descriptor_hid }, 78 81 { USB_DESCTYPE_HUB, usb_dump_descriptor_hub }, … … 238 241 PRINTLINE("wMaxPacketSize = %d", d->max_packet_size); 239 242 PRINTLINE("bInterval = %dms", d->poll_interval); 243 } 244 245 static void usb_dump_descriptor_superspeed_endpoint_companion(FILE *output, 246 const char *line_prefix, const char *line_suffix, 247 const uint8_t *descriptor, size_t descriptor_length) 248 { 249 usb_superspeed_endpoint_companion_descriptor_t *d 250 = (usb_superspeed_endpoint_companion_descriptor_t *) descriptor; 251 if (descriptor_length < sizeof(*d)) { 252 return; 253 } 254 255 PRINTLINE("bLength = %u", d->length); 256 PRINTLINE("bDescriptorType = 0x%02X", d->descriptor_type); 257 PRINTLINE("bMaxBurst = %u", d->max_burst); 258 PRINTLINE("bmAttributes = %d", d->attributes); 259 PRINTLINE("wBytesPerInterval = %u", d->bytes_per_interval); 240 260 } 241 261 -
uspace/lib/usbdev/src/dp.c
r32fb6bce r7f70d1c 62 62 NESTING(CONFIGURATION, INTERFACE), 63 63 NESTING(INTERFACE, ENDPOINT), 64 NESTING(ENDPOINT, SSPEED_EP_COMPANION), 64 65 NESTING(INTERFACE, HUB), 65 66 NESTING(INTERFACE, HID),
Note:
See TracChangeset
for help on using the changeset viewer.