diff options
author | Vadim Pasternak <vadimp@mellanox.com> | 2020-07-28 13:20:16 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-28 13:28:02 -0700 |
commit | f152b41ba6cf43a3a5a87c7b45e6a2722a6195dc (patch) | |
tree | 6dd6fdef0df63cad7fb76f8eb1e6ceb9bfacbc94 /drivers/net/ethernet/mellanox/mlxsw/reg.h | |
parent | mlxsw: core: Add ethtool support for QSFP-DD transceivers (diff) | |
download | wireguard-linux-f152b41ba6cf43a3a5a87c7b45e6a2722a6195dc.tar.xz wireguard-linux-f152b41ba6cf43a3a5a87c7b45e6a2722a6195dc.zip |
mlxsw: core: Add support for temperature thresholds reading for QSFP-DD transceivers
Allow QSFP-DD transceivers temperature thresholds reading for hardware
monitoring and thermal control.
For this type, the thresholds are located in page 02h according to the
"Module and Lane Thresholds" description from Common Management
Interface Specification.
Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/reg.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/reg.h b/drivers/net/ethernet/mellanox/mlxsw/reg.h index 0638dfb23b7e..1d23ad70e83d 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/reg.h +++ b/drivers/net/ethernet/mellanox/mlxsw/reg.h @@ -8605,6 +8605,7 @@ MLXSW_ITEM32(reg, mcia, size, 0x08, 0, 16); #define MLXSW_REG_MCIA_PAGE0_LO_OFF 0xa0 #define MLXSW_REG_MCIA_TH_ITEM_SIZE 2 #define MLXSW_REG_MCIA_TH_PAGE_NUM 3 +#define MLXSW_REG_MCIA_TH_PAGE_CMIS_NUM 2 #define MLXSW_REG_MCIA_PAGE0_LO 0 #define MLXSW_REG_MCIA_TH_PAGE_OFF 0x80 #define MLXSW_REG_MCIA_EEPROM_CMIS_FLAT_MEMORY BIT(7) |