Changeset e26a9d95 in mainline for uspace/drv/bus/usb/ohci
- Timestamp:
- 2014-01-18T17:14:42Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3e200736
- Parents:
- 19b3cc6
- Location:
- uspace/drv/bus/usb/ohci
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/hc.c
r19b3cc6 re26a9d95 273 273 } 274 274 275 int hc_status(hcd_t *hcd, uint32_t *status) 276 { 277 assert(hcd); 278 assert(status); 279 hc_t *instance = hcd->driver.data; 280 assert(instance); 281 282 async_usleep(10000); 283 if (instance->registers){ 284 *status = OHCI_RD(instance->registers->interrupt_status); 285 OHCI_WR(instance->registers->interrupt_status, *status); 286 } 287 return EOK; 288 } 289 275 290 /** Add USB transfer to the schedule. 276 291 * -
uspace/drv/bus/usb/ohci/hc.h
r19b3cc6 re26a9d95 83 83 void hc_dequeue_endpoint(hc_t *instance, const endpoint_t *ep); 84 84 int hc_schedule(hcd_t *hcd, usb_transfer_batch_t *batch); 85 int hc_status(hcd_t *hcd, uint32_t *status); 85 86 86 87 void hc_interrupt(hc_t *instance, uint32_t status); -
uspace/drv/bus/usb/ohci/main.c
r19b3cc6 re26a9d95 66 66 if (ret == EOK) 67 67 hcd_set_implementation(hcd, instance, hc_schedule, 68 ohci_endpoint_init, ohci_endpoint_fini, ohci_interrupt); 68 ohci_endpoint_init, ohci_endpoint_fini, ohci_interrupt, 69 hc_status); 69 70 return ret; 70 71 } … … 77 78 78 79 free(hcd->driver.data); 79 hcd_set_implementation(hcd, NULL, NULL, NULL, NULL, NULL );80 hcd_set_implementation(hcd, NULL, NULL, NULL, NULL, NULL, NULL); 80 81 } 81 82
Note:
See TracChangeset
for help on using the changeset viewer.
