Changeset e4d7363 in mainline for uspace/drv/bus/usb/ehci/main.c
- Timestamp:
- 2017-06-22T21:34:39Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 91ca111
- Parents:
- cb89430
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ehci/main.c
rcb89430 re4d7363 52 52 #define NAME "ehci" 53 53 54 static int ehci_driver_init(hcd_t *, const hw_res_list_parsed_t *, bool); 54 static int ehci_driver_init(hcd_t *, const hw_res_list_parsed_t *); 55 static int ehci_driver_claim(hcd_t *, ddf_dev_t *); 56 static int ehci_driver_start(hcd_t *, bool); 55 57 static void ehci_driver_fini(hcd_t *); 56 58 57 59 static const ddf_hc_driver_t ehci_hc_driver = { 58 .claim = disable_legacy,59 60 .hc_speed = USB_SPEED_HIGH, 61 .name = "EHCI-PCI", 62 .init = ehci_driver_init, 60 63 .irq_code_gen = ehci_hc_gen_irq_code, 61 .init = ehci_driver_init, 64 .claim = ehci_driver_claim, 65 .start = ehci_driver_start, 62 66 .fini = ehci_driver_fini, 63 .name = "EHCI-PCI",64 67 .ops = { 65 68 .schedule = ehci_hc_schedule, … … 72 75 73 76 74 static int ehci_driver_init(hcd_t *hcd, const hw_res_list_parsed_t *res, 75 bool irq) 77 static int ehci_driver_init(hcd_t *hcd, const hw_res_list_parsed_t *res) 76 78 { 77 79 assert(hcd); … … 82 84 return ENOMEM; 83 85 84 const int ret = hc_init(instance, res , irq);86 const int ret = hc_init(instance, res); 85 87 if (ret == EOK) { 86 88 hcd_set_implementation(hcd, instance, &ehci_hc_driver.ops); … … 89 91 } 90 92 return ret; 93 } 94 95 static int ehci_driver_claim(hcd_t *hcd, ddf_dev_t *dev) 96 { 97 hc_t *instance = hcd_get_driver_data(hcd); 98 assert(instance); 99 100 return disable_legacy(instance, dev); 101 } 102 103 static int ehci_driver_start(hcd_t *hcd, bool irq) { 104 hc_t *instance = hcd_get_driver_data(hcd); 105 assert(instance); 106 107 return hc_start(instance, irq); 91 108 } 92 109
Note:
See TracChangeset
for help on using the changeset viewer.