Changeset 4bfcf22 in mainline for uspace/drv/bus/usb/ehci
- 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/ehci
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ehci/hc.c
ra5361fb r4bfcf22 240 240 * @param[in] status Value of the status register at the time of interrupt. 241 241 */ 242 void hc_interrupt(hc_t *instance, uint32_t status) 243 { 242 void hc_interrupt(hcd_t *hcd, uint32_t status) 243 { 244 assert(hcd); 245 hc_t *instance = hcd->driver.data; 244 246 status = EHCI_RD(status); 245 247 assert(instance); -
uspace/drv/bus/usb/ehci/hc.h
ra5361fb r4bfcf22 78 78 void hc_enqueue_endpoint(hc_t *instance, const endpoint_t *ep); 79 79 void hc_dequeue_endpoint(hc_t *instance, const endpoint_t *ep); 80 80 81 int hc_schedule(hcd_t *hcd, usb_transfer_batch_t *batch); 81 82 void hc_interrupt(hc_t *instance, uint32_t status); 82 void hc_interrupt(hcd_t *hcd, uint32_t status); 83 83 #endif 84 84 /** -
uspace/drv/bus/usb/ehci/main.c
ra5361fb r4bfcf22 47 47 48 48 #define NAME "ehci" 49 // TODO: This should be merged to hc_interrupt50 static void ehci_interrupt(hcd_t *hcd, uint32_t status)51 {52 assert(hcd);53 if (hcd->driver.data)54 hc_interrupt(hcd->driver.data, status);55 }56 49 57 50 static int ehci_driver_init(hcd_t *hcd, const hw_res_list_parsed_t *res, bool irq) … … 67 60 if (ret == EOK) 68 61 hcd_set_implementation(hcd, instance, hc_schedule, 69 NULL, NULL, ehci_interrupt, NULL);62 NULL, NULL, hc_interrupt, NULL); 70 63 return ret; 71 64 }
Note:
See TracChangeset
for help on using the changeset viewer.
