diff options
author | Eilon Greenstein <eilong@broadcom.com> | 2009-07-21 01:47:27 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-07-21 14:18:26 -0400 |
commit | fd4ef40d5977e1c226e9cd9659398e82cc4a1e85 (patch) | |
tree | fef7d128105a7cf789d6088d013c64fee1416402 /drivers/net/bnx2x_hsi.h | |
parent | 279abdf59c766a06db89b50c6d3615b4f2b19ed3 (diff) |
bnx2x: Fan failure
Setup fan failure for different PHY types or according to nvram settings
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x_hsi.h')
-rw-r--r-- | drivers/net/bnx2x_hsi.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/net/bnx2x_hsi.h b/drivers/net/bnx2x_hsi.h index 03c62421d999..41c6dcb9618a 100644 --- a/drivers/net/bnx2x_hsi.h +++ b/drivers/net/bnx2x_hsi.h | |||
@@ -91,6 +91,21 @@ struct shared_hw_cfg { /* NVRAM Offset */ | |||
91 | 91 | ||
92 | #define SHARED_HW_CFG_HIDE_PORT1 0x00002000 | 92 | #define SHARED_HW_CFG_HIDE_PORT1 0x00002000 |
93 | 93 | ||
94 | /* The fan failure mechanism is usually related to the PHY type | ||
95 | since the power consumption of the board is determined by the PHY. | ||
96 | Currently, fan is required for most designs with SFX7101, BCM8727 | ||
97 | and BCM8481. If a fan is not required for a board which uses one | ||
98 | of those PHYs, this field should be set to "Disabled". If a fan is | ||
99 | required for a different PHY type, this option should be set to | ||
100 | "Enabled". | ||
101 | The fan failure indication is expected on | ||
102 | SPIO5 */ | ||
103 | #define SHARED_HW_CFG_FAN_FAILURE_MASK 0x00180000 | ||
104 | #define SHARED_HW_CFG_FAN_FAILURE_SHIFT 19 | ||
105 | #define SHARED_HW_CFG_FAN_FAILURE_PHY_TYPE 0x00000000 | ||
106 | #define SHARED_HW_CFG_FAN_FAILURE_DISABLED 0x00080000 | ||
107 | #define SHARED_HW_CFG_FAN_FAILURE_ENABLED 0x00100000 | ||
108 | |||
94 | u32 power_dissipated; /* 0x11c */ | 109 | u32 power_dissipated; /* 0x11c */ |
95 | #define SHARED_HW_CFG_POWER_DIS_CMN_MASK 0xff000000 | 110 | #define SHARED_HW_CFG_POWER_DIS_CMN_MASK 0xff000000 |
96 | #define SHARED_HW_CFG_POWER_DIS_CMN_SHIFT 24 | 111 | #define SHARED_HW_CFG_POWER_DIS_CMN_SHIFT 24 |