Changeset 548c123 in mainline for uspace/drv/bus/usb/xhci/trb_ring.c
- Timestamp:
- 2017-09-29T21:46:08Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cc9ac7c
- Parents:
- ab5a0830
- File:
-
- 1 edited
-
uspace/drv/bus/usb/xhci/trb_ring.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/trb_ring.c
rab5a0830 r548c123 164 164 * 165 165 * @param td the first TRB of TD 166 * @param phys returns address of the first TRB enqueued 166 167 * @return EOK on success, 167 168 * EAGAIN when the ring is too full to fit all TRBs (temporary) 168 169 */ 169 int xhci_trb_ring_enqueue(xhci_trb_ring_t *ring, xhci_trb_t *td )170 int xhci_trb_ring_enqueue(xhci_trb_ring_t *ring, xhci_trb_t *td, uintptr_t *phys) 170 171 { 171 172 xhci_trb_t * const saved_enqueue_trb = ring->enqueue_trb; 172 173 trb_segment_t * const saved_enqueue_segment = ring->enqueue_segment; 174 if (phys) 175 *phys = NULL; 173 176 174 177 /* … … 189 192 ring->enqueue_segment = saved_enqueue_segment; 190 193 ring->enqueue_trb = saved_enqueue_trb; 194 if (phys) 195 *phys = trb_ring_enqueue_phys(ring); 191 196 192 197 /*
Note:
See TracChangeset
for help on using the changeset viewer.
