[ofw] [PATCH] ib_types: add physical port state mappings

Sean Hefty sean.hefty at intel.com
Tue May 5 13:34:32 PDT 2009


Add defines for physical port states.  These are used by the latest ib-diags.

Signed-off-by: Sean Hefty <sean.hefty at intel.com>
---
diff -up -r -X \mshefty\scm\winof\trunk\docs\dontdiff.txt -I '\$Id:' trunk\inc\iba/ib_types.h branches\winverbs\inc\iba/ib_types.h
--- trunk\inc\iba/ib_types.h	2009-03-02 14:58:52.627250000 -0800
+++ branches\winverbs\inc\iba/ib_types.h	2009-05-04 14:15:44.328479100 -0700
@@ -4489,6 +4489,14 @@ typedef struct _ib_port_info
 #define IB_PORT_LINK_SPEED_ENABLED_MASK				0x0F
 #define IB_PORT_PHYS_STATE_MASK			0xF0
 #define IB_PORT_PHYS_STATE_SHIFT		4
+#define IB_PORT_PHYS_STATE_NO_CHANGE            0
+#define IB_PORT_PHYS_STATE_SLEEP                1
+#define IB_PORT_PHYS_STATE_POLLING              2
+#define IB_PORT_PHYS_STATE_DISABLED             3
+#define IB_PORT_PHYS_STATE_PORTCONFTRAIN        4
+#define IB_PORT_PHYS_STATE_LINKUP               5
+#define IB_PORT_PHYS_STATE_LINKERRRECOVER       6
+#define IB_PORT_PHYS_STATE_PHYTEST              7
 #define IB_PORT_LNKDWNDFTSTATE_MASK		0x0F
 
 #define IB_PORT_CAP_RESV0			(CL_NTOH32(0x00000001))




More information about the ofw mailing list