Changeset 41924f30 in mainline for uspace/drv/bus/usb/xhci/transfers.c
- Timestamp:
- 2017-10-12T14:07:27Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a5976973
- Parents:
- 7e74911
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/transfers.c
r7e74911 r41924f30 36 36 #include <usb/host/utils/malloc32.h> 37 37 #include <usb/debug.h> 38 #include "endpoint.h" 38 39 #include "hc.h" 39 40 #include "hw_struct/trb.h" … … 141 142 return EINVAL; 142 143 } 143 if (batch->ep-> endpoint != 0 || batch->ep->transfer_type != USB_TRANSFER_CONTROL) {144 if (batch->ep->target.endpoint != 0 || batch->ep->transfer_type != USB_TRANSFER_CONTROL) { 144 145 /* This method only works for control transfers. */ 145 146 usb_log_error("Attempted to schedule control transfer to non 0 endpoint."); … … 147 148 } 148 149 149 uint8_t slot_id = batch->ep->hc_data.slot_id; 150 xhci_endpoint_t *xhci_ep = xhci_endpoint_get(batch->ep); 151 152 uint8_t slot_id = xhci_ep->slot_id; 150 153 xhci_trb_ring_t* ring = hc->dcbaa_virt[slot_id].trs[0]; 151 154 … … 230 233 } 231 234 232 uint8_t slot_id = batch->ep->hc_data.slot_id; 233 xhci_trb_ring_t* ring = hc->dcbaa_virt[slot_id].trs[batch->ep->endpoint]; 235 xhci_endpoint_t *xhci_ep = xhci_endpoint_get(batch->ep); 236 uint8_t slot_id = xhci_ep->slot_id; 237 xhci_trb_ring_t* ring = hc->dcbaa_virt[slot_id].trs[batch->ep->target.endpoint]; 234 238 235 239 xhci_transfer_t *transfer = xhci_transfer_alloc(batch);
Note:
See TracChangeset
for help on using the changeset viewer.