Ignore:
Timestamp:
2017-08-18T16:21:33Z (7 years ago)
Author:
Jaroslav Jindrak <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5ff9e1d
Parents:
e439f468
Message:

Dcbaa_virt now points to virtual device contexts that contain pointers to trb rings of each of their endpoints for deallocation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/hw_struct/context.h

    re439f468 r706a3e2  
    5151        xhci_dword_t data[5];
    5252        xhci_dword_t reserved[3];
     53
     54#define XHCI_EP_COUNT 31
    5355
    5456#define XHCI_EP_TYPE_ISOCH_OUT          1
     
    132134typedef struct xhci_device_ctx {
    133135        xhci_slot_ctx_t slot_ctx;
    134         xhci_ep_ctx_t endpoint_ctx [31];
     136        xhci_ep_ctx_t endpoint_ctx[XHCI_EP_COUNT];
    135137} __attribute__((packed)) xhci_device_ctx_t;
    136138
     
    165167
    166168#define XHCI_INPUT_CTRL_CTX_ADD_SET(ctx, idx) (ctx).data[1] |= (1 << (idx))
    167    
     169
    168170#define XHCI_INPUT_CTRL_CTX_CONFIG_VALUE(ctx)   XHCI_DWORD_EXTRACT((ctx).data[7],  7,  0)
    169171#define XHCI_INPUT_CTRL_CTX_IFACE_NUMBER(ctx)   XHCI_DWORD_EXTRACT((ctx).data[7], 15,  8)
     
    177179        xhci_input_ctrl_ctx_t ctrl_ctx;
    178180        xhci_slot_ctx_t slot_ctx;
    179         xhci_ep_ctx_t endpoint_ctx [31];
     181        xhci_ep_ctx_t endpoint_ctx[XHCI_EP_COUNT];
    180182} __attribute__((packed)) xhci_input_ctx_t;
    181183
Note: See TracChangeset for help on using the changeset viewer.