svn commit: r358019 - stable/11/sys/dev/usb/controller

Hans Petter Selasky hselasky at FreeBSD.org
Mon Feb 17 09:59:29 UTC 2020


Author: hselasky
Date: Mon Feb 17 09:59:28 2020
New Revision: 358019
URL: https://svnweb.freebsd.org/changeset/base/358019

Log:
  MFC r356597:
  Define the XHCI endpoint states.
  
  Sponsored by:	Mellanox Technologies

Modified:
  stable/11/sys/dev/usb/controller/xhci.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/usb/controller/xhci.h
==============================================================================
--- stable/11/sys/dev/usb/controller/xhci.h	Mon Feb 17 09:58:55 2020	(r358018)
+++ stable/11/sys/dev/usb/controller/xhci.h	Mon Feb 17 09:59:28 2020	(r358019)
@@ -113,6 +113,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