Changeset cb8ede1 in mainline
- Timestamp:
- 2013-08-07T08:56:48Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4b8ecff
- Parents:
- 6340a6ff
- Location:
- uspace
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/ohci.c
r6340a6ff rcb8ede1 158 158 159 159 /* HC should be running OK. We can add root hub */ 160 ret = hcd_ddf_setup_root_hub(device , USB_SPEED_FULL);160 ret = hcd_ddf_setup_root_hub(device); 161 161 CHECK_RET_CLEAN_RETURN(ret, 162 162 "Failed to register OHCI root hub: %s.\n", str_error(ret)); -
uspace/drv/bus/usb/uhci/uhci.c
r6340a6ff rcb8ede1 150 150 151 151 /* 152 * Creating root hub registers a new USB device so allHC153 * functionalityneeds to be ready at this time.152 * Creating root hub registers a new USB device so HC 153 * needs to be ready at this time. 154 154 */ 155 ret = hcd_ddf_setup_root_hub(device , USB_SPEED_FULL);155 ret = hcd_ddf_setup_root_hub(device); 156 156 if (ret != EOK) { 157 157 // TODO: Undo hcd_setup_device -
uspace/drv/bus/usb/vhc/main.c
r6340a6ff rcb8ede1 105 105 } 106 106 107 ret = hcd_ddf_setup_root_hub(dev, USB_SPEED_FULL); 107 /* 108 * Creating root hub registers a new USB device so HC 109 * needs to be ready at this time. 110 */ 111 ret = hcd_ddf_setup_root_hub(dev); 108 112 if (ret != EOK) { 109 113 usb_log_error("Failed to init VHC root hub: %s\n", -
uspace/lib/usbhost/include/usb/host/ddf_helpers.h
r6340a6ff rcb8ede1 45 45 int hcd_ddf_setup_device(ddf_dev_t *device, ddf_fun_t **hc_fun, 46 46 usb_speed_t max_speed, size_t bw, bw_count_func_t bw_count); 47 int hcd_ddf_setup_root_hub(ddf_dev_t *dev , usb_speed_t speed);47 int hcd_ddf_setup_root_hub(ddf_dev_t *device); 48 48 int hcd_ddf_new_device(ddf_dev_t *device, usb_address_t *address); 49 49 int hcd_ddf_remove_device(ddf_dev_t *device, usb_address_t address); -
uspace/lib/usbhost/src/ddf_helpers.c
r6340a6ff rcb8ede1 579 579 * 580 580 * @param[in] device Host controller ddf device 581 * @param[in] speed roothub communication speed582 581 * @return Error code 583 582 */ 584 int hcd_ddf_setup_root_hub(ddf_dev_t *device , usb_speed_t speed)583 int hcd_ddf_setup_root_hub(ddf_dev_t *device) 585 584 { 586 585 assert(device); 587 586 hcd_t *hcd = dev_to_hcd(device); 588 587 assert(hcd); 588 589 const usb_speed_t speed = hcd->ep_manager.max_speed; 589 590 590 591 hcd_reserve_default_address(hcd, speed);
Note:
See TracChangeset
for help on using the changeset viewer.