From f617cd92723065f98fb59b3cd5a0c3f3dfd94b5e Mon Sep 17 00:00:00 2001 From: shefty Date: Wed, 6 May 2009 06:05:49 +0000 Subject: [PATCH] Add defines for physical port states. These are used by the latest ib-diags. Signed-off-by: Sean Hefty git-svn-id: svn://openib.tc.cornell.edu/gen1@2151 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- trunk/inc/iba/ib_types.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/trunk/inc/iba/ib_types.h b/trunk/inc/iba/ib_types.h index 2d86569b..aaa497b1 100644 --- a/trunk/inc/iba/ib_types.h +++ b/trunk/inc/iba/ib_types.h @@ -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)) -- 2.46.0