aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2x/bnx2x_hsi.h
diff options
context:
space:
mode:
authorYaniv Rosner <yanivr@broadcom.com>2011-01-30 23:22:46 -0500
committerDavid S. Miller <davem@davemloft.net>2011-01-31 16:22:44 -0500
commit1bef68e3f5d25e17adc5232dc0ad7c0ea0188374 (patch)
treecc60004b8681e56f19ba199f8a50a102c7da42d2 /drivers/net/bnx2x/bnx2x_hsi.h
parentc87bca1eaa493779392378b69fe646644580942a (diff)
bnx2x: Add CMS functionality for 848x3
Add CMS(Common Mode Sense) functionality for 848x3 as this reduces power consumption and allows a better 10G link stability Signed-off-by: Yaniv Rosner <yanivr@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x/bnx2x_hsi.h')
-rw-r--r--drivers/net/bnx2x/bnx2x_hsi.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/bnx2x/bnx2x_hsi.h b/drivers/net/bnx2x/bnx2x_hsi.h
index 7c35f4ee3858..51d69db23a71 100644
--- a/drivers/net/bnx2x/bnx2x_hsi.h
+++ b/drivers/net/bnx2x/bnx2x_hsi.h
@@ -330,6 +330,12 @@ struct port_hw_cfg { /* port 0: 0x12c port 1: 0x2bc */
330#define PORT_HW_CFG_ENABLE_BAM_ON_KR_DISABLED 0x00000000 330#define PORT_HW_CFG_ENABLE_BAM_ON_KR_DISABLED 0x00000000
331#define PORT_HW_CFG_ENABLE_BAM_ON_KR_ENABLED 0x00100000 331#define PORT_HW_CFG_ENABLE_BAM_ON_KR_ENABLED 0x00100000
332 332
333 /* Enable Common Mode Sense */
334#define PORT_HW_CFG_ENABLE_CMS_MASK 0x00200000
335#define PORT_HW_CFG_ENABLE_CMS_SHIFT 21
336#define PORT_HW_CFG_ENABLE_CMS_DISABLED 0x00000000
337#define PORT_HW_CFG_ENABLE_CMS_ENABLED 0x00200000
338
333 u32 speed_capability_mask2; /* 0x28C */ 339 u32 speed_capability_mask2; /* 0x28C */
334#define PORT_HW_CFG_SPEED_CAPABILITY2_D3_MASK 0x0000FFFF 340#define PORT_HW_CFG_SPEED_CAPABILITY2_D3_MASK 0x0000FFFF
335#define PORT_HW_CFG_SPEED_CAPABILITY2_D3_SHIFT 0 341#define PORT_HW_CFG_SPEED_CAPABILITY2_D3_SHIFT 0