]> xenbits.xensource.com Git - people/andrewcoop/seabios.git/commit
xhci: Build TRBs directly in xhci_trb_queue()
authorKevin O'Connor <kevin@koconnor.net>
Tue, 3 Oct 2017 14:45:24 +0000 (10:45 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Tue, 3 Oct 2017 17:58:12 +0000 (13:58 -0400)
commit4b48839999c696b732ee6b2a03b18a47d9d324c2
treea29a7bb4b90d93f43dff31c0cbe3317153867545
parentf3d2a156448f006e5d83eb60cb1da2dea6c997bf
xhci: Build TRBs directly in xhci_trb_queue()

Use the logic for building a 'struct xhci_trb' that was in
xhci_xfer_queue() up so that command and ring TRBs can also use that
functionality.  This eliminates the need to manually generate the
xhci_trb struct from those code paths.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/hw/usb-xhci.c