Changeset 370a1c8 in mainline for uspace/drv/bus/usb/xhci/hc.c
- Timestamp:
- 2017-10-02T16:10:28Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 04df063
- Parents:
- 4688350b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/hc.c
r4688350b r370a1c8 83 83 * == 0. 84 84 */ 85 86 unsigned ports_from = XHCI_REG_RD(ec, XHCI_EC_SP_CP_OFF); 87 unsigned ports_to = ports_from 88 + XHCI_REG_RD(ec, XHCI_EC_SP_CP_COUNT) - 1; 89 85 90 if (major == 2) { 86 91 hc->speeds[1] = ps_default_full; 87 92 hc->speeds[2] = ps_default_low; 88 93 hc->speeds[3] = ps_default_high; 94 hc->rh.usb2_port_start = ports_from; 95 hc->rh.usb2_port_end = ports_to; 89 96 } else if (major == 3) { 90 97 hc->speeds[4] = ps_default_super; 98 hc->rh.usb3_port_start = ports_from; 99 hc->rh.usb3_port_end = ports_to; 91 100 } else { 92 101 return EINVAL;
Note:
See TracChangeset
for help on using the changeset viewer.