Add defines for physical port states. These are used by the latest ib-diags.
authorshefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 6 May 2009 06:05:49 +0000 (06:05 +0000)
committershefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 6 May 2009 06:05:49 +0000 (06:05 +0000)
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2151 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

inc/iba/ib_types.h

index 2d86569..aaa497b 100644 (file)
@@ -4489,6 +4489,14 @@ typedef struct _ib_port_info
 #define IB_PORT_LINK_SPEED_ENABLED_MASK                                0x0F\r
 #define IB_PORT_PHYS_STATE_MASK                        0xF0\r
 #define IB_PORT_PHYS_STATE_SHIFT               4\r
+#define IB_PORT_PHYS_STATE_NO_CHANGE            0\r
+#define IB_PORT_PHYS_STATE_SLEEP                1\r
+#define IB_PORT_PHYS_STATE_POLLING              2\r
+#define IB_PORT_PHYS_STATE_DISABLED             3\r
+#define IB_PORT_PHYS_STATE_PORTCONFTRAIN        4\r
+#define IB_PORT_PHYS_STATE_LINKUP               5\r
+#define IB_PORT_PHYS_STATE_LINKERRRECOVER       6\r
+#define IB_PORT_PHYS_STATE_PHYTEST              7\r
 #define IB_PORT_LNKDWNDFTSTATE_MASK            0x0F\r
 \r
 #define IB_PORT_CAP_RESV0                      (CL_NTOH32(0x00000001))\r