Changeset 548c123 in mainline for uspace/drv/bus/usb/xhci/trb_ring.h


Ignore:
Timestamp:
2017-09-29T21:46:08Z (7 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cc9ac7c
Parents:
ab5a0830
Message:

xhci commands: embed TRB into the command structure

Previously, a pointer into the TRB ring itself was contained. That could cause
problems, because the ring does not care and can move/deallocate segments, or
overwrite TRBs inside. To solve the original issue, xhci_trb_ring_enqueue can
now fill physical address of the TRB enqueued.

Also, this eliminates the need to track ownage of TRB.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/trb_ring.h

    rab5a0830 r548c123  
    7272int xhci_trb_ring_init(xhci_trb_ring_t *, xhci_hc_t *);
    7373int xhci_trb_ring_fini(xhci_trb_ring_t *);
    74 int xhci_trb_ring_enqueue(xhci_trb_ring_t *, xhci_trb_t *);
     74int xhci_trb_ring_enqueue(xhci_trb_ring_t *, xhci_trb_t *, uintptr_t *);
    7575
    7676/**
Note: See TracChangeset for help on using the changeset viewer.