Changeset 887c9de in mainline
- Timestamp:
- 2017-11-09T12:19:52Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f9d0a86
- Parents:
- 41df71f9
- Location:
- uspace/drv/bus/usb/xhci
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/hw_struct/trb.h
r41df71f9 r887c9de 40 40 41 41 #include "common.h" 42 #include <libarch/barrier.h> 42 43 43 44 /** … … 169 170 } 170 171 171 static inline void xhci_trb_copy (xhci_trb_t *dst, xhci_trb_t *src)172 static inline void xhci_trb_copy_to_pio(xhci_trb_t *dst, xhci_trb_t *src) 172 173 { 173 174 /* … … 177 178 dst->parameter = src->parameter; 178 179 dst->status = src->status; 180 181 write_barrier(); 182 179 183 dst->control = src->control; 180 184 } -
uspace/drv/bus/usb/xhci/trb_ring.c
r41df71f9 r887c9de 218 218 for (size_t i = 0; i < trbs; ++i, ++trb) { 219 219 TRB_SET_CYCLE(*trb, ring->pcs); 220 xhci_trb_copy (ring->enqueue_trb, trb);220 xhci_trb_copy_to_pio(ring->enqueue_trb, trb); 221 221 222 222 usb_log_debug2("TRB ring(%p): Enqueued TRB %p", ring, trb);
Note:
See TracChangeset
for help on using the changeset viewer.