Changeset 25251bb in mainline for uspace/drv/bus/usb/xhci/rh.c
- Timestamp:
- 2017-10-26T08:38:53Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 928afc8d
- Parents:
- 62558202
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/rh.c
r62558202 r25251bb 102 102 const xhci_port_speed_t *port_speed = xhci_rh_get_port_speed(rh, port_id); 103 103 xhci_device_t *xhci_dev = xhci_device_get(dev); 104 xhci_dev->hc = rh->hc;105 104 xhci_dev->usb3 = port_speed->major == 3; 106 105 xhci_dev->rh_port = port_id; … … 363 362 } 364 363 365 static inline int get_hub_available_bandwidth(xhci_ device_t* dev, uint8_t speed, xhci_port_bandwidth_ctx_t *ctx) {364 static inline int get_hub_available_bandwidth(xhci_hc_t *hc, xhci_device_t* dev, uint8_t speed, xhci_port_bandwidth_ctx_t *ctx) { 366 365 // TODO: find a correct place for this function + API 367 366 // We need speed, because a root hub device has both USB 2 and USB 3 speeds … … 383 382 384 383 int err; 385 if ((err = xhci_cmd_sync( dev->hc, &cmd))) {384 if ((err = xhci_cmd_sync(hc, &cmd))) { 386 385 goto end; 387 386 }
Note:
See TracChangeset
for help on using the changeset viewer.