Changeset d07b052 in mainline
- Timestamp:
- 2017-10-03T19:59:59Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d14ca59
- Parents:
- 65e079b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/rh.c
r65e079b rd07b052 53 53 int xhci_rh_init(xhci_rh_t *rh) 54 54 { 55 usb_hub_descriptor_header_t *header = &rh->hub_descriptor.header; 56 header->length = sizeof(usb_hub_descriptor_header_t); 57 header->descriptor_type = USB_DESCTYPE_HUB; 58 header->port_count = XHCI_MAX_PORTS; 59 header->characteristics = 60 HUB_CHAR_NO_POWER_SWITCH_FLAG | HUB_CHAR_NO_OC_FLAG; 61 header->power_good_time = 50; // TODO: This needs to be fine-tuned. 62 header->max_current = 0; 63 55 64 return virthub_base_init(&rh->base, "xhci rh", &ops, rh, NULL, 56 &rh->hub_descriptor.header, HUB_STATUS_CHANGE_PIPE);65 header, HUB_STATUS_CHANGE_PIPE); 57 66 } 58 67
Note:
See TracChangeset
for help on using the changeset viewer.