Changeset 706a3e2 in mainline for uspace/drv/bus/usb/xhci/hw_struct/context.h
- Timestamp:
- 2017-08-18T16:21:33Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5ff9e1d
- Parents:
- e439f468
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/hw_struct/context.h
re439f468 r706a3e2 51 51 xhci_dword_t data[5]; 52 52 xhci_dword_t reserved[3]; 53 54 #define XHCI_EP_COUNT 31 53 55 54 56 #define XHCI_EP_TYPE_ISOCH_OUT 1 … … 132 134 typedef struct xhci_device_ctx { 133 135 xhci_slot_ctx_t slot_ctx; 134 xhci_ep_ctx_t endpoint_ctx [31];136 xhci_ep_ctx_t endpoint_ctx[XHCI_EP_COUNT]; 135 137 } __attribute__((packed)) xhci_device_ctx_t; 136 138 … … 165 167 166 168 #define XHCI_INPUT_CTRL_CTX_ADD_SET(ctx, idx) (ctx).data[1] |= (1 << (idx)) 167 169 168 170 #define XHCI_INPUT_CTRL_CTX_CONFIG_VALUE(ctx) XHCI_DWORD_EXTRACT((ctx).data[7], 7, 0) 169 171 #define XHCI_INPUT_CTRL_CTX_IFACE_NUMBER(ctx) XHCI_DWORD_EXTRACT((ctx).data[7], 15, 8) … … 177 179 xhci_input_ctrl_ctx_t ctrl_ctx; 178 180 xhci_slot_ctx_t slot_ctx; 179 xhci_ep_ctx_t endpoint_ctx [31];181 xhci_ep_ctx_t endpoint_ctx[XHCI_EP_COUNT]; 180 182 } __attribute__((packed)) xhci_input_ctx_t; 181 183
Note:
See TracChangeset
for help on using the changeset viewer.