qed: Added supported transceiver modes, speed capability and board config to HSI.
Added transceiver modes with different speed and media type, speed capability and supported board types in HSI, which will be utilizing to display correct specification of link modes and speed type. Signed-off-by: Rahul Verma <Rahul.Verma@cavium.com> Signed-off-by: Ariel Elior <ariel.elior@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
706d08913d
commit
e292b636f9
|
@ -12207,11 +12207,56 @@ struct public_port {
|
|||
u32 transceiver_data;
|
||||
#define ETH_TRANSCEIVER_STATE_MASK 0x000000FF
|
||||
#define ETH_TRANSCEIVER_STATE_SHIFT 0x00000000
|
||||
#define ETH_TRANSCEIVER_STATE_OFFSET 0x00000000
|
||||
#define ETH_TRANSCEIVER_STATE_UNPLUGGED 0x00000000
|
||||
#define ETH_TRANSCEIVER_STATE_PRESENT 0x00000001
|
||||
#define ETH_TRANSCEIVER_STATE_VALID 0x00000003
|
||||
#define ETH_TRANSCEIVER_STATE_UPDATING 0x00000008
|
||||
|
||||
#define ETH_TRANSCEIVER_TYPE_MASK 0x0000FF00
|
||||
#define ETH_TRANSCEIVER_TYPE_OFFSET 0x8
|
||||
#define ETH_TRANSCEIVER_TYPE_NONE 0x00
|
||||
#define ETH_TRANSCEIVER_TYPE_UNKNOWN 0xFF
|
||||
#define ETH_TRANSCEIVER_TYPE_1G_PCC 0x01
|
||||
#define ETH_TRANSCEIVER_TYPE_1G_ACC 0x02
|
||||
#define ETH_TRANSCEIVER_TYPE_1G_LX 0x03
|
||||
#define ETH_TRANSCEIVER_TYPE_1G_SX 0x04
|
||||
#define ETH_TRANSCEIVER_TYPE_10G_SR 0x05
|
||||
#define ETH_TRANSCEIVER_TYPE_10G_LR 0x06
|
||||
#define ETH_TRANSCEIVER_TYPE_10G_LRM 0x07
|
||||
#define ETH_TRANSCEIVER_TYPE_10G_ER 0x08
|
||||
#define ETH_TRANSCEIVER_TYPE_10G_PCC 0x09
|
||||
#define ETH_TRANSCEIVER_TYPE_10G_ACC 0x0a
|
||||
#define ETH_TRANSCEIVER_TYPE_XLPPI 0x0b
|
||||
#define ETH_TRANSCEIVER_TYPE_40G_LR4 0x0c
|
||||
#define ETH_TRANSCEIVER_TYPE_40G_SR4 0x0d
|
||||
#define ETH_TRANSCEIVER_TYPE_40G_CR4 0x0e
|
||||
#define ETH_TRANSCEIVER_TYPE_100G_AOC 0x0f
|
||||
#define ETH_TRANSCEIVER_TYPE_100G_SR4 0x10
|
||||
#define ETH_TRANSCEIVER_TYPE_100G_LR4 0x11
|
||||
#define ETH_TRANSCEIVER_TYPE_100G_ER4 0x12
|
||||
#define ETH_TRANSCEIVER_TYPE_100G_ACC 0x13
|
||||
#define ETH_TRANSCEIVER_TYPE_100G_CR4 0x14
|
||||
#define ETH_TRANSCEIVER_TYPE_4x10G_SR 0x15
|
||||
#define ETH_TRANSCEIVER_TYPE_25G_CA_N 0x16
|
||||
#define ETH_TRANSCEIVER_TYPE_25G_ACC_S 0x17
|
||||
#define ETH_TRANSCEIVER_TYPE_25G_CA_S 0x18
|
||||
#define ETH_TRANSCEIVER_TYPE_25G_ACC_M 0x19
|
||||
#define ETH_TRANSCEIVER_TYPE_25G_CA_L 0x1a
|
||||
#define ETH_TRANSCEIVER_TYPE_25G_ACC_L 0x1b
|
||||
#define ETH_TRANSCEIVER_TYPE_25G_SR 0x1c
|
||||
#define ETH_TRANSCEIVER_TYPE_25G_LR 0x1d
|
||||
#define ETH_TRANSCEIVER_TYPE_25G_AOC 0x1e
|
||||
#define ETH_TRANSCEIVER_TYPE_4x10G 0x1f
|
||||
#define ETH_TRANSCEIVER_TYPE_4x25G_CR 0x20
|
||||
#define ETH_TRANSCEIVER_TYPE_1000BASET 0x21
|
||||
#define ETH_TRANSCEIVER_TYPE_10G_BASET 0x22
|
||||
#define ETH_TRANSCEIVER_TYPE_MULTI_RATE_10G_40G_SR 0x30
|
||||
#define ETH_TRANSCEIVER_TYPE_MULTI_RATE_10G_40G_CR 0x31
|
||||
#define ETH_TRANSCEIVER_TYPE_MULTI_RATE_10G_40G_LR 0x32
|
||||
#define ETH_TRANSCEIVER_TYPE_MULTI_RATE_40G_100G_SR 0x33
|
||||
#define ETH_TRANSCEIVER_TYPE_MULTI_RATE_40G_100G_CR 0x34
|
||||
#define ETH_TRANSCEIVER_TYPE_MULTI_RATE_40G_100G_LR 0x35
|
||||
#define ETH_TRANSCEIVER_TYPE_MULTI_RATE_40G_100G_AOC 0x36
|
||||
u32 wol_info;
|
||||
u32 wol_pkt_len;
|
||||
u32 wol_pkt_details;
|
||||
|
@ -13199,6 +13244,13 @@ struct nvm_cfg1_port {
|
|||
u32 transceiver_00;
|
||||
u32 device_ids;
|
||||
u32 board_cfg;
|
||||
#define NVM_CFG1_PORT_PORT_TYPE_MASK 0x000000FF
|
||||
#define NVM_CFG1_PORT_PORT_TYPE_OFFSET 0
|
||||
#define NVM_CFG1_PORT_PORT_TYPE_UNDEFINED 0x0
|
||||
#define NVM_CFG1_PORT_PORT_TYPE_MODULE 0x1
|
||||
#define NVM_CFG1_PORT_PORT_TYPE_BACKPLANE 0x2
|
||||
#define NVM_CFG1_PORT_PORT_TYPE_EXT_PHY 0x3
|
||||
#define NVM_CFG1_PORT_PORT_TYPE_MODULE_SLAVE 0x4
|
||||
u32 mnm_10g_cap;
|
||||
u32 mnm_10g_ctrl;
|
||||
u32 mnm_10g_misc;
|
||||
|
|
Loading…
Reference in New Issue