Changeset eb862fd in mainline
- Timestamp:
- 2018-02-03T02:19:02Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f5718c79
- Parents:
- 45457265
- Location:
- uspace/drv/bus/usb/xhci
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/endpoint.c
r45457265 reb862fd 59 59 */ 60 60 static errno_t xhci_endpoint_init(xhci_endpoint_t *xhci_ep, device_t *dev, 61 61 const usb_endpoint_descriptors_t *desc) 62 62 { 63 63 errno_t rc; … … 131 131 */ 132 132 endpoint_t *xhci_endpoint_create(device_t *dev, 133 133 const usb_endpoint_descriptors_t *desc) 134 134 { 135 135 const usb_transfer_type_t type = USB_ED_GET_TRANSFER_TYPE(desc->endpoint); -
uspace/drv/bus/usb/xhci/hc.c
r45457265 reb862fd 405 405 code->cmds[6].addr = intr0_iman; 406 406 407 408 407 *irq = hw_res->irqs.irqs[0]; 408 return EOK; 409 409 } 410 410 … … 652 652 */ 653 653 static void hc_run_event_ring(xhci_hc_t *hc, xhci_event_ring_t *event_ring, 654 654 xhci_interrupter_regs_t *intr) 655 655 { 656 656 errno_t err; -
uspace/drv/bus/usb/xhci/isoch.c
r45457265 reb862fd 270 270 */ 271 271 static inline void window_decide(window_decision_t *res, xhci_hc_t *hc, 272 272 uint64_t mfindex) 273 273 { 274 274 const uint64_t current_mf = get_current_microframe(hc); … … 588 588 589 589 void isoch_handle_transfer_event(xhci_hc_t *hc, xhci_endpoint_t *ep, 590 590 xhci_trb_t *trb) 591 591 { 592 592 assert(ep->base.transfer_type == USB_TRANSFER_ISOCHRONOUS); -
uspace/drv/bus/usb/xhci/rh.c
r45457265 reb862fd 280 280 281 281 void xhci_rh_set_ports_protocol(xhci_rh_t *rh, 282 282 unsigned offset, unsigned count, unsigned major) 283 283 { 284 284 for (unsigned i = offset; i < offset + count; i++) -
uspace/drv/bus/usb/xhci/streams.h
r45457265 reb862fd 66 66 extern errno_t xhci_endpoint_remove_streams(xhci_hc_t *hc, xhci_device_t *dev, xhci_endpoint_t *xhci_ep); 67 67 extern errno_t xhci_endpoint_request_primary_streams(xhci_hc_t *hc, xhci_device_t *dev, 68 68 xhci_endpoint_t *xhci_ep, unsigned count); 69 69 extern errno_t xhci_endpoint_request_secondary_streams(xhci_hc_t *hc, xhci_device_t *dev, 70 70 xhci_endpoint_t *xhci_ep, unsigned *sizes, unsigned count); 71 71 72 72 #endif -
uspace/drv/bus/usb/xhci/transfers.c
r45457265 reb862fd 44 44 45 45 typedef enum { 46 47 46 STAGE_OUT, 47 STAGE_IN, 48 48 } stage_dir_flag_t; 49 49 … … 65 65 66 66 typedef enum { 67 68 69 67 DATA_STAGE_NO = 0, 68 DATA_STAGE_OUT = 2, 69 DATA_STAGE_IN = 3, 70 70 } data_stage_type_t; 71 71 -
uspace/drv/bus/usb/xhci/trb_ring.h
r45457265 reb862fd 85 85 * pointer inside the ring. Otherwise, the ring will soon show up as full. 86 86 */ 87 static inline void xhci_trb_ring_update_dequeue(xhci_trb_ring_t *ring, uintptr_t phys) { 87 static inline void xhci_trb_ring_update_dequeue(xhci_trb_ring_t *ring, uintptr_t phys) 88 { 88 89 ring->dequeue = phys; 89 90 }
Note:
See TracChangeset
for help on using the changeset viewer.