Changeset 816335c in mainline for uspace/drv/bus/usb/xhci/hc.h


Ignore:
Timestamp:
2017-10-04T10:06:10Z (7 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c68c713c
Parents:
5c5c9407
Message:

xhci: port speed detected properly

The correct way to determine protocol supported on a port is to look at the Port Speed value in the port register, and use it as an index to the speeds defined in extended capabilities. Now we support non-contiguous ranges of ports, USB 3.1, and the detection would work even for non-USB protocols.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/hc.h

    r5c5c9407 r816335c  
    4949} xhci_virt_device_ctx_t;
    5050
    51 /**
    52  * xHCI lets the controller define speeds of ports it controls.
    53  */
    54 typedef struct xhci_port_speed {
    55         uint64_t rx_bps, tx_bps;
    56 } xhci_port_speed_t;
    57 
    5851typedef struct xhci_hc {
    5952        /* MMIO range */
     
    8073
    8174        /* Cached capabilities */
    82         xhci_port_speed_t speeds [16];
    8375        unsigned max_slots;
    8476        bool ac64;
Note: See TracChangeset for help on using the changeset viewer.