Changeset 21885c92 in mainline for uspace/lib/usb/include


Ignore:
Timestamp:
2018-01-20T18:27:53Z (8 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
24fcb8b
Parents:
2aaba7e
Message:

usbhost: handle superspeed hubs

Location:
uspace/lib/usb/include/usb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/include/usb/classes/hub.h

    r2aaba7e r21885c92  
    7171        uint8_t length;
    7272
    73         /** Descriptor type (0x29). */
     73        /** Descriptor type (0x29 or 0x2a for superspeed hub). */
    7474        uint8_t descriptor_type;
    7575
     
    116116#define HUB_CHAR_OC_PER_PORT_FLAG       (1 << 3)
    117117#define HUB_CHAR_NO_OC_FLAG             (1 << 4)
     118
     119/* These are invalid for superspeed hub */
    118120#define HUB_CHAR_TT_THINK_16            (1 << 5)
    119121#define HUB_CHAR_TT_THINK_8             (1 << 6)
     
    164166    /** This request sets a value reported in the hub status. */
    165167    USB_HUB_REQ_TYPE_SET_HUB_FEATURE = 0x20,
     168    /** This request sets the value that the hub uses to determine the index into the Route String Index for the hub. */
     169    USB_HUB_REQ_TYPE_SET_HUB_DEPTH = 0x20,
    166170    /** This request sets a value reported in the port status. */
    167     USB_HUB_REQ_TYPE_SET_PORT_FEATURE = 0x23
     171    USB_HUB_REQ_TYPE_SET_PORT_FEATURE = 0x23,
    168172} usb_hub_bm_request_type_t;
    169173
     
    191195    /** */
    192196    USB_HUB_STOP_TT = 11,
     197    /** USB 3+ only */
     198    USB_HUB_REQUEST_SET_HUB_DEPTH = 12,
    193199} usb_hub_request_t;
    194200
  • uspace/lib/usb/include/usb/descriptor.h

    r2aaba7e r21885c92  
    6060        USB_DESCTYPE_HID_PHYSICAL = 0x23,
    6161        USB_DESCTYPE_HUB = 0x29,
     62        USB_DESCTYPE_SSPEED_HUB = 0x2a,
    6263        USB_DESCTYPE_SSPEED_EP_COMPANION = 0x30
    6364        /* USB_DESCTYPE_ = */
Note: See TracChangeset for help on using the changeset viewer.