Changeset 4bfcf22 in mainline for uspace/drv/bus/usb/uhci
- Timestamp:
- 2014-01-18T22:01:10Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9f6cb910
- Parents:
- a5361fb
- Location:
- uspace/drv/bus/usb/uhci
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/hc.c
ra5361fb r4bfcf22 146 146 /** Take action based on the interrupt cause. 147 147 * 148 * @param[in] instance UHCIstructure to use.148 * @param[in] hcd HCD structure to use. 149 149 * @param[in] status Value of the status register at the time of interrupt. 150 150 * … … 154 154 * - resume from suspend state (not implemented) 155 155 */ 156 void hc_interrupt(hc_t *instance, uint16_t status) 157 { 156 void hc_interrupt(hcd_t *hcd, uint32_t status) 157 { 158 assert(hcd); 159 hc_t *instance = hcd->driver.data; 158 160 assert(instance); 159 161 /* Lower 2 bits are transaction error and transaction complete */ -
uspace/drv/bus/usb/uhci/hc.h
ra5361fb r4bfcf22 127 127 int hc_gen_irq_code(irq_code_t *code, const hw_res_list_parsed_t *hw_res); 128 128 129 void hc_interrupt(hc _t *instance, uint16_t status);129 void hc_interrupt(hcd_t *hcd, uint32_t status); 130 130 int hc_status(hcd_t *hcd, uint32_t *status); 131 131 int hc_schedule(hcd_t *hcd, usb_transfer_batch_t *batch); -
uspace/drv/bus/usb/uhci/main.c
ra5361fb r4bfcf22 48 48 #define NAME "uhci" 49 49 50 // TODO: This should be merged to hc_interrupt51 static void uhci_interrupt(hcd_t *hcd, uint32_t status)52 {53 assert(hcd);54 if (hcd->driver.data)55 hc_interrupt(hcd->driver.data, status);56 }57 58 50 static int uhci_driver_init(hcd_t *hcd, const hw_res_list_parsed_t *res, bool irq) 59 51 { … … 68 60 if (ret == EOK) 69 61 hcd_set_implementation(hcd, instance, hc_schedule, NULL, NULL, 70 uhci_interrupt, hc_status);62 hc_interrupt, hc_status); 71 63 return ret; 72 64 }
Note:
See TracChangeset
for help on using the changeset viewer.
