Changes in uspace/lib/usb/src/dump.c [582a0b8:7f70d1c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/dump.c
r582a0b8 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
Note:
See TracChangeset
for help on using the changeset viewer.