Author: hselasky
Date: Mon Feb 17 09:58:55 2020
New Revision: 358018
URL: https://svnweb.freebsd.org/changeset/base/358018

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

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

Modified: stable/12/sys/dev/usb/controller/xhci.h
==============================================================================
--- stable/12/sys/dev/usb/controller/xhci.h     Mon Feb 17 09:57:40 2020        
(r358017)
+++ stable/12/sys/dev/usb/controller/xhci.h     Mon Feb 17 09:58:55 2020        
(r358018)
@@ -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)
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to