Changeset c46c356 in mainline
- Timestamp:
- 2017-07-23T19:23:52Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2e7692f
- Parents:
- e50bdd92
- Location:
- uspace/drv/bus/usb/xhci
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/commands.c
re50bdd92 rc46c356 50 50 list_initialize(&hc->commands); 51 51 return EOK; 52 } 53 54 void xhci_fini_commands(xhci_hc_t *hc) 55 { 56 // Note: Untested. 57 assert(hc); 58 59 // We assume that the hc is dying/stopping, so we ignore 60 // the ownership of the commands. 61 list_foreach(hc->commands, link, xhci_cmd_t, cmd) { 62 xhci_free_command(cmd); 63 } 52 64 } 53 65 -
uspace/drv/bus/usb/xhci/commands.h
re50bdd92 rc46c356 57 57 58 58 int xhci_init_commands(xhci_hc_t *); 59 void xhci_fini_commands(xhci_hc_t *); 59 60 int xhci_wait_for_command(xhci_cmd_t *, uint32_t); 60 61 xhci_cmd_t *xhci_alloc_command(void); -
uspace/drv/bus/usb/xhci/hc.c
re50bdd92 rc46c356 489 489 xhci_event_ring_fini(&hc->event_ring); 490 490 hc_dcbaa_fini(hc); 491 xhci_fini_commands(hc); 491 492 pio_disable(hc->base, RNGSZ(hc->mmio_range)); 492 493 usb_log_info("HC(%p): Finalized.", hc);
Note:
See TracChangeset
for help on using the changeset viewer.