Changeset df6ded8 in mainline for uspace/lib/usb/src/dump.c
- Timestamp:
- 2018-02-28T16:37:50Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1b20da0
- Parents:
- f5e5f73 (diff), b2dca8de (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. - git-author:
- Jakub Jermar <jakub@…> (2018-02-28 16:06:42)
- git-committer:
- Jakub Jermar <jakub@…> (2018-02-28 16:37:50)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/dump.c
rf5e5f73 rdf6ded8 1 1 /* 2 2 * Copyright (c) 2011 Vojtech Horky 3 * Copyright (c) 2018 Ondrej Hlavaty 3 4 * All rights reserved. 4 5 * … … 61 62 static void usb_dump_descriptor_endpoint(FILE *, const char *, const char *, 62 63 const uint8_t *, size_t); 64 static void usb_dump_descriptor_superspeed_endpoint_companion(FILE *, const char *, const char *, 65 const uint8_t *, size_t); 63 66 static void usb_dump_descriptor_hid(FILE *, const char *, const char *, 64 67 const uint8_t *, size_t); … … 75 78 { USB_DESCTYPE_INTERFACE, usb_dump_descriptor_interface }, 76 79 { USB_DESCTYPE_ENDPOINT, usb_dump_descriptor_endpoint }, 80 { USB_DESCTYPE_SSPEED_EP_COMPANION, usb_dump_descriptor_superspeed_endpoint_companion }, 77 81 { USB_DESCTYPE_HID, usb_dump_descriptor_hid }, 78 82 { USB_DESCTYPE_HUB, usb_dump_descriptor_hub }, … … 238 242 PRINTLINE("wMaxPacketSize = %d", d->max_packet_size); 239 243 PRINTLINE("bInterval = %dms", d->poll_interval); 244 } 245 246 static void usb_dump_descriptor_superspeed_endpoint_companion(FILE *output, 247 const char *line_prefix, const char *line_suffix, 248 const uint8_t *descriptor, size_t descriptor_length) 249 { 250 usb_superspeed_endpoint_companion_descriptor_t *d 251 = (usb_superspeed_endpoint_companion_descriptor_t *) descriptor; 252 if (descriptor_length < sizeof(*d)) { 253 return; 254 } 255 256 PRINTLINE("bLength = %u", d->length); 257 PRINTLINE("bDescriptorType = 0x%02X", d->descriptor_type); 258 PRINTLINE("bMaxBurst = %u", d->max_burst); 259 PRINTLINE("bmAttributes = %d", d->attributes); 260 PRINTLINE("wBytesPerInterval = %u", d->bytes_per_interval); 240 261 } 241 262
Note:
See TracChangeset
for help on using the changeset viewer.