svn commit: r356597 - head/sys/dev/usb/controller

Hans Petter Selasky hselasky at FreeBSD.org
Fri Jan 10 09:07:43 UTC 2020


Author: hselasky
Date: Fri Jan 10 09:07:43 2020
New Revision: 356597
URL: https://svnweb.freebsd.org/changeset/base/356597

Log:
  Define the XHCI endpoint states.
  
  MFC after:	1 week
  Sponsored by:	Mellanox Technologies

Modified:
  head/sys/dev/usb/controller/xhci.h

Modified: head/sys/dev/usb/controller/xhci.h
==============================================================================
--- head/sys/dev/usb/controller/xhci.h	Fri Jan 10 08:54:46 2020	(r356596)
+++ head/sys/dev/usb/controller/xhci.h	Fri Jan 10 09:07:43 2020	(r356597)
@@ -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)


More information about the svn-src-all mailing list