Changeset fccf289 in mainline
- Timestamp:
- 2014-01-18T22:36:24Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c9e954c
- Parents:
- 9f6cb910
- Location:
- uspace/drv/bus/usb/ohci
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/hc.c
r9f6cb910 rfccf289 103 103 * @return Error code. 104 104 */ 105 int hc_gen_irq_code(irq_code_t *code, const hw_res_list_parsed_t *hw_res)105 int ohci_hc_gen_irq_code(irq_code_t *code, const hw_res_list_parsed_t *hw_res) 106 106 { 107 107 assert(code); … … 267 267 } 268 268 269 int hc_status(hcd_t *hcd, uint32_t *status)269 int ohci_hc_status(hcd_t *hcd, uint32_t *status) 270 270 { 271 271 assert(hcd); … … 283 283 /** Add USB transfer to the schedule. 284 284 * 285 * @param[in] instance OHCI hcdriver structure.285 * @param[in] hcd HCD driver structure. 286 286 * @param[in] batch Batch representing the transfer. 287 287 * @return Error code. 288 288 */ 289 int hc_schedule(hcd_t *hcd, usb_transfer_batch_t *batch)289 int ohci_hc_schedule(hcd_t *hcd, usb_transfer_batch_t *batch) 290 290 { 291 291 assert(hcd); … … 324 324 /** Interrupt handling routine 325 325 * 326 * @param[in] instance OHCI hcdriver structure.326 * @param[in] hcd HCD driver structure. 327 327 * @param[in] status Value of the status register at the time of interrupt. 328 328 */ 329 void hc_interrupt(hcd_t *hcd, uint32_t status)329 void ohci_hc_interrupt(hcd_t *hcd, uint32_t status) 330 330 { 331 331 assert(hcd); -
uspace/drv/bus/usb/ohci/hc.h
r9f6cb910 rfccf289 78 78 } hc_t; 79 79 80 int hc_gen_irq_code(irq_code_t *code, const hw_res_list_parsed_t *hw_res);81 int hc_register_hub(hc_t *instance, ddf_fun_t *hub_fun);82 80 int hc_init(hc_t *instance, const hw_res_list_parsed_t *hw_res, bool interrupts); 83 81 void hc_fini(hc_t *instance); … … 85 83 void hc_enqueue_endpoint(hc_t *instance, const endpoint_t *ep); 86 84 void hc_dequeue_endpoint(hc_t *instance, const endpoint_t *ep); 87 int hc_schedule(hcd_t *hcd, usb_transfer_batch_t *batch);88 int hc_status(hcd_t *hcd, uint32_t *status);89 85 90 void hc_interrupt(hcd_t *hcd, uint32_t status); 86 int ohci_hc_gen_irq_code(irq_code_t *code, const hw_res_list_parsed_t *hw_res); 87 88 void ohci_hc_interrupt(hcd_t *hcd, uint32_t status); 89 int ohci_hc_status(hcd_t *hcd, uint32_t *status); 90 int ohci_hc_schedule(hcd_t *hcd, usb_transfer_batch_t *batch); 91 91 #endif 92 92 /** -
uspace/drv/bus/usb/ohci/main.c
r9f6cb910 rfccf289 58 58 const int ret = hc_init(instance, res, irq); 59 59 if (ret == EOK) 60 hcd_set_implementation(hcd, instance, hc_schedule,61 ohci_endpoint_init, ohci_endpoint_fini, hc_interrupt,62 hc_status);60 hcd_set_implementation(hcd, instance, ohci_hc_schedule, 61 ohci_endpoint_init, ohci_endpoint_fini, ohci_hc_interrupt, 62 ohci_hc_status); 63 63 return ret; 64 64 } … … 86 86 const int ret = ddf_hcd_device_setup_all(device, USB_SPEED_FULL, 87 87 BANDWIDTH_AVAILABLE_USB11, bandwidth_count_usb11, 88 ddf_hcd_gen_irq_handler, hc_gen_irq_code,88 ddf_hcd_gen_irq_handler, ohci_hc_gen_irq_code, 89 89 ohci_driver_init, ohci_driver_fini); 90 90 if (ret != EOK) {
Note:
See TracChangeset
for help on using the changeset viewer.