Changeset e9e24f2 in mainline
- Timestamp:
- 2017-10-05T17:17:09Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ae03552e
- Parents:
- 078e0e6
- Location:
- uspace
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/Makefile
r078e0e6 re9e24f2 51 51 scratchpad.c \ 52 52 commands.c \ 53 transfers.c \ 53 54 rh.c \ 54 55 main.c -
uspace/drv/bus/usb/xhci/hc.c
r078e0e6 re9e24f2 43 43 #include "hw_struct/trb.h" 44 44 #include "commands.h" 45 #include "transfers.h" 46 #include "trb_ring.h" 45 47 46 48 /** … … 457 459 switch (batch->ep->transfer_type) { 458 460 case USB_TRANSFER_CONTROL: 459 /* TODO: Send setup stage TRB. */ 460 /* TODO: Optionally, send data stage TRB followed by zero or 461 more normal TRB's. */ 462 /* TODO: Send status stage TRB. */ 463 /* TODO: Ring the appropriate doorbell. */ 461 xhci_schedule_control_transfer(hc, batch); 464 462 break; 465 463 case USB_TRANSFER_ISOCHRONOUS: … … 482 480 [XHCI_TRB_TYPE_COMMAND_COMPLETION_EVENT] = &xhci_handle_command_completion, 483 481 [XHCI_TRB_TYPE_PORT_STATUS_CHANGE_EVENT] = &xhci_handle_port_status_change_event, 482 [XHCI_TRB_TYPE_TRANSFER_EVENT] = &xhci_handle_transfer_event, 484 483 }; 485 484 -
uspace/drv/bus/usb/xhci/hc.h
r078e0e6 re9e24f2 78 78 /* Command list */ 79 79 list_t commands; 80 list_t transfers; 80 81 } xhci_hc_t; 81 82 -
uspace/drv/bus/usb/xhci/hw_struct/trb.h
r078e0e6 re9e24f2 100 100 #define TRB_CYCLE(trb) XHCI_DWORD_EXTRACT((trb).control, 0, 0) 101 101 #define TRB_LINK_TC(trb) XHCI_DWORD_EXTRACT((trb).control, 1, 1) 102 103 #define TRB_TRANSFER_LENGTH(trb) XHCI_DWORD_EXTRACT((trb).status, 23, 0) 104 #define TRB_COMPLETION_CODE(trb) XHCI_DWORD_EXTRACT((trb).status, 31, 24) 102 105 103 106 #define TRB_CTRL_SET_SETUP_WLENGTH(trb, val) \ -
uspace/drv/bus/usb/xhci/rh.c
r078e0e6 re9e24f2 44 44 #include "hw_struct/trb.h" 45 45 #include "rh.h" 46 #include "transfers.h" 46 47 47 48 #define USB_MAP_VALUE(a, b) [USB_HUB_FEATURE_##a] = b -
uspace/lib/usbhost/include/usb/host/endpoint.h
r078e0e6 re9e24f2 45 45 typedef struct endpoint { 46 46 /** Reference count. */ 47 atomic_t refcnt; 47 atomic_t refcnt; 48 48 /** Part of linked list. */ 49 49 link_t link; … … 85 85 /** Callback to set the value of toggle bit. */ 86 86 void (*toggle_set)(void *, int); 87 /** Device slot id. */ 88 uint8_t slot_id; 87 89 } hc_data; 88 90 } endpoint_t;
Note:
See TracChangeset
for help on using the changeset viewer.