Changeset e4d7363 in mainline for uspace/drv/bus/usb/ohci/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/ohci/main.c
rcb89430 re4d7363 47 47 48 48 #define NAME "ohci" 49 static int ohci_driver_init(hcd_t *, const hw_res_list_parsed_t *, bool); 49 static int ohci_driver_init(hcd_t *, const hw_res_list_parsed_t *); 50 static int ohci_driver_start(hcd_t *, bool); 51 static int ohci_driver_claim(hcd_t *, ddf_dev_t *); 50 52 static void ohci_driver_fini(hcd_t *); 51 53 … … 54 56 .irq_code_gen = ohci_hc_gen_irq_code, 55 57 .init = ohci_driver_init, 58 .claim = ohci_driver_claim, 59 .start = ohci_driver_start, 56 60 .fini = ohci_driver_fini, 57 61 .name = "OHCI", … … 66 70 67 71 68 static int ohci_driver_init(hcd_t *hcd, const hw_res_list_parsed_t *res , bool irq)72 static int ohci_driver_init(hcd_t *hcd, const hw_res_list_parsed_t *res) 69 73 { 70 74 assert(hcd); … … 75 79 return ENOMEM; 76 80 77 const int ret = hc_init(instance, res , irq);81 const int ret = hc_init(instance, res); 78 82 if (ret == EOK) { 79 83 hcd_set_implementation(hcd, instance, &ohci_hc_driver.ops); … … 82 86 } 83 87 return ret; 88 } 89 90 static int ohci_driver_claim(hcd_t *hcd, ddf_dev_t *dev) 91 { 92 hc_t *hc = hcd_get_driver_data(hcd); 93 assert(hc); 94 95 hc_gain_control(hc); 96 97 return EOK; 98 } 99 100 static int ohci_driver_start(hcd_t *hcd, bool interrupts) 101 { 102 hc_t *hc = hcd_get_driver_data(hcd); 103 assert(hc); 104 105 hc->hw_interrupts = interrupts; 106 hc_start(hc); 107 return EOK; 84 108 } 85 109
Note:
See TracChangeset
for help on using the changeset viewer.