Changeset 32fb6bce in mainline for uspace/drv/bus/usb/xhci/hc.c
- Timestamp:
- 2017-12-18T22:50:21Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7f70d1c
- Parents:
- 1ea0bbf
- git-author:
- Ondřej Hlavatý <aearsis@…> (2017-12-18 22:04:50)
- git-committer:
- Ondřej Hlavatý <aearsis@…> (2017-12-18 22:50:21)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/hc.c
r1ea0bbf r32fb6bce 432 432 * Used only when polling. Shall supplement the irq_commands. 433 433 */ 434 int hc_status(xhci_hc_t *hc, uint32_t *status) 435 { 434 int hc_status(bus_t *bus, uint32_t *status) 435 { 436 xhci_hc_t *hc = bus_to_hc(bus); 436 437 int ip = XHCI_REG_RD(hc->rt_regs->ir, XHCI_INTR_IP); 437 438 if (ip) { … … 449 450 } 450 451 451 int hc_schedule( xhci_hc_t *hc,usb_transfer_batch_t *batch)452 int hc_schedule(usb_transfer_batch_t *batch) 452 453 { 453 454 assert(batch); 454 assert(batch->ep);455 xhci_hc_t *hc = bus_to_hc(endpoint_get_bus(batch->ep)); 455 456 456 457 if (!batch->target.address) { … … 532 533 } 533 534 534 void hc_interrupt(xhci_hc_t *hc, uint32_t status) 535 { 535 void hc_interrupt(bus_t *bus, uint32_t status) 536 { 537 xhci_hc_t *hc = bus_to_hc(bus); 536 538 status = xhci2host(32, status); 537 539
Note:
See TracChangeset
for help on using the changeset viewer.