Changeset 5fe0a69 in mainline for uspace/drv/bus/usb/uhci/hc.c
- Timestamp:
- 2011-08-24T14:40:26Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3afb758
- Parents:
- df8f3fa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/hc.c
rdf8f3fa r5fe0a69 41 41 42 42 #include "hc.h" 43 #include "batch.h" 43 44 44 45 #define UHCI_INTR_ALLOW_INTERRUPTS \ … … 46 47 #define UHCI_STATUS_USED_INTERRUPTS \ 47 48 (UHCI_STATUS_INTERRUPT | UHCI_STATUS_ERROR_INTERRUPT) 49 50 static int schedule(hcd_t *hcd, usb_transfer_batch_t *batch) 51 { 52 assert(hcd); 53 return hc_schedule(hcd->private_data, batch); 54 } 48 55 49 56 static const irq_cmd_t uhci_irq_commands[] = … … 131 138 usb_log_debug( 132 139 "Device registers at %p (%zuB) accessible.\n", io, reg_size); 140 hcd_init(&instance->generic, BANDWIDTH_AVAILABLE_USB11); 141 instance->generic.private_data = instance; 142 instance->generic.schedule = schedule; 143 instance->generic.batch_private_ctor = uhci_transfer_batch_create; 144 instance->generic.batch_private_dtor = uhci_transfer_batch_dispose; 133 145 134 146 ret = hc_init_mem_structures(instance);
Note:
See TracChangeset
for help on using the changeset viewer.