Changeset 366e9b6 in mainline
- Timestamp:
- 2017-10-13T11:13:32Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c10daa8
- Parents:
- cb69854
- Location:
- uspace
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ehci/main.c
rcb69854 r366e9b6 63 63 .claim = ehci_driver_claim, 64 64 .start = ehci_driver_start, 65 .setup_root_hub = hcd_setup_virtual_root_hub, 65 66 .fini = ehci_driver_fini, 66 67 .ops = { -
uspace/drv/bus/usb/ohci/main.c
rcb69854 r366e9b6 58 58 .claim = ohci_driver_claim, 59 59 .start = ohci_driver_start, 60 .setup_root_hub = hcd_setup_virtual_root_hub, 60 61 .fini = ohci_driver_fini, 61 62 .name = "OHCI", -
uspace/drv/bus/usb/uhci/main.c
rcb69854 r366e9b6 60 60 .init = uhci_driver_init, 61 61 .start = uhci_driver_start, 62 .setup_root_hub = hcd_setup_virtual_root_hub, 62 63 .fini = uhci_driver_fini, 63 64 .name = "UHCI", -
uspace/drv/bus/usb/vhc/main.c
rcb69854 r366e9b6 111 111 * needs to be ready at this time. 112 112 */ 113 ret = hcd_ ddf_setup_root_hub(dev);113 ret = hcd_setup_virtual_root_hub(dev); 114 114 if (ret != EOK) { 115 115 usb_log_error("Failed to init VHC root hub: %s\n", -
uspace/lib/usbhost/include/usb/host/ddf_helpers.h
rcb69854 r366e9b6 49 49 typedef int (*claim_t)(hcd_t *, ddf_dev_t *); 50 50 typedef int (*driver_start_t)(hcd_t *, bool irq); 51 typedef int (*setup_root_hub_t)(ddf_dev_t *); 51 52 52 53 typedef void (*driver_stop_t)(hcd_t *); … … 68 69 irq_code_gen_t irq_code_gen; /**< Generate IRQ handling code */ 69 70 driver_start_t start; /**< Start the HC */ 71 setup_root_hub_t setup_root_hub; /**< Setup the root hub */ 70 72 71 73 /* Destruction sequence: */ … … 78 80 int hcd_ddf_setup_hc(ddf_dev_t *device); 79 81 void hcd_ddf_clean_hc(ddf_dev_t *device); 80 int hcd_ddf_setup_root_hub(ddf_dev_t *device); 82 83 int hcd_setup_virtual_root_hub(ddf_dev_t *); 81 84 82 85 hcd_t *dev_to_hcd(ddf_dev_t *dev); -
uspace/lib/usbhost/src/ddf_helpers.c
rcb69854 r366e9b6 617 617 * @return Error code 618 618 */ 619 int hcd_ ddf_setup_root_hub(ddf_dev_t *device)619 int hcd_setup_virtual_root_hub(ddf_dev_t *device) 620 620 { 621 621 assert(device); … … 919 919 * needs to be ready at this time. 920 920 */ 921 ret = hcd_ddf_setup_root_hub(device); 921 if (driver->setup_root_hub) 922 ret = driver->setup_root_hub(device); 922 923 if (ret != EOK) { 923 924 usb_log_error("Failed to setup HC root hub: %s.\n",
Note:
See TracChangeset
for help on using the changeset viewer.