Changeset 9f6cb910 in mainline
- Timestamp:
- 2014-01-18T22:04:48Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fccf289
- Parents:
- 4bfcf22
- Location:
- uspace/drv/bus/usb/uhci
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/hc.c
r4bfcf22 r9f6cb910 105 105 * @return Error code. 106 106 */ 107 int hc_gen_irq_code(irq_code_t *code, const hw_res_list_parsed_t *hw_res)107 int uhci_hc_gen_irq_code(irq_code_t *code, const hw_res_list_parsed_t *hw_res) 108 108 { 109 109 assert(code); … … 154 154 * - resume from suspend state (not implemented) 155 155 */ 156 void hc_interrupt(hcd_t *hcd, uint32_t status)156 void uhci_hc_interrupt(hcd_t *hcd, uint32_t status) 157 157 { 158 158 assert(hcd); … … 408 408 } 409 409 410 int hc_status(hcd_t *hcd, uint32_t *status)410 int uhci_hc_status(hcd_t *hcd, uint32_t *status) 411 411 { 412 412 assert(hcd); … … 432 432 * Checks for bandwidth availability and appends the batch to the proper queue. 433 433 */ 434 int hc_schedule(hcd_t *hcd, usb_transfer_batch_t *batch)434 int uhci_hc_schedule(hcd_t *hcd, usb_transfer_batch_t *batch) 435 435 { 436 436 assert(hcd); -
uspace/drv/bus/usb/uhci/hc.h
r4bfcf22 r9f6cb910 125 125 int hc_init(hc_t *instance, const hw_res_list_parsed_t *hw_res, bool interupts); 126 126 void hc_fini(hc_t *instance); 127 int hc_gen_irq_code(irq_code_t *code, const hw_res_list_parsed_t *hw_res);128 127 129 void hc_interrupt(hcd_t *hcd, uint32_t status); 130 int hc_status(hcd_t *hcd, uint32_t *status); 131 int hc_schedule(hcd_t *hcd, usb_transfer_batch_t *batch); 128 int uhci_hc_gen_irq_code(irq_code_t *code, const hw_res_list_parsed_t *hw_res); 129 130 void uhci_hc_interrupt(hcd_t *hcd, uint32_t status); 131 int uhci_hc_status(hcd_t *hcd, uint32_t *status); 132 int uhci_hc_schedule(hcd_t *hcd, usb_transfer_batch_t *batch); 132 133 133 134 #endif -
uspace/drv/bus/usb/uhci/main.c
r4bfcf22 r9f6cb910 59 59 const int ret = hc_init(instance, res, irq); 60 60 if (ret == EOK) 61 hcd_set_implementation(hcd, instance, hc_schedule, NULL, NULL,62 hc_interrupt,hc_status);61 hcd_set_implementation(hcd, instance, uhci_hc_schedule, NULL, 62 NULL, uhci_hc_interrupt, uhci_hc_status); 63 63 return ret; 64 64 } … … 127 127 ret = ddf_hcd_device_setup_all(device, USB_SPEED_FULL, 128 128 BANDWIDTH_AVAILABLE_USB11, bandwidth_count_usb11, 129 ddf_hcd_gen_irq_handler, hc_gen_irq_code,129 ddf_hcd_gen_irq_handler, uhci_hc_gen_irq_code, 130 130 uhci_driver_init, uhci_driver_fini); 131 131 if (ret != EOK) {
Note:
See TracChangeset
for help on using the changeset viewer.