Define the XHCI endpoint states.

MFC after:	1 week
Sponsored by:	Mellanox Technologies
This commit is contained in:
Hans Petter Selasky 2020-01-10 09:07:43 +00:00
parent ac0bea768b
commit b8ffd2d5d6

View File

@ -115,6 +115,14 @@ struct xhci_endp_ctx {
volatile uint32_t dwEpCtx0;
#define XHCI_EPCTX_0_EPSTATE_SET(x) ((x) & 0x7)
#define XHCI_EPCTX_0_EPSTATE_GET(x) ((x) & 0x7)
#define XHCI_EPCTX_0_EPSTATE_DISABLED 0
#define XHCI_EPCTX_0_EPSTATE_RUNNING 1
#define XHCI_EPCTX_0_EPSTATE_HALTED 2
#define XHCI_EPCTX_0_EPSTATE_STOPPED 3
#define XHCI_EPCTX_0_EPSTATE_ERROR 4
#define XHCI_EPCTX_0_EPSTATE_RESERVED_5 5
#define XHCI_EPCTX_0_EPSTATE_RESERVED_6 6
#define XHCI_EPCTX_0_EPSTATE_RESERVED_7 7
#define XHCI_EPCTX_0_MULT_SET(x) (((x) & 0x3) << 8)
#define XHCI_EPCTX_0_MULT_GET(x) (((x) >> 8) & 0x3)
#define XHCI_EPCTX_0_MAXP_STREAMS_SET(x) (((x) & 0x1F) << 10)