xref: /freebsd/sys/dev/qlnx/qlnxe/nvm_cfg.h (revision 95ee2897e98f5d444f26ed2334cc7c439f9c16c6)
111e25f0dSDavid C Somayajulu /*
211e25f0dSDavid C Somayajulu  * Copyright (c) 2017-2018 Cavium, Inc.
311e25f0dSDavid C Somayajulu  * All rights reserved.
411e25f0dSDavid C Somayajulu  *
511e25f0dSDavid C Somayajulu  *  Redistribution and use in source and binary forms, with or without
611e25f0dSDavid C Somayajulu  *  modification, are permitted provided that the following conditions
711e25f0dSDavid C Somayajulu  *  are met:
811e25f0dSDavid C Somayajulu  *
911e25f0dSDavid C Somayajulu  *  1. Redistributions of source code must retain the above copyright
1011e25f0dSDavid C Somayajulu  *     notice, this list of conditions and the following disclaimer.
1111e25f0dSDavid C Somayajulu  *  2. Redistributions in binary form must reproduce the above copyright
1211e25f0dSDavid C Somayajulu  *     notice, this list of conditions and the following disclaimer in the
1311e25f0dSDavid C Somayajulu  *     documentation and/or other materials provided with the distribution.
1411e25f0dSDavid C Somayajulu  *
1511e25f0dSDavid C Somayajulu  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1611e25f0dSDavid C Somayajulu  *  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1711e25f0dSDavid C Somayajulu  *  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1811e25f0dSDavid C Somayajulu  *  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
1911e25f0dSDavid C Somayajulu  *  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2011e25f0dSDavid C Somayajulu  *  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2111e25f0dSDavid C Somayajulu  *  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2211e25f0dSDavid C Somayajulu  *  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2311e25f0dSDavid C Somayajulu  *  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2411e25f0dSDavid C Somayajulu  *  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2511e25f0dSDavid C Somayajulu  *  POSSIBILITY OF SUCH DAMAGE.
2611e25f0dSDavid C Somayajulu  *
2711e25f0dSDavid C Somayajulu  */
2811e25f0dSDavid C Somayajulu 
2911e25f0dSDavid C Somayajulu /****************************************************************************
3011e25f0dSDavid C Somayajulu  *
3111e25f0dSDavid C Somayajulu  * Name:        nvm_cfg.h
3211e25f0dSDavid C Somayajulu  *
3311e25f0dSDavid C Somayajulu  * Description: NVM config file - Generated file from nvm cfg excel.
3411e25f0dSDavid C Somayajulu  *              DO NOT MODIFY !!!
3511e25f0dSDavid C Somayajulu  *
36*217ec208SDavid C Somayajulu  * Created:     12/4/2017
3711e25f0dSDavid C Somayajulu  *
3811e25f0dSDavid C Somayajulu  ****************************************************************************/
3911e25f0dSDavid C Somayajulu 
4011e25f0dSDavid C Somayajulu #ifndef NVM_CFG_H
4111e25f0dSDavid C Somayajulu #define NVM_CFG_H
4211e25f0dSDavid C Somayajulu 
43*217ec208SDavid C Somayajulu #define NVM_CFG_version 0x83306
4411e25f0dSDavid C Somayajulu 
45*217ec208SDavid C Somayajulu #define NVM_CFG_new_option_seq 26
4611e25f0dSDavid C Somayajulu 
47*217ec208SDavid C Somayajulu #define NVM_CFG_removed_option_seq 2
48*217ec208SDavid C Somayajulu 
49*217ec208SDavid C Somayajulu #define NVM_CFG_updated_value_seq 5
5011e25f0dSDavid C Somayajulu 
5111e25f0dSDavid C Somayajulu struct nvm_cfg_mac_address
5211e25f0dSDavid C Somayajulu {
5311e25f0dSDavid C Somayajulu 	u32 mac_addr_hi;
5411e25f0dSDavid C Somayajulu 		#define NVM_CFG_MAC_ADDRESS_HI_MASK                             0x0000FFFF
5511e25f0dSDavid C Somayajulu 		#define NVM_CFG_MAC_ADDRESS_HI_OFFSET                           0
5611e25f0dSDavid C Somayajulu 	u32 mac_addr_lo;
5711e25f0dSDavid C Somayajulu };
5811e25f0dSDavid C Somayajulu 
5911e25f0dSDavid C Somayajulu /******************************************
6011e25f0dSDavid C Somayajulu  * nvm_cfg1 structs
6111e25f0dSDavid C Somayajulu  ******************************************/
6211e25f0dSDavid C Somayajulu struct nvm_cfg1_glob
6311e25f0dSDavid C Somayajulu {
6411e25f0dSDavid C Somayajulu 	u32 generic_cont0;                                                  /* 0x0 */
6511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BOARD_SWAP_MASK                           0x0000000F
6611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BOARD_SWAP_OFFSET                         0
6711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BOARD_SWAP_NONE                           0x0
6811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BOARD_SWAP_PATH                           0x1
6911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BOARD_SWAP_PORT                           0x2
7011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BOARD_SWAP_BOTH                           0x3
7111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MF_MODE_MASK                              0x00000FF0
7211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MF_MODE_OFFSET                            4
7311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MF_MODE_MF_ALLOWED                        0x0
7411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MF_MODE_DEFAULT                           0x1
7511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MF_MODE_SPIO4                             0x2
7611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MF_MODE_NPAR1_0                           0x3
7711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MF_MODE_NPAR1_5                           0x4
7811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MF_MODE_NPAR2_0                           0x5
7911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MF_MODE_BD                                0x6
8011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MF_MODE_UFP                               0x7
8111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_FAN_FAILURE_ENFORCEMENT_MASK              0x00001000
8211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_FAN_FAILURE_ENFORCEMENT_OFFSET            12
8311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_FAN_FAILURE_ENFORCEMENT_DISABLED          0x0
8411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_FAN_FAILURE_ENFORCEMENT_ENABLED           0x1
8511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_AVS_MARGIN_LOW_MASK                       0x001FE000
8611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_AVS_MARGIN_LOW_OFFSET                     13
8711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_AVS_MARGIN_HIGH_MASK                      0x1FE00000
8811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_AVS_MARGIN_HIGH_OFFSET                    21
8911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ENABLE_SRIOV_MASK                         0x20000000
9011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ENABLE_SRIOV_OFFSET                       29
9111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ENABLE_SRIOV_DISABLED                     0x0
9211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ENABLE_SRIOV_ENABLED                      0x1
9311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ENABLE_ATC_MASK                           0x40000000
9411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ENABLE_ATC_OFFSET                         30
9511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ENABLE_ATC_DISABLED                       0x0
9611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ENABLE_ATC_ENABLED                        0x1
9711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RESERVED__M_WAS_CLOCK_SLOWDOWN_MASK       0x80000000
9811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RESERVED__M_WAS_CLOCK_SLOWDOWN_OFFSET     31
9911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RESERVED__M_WAS_CLOCK_SLOWDOWN_DISABLED   0x0
10011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RESERVED__M_WAS_CLOCK_SLOWDOWN_ENABLED    0x1
10111e25f0dSDavid C Somayajulu 	u32 engineering_change[3];                                          /* 0x4 */
10211e25f0dSDavid C Somayajulu 	u32 manufacturing_id;                                              /* 0x10 */
10311e25f0dSDavid C Somayajulu 	u32 serial_number[4];                                              /* 0x14 */
10411e25f0dSDavid C Somayajulu 	u32 pcie_cfg;                                                      /* 0x24 */
10511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PCI_GEN_MASK                              0x00000003
10611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PCI_GEN_OFFSET                            0
10711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PCI_GEN_PCI_GEN1                          0x0
10811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PCI_GEN_PCI_GEN2                          0x1
10911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PCI_GEN_PCI_GEN3                          0x2
11011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BEACON_WOL_ENABLED_MASK                   0x00000004
11111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BEACON_WOL_ENABLED_OFFSET                 2
11211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BEACON_WOL_ENABLED_DISABLED               0x0
11311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BEACON_WOL_ENABLED_ENABLED                0x1
11411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ASPM_SUPPORT_MASK                         0x00000018
11511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ASPM_SUPPORT_OFFSET                       3
11611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ASPM_SUPPORT_L0S_L1_ENABLED               0x0
11711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ASPM_SUPPORT_L0S_DISABLED                 0x1
11811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ASPM_SUPPORT_L1_DISABLED                  0x2
11911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ASPM_SUPPORT_L0S_L1_DISABLED              0x3
12011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RESERVED_MPREVENT_PCIE_L1_MENTRY_MASK     0x00000020
12111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RESERVED_MPREVENT_PCIE_L1_MENTRY_OFFSET   5
12211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PCIE_G2_TX_AMPLITUDE_MASK                 0x000003C0
12311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PCIE_G2_TX_AMPLITUDE_OFFSET               6
12411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PCIE_PREEMPHASIS_MASK                     0x00001C00
12511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PCIE_PREEMPHASIS_OFFSET                   10
12611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PCIE_PREEMPHASIS_HW                       0x0
12711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PCIE_PREEMPHASIS_0DB                      0x1
12811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PCIE_PREEMPHASIS_3_5DB                    0x2
12911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PCIE_PREEMPHASIS_6_0DB                    0x3
13011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_WWN_NODE_PREFIX0_MASK                     0x001FE000
13111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_WWN_NODE_PREFIX0_OFFSET                   13
13211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_WWN_NODE_PREFIX1_MASK                     0x1FE00000
13311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_WWN_NODE_PREFIX1_OFFSET                   21
13411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_NCSI_PACKAGE_ID_MASK                      0x60000000
13511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_NCSI_PACKAGE_ID_OFFSET                    29
13611e25f0dSDavid C Somayajulu 	/*  Set the duration, in seconds, fan failure signal should be
13711e25f0dSDavid C Somayajulu           sampled */
13811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RESERVED_FAN_FAILURE_DURATION_MASK        0x80000000
13911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RESERVED_FAN_FAILURE_DURATION_OFFSET      31
14011e25f0dSDavid C Somayajulu 	u32 mgmt_traffic;                                                  /* 0x28 */
14111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RESERVED60_MASK                           0x00000001
14211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RESERVED60_OFFSET                         0
14311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_WWN_PORT_PREFIX0_MASK                     0x000001FE
14411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_WWN_PORT_PREFIX0_OFFSET                   1
14511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_WWN_PORT_PREFIX1_MASK                     0x0001FE00
14611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_WWN_PORT_PREFIX1_OFFSET                   9
14711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SMBUS_ADDRESS_MASK                        0x01FE0000
14811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SMBUS_ADDRESS_OFFSET                      17
14911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SIDEBAND_MODE_MASK                        0x06000000
15011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SIDEBAND_MODE_OFFSET                      25
15111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SIDEBAND_MODE_DISABLED                    0x0
15211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SIDEBAND_MODE_RMII                        0x1
15311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SIDEBAND_MODE_SGMII                       0x2
15411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_AUX_MODE_MASK                             0x78000000
15511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_AUX_MODE_OFFSET                           27
15611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_AUX_MODE_DEFAULT                          0x0
15711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_AUX_MODE_SMBUS_ONLY                       0x1
15811e25f0dSDavid C Somayajulu 	/*  Indicates whether external thermal sonsor is available */
15911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_EXTERNAL_THERMAL_SENSOR_MASK              0x80000000
16011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_EXTERNAL_THERMAL_SENSOR_OFFSET            31
16111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_EXTERNAL_THERMAL_SENSOR_DISABLED          0x0
16211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_EXTERNAL_THERMAL_SENSOR_ENABLED           0x1
16311e25f0dSDavid C Somayajulu 	u32 core_cfg;                                                      /* 0x2C */
16411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_NETWORK_PORT_MODE_MASK                    0x000000FF
16511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_NETWORK_PORT_MODE_OFFSET                  0
16611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_NETWORK_PORT_MODE_BB_2X40G                0x0
16711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_NETWORK_PORT_MODE_2X50G                   0x1
16811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_NETWORK_PORT_MODE_BB_1X100G               0x2
16911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_NETWORK_PORT_MODE_4X10G_F                 0x3
17011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_NETWORK_PORT_MODE_BB_4X10G_E              0x4
17111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_NETWORK_PORT_MODE_BB_4X20G                0x5
17211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_NETWORK_PORT_MODE_1X40G                   0xB
17311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_NETWORK_PORT_MODE_2X25G                   0xC
17411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_NETWORK_PORT_MODE_1X25G                   0xD
17511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_NETWORK_PORT_MODE_4X25G                   0xE
17611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_NETWORK_PORT_MODE_2X10G                   0xF
17711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MPS10_ENFORCE_TX_FIR_CFG_MASK             0x00000100
17811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MPS10_ENFORCE_TX_FIR_CFG_OFFSET           8
17911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MPS10_ENFORCE_TX_FIR_CFG_DISABLED         0x0
18011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MPS10_ENFORCE_TX_FIR_CFG_ENABLED          0x1
18111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MPS25_ENFORCE_TX_FIR_CFG_MASK             0x00000200
18211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MPS25_ENFORCE_TX_FIR_CFG_OFFSET           9
18311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MPS25_ENFORCE_TX_FIR_CFG_DISABLED         0x0
18411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MPS25_ENFORCE_TX_FIR_CFG_ENABLED          0x1
18511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MPS10_CORE_ADDR_MASK                      0x0003FC00
18611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MPS10_CORE_ADDR_OFFSET                    10
18711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MPS25_CORE_ADDR_MASK                      0x03FC0000
18811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MPS25_CORE_ADDR_OFFSET                    18
18911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_AVS_MODE_MASK                             0x1C000000
19011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_AVS_MODE_OFFSET                           26
19111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_AVS_MODE_CLOSE_LOOP                       0x0
19211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_AVS_MODE_OPEN_LOOP_CFG                    0x1
19311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_AVS_MODE_OPEN_LOOP_OTP                    0x2
19411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_AVS_MODE_DISABLED                         0x3
19511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_OVERRIDE_SECURE_MODE_MASK                 0x60000000
19611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_OVERRIDE_SECURE_MODE_OFFSET               29
19711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_OVERRIDE_SECURE_MODE_DISABLED             0x0
19811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_OVERRIDE_SECURE_MODE_ENABLED              0x1
19911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_DCI_SUPPORT_MASK                          0x80000000
20011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_DCI_SUPPORT_OFFSET                        31
20111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_DCI_SUPPORT_DISABLED                      0x0
20211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_DCI_SUPPORT_ENABLED                       0x1
20311e25f0dSDavid C Somayajulu 	u32 e_lane_cfg1;                                                   /* 0x30 */
20411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RX_LANE0_SWAP_MASK                        0x0000000F
20511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RX_LANE0_SWAP_OFFSET                      0
20611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RX_LANE1_SWAP_MASK                        0x000000F0
20711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RX_LANE1_SWAP_OFFSET                      4
20811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RX_LANE2_SWAP_MASK                        0x00000F00
20911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RX_LANE2_SWAP_OFFSET                      8
21011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RX_LANE3_SWAP_MASK                        0x0000F000
21111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RX_LANE3_SWAP_OFFSET                      12
21211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TX_LANE0_SWAP_MASK                        0x000F0000
21311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TX_LANE0_SWAP_OFFSET                      16
21411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TX_LANE1_SWAP_MASK                        0x00F00000
21511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TX_LANE1_SWAP_OFFSET                      20
21611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TX_LANE2_SWAP_MASK                        0x0F000000
21711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TX_LANE2_SWAP_OFFSET                      24
21811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TX_LANE3_SWAP_MASK                        0xF0000000
21911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TX_LANE3_SWAP_OFFSET                      28
22011e25f0dSDavid C Somayajulu 	u32 e_lane_cfg2;                                                   /* 0x34 */
22111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RX_LANE0_POL_FLIP_MASK                    0x00000001
22211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RX_LANE0_POL_FLIP_OFFSET                  0
22311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RX_LANE1_POL_FLIP_MASK                    0x00000002
22411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RX_LANE1_POL_FLIP_OFFSET                  1
22511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RX_LANE2_POL_FLIP_MASK                    0x00000004
22611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RX_LANE2_POL_FLIP_OFFSET                  2
22711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RX_LANE3_POL_FLIP_MASK                    0x00000008
22811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RX_LANE3_POL_FLIP_OFFSET                  3
22911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TX_LANE0_POL_FLIP_MASK                    0x00000010
23011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TX_LANE0_POL_FLIP_OFFSET                  4
23111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TX_LANE1_POL_FLIP_MASK                    0x00000020
23211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TX_LANE1_POL_FLIP_OFFSET                  5
23311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TX_LANE2_POL_FLIP_MASK                    0x00000040
23411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TX_LANE2_POL_FLIP_OFFSET                  6
23511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TX_LANE3_POL_FLIP_MASK                    0x00000080
23611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TX_LANE3_POL_FLIP_OFFSET                  7
23711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SMBUS_MODE_MASK                           0x00000F00
23811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SMBUS_MODE_OFFSET                         8
23911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SMBUS_MODE_DISABLED                       0x0
24011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SMBUS_MODE_100KHZ                         0x1
24111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SMBUS_MODE_400KHZ                         0x2
24211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_NCSI_MASK                                 0x0000F000
24311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_NCSI_OFFSET                               12
24411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_NCSI_DISABLED                             0x0
24511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_NCSI_ENABLED                              0x1
24611e25f0dSDavid C Somayajulu 	/*  Maximum advertised pcie link width */
24711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MAX_LINK_WIDTH_MASK                       0x000F0000
24811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MAX_LINK_WIDTH_OFFSET                     16
24911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MAX_LINK_WIDTH_BB_16_LANES                0x0
25011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MAX_LINK_WIDTH_1_LANE                     0x1
25111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MAX_LINK_WIDTH_2_LANES                    0x2
25211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MAX_LINK_WIDTH_4_LANES                    0x3
25311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MAX_LINK_WIDTH_8_LANES                    0x4
25411e25f0dSDavid C Somayajulu 	/*  ASPM L1 mode */
25511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ASPM_L1_MODE_MASK                         0x00300000
25611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ASPM_L1_MODE_OFFSET                       20
25711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ASPM_L1_MODE_FORCED                       0x0
25811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ASPM_L1_MODE_DYNAMIC_LOW_LATENCY          0x1
25911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ON_CHIP_SENSOR_MODE_MASK                  0x01C00000
26011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ON_CHIP_SENSOR_MODE_OFFSET                22
26111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ON_CHIP_SENSOR_MODE_DISABLED              0x0
26211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ON_CHIP_SENSOR_MODE_INT_EXT_I2C           0x1
26311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ON_CHIP_SENSOR_MODE_INT_ONLY              0x2
26411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ON_CHIP_SENSOR_MODE_INT_EXT_SMBUS         0x3
26511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TEMPERATURE_MONITORING_MODE_MASK          0x06000000
26611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TEMPERATURE_MONITORING_MODE_OFFSET        25
26711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TEMPERATURE_MONITORING_MODE_DISABLE       0x0
26811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TEMPERATURE_MONITORING_MODE_INTERNAL      0x1
26911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TEMPERATURE_MONITORING_MODE_EXTERNAL      0x2
27011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TEMPERATURE_MONITORING_MODE_BOTH          0x3
27111e25f0dSDavid C Somayajulu 	/*  Set the PLDM sensor modes */
27211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PLDM_SENSOR_MODE_MASK                     0x38000000
27311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PLDM_SENSOR_MODE_OFFSET                   27
27411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PLDM_SENSOR_MODE_INTERNAL                 0x0
27511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PLDM_SENSOR_MODE_EXTERNAL                 0x1
27611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PLDM_SENSOR_MODE_BOTH                     0x2
27711e25f0dSDavid C Somayajulu 	/*  Enable VDM interface */
27811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PCIE_VDM_ENABLED_MASK                     0x40000000
27911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PCIE_VDM_ENABLED_OFFSET                   30
28011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PCIE_VDM_ENABLED_DISABLED                 0x0
28111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PCIE_VDM_ENABLED_ENABLED                  0x1
28211e25f0dSDavid C Somayajulu 	/*  ROL enable */
28311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RESET_ON_LAN_MASK                         0x80000000
28411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RESET_ON_LAN_OFFSET                       31
28511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RESET_ON_LAN_DISABLED                     0x0
28611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RESET_ON_LAN_ENABLED                      0x1
28711e25f0dSDavid C Somayajulu 	u32 f_lane_cfg1;                                                   /* 0x38 */
28811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RX_LANE0_SWAP_MASK                        0x0000000F
28911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RX_LANE0_SWAP_OFFSET                      0
29011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RX_LANE1_SWAP_MASK                        0x000000F0
29111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RX_LANE1_SWAP_OFFSET                      4
29211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RX_LANE2_SWAP_MASK                        0x00000F00
29311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RX_LANE2_SWAP_OFFSET                      8
29411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RX_LANE3_SWAP_MASK                        0x0000F000
29511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RX_LANE3_SWAP_OFFSET                      12
29611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TX_LANE0_SWAP_MASK                        0x000F0000
29711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TX_LANE0_SWAP_OFFSET                      16
29811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TX_LANE1_SWAP_MASK                        0x00F00000
29911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TX_LANE1_SWAP_OFFSET                      20
30011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TX_LANE2_SWAP_MASK                        0x0F000000
30111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TX_LANE2_SWAP_OFFSET                      24
30211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TX_LANE3_SWAP_MASK                        0xF0000000
30311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TX_LANE3_SWAP_OFFSET                      28
30411e25f0dSDavid C Somayajulu 	u32 f_lane_cfg2;                                                   /* 0x3C */
30511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RX_LANE0_POL_FLIP_MASK                    0x00000001
30611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RX_LANE0_POL_FLIP_OFFSET                  0
30711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RX_LANE1_POL_FLIP_MASK                    0x00000002
30811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RX_LANE1_POL_FLIP_OFFSET                  1
30911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RX_LANE2_POL_FLIP_MASK                    0x00000004
31011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RX_LANE2_POL_FLIP_OFFSET                  2
31111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RX_LANE3_POL_FLIP_MASK                    0x00000008
31211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RX_LANE3_POL_FLIP_OFFSET                  3
31311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TX_LANE0_POL_FLIP_MASK                    0x00000010
31411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TX_LANE0_POL_FLIP_OFFSET                  4
31511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TX_LANE1_POL_FLIP_MASK                    0x00000020
31611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TX_LANE1_POL_FLIP_OFFSET                  5
31711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TX_LANE2_POL_FLIP_MASK                    0x00000040
31811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TX_LANE2_POL_FLIP_OFFSET                  6
31911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TX_LANE3_POL_FLIP_MASK                    0x00000080
32011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TX_LANE3_POL_FLIP_OFFSET                  7
32111e25f0dSDavid C Somayajulu 	/*  Control the period between two successive checks */
32211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TEMPERATURE_PERIOD_BETWEEN_CHECKS_MASK    0x0000FF00
32311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_TEMPERATURE_PERIOD_BETWEEN_CHECKS_OFFSET  8
32411e25f0dSDavid C Somayajulu 	/*  Set shutdown temperature */
32511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SHUTDOWN_THRESHOLD_TEMPERATURE_MASK       0x00FF0000
32611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SHUTDOWN_THRESHOLD_TEMPERATURE_OFFSET     16
32711e25f0dSDavid C Somayajulu 	/*  Set max. count for over operational temperature */
32811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MAX_COUNT_OPER_THRESHOLD_MASK             0xFF000000
32911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MAX_COUNT_OPER_THRESHOLD_OFFSET           24
33011e25f0dSDavid C Somayajulu 	u32 mps10_preemphasis;                                             /* 0x40 */
33111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE0_PREEMP_MASK                         0x000000FF
33211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE0_PREEMP_OFFSET                       0
33311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE1_PREEMP_MASK                         0x0000FF00
33411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE1_PREEMP_OFFSET                       8
33511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE2_PREEMP_MASK                         0x00FF0000
33611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE2_PREEMP_OFFSET                       16
33711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE3_PREEMP_MASK                         0xFF000000
33811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE3_PREEMP_OFFSET                       24
33911e25f0dSDavid C Somayajulu 	u32 mps10_driver_current;                                          /* 0x44 */
34011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE0_AMP_MASK                            0x000000FF
34111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE0_AMP_OFFSET                          0
34211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE1_AMP_MASK                            0x0000FF00
34311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE1_AMP_OFFSET                          8
34411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE2_AMP_MASK                            0x00FF0000
34511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE2_AMP_OFFSET                          16
34611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE3_AMP_MASK                            0xFF000000
34711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE3_AMP_OFFSET                          24
34811e25f0dSDavid C Somayajulu 	u32 mps25_preemphasis;                                             /* 0x48 */
34911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE0_PREEMP_MASK                         0x000000FF
35011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE0_PREEMP_OFFSET                       0
35111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE1_PREEMP_MASK                         0x0000FF00
35211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE1_PREEMP_OFFSET                       8
35311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE2_PREEMP_MASK                         0x00FF0000
35411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE2_PREEMP_OFFSET                       16
35511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE3_PREEMP_MASK                         0xFF000000
35611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE3_PREEMP_OFFSET                       24
35711e25f0dSDavid C Somayajulu 	u32 mps25_driver_current;                                          /* 0x4C */
35811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE0_AMP_MASK                            0x000000FF
35911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE0_AMP_OFFSET                          0
36011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE1_AMP_MASK                            0x0000FF00
36111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE1_AMP_OFFSET                          8
36211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE2_AMP_MASK                            0x00FF0000
36311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE2_AMP_OFFSET                          16
36411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE3_AMP_MASK                            0xFF000000
36511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE3_AMP_OFFSET                          24
36611e25f0dSDavid C Somayajulu 	u32 pci_id;                                                        /* 0x50 */
36711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_VENDOR_ID_MASK                            0x0000FFFF
36811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_VENDOR_ID_OFFSET                          0
36911e25f0dSDavid C Somayajulu 	/*  Set caution temperature */
370*217ec208SDavid C Somayajulu 		#define NVM_CFG1_GLOB_DEAD_TEMP_TH_TEMPERATURE_MASK             0x00FF0000
371*217ec208SDavid C Somayajulu 		#define NVM_CFG1_GLOB_DEAD_TEMP_TH_TEMPERATURE_OFFSET           16
37211e25f0dSDavid C Somayajulu 	/*  Set external thermal sensor I2C address */
37311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_EXTERNAL_THERMAL_SENSOR_ADDRESS_MASK      0xFF000000
37411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_EXTERNAL_THERMAL_SENSOR_ADDRESS_OFFSET    24
37511e25f0dSDavid C Somayajulu 	u32 pci_subsys_id;                                                 /* 0x54 */
37611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SUBSYSTEM_VENDOR_ID_MASK                  0x0000FFFF
37711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SUBSYSTEM_VENDOR_ID_OFFSET                0
37811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SUBSYSTEM_DEVICE_ID_MASK                  0xFFFF0000
37911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SUBSYSTEM_DEVICE_ID_OFFSET                16
38011e25f0dSDavid C Somayajulu 	u32 bar;                                                           /* 0x58 */
38111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_EXPANSION_ROM_SIZE_MASK                   0x0000000F
38211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_EXPANSION_ROM_SIZE_OFFSET                 0
38311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_EXPANSION_ROM_SIZE_DISABLED               0x0
38411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_EXPANSION_ROM_SIZE_2K                     0x1
38511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_EXPANSION_ROM_SIZE_4K                     0x2
38611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_EXPANSION_ROM_SIZE_8K                     0x3
38711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_EXPANSION_ROM_SIZE_16K                    0x4
38811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_EXPANSION_ROM_SIZE_32K                    0x5
38911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_EXPANSION_ROM_SIZE_64K                    0x6
39011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_EXPANSION_ROM_SIZE_128K                   0x7
39111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_EXPANSION_ROM_SIZE_256K                   0x8
39211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_EXPANSION_ROM_SIZE_512K                   0x9
39311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_EXPANSION_ROM_SIZE_1M                     0xA
39411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_EXPANSION_ROM_SIZE_2M                     0xB
39511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_EXPANSION_ROM_SIZE_4M                     0xC
39611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_EXPANSION_ROM_SIZE_8M                     0xD
39711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_EXPANSION_ROM_SIZE_16M                    0xE
39811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_EXPANSION_ROM_SIZE_32M                    0xF
39911e25f0dSDavid C Somayajulu 	/*  BB VF BAR2 size */
40011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_VF_PCI_BAR2_SIZE_MASK                     0x000000F0
40111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_VF_PCI_BAR2_SIZE_OFFSET                   4
40211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_VF_PCI_BAR2_SIZE_DISABLED                 0x0
40311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_VF_PCI_BAR2_SIZE_4K                       0x1
40411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_VF_PCI_BAR2_SIZE_8K                       0x2
40511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_VF_PCI_BAR2_SIZE_16K                      0x3
40611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_VF_PCI_BAR2_SIZE_32K                      0x4
40711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_VF_PCI_BAR2_SIZE_64K                      0x5
40811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_VF_PCI_BAR2_SIZE_128K                     0x6
40911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_VF_PCI_BAR2_SIZE_256K                     0x7
41011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_VF_PCI_BAR2_SIZE_512K                     0x8
41111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_VF_PCI_BAR2_SIZE_1M                       0x9
41211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_VF_PCI_BAR2_SIZE_2M                       0xA
41311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_VF_PCI_BAR2_SIZE_4M                       0xB
41411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_VF_PCI_BAR2_SIZE_8M                       0xC
41511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_VF_PCI_BAR2_SIZE_16M                      0xD
41611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_VF_PCI_BAR2_SIZE_32M                      0xE
41711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_VF_PCI_BAR2_SIZE_64M                      0xF
41811e25f0dSDavid C Somayajulu 	/*  BB BAR2 size (global) */
41911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BAR2_SIZE_MASK                            0x00000F00
42011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BAR2_SIZE_OFFSET                          8
42111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BAR2_SIZE_DISABLED                        0x0
42211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BAR2_SIZE_64K                             0x1
42311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BAR2_SIZE_128K                            0x2
42411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BAR2_SIZE_256K                            0x3
42511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BAR2_SIZE_512K                            0x4
42611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BAR2_SIZE_1M                              0x5
42711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BAR2_SIZE_2M                              0x6
42811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BAR2_SIZE_4M                              0x7
42911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BAR2_SIZE_8M                              0x8
43011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BAR2_SIZE_16M                             0x9
43111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BAR2_SIZE_32M                             0xA
43211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BAR2_SIZE_64M                             0xB
43311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BAR2_SIZE_128M                            0xC
43411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BAR2_SIZE_256M                            0xD
43511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BAR2_SIZE_512M                            0xE
43611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BAR2_SIZE_1G                              0xF
43711e25f0dSDavid C Somayajulu 	/*  Set the duration, in seconds, fan failure signal should be
43811e25f0dSDavid C Somayajulu           sampled */
43911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_FAN_FAILURE_DURATION_MASK                 0x0000F000
44011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_FAN_FAILURE_DURATION_OFFSET               12
44111e25f0dSDavid C Somayajulu 	/*  This field defines the board total budget  for bar2 when disabled
44211e25f0dSDavid C Somayajulu           the regular bar size is used. */
44311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BAR2_TOTAL_BUDGET_MASK                    0x00FF0000
44411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BAR2_TOTAL_BUDGET_OFFSET                  16
44511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BAR2_TOTAL_BUDGET_DISABLED                0x0
44611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BAR2_TOTAL_BUDGET_64K                     0x1
44711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BAR2_TOTAL_BUDGET_128K                    0x2
44811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BAR2_TOTAL_BUDGET_256K                    0x3
44911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BAR2_TOTAL_BUDGET_512K                    0x4
45011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BAR2_TOTAL_BUDGET_1M                      0x5
45111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BAR2_TOTAL_BUDGET_2M                      0x6
45211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BAR2_TOTAL_BUDGET_4M                      0x7
45311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BAR2_TOTAL_BUDGET_8M                      0x8
45411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BAR2_TOTAL_BUDGET_16M                     0x9
45511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BAR2_TOTAL_BUDGET_32M                     0xA
45611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BAR2_TOTAL_BUDGET_64M                     0xB
45711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BAR2_TOTAL_BUDGET_128M                    0xC
45811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BAR2_TOTAL_BUDGET_256M                    0xD
45911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BAR2_TOTAL_BUDGET_512M                    0xE
46011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_BAR2_TOTAL_BUDGET_1G                      0xF
46111e25f0dSDavid C Somayajulu 	/*  Enable/Disable Crash dump triggers */
46211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_CRASH_DUMP_TRIGGER_ENABLE_MASK            0xFF000000
46311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_CRASH_DUMP_TRIGGER_ENABLE_OFFSET          24
46411e25f0dSDavid C Somayajulu 	u32 mps10_txfir_main;                                              /* 0x5C */
46511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE0_TXFIR_MAIN_MASK                     0x000000FF
46611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE0_TXFIR_MAIN_OFFSET                   0
46711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE1_TXFIR_MAIN_MASK                     0x0000FF00
46811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE1_TXFIR_MAIN_OFFSET                   8
46911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE2_TXFIR_MAIN_MASK                     0x00FF0000
47011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE2_TXFIR_MAIN_OFFSET                   16
47111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE3_TXFIR_MAIN_MASK                     0xFF000000
47211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE3_TXFIR_MAIN_OFFSET                   24
47311e25f0dSDavid C Somayajulu 	u32 mps10_txfir_post;                                              /* 0x60 */
47411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE0_TXFIR_POST_MASK                     0x000000FF
47511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE0_TXFIR_POST_OFFSET                   0
47611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE1_TXFIR_POST_MASK                     0x0000FF00
47711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE1_TXFIR_POST_OFFSET                   8
47811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE2_TXFIR_POST_MASK                     0x00FF0000
47911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE2_TXFIR_POST_OFFSET                   16
48011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE3_TXFIR_POST_MASK                     0xFF000000
48111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE3_TXFIR_POST_OFFSET                   24
48211e25f0dSDavid C Somayajulu 	u32 mps25_txfir_main;                                              /* 0x64 */
48311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE0_TXFIR_MAIN_MASK                     0x000000FF
48411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE0_TXFIR_MAIN_OFFSET                   0
48511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE1_TXFIR_MAIN_MASK                     0x0000FF00
48611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE1_TXFIR_MAIN_OFFSET                   8
48711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE2_TXFIR_MAIN_MASK                     0x00FF0000
48811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE2_TXFIR_MAIN_OFFSET                   16
48911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE3_TXFIR_MAIN_MASK                     0xFF000000
49011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE3_TXFIR_MAIN_OFFSET                   24
49111e25f0dSDavid C Somayajulu 	u32 mps25_txfir_post;                                              /* 0x68 */
49211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE0_TXFIR_POST_MASK                     0x000000FF
49311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE0_TXFIR_POST_OFFSET                   0
49411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE1_TXFIR_POST_MASK                     0x0000FF00
49511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE1_TXFIR_POST_OFFSET                   8
49611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE2_TXFIR_POST_MASK                     0x00FF0000
49711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE2_TXFIR_POST_OFFSET                   16
49811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE3_TXFIR_POST_MASK                     0xFF000000
49911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE3_TXFIR_POST_OFFSET                   24
50011e25f0dSDavid C Somayajulu 	u32 manufacture_ver;                                               /* 0x6C */
50111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MANUF0_VER_MASK                           0x0000003F
50211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MANUF0_VER_OFFSET                         0
50311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MANUF1_VER_MASK                           0x00000FC0
50411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MANUF1_VER_OFFSET                         6
50511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MANUF2_VER_MASK                           0x0003F000
50611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MANUF2_VER_OFFSET                         12
50711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MANUF3_VER_MASK                           0x00FC0000
50811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MANUF3_VER_OFFSET                         18
50911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MANUF4_VER_MASK                           0x3F000000
51011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MANUF4_VER_OFFSET                         24
51111e25f0dSDavid C Somayajulu 	/*  Select package id method */
51211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_NCSI_PACKAGE_ID_IO_MASK                   0x40000000
51311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_NCSI_PACKAGE_ID_IO_OFFSET                 30
51411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_NCSI_PACKAGE_ID_IO_NVRAM                  0x0
51511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_NCSI_PACKAGE_ID_IO_IO_PINS                0x1
51611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RECOVERY_MODE_MASK                        0x80000000
51711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RECOVERY_MODE_OFFSET                      31
51811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RECOVERY_MODE_DISABLED                    0x0
51911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RECOVERY_MODE_ENABLED                     0x1
52011e25f0dSDavid C Somayajulu 	u32 manufacture_time;                                              /* 0x70 */
52111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MANUF0_TIME_MASK                          0x0000003F
52211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MANUF0_TIME_OFFSET                        0
52311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MANUF1_TIME_MASK                          0x00000FC0
52411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MANUF1_TIME_OFFSET                        6
52511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MANUF2_TIME_MASK                          0x0003F000
52611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MANUF2_TIME_OFFSET                        12
52711e25f0dSDavid C Somayajulu 	/*  Max MSIX for Ethernet in default mode */
52811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MAX_MSIX_MASK                             0x03FC0000
52911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MAX_MSIX_OFFSET                           18
53011e25f0dSDavid C Somayajulu 	/*  PF Mapping */
53111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PF_MAPPING_MASK                           0x0C000000
53211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PF_MAPPING_OFFSET                         26
53311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PF_MAPPING_CONTINUOUS                     0x0
53411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PF_MAPPING_FIXED                          0x1
5359efd0ba7SDavid C Somayajulu 		#define NVM_CFG1_GLOB_VOLTAGE_REGULATOR_TYPE_MASK               0x30000000
5369efd0ba7SDavid C Somayajulu 		#define NVM_CFG1_GLOB_VOLTAGE_REGULATOR_TYPE_OFFSET             28
5379efd0ba7SDavid C Somayajulu 		#define NVM_CFG1_GLOB_VOLTAGE_REGULATOR_TYPE_DISABLED           0x0
5389efd0ba7SDavid C Somayajulu 		#define NVM_CFG1_GLOB_VOLTAGE_REGULATOR_TYPE_TI                 0x1
539*217ec208SDavid C Somayajulu 	/*  Enable/Disable PCIE Relaxed Ordering */
540*217ec208SDavid C Somayajulu 		#define NVM_CFG1_GLOB_PCIE_RELAXED_ORDERING_MASK                0x40000000
541*217ec208SDavid C Somayajulu 		#define NVM_CFG1_GLOB_PCIE_RELAXED_ORDERING_OFFSET              30
542*217ec208SDavid C Somayajulu 		#define NVM_CFG1_GLOB_PCIE_RELAXED_ORDERING_DISABLED            0x0
543*217ec208SDavid C Somayajulu 		#define NVM_CFG1_GLOB_PCIE_RELAXED_ORDERING_ENABLED             0x1
54411e25f0dSDavid C Somayajulu 	u32 led_global_settings;                                           /* 0x74 */
54511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LED_SWAP_0_MASK                           0x0000000F
54611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LED_SWAP_0_OFFSET                         0
54711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LED_SWAP_1_MASK                           0x000000F0
54811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LED_SWAP_1_OFFSET                         4
54911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LED_SWAP_2_MASK                           0x00000F00
55011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LED_SWAP_2_OFFSET                         8
55111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LED_SWAP_3_MASK                           0x0000F000
55211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LED_SWAP_3_OFFSET                         12
55311e25f0dSDavid C Somayajulu 	/*  Max. continues operating temperature */
55411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MAX_CONT_OPERATING_TEMP_MASK              0x00FF0000
55511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MAX_CONT_OPERATING_TEMP_OFFSET            16
55611e25f0dSDavid C Somayajulu 	/*  GPIO which triggers run-time port swap according to the map
55711e25f0dSDavid C Somayajulu           specified in option 205 */
55811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_MASK               0xFF000000
55911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_OFFSET             24
56011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_NA                 0x0
56111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO0              0x1
56211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO1              0x2
56311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO2              0x3
56411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO3              0x4
56511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO4              0x5
56611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO5              0x6
56711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO6              0x7
56811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO7              0x8
56911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO8              0x9
57011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO9              0xA
57111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO10             0xB
57211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO11             0xC
57311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO12             0xD
57411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO13             0xE
57511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO14             0xF
57611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO15             0x10
57711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO16             0x11
57811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO17             0x12
57911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO18             0x13
58011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO19             0x14
58111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO20             0x15
58211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO21             0x16
58311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO22             0x17
58411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO23             0x18
58511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO24             0x19
58611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO25             0x1A
58711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO26             0x1B
58811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO27             0x1C
58911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO28             0x1D
59011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO29             0x1E
59111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO30             0x1F
59211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO31             0x20
59311e25f0dSDavid C Somayajulu 	u32 generic_cont1;                                                 /* 0x78 */
59411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_AVS_DAC_CODE_MASK                         0x000003FF
59511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_AVS_DAC_CODE_OFFSET                       0
59611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE0_SWAP_MASK                           0x00000C00
59711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE0_SWAP_OFFSET                         10
59811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE1_SWAP_MASK                           0x00003000
59911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE1_SWAP_OFFSET                         12
60011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE2_SWAP_MASK                           0x0000C000
60111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE2_SWAP_OFFSET                         14
60211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE3_SWAP_MASK                           0x00030000
60311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE3_SWAP_OFFSET                         16
60411e25f0dSDavid C Somayajulu 	/*  Enable option 195 - Overriding the PCIe Preset value */
60511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_OVERRIDE_PCIE_PRESET_EQUAL_MASK           0x00040000
60611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_OVERRIDE_PCIE_PRESET_EQUAL_OFFSET         18
60711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_OVERRIDE_PCIE_PRESET_EQUAL_DISABLED       0x0
60811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_OVERRIDE_PCIE_PRESET_EQUAL_ENABLED        0x1
60911e25f0dSDavid C Somayajulu 	/*  PCIe Preset value - applies only if option 194 is enabled */
61011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PCIE_PRESET_VALUE_MASK                    0x00780000
61111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PCIE_PRESET_VALUE_OFFSET                  19
61211e25f0dSDavid C Somayajulu 	/*  Port mapping to be used when the run-time GPIO for port-swap is
61311e25f0dSDavid C Somayajulu           defined and set. */
61411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT0_SWAP_MAP_MASK               0x01800000
61511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT0_SWAP_MAP_OFFSET             23
61611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT1_SWAP_MAP_MASK               0x06000000
61711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT1_SWAP_MAP_OFFSET             25
61811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT2_SWAP_MAP_MASK               0x18000000
61911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT2_SWAP_MAP_OFFSET             27
62011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT3_SWAP_MAP_MASK               0x60000000
62111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_RUNTIME_PORT3_SWAP_MAP_OFFSET             29
62211e25f0dSDavid C Somayajulu 	u32 mbi_version;                                                   /* 0x7C */
62311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MBI_VERSION_0_MASK                        0x000000FF
62411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MBI_VERSION_0_OFFSET                      0
62511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MBI_VERSION_1_MASK                        0x0000FF00
62611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MBI_VERSION_1_OFFSET                      8
62711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MBI_VERSION_2_MASK                        0x00FF0000
62811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MBI_VERSION_2_OFFSET                      16
62911e25f0dSDavid C Somayajulu 	/*  If set to other than NA, 0 - Normal operation, 1 - Thermal event
63011e25f0dSDavid C Somayajulu           occurred */
63111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_MASK                   0xFF000000
63211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_OFFSET                 24
63311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_NA                     0x0
63411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO0                  0x1
63511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO1                  0x2
63611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO2                  0x3
63711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO3                  0x4
63811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO4                  0x5
63911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO5                  0x6
64011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO6                  0x7
64111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO7                  0x8
64211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO8                  0x9
64311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO9                  0xA
64411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO10                 0xB
64511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO11                 0xC
64611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO12                 0xD
64711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO13                 0xE
64811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO14                 0xF
64911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO15                 0x10
65011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO16                 0x11
65111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO17                 0x12
65211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO18                 0x13
65311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO19                 0x14
65411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO20                 0x15
65511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO21                 0x16
65611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO22                 0x17
65711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO23                 0x18
65811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO24                 0x19
65911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO25                 0x1A
66011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO26                 0x1B
66111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO27                 0x1C
66211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO28                 0x1D
66311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO29                 0x1E
66411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO30                 0x1F
66511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO31                 0x20
66611e25f0dSDavid C Somayajulu 	u32 mbi_date;                                                      /* 0x80 */
66711e25f0dSDavid C Somayajulu 	u32 misc_sig;                                                      /* 0x84 */
66811e25f0dSDavid C Somayajulu 	/*  Define the GPIO mapping to switch i2c mux */
66911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO_0_MASK                   0x000000FF
67011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO_0_OFFSET                 0
67111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO_1_MASK                   0x0000FF00
67211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO_1_OFFSET                 8
67311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__NA                      0x0
67411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO0                   0x1
67511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO1                   0x2
67611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO2                   0x3
67711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO3                   0x4
67811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO4                   0x5
67911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO5                   0x6
68011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO6                   0x7
68111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO7                   0x8
68211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO8                   0x9
68311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO9                   0xA
68411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO10                  0xB
68511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO11                  0xC
68611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO12                  0xD
68711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO13                  0xE
68811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO14                  0xF
68911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO15                  0x10
69011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO16                  0x11
69111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO17                  0x12
69211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO18                  0x13
69311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO19                  0x14
69411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO20                  0x15
69511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO21                  0x16
69611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO22                  0x17
69711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO23                  0x18
69811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO24                  0x19
69911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO25                  0x1A
70011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO26                  0x1B
70111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO27                  0x1C
70211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO28                  0x1D
70311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO29                  0x1E
70411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO30                  0x1F
70511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO31                  0x20
70611e25f0dSDavid C Somayajulu 	/*  Interrupt signal used for SMBus/I2C management interface
70711e25f0dSDavid C Somayajulu 
70811e25f0dSDavid C Somayajulu            0 = Interrupt event occurred
70911e25f0dSDavid C Somayajulu           1 = Normal
71011e25f0dSDavid C Somayajulu            */
71111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_MASK                   0x00FF0000
71211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_OFFSET                 16
71311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_NA                     0x0
71411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO0                  0x1
71511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO1                  0x2
71611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO2                  0x3
71711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO3                  0x4
71811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO4                  0x5
71911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO5                  0x6
72011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO6                  0x7
72111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO7                  0x8
72211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO8                  0x9
72311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO9                  0xA
72411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO10                 0xB
72511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO11                 0xC
72611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO12                 0xD
72711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO13                 0xE
72811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO14                 0xF
72911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO15                 0x10
73011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO16                 0x11
73111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO17                 0x12
73211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO18                 0x13
73311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO19                 0x14
73411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO20                 0x15
73511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO21                 0x16
73611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO22                 0x17
73711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO23                 0x18
73811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO24                 0x19
73911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO25                 0x1A
74011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO26                 0x1B
74111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO27                 0x1C
74211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO28                 0x1D
74311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO29                 0x1E
74411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO30                 0x1F
74511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO31                 0x20
74611e25f0dSDavid C Somayajulu 	/*  Set aLOM FAN on GPIO */
74711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_MASK                 0xFF000000
74811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_OFFSET               24
74911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_NA                   0x0
75011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO0                0x1
75111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO1                0x2
75211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO2                0x3
75311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO3                0x4
75411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO4                0x5
75511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO5                0x6
75611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO6                0x7
75711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO7                0x8
75811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO8                0x9
75911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO9                0xA
76011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO10               0xB
76111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO11               0xC
76211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO12               0xD
76311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO13               0xE
76411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO14               0xF
76511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO15               0x10
76611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO16               0x11
76711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO17               0x12
76811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO18               0x13
76911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO19               0x14
77011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO20               0x15
77111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO21               0x16
77211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO22               0x17
77311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO23               0x18
77411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO24               0x19
77511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO25               0x1A
77611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO26               0x1B
77711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO27               0x1C
77811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO28               0x1D
77911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO29               0x1E
78011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO30               0x1F
78111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO31               0x20
78211e25f0dSDavid C Somayajulu 	u32 device_capabilities;                                           /* 0x88 */
78311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_DEVICE_CAPABILITIES_ETHERNET              0x1
78411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_DEVICE_CAPABILITIES_FCOE                  0x2
78511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_DEVICE_CAPABILITIES_ISCSI                 0x4
78611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_DEVICE_CAPABILITIES_ROCE                  0x8
78711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_DEVICE_CAPABILITIES_IWARP                 0x10
78811e25f0dSDavid C Somayajulu 	u32 power_dissipated;                                              /* 0x8C */
78911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_POWER_DIS_D0_MASK                         0x000000FF
79011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_POWER_DIS_D0_OFFSET                       0
79111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_POWER_DIS_D1_MASK                         0x0000FF00
79211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_POWER_DIS_D1_OFFSET                       8
79311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_POWER_DIS_D2_MASK                         0x00FF0000
79411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_POWER_DIS_D2_OFFSET                       16
79511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_POWER_DIS_D3_MASK                         0xFF000000
79611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_POWER_DIS_D3_OFFSET                       24
79711e25f0dSDavid C Somayajulu 	u32 power_consumed;                                                /* 0x90 */
79811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_POWER_CONS_D0_MASK                        0x000000FF
79911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_POWER_CONS_D0_OFFSET                      0
80011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_POWER_CONS_D1_MASK                        0x0000FF00
80111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_POWER_CONS_D1_OFFSET                      8
80211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_POWER_CONS_D2_MASK                        0x00FF0000
80311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_POWER_CONS_D2_OFFSET                      16
80411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_POWER_CONS_D3_MASK                        0xFF000000
80511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_POWER_CONS_D3_OFFSET                      24
80611e25f0dSDavid C Somayajulu 	u32 efi_version;                                                   /* 0x94 */
80711e25f0dSDavid C Somayajulu 	u32 multi_network_modes_capability;                                /* 0x98 */
80811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MULTI_NETWORK_MODES_CAPABILITY_4X10G      0x1
80911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MULTI_NETWORK_MODES_CAPABILITY_1X25G      0x2
81011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MULTI_NETWORK_MODES_CAPABILITY_2X25G      0x4
81111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MULTI_NETWORK_MODES_CAPABILITY_4X25G      0x8
81211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MULTI_NETWORK_MODES_CAPABILITY_1X40G      0x10
81311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MULTI_NETWORK_MODES_CAPABILITY_2X40G      0x20
81411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MULTI_NETWORK_MODES_CAPABILITY_2X50G      0x40
81511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MULTI_NETWORK_MODES_CAPABILITY_BB_1X100G  0x80
81611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_MULTI_NETWORK_MODES_CAPABILITY_2X10G      0x100
81711e25f0dSDavid C Somayajulu 	u32 nvm_cfg_version;                                               /* 0x9C */
81811e25f0dSDavid C Somayajulu 	u32 nvm_cfg_new_option_seq;                                        /* 0xA0 */
81911e25f0dSDavid C Somayajulu 	u32 nvm_cfg_removed_option_seq;                                    /* 0xA4 */
82011e25f0dSDavid C Somayajulu 	u32 nvm_cfg_updated_value_seq;                                     /* 0xA8 */
82111e25f0dSDavid C Somayajulu 	u32 extended_serial_number[8];                                     /* 0xAC */
82211e25f0dSDavid C Somayajulu 	u32 oem1_number[8];                                                /* 0xCC */
82311e25f0dSDavid C Somayajulu 	u32 oem2_number[8];                                                /* 0xEC */
82411e25f0dSDavid C Somayajulu 	u32 mps25_active_txfir_pre;                                       /* 0x10C */
82511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE0_ACT_TXFIR_PRE_MASK                  0x000000FF
82611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE0_ACT_TXFIR_PRE_OFFSET                0
82711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE1_ACT_TXFIR_PRE_MASK                  0x0000FF00
82811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE1_ACT_TXFIR_PRE_OFFSET                8
82911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE2_ACT_TXFIR_PRE_MASK                  0x00FF0000
83011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE2_ACT_TXFIR_PRE_OFFSET                16
83111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE3_ACT_TXFIR_PRE_MASK                  0xFF000000
83211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE3_ACT_TXFIR_PRE_OFFSET                24
83311e25f0dSDavid C Somayajulu 	u32 mps25_active_txfir_main;                                      /* 0x110 */
83411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE0_ACT_TXFIR_MAIN_MASK                 0x000000FF
83511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE0_ACT_TXFIR_MAIN_OFFSET               0
83611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE1_ACT_TXFIR_MAIN_MASK                 0x0000FF00
83711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE1_ACT_TXFIR_MAIN_OFFSET               8
83811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE2_ACT_TXFIR_MAIN_MASK                 0x00FF0000
83911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE2_ACT_TXFIR_MAIN_OFFSET               16
84011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE3_ACT_TXFIR_MAIN_MASK                 0xFF000000
84111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE3_ACT_TXFIR_MAIN_OFFSET               24
84211e25f0dSDavid C Somayajulu 	u32 mps25_active_txfir_post;                                      /* 0x114 */
84311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE0_ACT_TXFIR_POST_MASK                 0x000000FF
84411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE0_ACT_TXFIR_POST_OFFSET               0
84511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE1_ACT_TXFIR_POST_MASK                 0x0000FF00
84611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE1_ACT_TXFIR_POST_OFFSET               8
84711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE2_ACT_TXFIR_POST_MASK                 0x00FF0000
84811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE2_ACT_TXFIR_POST_OFFSET               16
84911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE3_ACT_TXFIR_POST_MASK                 0xFF000000
85011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_LANE3_ACT_TXFIR_POST_OFFSET               24
85111e25f0dSDavid C Somayajulu 	u32 features;                                                     /* 0x118 */
85211e25f0dSDavid C Somayajulu 	/*  Set the Aux Fan on temperature  */
85311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_VALUE_MASK                0x000000FF
85411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_VALUE_OFFSET              0
85511e25f0dSDavid C Somayajulu 	/*  Set NC-SI package ID */
85611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SLOT_ID_GPIO_MASK                         0x0000FF00
85711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SLOT_ID_GPIO_OFFSET                       8
85811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SLOT_ID_GPIO_NA                           0x0
85911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO0                        0x1
86011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO1                        0x2
86111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO2                        0x3
86211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO3                        0x4
86311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO4                        0x5
86411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO5                        0x6
86511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO6                        0x7
86611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO7                        0x8
86711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO8                        0x9
86811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO9                        0xA
86911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO10                       0xB
87011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO11                       0xC
87111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO12                       0xD
87211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO13                       0xE
87311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO14                       0xF
87411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO15                       0x10
87511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO16                       0x11
87611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO17                       0x12
87711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO18                       0x13
87811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO19                       0x14
87911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO20                       0x15
88011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO21                       0x16
88111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO22                       0x17
88211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO23                       0x18
88311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO24                       0x19
88411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO25                       0x1A
88511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO26                       0x1B
88611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO27                       0x1C
88711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO28                       0x1D
88811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO29                       0x1E
88911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO30                       0x1F
89011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO31                       0x20
89111e25f0dSDavid C Somayajulu 	/*  PMBUS Clock GPIO */
89211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_MASK                       0x00FF0000
89311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_OFFSET                     16
89411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_NA                         0x0
89511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO0                      0x1
89611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO1                      0x2
89711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO2                      0x3
89811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO3                      0x4
89911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO4                      0x5
90011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO5                      0x6
90111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO6                      0x7
90211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO7                      0x8
90311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO8                      0x9
90411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO9                      0xA
90511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO10                     0xB
90611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO11                     0xC
90711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO12                     0xD
90811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO13                     0xE
90911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO14                     0xF
91011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO15                     0x10
91111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO16                     0x11
91211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO17                     0x12
91311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO18                     0x13
91411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO19                     0x14
91511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO20                     0x15
91611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO21                     0x16
91711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO22                     0x17
91811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO23                     0x18
91911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO24                     0x19
92011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO25                     0x1A
92111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO26                     0x1B
92211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO27                     0x1C
92311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO28                     0x1D
92411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO29                     0x1E
92511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO30                     0x1F
92611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO31                     0x20
92711e25f0dSDavid C Somayajulu 	/*  PMBUS Data GPIO */
92811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_MASK                       0xFF000000
92911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_OFFSET                     24
93011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_NA                         0x0
93111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO0                      0x1
93211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO1                      0x2
93311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO2                      0x3
93411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO3                      0x4
93511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO4                      0x5
93611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO5                      0x6
93711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO6                      0x7
93811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO7                      0x8
93911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO8                      0x9
94011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO9                      0xA
94111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO10                     0xB
94211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO11                     0xC
94311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO12                     0xD
94411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO13                     0xE
94511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO14                     0xF
94611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO15                     0x10
94711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO16                     0x11
94811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO17                     0x12
94911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO18                     0x13
95011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO19                     0x14
95111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO20                     0x15
95211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO21                     0x16
95311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO22                     0x17
95411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO23                     0x18
95511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO24                     0x19
95611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO25                     0x1A
95711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO26                     0x1B
95811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO27                     0x1C
95911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO28                     0x1D
96011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO29                     0x1E
96111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO30                     0x1F
96211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO31                     0x20
96311e25f0dSDavid C Somayajulu 	u32 tx_rx_eq_25g_hlpc;                                            /* 0x11C */
96411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX0_RX_TX_EQ_25G_HLPC_MASK             0x000000FF
96511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX0_RX_TX_EQ_25G_HLPC_OFFSET           0
96611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX1_RX_TX_EQ_25G_HLPC_MASK             0x0000FF00
96711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX1_RX_TX_EQ_25G_HLPC_OFFSET           8
96811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX2_RX_TX_EQ_25G_HLPC_MASK             0x00FF0000
96911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX2_RX_TX_EQ_25G_HLPC_OFFSET           16
97011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX3_RX_TX_EQ_25G_HLPC_MASK             0xFF000000
97111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX3_RX_TX_EQ_25G_HLPC_OFFSET           24
97211e25f0dSDavid C Somayajulu 	u32 tx_rx_eq_25g_llpc;                                            /* 0x120 */
97311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX0_RX_TX_EQ_25G_LLPC_MASK             0x000000FF
97411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX0_RX_TX_EQ_25G_LLPC_OFFSET           0
97511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX1_RX_TX_EQ_25G_LLPC_MASK             0x0000FF00
97611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX1_RX_TX_EQ_25G_LLPC_OFFSET           8
97711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX2_RX_TX_EQ_25G_LLPC_MASK             0x00FF0000
97811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX2_RX_TX_EQ_25G_LLPC_OFFSET           16
97911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX3_RX_TX_EQ_25G_LLPC_MASK             0xFF000000
98011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX3_RX_TX_EQ_25G_LLPC_OFFSET           24
98111e25f0dSDavid C Somayajulu 	u32 tx_rx_eq_25g_ac;                                              /* 0x124 */
98211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX0_RX_TX_EQ_25G_AC_MASK               0x000000FF
98311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX0_RX_TX_EQ_25G_AC_OFFSET             0
98411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX1_RX_TX_EQ_25G_AC_MASK               0x0000FF00
98511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX1_RX_TX_EQ_25G_AC_OFFSET             8
98611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX2_RX_TX_EQ_25G_AC_MASK               0x00FF0000
98711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX2_RX_TX_EQ_25G_AC_OFFSET             16
98811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX3_RX_TX_EQ_25G_AC_MASK               0xFF000000
98911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX3_RX_TX_EQ_25G_AC_OFFSET             24
99011e25f0dSDavid C Somayajulu 	u32 tx_rx_eq_10g_pc;                                              /* 0x128 */
99111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX0_RX_TX_EQ_10G_PC_MASK               0x000000FF
99211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX0_RX_TX_EQ_10G_PC_OFFSET             0
99311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX1_RX_TX_EQ_10G_PC_MASK               0x0000FF00
99411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX1_RX_TX_EQ_10G_PC_OFFSET             8
99511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX2_RX_TX_EQ_10G_PC_MASK               0x00FF0000
99611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX2_RX_TX_EQ_10G_PC_OFFSET             16
99711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX3_RX_TX_EQ_10G_PC_MASK               0xFF000000
99811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX3_RX_TX_EQ_10G_PC_OFFSET             24
99911e25f0dSDavid C Somayajulu 	u32 tx_rx_eq_10g_ac;                                              /* 0x12C */
100011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX0_RX_TX_EQ_10G_AC_MASK               0x000000FF
100111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX0_RX_TX_EQ_10G_AC_OFFSET             0
100211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX1_RX_TX_EQ_10G_AC_MASK               0x0000FF00
100311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX1_RX_TX_EQ_10G_AC_OFFSET             8
100411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX2_RX_TX_EQ_10G_AC_MASK               0x00FF0000
100511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX2_RX_TX_EQ_10G_AC_OFFSET             16
100611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX3_RX_TX_EQ_10G_AC_MASK               0xFF000000
100711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX3_RX_TX_EQ_10G_AC_OFFSET             24
100811e25f0dSDavid C Somayajulu 	u32 tx_rx_eq_1g;                                                  /* 0x130 */
100911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX0_RX_TX_EQ_1G_MASK                   0x000000FF
101011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX0_RX_TX_EQ_1G_OFFSET                 0
101111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX1_RX_TX_EQ_1G_MASK                   0x0000FF00
101211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX1_RX_TX_EQ_1G_OFFSET                 8
101311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX2_RX_TX_EQ_1G_MASK                   0x00FF0000
101411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX2_RX_TX_EQ_1G_OFFSET                 16
101511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX3_RX_TX_EQ_1G_MASK                   0xFF000000
101611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX3_RX_TX_EQ_1G_OFFSET                 24
101711e25f0dSDavid C Somayajulu 	u32 tx_rx_eq_25g_bt;                                              /* 0x134 */
101811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX0_RX_TX_EQ_25G_BT_MASK               0x000000FF
101911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX0_RX_TX_EQ_25G_BT_OFFSET             0
102011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX1_RX_TX_EQ_25G_BT_MASK               0x0000FF00
102111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX1_RX_TX_EQ_25G_BT_OFFSET             8
102211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX2_RX_TX_EQ_25G_BT_MASK               0x00FF0000
102311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX2_RX_TX_EQ_25G_BT_OFFSET             16
102411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX3_RX_TX_EQ_25G_BT_MASK               0xFF000000
102511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX3_RX_TX_EQ_25G_BT_OFFSET             24
102611e25f0dSDavid C Somayajulu 	u32 tx_rx_eq_10g_bt;                                              /* 0x138 */
102711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX0_RX_TX_EQ_10G_BT_MASK               0x000000FF
102811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX0_RX_TX_EQ_10G_BT_OFFSET             0
102911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX1_RX_TX_EQ_10G_BT_MASK               0x0000FF00
103011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX1_RX_TX_EQ_10G_BT_OFFSET             8
103111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX2_RX_TX_EQ_10G_BT_MASK               0x00FF0000
103211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX2_RX_TX_EQ_10G_BT_OFFSET             16
103311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX3_RX_TX_EQ_10G_BT_MASK               0xFF000000
103411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_INDEX3_RX_TX_EQ_10G_BT_OFFSET             24
103511e25f0dSDavid C Somayajulu 	u32 generic_cont4;                                                /* 0x13C */
103611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_MASK                   0x000000FF
103711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_OFFSET                 0
103811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_NA                     0x0
103911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO0                  0x1
104011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO1                  0x2
104111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO2                  0x3
104211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO3                  0x4
104311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO4                  0x5
104411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO5                  0x6
104511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO6                  0x7
104611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO7                  0x8
104711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO8                  0x9
104811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO9                  0xA
104911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO10                 0xB
105011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO11                 0xC
105111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO12                 0xD
105211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO13                 0xE
105311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO14                 0xF
105411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO15                 0x10
105511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO16                 0x11
105611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO17                 0x12
105711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO18                 0x13
105811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO19                 0x14
105911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO20                 0x15
106011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO21                 0x16
106111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO22                 0x17
106211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO23                 0x18
106311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO24                 0x19
106411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO25                 0x1A
106511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO26                 0x1B
106611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO27                 0x1C
106711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO28                 0x1D
106811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO29                 0x1E
106911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO30                 0x1F
107011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO31                 0x20
107111e25f0dSDavid C Somayajulu 	u32 preboot_debug_mode_std;                                       /* 0x140 */
107211e25f0dSDavid C Somayajulu 	u32 preboot_debug_mode_ext;                                       /* 0x144 */
1073*217ec208SDavid C Somayajulu 	u32 ext_phy_cfg1;                                                 /* 0x148 */
1074*217ec208SDavid C Somayajulu 	/*  Ext PHY MDI pair swap value */
1075*217ec208SDavid C Somayajulu 		#define NVM_CFG1_GLOB_RESERVED_244_MASK                         0x0000FFFF
1076*217ec208SDavid C Somayajulu 		#define NVM_CFG1_GLOB_RESERVED_244_OFFSET                       0
1077*217ec208SDavid C Somayajulu 	u32 clocks;                                                       /* 0x14C */
1078*217ec208SDavid C Somayajulu 	/*  Sets core clock frequency */
1079*217ec208SDavid C Somayajulu 		#define NVM_CFG1_GLOB_MAIN_CLOCK_FREQUENCY_MASK                 0x000000FF
1080*217ec208SDavid C Somayajulu 		#define NVM_CFG1_GLOB_MAIN_CLOCK_FREQUENCY_OFFSET               0
1081*217ec208SDavid C Somayajulu 		#define NVM_CFG1_GLOB_MAIN_CLOCK_FREQUENCY_MAIN_CLK_DEFAULT     0x0
1082*217ec208SDavid C Somayajulu 		#define NVM_CFG1_GLOB_MAIN_CLOCK_FREQUENCY_MAIN_CLK_375         0x1
1083*217ec208SDavid C Somayajulu 		#define NVM_CFG1_GLOB_MAIN_CLOCK_FREQUENCY_MAIN_CLK_350         0x2
1084*217ec208SDavid C Somayajulu 		#define NVM_CFG1_GLOB_MAIN_CLOCK_FREQUENCY_MAIN_CLK_325         0x3
1085*217ec208SDavid C Somayajulu 		#define NVM_CFG1_GLOB_MAIN_CLOCK_FREQUENCY_MAIN_CLK_300         0x4
1086*217ec208SDavid C Somayajulu 		#define NVM_CFG1_GLOB_MAIN_CLOCK_FREQUENCY_MAIN_CLK_280         0x5
1087*217ec208SDavid C Somayajulu 	/*  Sets MAC clock frequency */
1088*217ec208SDavid C Somayajulu 		#define NVM_CFG1_GLOB_MAC_CLOCK_FREQUENCY_MASK                  0x0000FF00
1089*217ec208SDavid C Somayajulu 		#define NVM_CFG1_GLOB_MAC_CLOCK_FREQUENCY_OFFSET                8
1090*217ec208SDavid C Somayajulu 		#define NVM_CFG1_GLOB_MAC_CLOCK_FREQUENCY_MAC_CLK_DEFAULT       0x0
1091*217ec208SDavid C Somayajulu 		#define NVM_CFG1_GLOB_MAC_CLOCK_FREQUENCY_MAC_CLK_782           0x1
1092*217ec208SDavid C Somayajulu 		#define NVM_CFG1_GLOB_MAC_CLOCK_FREQUENCY_MAC_CLK_516           0x2
1093*217ec208SDavid C Somayajulu 	/*  Sets storm clock frequency */
1094*217ec208SDavid C Somayajulu 		#define NVM_CFG1_GLOB_STORM_CLOCK_FREQUENCY_MASK                0x00FF0000
1095*217ec208SDavid C Somayajulu 		#define NVM_CFG1_GLOB_STORM_CLOCK_FREQUENCY_OFFSET              16
1096*217ec208SDavid C Somayajulu 		#define NVM_CFG1_GLOB_STORM_CLOCK_FREQUENCY_STORM_CLK_DEFAULT   0x0
1097*217ec208SDavid C Somayajulu 		#define NVM_CFG1_GLOB_STORM_CLOCK_FREQUENCY_STORM_CLK_1200      0x1
1098*217ec208SDavid C Somayajulu 		#define NVM_CFG1_GLOB_STORM_CLOCK_FREQUENCY_STORM_CLK_1000      0x2
1099*217ec208SDavid C Somayajulu 		#define NVM_CFG1_GLOB_STORM_CLOCK_FREQUENCY_STORM_CLK_900       0x3
1100*217ec208SDavid C Somayajulu 		#define NVM_CFG1_GLOB_STORM_CLOCK_FREQUENCY_STORM_CLK_1100      0x4
1101*217ec208SDavid C Somayajulu 	u32 reserved[54];                                                 /* 0x150 */
110211e25f0dSDavid C Somayajulu };
110311e25f0dSDavid C Somayajulu 
110411e25f0dSDavid C Somayajulu struct nvm_cfg1_path
110511e25f0dSDavid C Somayajulu {
110611e25f0dSDavid C Somayajulu 	u32 reserved[1];                                                    /* 0x0 */
110711e25f0dSDavid C Somayajulu };
110811e25f0dSDavid C Somayajulu 
110911e25f0dSDavid C Somayajulu struct nvm_cfg1_port
111011e25f0dSDavid C Somayajulu {
111111e25f0dSDavid C Somayajulu 	u32 reserved__m_relocated_to_option_123;                            /* 0x0 */
111211e25f0dSDavid C Somayajulu 	u32 reserved__m_relocated_to_option_124;                            /* 0x4 */
111311e25f0dSDavid C Somayajulu 	u32 generic_cont0;                                                  /* 0x8 */
111411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_LED_MODE_MASK                             0x000000FF
111511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_LED_MODE_OFFSET                           0
111611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_LED_MODE_MAC1                             0x0
111711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_LED_MODE_PHY1                             0x1
111811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_LED_MODE_PHY2                             0x2
111911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_LED_MODE_PHY3                             0x3
112011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_LED_MODE_MAC2                             0x4
112111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_LED_MODE_PHY4                             0x5
112211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_LED_MODE_PHY5                             0x6
112311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_LED_MODE_PHY6                             0x7
112411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_LED_MODE_MAC3                             0x8
112511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_LED_MODE_PHY7                             0x9
112611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_LED_MODE_PHY8                             0xA
112711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_LED_MODE_PHY9                             0xB
112811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_LED_MODE_MAC4                             0xC
112911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_LED_MODE_PHY10                            0xD
113011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_LED_MODE_PHY11                            0xE
113111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_LED_MODE_PHY12                            0xF
113211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_LED_MODE_BREAKOUT                         0x10
113311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_ROCE_PRIORITY_MASK                        0x0000FF00
113411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_ROCE_PRIORITY_OFFSET                      8
113511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_DCBX_MODE_MASK                            0x000F0000
113611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_DCBX_MODE_OFFSET                          16
113711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_DCBX_MODE_DISABLED                        0x0
113811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_DCBX_MODE_IEEE                            0x1
113911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_DCBX_MODE_CEE                             0x2
114011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_DCBX_MODE_DYNAMIC                         0x3
114111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_DEFAULT_ENABLED_PROTOCOLS_MASK            0x00F00000
114211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_DEFAULT_ENABLED_PROTOCOLS_OFFSET          20
114311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_DEFAULT_ENABLED_PROTOCOLS_ETHERNET        0x1
114411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_DEFAULT_ENABLED_PROTOCOLS_FCOE            0x2
114511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_DEFAULT_ENABLED_PROTOCOLS_ISCSI           0x4
114611e25f0dSDavid C Somayajulu 	/*  GPIO for HW reset the PHY. In case it is the same for all ports,
114711e25f0dSDavid C Somayajulu           need to set same value for all ports */
114811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXT_PHY_RESET_MASK                        0xFF000000
114911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXT_PHY_RESET_OFFSET                      24
115011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXT_PHY_RESET_NA                          0x0
115111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO0                       0x1
115211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO1                       0x2
115311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO2                       0x3
115411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO3                       0x4
115511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO4                       0x5
115611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO5                       0x6
115711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO6                       0x7
115811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO7                       0x8
115911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO8                       0x9
116011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO9                       0xA
116111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO10                      0xB
116211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO11                      0xC
116311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO12                      0xD
116411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO13                      0xE
116511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO14                      0xF
116611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO15                      0x10
116711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO16                      0x11
116811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO17                      0x12
116911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO18                      0x13
117011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO19                      0x14
117111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO20                      0x15
117211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO21                      0x16
117311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO22                      0x17
117411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO23                      0x18
117511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO24                      0x19
117611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO25                      0x1A
117711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO26                      0x1B
117811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO27                      0x1C
117911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO28                      0x1D
118011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO29                      0x1E
118111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO30                      0x1F
118211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO31                      0x20
118311e25f0dSDavid C Somayajulu 	u32 pcie_cfg;                                                       /* 0xC */
118411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_RESERVED15_MASK                           0x00000007
118511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_RESERVED15_OFFSET                         0
118611e25f0dSDavid C Somayajulu 	u32 features;                                                      /* 0x10 */
118711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_ENABLE_WOL_ON_ACPI_PATTERN_MASK           0x00000001
118811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_ENABLE_WOL_ON_ACPI_PATTERN_OFFSET         0
118911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_ENABLE_WOL_ON_ACPI_PATTERN_DISABLED       0x0
119011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_ENABLE_WOL_ON_ACPI_PATTERN_ENABLED        0x1
119111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MAGIC_PACKET_WOL_MASK                     0x00000002
119211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MAGIC_PACKET_WOL_OFFSET                   1
119311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MAGIC_PACKET_WOL_DISABLED                 0x0
119411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MAGIC_PACKET_WOL_ENABLED                  0x1
119511e25f0dSDavid C Somayajulu 	u32 speed_cap_mask;                                                /* 0x14 */
119611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_MASK            0x0000FFFF
119711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_OFFSET          0
119811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_1G              0x1
119911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_10G             0x2
1200*217ec208SDavid C Somayajulu 		#define NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_20G             0x4
120111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_25G             0x8
120211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_40G             0x10
120311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_50G             0x20
120411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_BB_100G         0x40
120511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MFW_SPEED_CAPABILITY_MASK_MASK            0xFFFF0000
120611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MFW_SPEED_CAPABILITY_MASK_OFFSET          16
120711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MFW_SPEED_CAPABILITY_MASK_1G              0x1
120811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MFW_SPEED_CAPABILITY_MASK_10G             0x2
1209*217ec208SDavid C Somayajulu 		#define NVM_CFG1_PORT_MFW_SPEED_CAPABILITY_MASK_20G             0x4
121011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MFW_SPEED_CAPABILITY_MASK_25G             0x8
121111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MFW_SPEED_CAPABILITY_MASK_40G             0x10
121211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MFW_SPEED_CAPABILITY_MASK_50G             0x20
121311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MFW_SPEED_CAPABILITY_MASK_BB_100G         0x40
121411e25f0dSDavid C Somayajulu 	u32 link_settings;                                                 /* 0x18 */
121511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_DRV_LINK_SPEED_MASK                       0x0000000F
121611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_DRV_LINK_SPEED_OFFSET                     0
121711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_DRV_LINK_SPEED_AUTONEG                    0x0
121811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_DRV_LINK_SPEED_1G                         0x1
121911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_DRV_LINK_SPEED_10G                        0x2
1220*217ec208SDavid C Somayajulu 		#define NVM_CFG1_PORT_DRV_LINK_SPEED_20G                        0x3
122111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_DRV_LINK_SPEED_25G                        0x4
122211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_DRV_LINK_SPEED_40G                        0x5
122311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_DRV_LINK_SPEED_50G                        0x6
122411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_DRV_LINK_SPEED_BB_100G                    0x7
122511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_DRV_FLOW_CONTROL_MASK                     0x00000070
122611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_DRV_FLOW_CONTROL_OFFSET                   4
122711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_DRV_FLOW_CONTROL_AUTONEG                  0x1
122811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_DRV_FLOW_CONTROL_RX                       0x2
122911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_DRV_FLOW_CONTROL_TX                       0x4
123011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MFW_LINK_SPEED_MASK                       0x00000780
123111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MFW_LINK_SPEED_OFFSET                     7
123211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MFW_LINK_SPEED_AUTONEG                    0x0
123311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MFW_LINK_SPEED_1G                         0x1
123411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MFW_LINK_SPEED_10G                        0x2
1235*217ec208SDavid C Somayajulu 		#define NVM_CFG1_PORT_MFW_LINK_SPEED_20G                        0x3
123611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MFW_LINK_SPEED_25G                        0x4
123711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MFW_LINK_SPEED_40G                        0x5
123811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MFW_LINK_SPEED_50G                        0x6
123911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MFW_LINK_SPEED_BB_100G                    0x7
124011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MFW_FLOW_CONTROL_MASK                     0x00003800
124111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MFW_FLOW_CONTROL_OFFSET                   11
124211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MFW_FLOW_CONTROL_AUTONEG                  0x1
124311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MFW_FLOW_CONTROL_RX                       0x2
124411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MFW_FLOW_CONTROL_TX                       0x4
124511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_OPTIC_MODULE_VENDOR_ENFORCEMENT_MASK      0x00004000
124611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_OPTIC_MODULE_VENDOR_ENFORCEMENT_OFFSET    14
124711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_OPTIC_MODULE_VENDOR_ENFORCEMENT_DISABLED  0x0
124811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_OPTIC_MODULE_VENDOR_ENFORCEMENT_ENABLED   0x1
124911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_AN_25G_50G_OUI_MASK                       0x00018000
125011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_AN_25G_50G_OUI_OFFSET                     15
125111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_AN_25G_50G_OUI_CONSORTIUM                 0x0
125211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_AN_25G_50G_OUI_BAM                        0x1
125311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_FEC_FORCE_MODE_MASK                       0x000E0000
125411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_FEC_FORCE_MODE_OFFSET                     17
125511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_FEC_FORCE_MODE_NONE                       0x0
125611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_FEC_FORCE_MODE_FIRECODE                   0x1
125711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_FEC_FORCE_MODE_RS                         0x2
125811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_FEC_FORCE_MODE_AUTO                       0x7
125911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_FEC_AN_MODE_MASK                          0x00700000
126011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_FEC_AN_MODE_OFFSET                        20
126111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_FEC_AN_MODE_NONE                          0x0
126211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_FEC_AN_MODE_10G_FIRECODE                  0x1
126311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_FEC_AN_MODE_25G_FIRECODE                  0x2
126411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_FEC_AN_MODE_10G_AND_25G_FIRECODE          0x3
126511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_FEC_AN_MODE_25G_RS                        0x4
126611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_FEC_AN_MODE_25G_FIRECODE_AND_RS           0x5
126711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_FEC_AN_MODE_ALL                           0x6
126811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_SMARTLINQ_MODE_MASK                       0x00800000
126911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_SMARTLINQ_MODE_OFFSET                     23
127011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_SMARTLINQ_MODE_DISABLED                   0x0
127111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_SMARTLINQ_MODE_ENABLED                    0x1
127211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_RESERVED_WAS_MFW_SMARTLINQ_MASK           0x01000000
127311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_RESERVED_WAS_MFW_SMARTLINQ_OFFSET         24
127411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_RESERVED_WAS_MFW_SMARTLINQ_DISABLED       0x0
127511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_RESERVED_WAS_MFW_SMARTLINQ_ENABLED        0x1
127611e25f0dSDavid C Somayajulu 	u32 phy_cfg;                                                       /* 0x1C */
127711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_OPTIONAL_LINK_MODES_MASK                  0x0000FFFF
127811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_OPTIONAL_LINK_MODES_OFFSET                0
127911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_OPTIONAL_LINK_MODES_HIGIG                 0x1
128011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_OPTIONAL_LINK_MODES_SCRAMBLER             0x2
128111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_OPTIONAL_LINK_MODES_FIBER                 0x4
128211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_OPTIONAL_LINK_MODES_DISABLE_CL72_AN       0x8
128311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_OPTIONAL_LINK_MODES_DISABLE_FEC_AN        0x10
128411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_SERDES_NET_INTERFACE_MASK                 0x00FF0000
128511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_SERDES_NET_INTERFACE_OFFSET               16
128611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_SERDES_NET_INTERFACE_BYPASS               0x0
128711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_SERDES_NET_INTERFACE_KR                   0x2
128811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_SERDES_NET_INTERFACE_KR2                  0x3
128911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_SERDES_NET_INTERFACE_KR4                  0x4
129011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_SERDES_NET_INTERFACE_XFI                  0x8
129111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_SERDES_NET_INTERFACE_SFI                  0x9
129211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_SERDES_NET_INTERFACE_1000X                0xB
129311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_SERDES_NET_INTERFACE_SGMII                0xC
129411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_SERDES_NET_INTERFACE_XLAUI                0x11
129511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_SERDES_NET_INTERFACE_XLPPI                0x12
129611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_SERDES_NET_INTERFACE_CAUI                 0x21
129711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_SERDES_NET_INTERFACE_CPPI                 0x22
129811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_SERDES_NET_INTERFACE_25GAUI               0x31
129911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_AN_MODE_MASK                              0xFF000000
130011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_AN_MODE_OFFSET                            24
130111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_AN_MODE_NONE                              0x0
130211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_AN_MODE_CL73                              0x1
130311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_AN_MODE_CL37                              0x2
130411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_AN_MODE_CL73_BAM                          0x3
130511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_AN_MODE_BB_CL37_BAM                       0x4
130611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_AN_MODE_BB_HPAM                           0x5
130711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_AN_MODE_BB_SGMII                          0x6
130811e25f0dSDavid C Somayajulu 	u32 mgmt_traffic;                                                  /* 0x20 */
130911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_RESERVED61_MASK                           0x0000000F
131011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_RESERVED61_OFFSET                         0
131111e25f0dSDavid C Somayajulu 	u32 ext_phy;                                                       /* 0x24 */
131211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXTERNAL_PHY_TYPE_MASK                    0x000000FF
131311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXTERNAL_PHY_TYPE_OFFSET                  0
131411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXTERNAL_PHY_TYPE_NONE                    0x0
131511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXTERNAL_PHY_TYPE_BCM8485X                0x1
1316*217ec208SDavid C Somayajulu 		#define NVM_CFG1_PORT_EXTERNAL_PHY_TYPE_BCM5422X                0x2
131711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXTERNAL_PHY_ADDRESS_MASK                 0x0000FF00
131811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EXTERNAL_PHY_ADDRESS_OFFSET               8
131911e25f0dSDavid C Somayajulu 	/*  EEE power saving mode */
132011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EEE_POWER_SAVING_MODE_MASK                0x00FF0000
132111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EEE_POWER_SAVING_MODE_OFFSET              16
132211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EEE_POWER_SAVING_MODE_DISABLED            0x0
132311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EEE_POWER_SAVING_MODE_BALANCED            0x1
132411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EEE_POWER_SAVING_MODE_AGGRESSIVE          0x2
132511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_EEE_POWER_SAVING_MODE_LOW_LATENCY         0x3
132611e25f0dSDavid C Somayajulu 	u32 mba_cfg1;                                                      /* 0x28 */
132711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_PREBOOT_OPROM_MASK                        0x00000001
132811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_PREBOOT_OPROM_OFFSET                      0
132911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_PREBOOT_OPROM_DISABLED                    0x0
133011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_PREBOOT_OPROM_ENABLED                     0x1
133111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_RESERVED__M_MBA_BOOT_TYPE_MASK            0x00000006
133211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_RESERVED__M_MBA_BOOT_TYPE_OFFSET          1
133311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MBA_DELAY_TIME_MASK                       0x00000078
133411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MBA_DELAY_TIME_OFFSET                     3
133511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MBA_SETUP_HOT_KEY_MASK                    0x00000080
133611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MBA_SETUP_HOT_KEY_OFFSET                  7
133711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MBA_SETUP_HOT_KEY_CTRL_S                  0x0
133811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MBA_SETUP_HOT_KEY_CTRL_B                  0x1
133911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MBA_HIDE_SETUP_PROMPT_MASK                0x00000100
134011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MBA_HIDE_SETUP_PROMPT_OFFSET              8
134111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MBA_HIDE_SETUP_PROMPT_DISABLED            0x0
134211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MBA_HIDE_SETUP_PROMPT_ENABLED             0x1
134311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_RESERVED5_MASK                            0x0001FE00
134411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_RESERVED5_OFFSET                          9
134511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_PREBOOT_LINK_SPEED_MASK                   0x001E0000
134611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_PREBOOT_LINK_SPEED_OFFSET                 17
134711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_PREBOOT_LINK_SPEED_AUTONEG                0x0
134811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_PREBOOT_LINK_SPEED_1G                     0x1
134911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_PREBOOT_LINK_SPEED_10G                    0x2
1350*217ec208SDavid C Somayajulu 		#define NVM_CFG1_PORT_PREBOOT_LINK_SPEED_20G                    0x3
135111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_PREBOOT_LINK_SPEED_25G                    0x4
135211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_PREBOOT_LINK_SPEED_40G                    0x5
135311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_PREBOOT_LINK_SPEED_50G                    0x6
135411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_PREBOOT_LINK_SPEED_BB_100G                0x7
135511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_RESERVED__M_MBA_BOOT_RETRY_COUNT_MASK     0x00E00000
135611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_RESERVED__M_MBA_BOOT_RETRY_COUNT_OFFSET   21
135711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_RESERVED_WAS_PREBOOT_SMARTLINQ_MASK       0x01000000
135811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_RESERVED_WAS_PREBOOT_SMARTLINQ_OFFSET     24
135911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_RESERVED_WAS_PREBOOT_SMARTLINQ_DISABLED   0x0
136011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_RESERVED_WAS_PREBOOT_SMARTLINQ_ENABLED    0x1
136111e25f0dSDavid C Somayajulu 	u32 mba_cfg2;                                                      /* 0x2C */
136211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_RESERVED65_MASK                           0x0000FFFF
136311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_RESERVED65_OFFSET                         0
136411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_RESERVED66_MASK                           0x00010000
136511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_RESERVED66_OFFSET                         16
13669efd0ba7SDavid C Somayajulu 		#define NVM_CFG1_PORT_PREBOOT_LINK_UP_DELAY_MASK                0x01FE0000
13679efd0ba7SDavid C Somayajulu 		#define NVM_CFG1_PORT_PREBOOT_LINK_UP_DELAY_OFFSET              17
136811e25f0dSDavid C Somayajulu 	u32 vf_cfg;                                                        /* 0x30 */
136911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_RESERVED8_MASK                            0x0000FFFF
137011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_RESERVED8_OFFSET                          0
137111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_RESERVED6_MASK                            0x000F0000
137211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_RESERVED6_OFFSET                          16
137311e25f0dSDavid C Somayajulu 	struct nvm_cfg_mac_address lldp_mac_address;                       /* 0x34 */
137411e25f0dSDavid C Somayajulu 	u32 led_port_settings;                                             /* 0x3C */
137511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_LANE_LED_SPD_0_SEL_MASK                   0x000000FF
137611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_LANE_LED_SPD_0_SEL_OFFSET                 0
137711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_LANE_LED_SPD_1_SEL_MASK                   0x0000FF00
137811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_LANE_LED_SPD_1_SEL_OFFSET                 8
137911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_LANE_LED_SPD_2_SEL_MASK                   0x00FF0000
138011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_LANE_LED_SPD_2_SEL_OFFSET                 16
138111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_LANE_LED_SPD__SEL_1G                      0x1
138211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_LANE_LED_SPD__SEL_10G                     0x2
138311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_LANE_LED_SPD__SEL_AH_25G                  0x4
138411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_LANE_LED_SPD__SEL_BB_25G                  0x8
138511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_LANE_LED_SPD__SEL_AH_40G                  0x8
138611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_LANE_LED_SPD__SEL_BB_40G                  0x10
138711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_LANE_LED_SPD__SEL_AH_50G                  0x10
138811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_LANE_LED_SPD__SEL_BB_50G                  0x20
138911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_LANE_LED_SPD__SEL_BB_100G                 0x40
1390*217ec208SDavid C Somayajulu 	/*  UID LED Blink Mode Settings */
1391*217ec208SDavid C Somayajulu 		#define NVM_CFG1_PORT_UID_LED_MODE_MASK_MASK                    0x0F000000
1392*217ec208SDavid C Somayajulu 		#define NVM_CFG1_PORT_UID_LED_MODE_MASK_OFFSET                  24
1393*217ec208SDavid C Somayajulu 		#define NVM_CFG1_PORT_UID_LED_MODE_MASK_ACTIVITY_LED            0x1
1394*217ec208SDavid C Somayajulu 		#define NVM_CFG1_PORT_UID_LED_MODE_MASK_LINK_LED0               0x2
1395*217ec208SDavid C Somayajulu 		#define NVM_CFG1_PORT_UID_LED_MODE_MASK_LINK_LED1               0x4
1396*217ec208SDavid C Somayajulu 		#define NVM_CFG1_PORT_UID_LED_MODE_MASK_LINK_LED2               0x8
139711e25f0dSDavid C Somayajulu 	u32 transceiver_00;                                                /* 0x40 */
139811e25f0dSDavid C Somayajulu 	/*  Define for mapping of transceiver signal module absent */
139911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TRANS_MODULE_ABS_MASK                     0x000000FF
140011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TRANS_MODULE_ABS_OFFSET                   0
140111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TRANS_MODULE_ABS_NA                       0x0
140211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO0                    0x1
140311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO1                    0x2
140411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO2                    0x3
140511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO3                    0x4
140611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO4                    0x5
140711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO5                    0x6
140811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO6                    0x7
140911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO7                    0x8
141011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO8                    0x9
141111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO9                    0xA
141211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO10                   0xB
141311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO11                   0xC
141411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO12                   0xD
141511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO13                   0xE
141611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO14                   0xF
141711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO15                   0x10
141811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO16                   0x11
141911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO17                   0x12
142011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO18                   0x13
142111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO19                   0x14
142211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO20                   0x15
142311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO21                   0x16
142411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO22                   0x17
142511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO23                   0x18
142611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO24                   0x19
142711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO25                   0x1A
142811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO26                   0x1B
142911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO27                   0x1C
143011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO28                   0x1D
143111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO29                   0x1E
143211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO30                   0x1F
143311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO31                   0x20
143411e25f0dSDavid C Somayajulu 	/*  Define the GPIO mux settings  to switch i2c mux to this port */
143511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_I2C_MUX_SEL_VALUE_0_MASK                  0x00000F00
143611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_I2C_MUX_SEL_VALUE_0_OFFSET                8
143711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_I2C_MUX_SEL_VALUE_1_MASK                  0x0000F000
143811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_I2C_MUX_SEL_VALUE_1_OFFSET                12
143911e25f0dSDavid C Somayajulu 	u32 device_ids;                                                    /* 0x44 */
144011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_ETH_DID_SUFFIX_MASK                       0x000000FF
144111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_ETH_DID_SUFFIX_OFFSET                     0
144211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_FCOE_DID_SUFFIX_MASK                      0x0000FF00
144311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_FCOE_DID_SUFFIX_OFFSET                    8
144411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_ISCSI_DID_SUFFIX_MASK                     0x00FF0000
144511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_ISCSI_DID_SUFFIX_OFFSET                   16
144611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_RESERVED_DID_SUFFIX_MASK                  0xFF000000
144711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_RESERVED_DID_SUFFIX_OFFSET                24
144811e25f0dSDavid C Somayajulu 	u32 board_cfg;                                                     /* 0x48 */
144911e25f0dSDavid C Somayajulu 	/*  This field defines the board technology
145011e25f0dSDavid C Somayajulu           (backpane,transceiver,external PHY) */
145111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_PORT_TYPE_MASK                            0x000000FF
145211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_PORT_TYPE_OFFSET                          0
145311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_PORT_TYPE_UNDEFINED                       0x0
145411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_PORT_TYPE_MODULE                          0x1
145511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_PORT_TYPE_BACKPLANE                       0x2
145611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_PORT_TYPE_EXT_PHY                         0x3
145711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_PORT_TYPE_MODULE_SLAVE                    0x4
145811e25f0dSDavid C Somayajulu 	/*  This field defines the GPIO mapped to tx_disable signal in SFP */
145911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TX_DISABLE_MASK                           0x0000FF00
146011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TX_DISABLE_OFFSET                         8
146111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TX_DISABLE_NA                             0x0
146211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TX_DISABLE_GPIO0                          0x1
146311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TX_DISABLE_GPIO1                          0x2
146411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TX_DISABLE_GPIO2                          0x3
146511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TX_DISABLE_GPIO3                          0x4
146611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TX_DISABLE_GPIO4                          0x5
146711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TX_DISABLE_GPIO5                          0x6
146811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TX_DISABLE_GPIO6                          0x7
146911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TX_DISABLE_GPIO7                          0x8
147011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TX_DISABLE_GPIO8                          0x9
147111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TX_DISABLE_GPIO9                          0xA
147211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TX_DISABLE_GPIO10                         0xB
147311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TX_DISABLE_GPIO11                         0xC
147411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TX_DISABLE_GPIO12                         0xD
147511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TX_DISABLE_GPIO13                         0xE
147611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TX_DISABLE_GPIO14                         0xF
147711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TX_DISABLE_GPIO15                         0x10
147811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TX_DISABLE_GPIO16                         0x11
147911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TX_DISABLE_GPIO17                         0x12
148011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TX_DISABLE_GPIO18                         0x13
148111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TX_DISABLE_GPIO19                         0x14
148211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TX_DISABLE_GPIO20                         0x15
148311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TX_DISABLE_GPIO21                         0x16
148411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TX_DISABLE_GPIO22                         0x17
148511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TX_DISABLE_GPIO23                         0x18
148611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TX_DISABLE_GPIO24                         0x19
148711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TX_DISABLE_GPIO25                         0x1A
148811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TX_DISABLE_GPIO26                         0x1B
148911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TX_DISABLE_GPIO27                         0x1C
149011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TX_DISABLE_GPIO28                         0x1D
149111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TX_DISABLE_GPIO29                         0x1E
149211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TX_DISABLE_GPIO30                         0x1F
149311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_TX_DISABLE_GPIO31                         0x20
149411e25f0dSDavid C Somayajulu 	u32 mnm_10g_cap;                                                   /* 0x4C */
149511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_DRV_SPEED_CAPABILITY_MASK_MASK    0x0000FFFF
149611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_DRV_SPEED_CAPABILITY_MASK_OFFSET  0
149711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_DRV_SPEED_CAPABILITY_MASK_1G      0x1
149811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_DRV_SPEED_CAPABILITY_MASK_10G     0x2
1499*217ec208SDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_DRV_SPEED_CAPABILITY_MASK_20G     0x4
150011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_DRV_SPEED_CAPABILITY_MASK_25G     0x8
150111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_DRV_SPEED_CAPABILITY_MASK_40G     0x10
150211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_DRV_SPEED_CAPABILITY_MASK_50G     0x20
150311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_DRV_SPEED_CAPABILITY_MASK_BB_100G 0x40
150411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_MFW_SPEED_CAPABILITY_MASK_MASK    0xFFFF0000
150511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_MFW_SPEED_CAPABILITY_MASK_OFFSET  16
150611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_MFW_SPEED_CAPABILITY_MASK_1G      0x1
150711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_MFW_SPEED_CAPABILITY_MASK_10G     0x2
1508*217ec208SDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_MFW_SPEED_CAPABILITY_MASK_20G     0x4
150911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_MFW_SPEED_CAPABILITY_MASK_25G     0x8
151011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_MFW_SPEED_CAPABILITY_MASK_40G     0x10
151111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_MFW_SPEED_CAPABILITY_MASK_50G     0x20
151211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_MFW_SPEED_CAPABILITY_MASK_BB_100G 0x40
151311e25f0dSDavid C Somayajulu 	u32 mnm_10g_ctrl;                                                  /* 0x50 */
151411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_DRV_LINK_SPEED_MASK               0x0000000F
151511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_DRV_LINK_SPEED_OFFSET             0
151611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_DRV_LINK_SPEED_AUTONEG            0x0
151711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_DRV_LINK_SPEED_1G                 0x1
151811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_DRV_LINK_SPEED_10G                0x2
1519*217ec208SDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_DRV_LINK_SPEED_20G                0x3
152011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_DRV_LINK_SPEED_25G                0x4
152111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_DRV_LINK_SPEED_40G                0x5
152211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_DRV_LINK_SPEED_50G                0x6
152311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_DRV_LINK_SPEED_BB_100G            0x7
152411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_MFW_LINK_SPEED_MASK               0x000000F0
152511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_MFW_LINK_SPEED_OFFSET             4
152611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_MFW_LINK_SPEED_AUTONEG            0x0
152711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_MFW_LINK_SPEED_1G                 0x1
152811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_MFW_LINK_SPEED_10G                0x2
1529*217ec208SDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_MFW_LINK_SPEED_20G                0x3
153011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_MFW_LINK_SPEED_25G                0x4
153111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_MFW_LINK_SPEED_40G                0x5
153211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_MFW_LINK_SPEED_50G                0x6
153311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_MFW_LINK_SPEED_BB_100G            0x7
153411e25f0dSDavid C Somayajulu 	/*  This field defines the board technology
153511e25f0dSDavid C Somayajulu           (backpane,transceiver,external PHY) */
153611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_PORT_TYPE_MASK                    0x0000FF00
153711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_PORT_TYPE_OFFSET                  8
153811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_PORT_TYPE_UNDEFINED               0x0
153911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_PORT_TYPE_MODULE                  0x1
154011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_PORT_TYPE_BACKPLANE               0x2
154111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_PORT_TYPE_EXT_PHY                 0x3
154211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_PORT_TYPE_MODULE_SLAVE            0x4
154311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_SERDES_NET_INTERFACE_MASK         0x00FF0000
154411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_SERDES_NET_INTERFACE_OFFSET       16
154511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_SERDES_NET_INTERFACE_BYPASS       0x0
154611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_SERDES_NET_INTERFACE_KR           0x2
154711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_SERDES_NET_INTERFACE_KR2          0x3
154811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_SERDES_NET_INTERFACE_KR4          0x4
154911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_SERDES_NET_INTERFACE_XFI          0x8
155011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_SERDES_NET_INTERFACE_SFI          0x9
155111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_SERDES_NET_INTERFACE_1000X        0xB
155211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_SERDES_NET_INTERFACE_SGMII        0xC
155311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_SERDES_NET_INTERFACE_XLAUI        0x11
155411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_SERDES_NET_INTERFACE_XLPPI        0x12
155511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_SERDES_NET_INTERFACE_CAUI         0x21
155611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_SERDES_NET_INTERFACE_CPPI         0x22
155711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_SERDES_NET_INTERFACE_25GAUI       0x31
155811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_ETH_DID_SUFFIX_MASK               0xFF000000
155911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_ETH_DID_SUFFIX_OFFSET             24
156011e25f0dSDavid C Somayajulu 	u32 mnm_10g_misc;                                                  /* 0x54 */
156111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_FEC_FORCE_MODE_MASK               0x00000007
156211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_FEC_FORCE_MODE_OFFSET             0
156311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_FEC_FORCE_MODE_NONE               0x0
156411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_FEC_FORCE_MODE_FIRECODE           0x1
156511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_FEC_FORCE_MODE_RS                 0x2
156611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_10G_FEC_FORCE_MODE_AUTO               0x7
156711e25f0dSDavid C Somayajulu 	u32 mnm_25g_cap;                                                   /* 0x58 */
156811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_DRV_SPEED_CAPABILITY_MASK_MASK    0x0000FFFF
156911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_DRV_SPEED_CAPABILITY_MASK_OFFSET  0
157011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_DRV_SPEED_CAPABILITY_MASK_1G      0x1
157111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_DRV_SPEED_CAPABILITY_MASK_10G     0x2
1572*217ec208SDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_DRV_SPEED_CAPABILITY_MASK_20G     0x4
157311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_DRV_SPEED_CAPABILITY_MASK_25G     0x8
157411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_DRV_SPEED_CAPABILITY_MASK_40G     0x10
157511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_DRV_SPEED_CAPABILITY_MASK_50G     0x20
157611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_DRV_SPEED_CAPABILITY_MASK_BB_100G 0x40
157711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_MFW_SPEED_CAPABILITY_MASK_MASK    0xFFFF0000
157811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_MFW_SPEED_CAPABILITY_MASK_OFFSET  16
157911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_MFW_SPEED_CAPABILITY_MASK_1G      0x1
158011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_MFW_SPEED_CAPABILITY_MASK_10G     0x2
1581*217ec208SDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_MFW_SPEED_CAPABILITY_MASK_20G     0x4
158211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_MFW_SPEED_CAPABILITY_MASK_25G     0x8
158311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_MFW_SPEED_CAPABILITY_MASK_40G     0x10
158411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_MFW_SPEED_CAPABILITY_MASK_50G     0x20
158511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_MFW_SPEED_CAPABILITY_MASK_BB_100G 0x40
158611e25f0dSDavid C Somayajulu 	u32 mnm_25g_ctrl;                                                  /* 0x5C */
158711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_DRV_LINK_SPEED_MASK               0x0000000F
158811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_DRV_LINK_SPEED_OFFSET             0
158911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_DRV_LINK_SPEED_AUTONEG            0x0
159011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_DRV_LINK_SPEED_1G                 0x1
159111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_DRV_LINK_SPEED_10G                0x2
1592*217ec208SDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_DRV_LINK_SPEED_20G                0x3
159311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_DRV_LINK_SPEED_25G                0x4
159411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_DRV_LINK_SPEED_40G                0x5
159511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_DRV_LINK_SPEED_50G                0x6
159611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_DRV_LINK_SPEED_BB_100G            0x7
159711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_MFW_LINK_SPEED_MASK               0x000000F0
159811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_MFW_LINK_SPEED_OFFSET             4
159911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_MFW_LINK_SPEED_AUTONEG            0x0
160011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_MFW_LINK_SPEED_1G                 0x1
160111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_MFW_LINK_SPEED_10G                0x2
1602*217ec208SDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_MFW_LINK_SPEED_20G                0x3
160311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_MFW_LINK_SPEED_25G                0x4
160411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_MFW_LINK_SPEED_40G                0x5
160511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_MFW_LINK_SPEED_50G                0x6
160611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_MFW_LINK_SPEED_BB_100G            0x7
160711e25f0dSDavid C Somayajulu 	/*  This field defines the board technology
160811e25f0dSDavid C Somayajulu           (backpane,transceiver,external PHY) */
160911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_PORT_TYPE_MASK                    0x0000FF00
161011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_PORT_TYPE_OFFSET                  8
161111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_PORT_TYPE_UNDEFINED               0x0
161211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_PORT_TYPE_MODULE                  0x1
161311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_PORT_TYPE_BACKPLANE               0x2
161411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_PORT_TYPE_EXT_PHY                 0x3
161511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_PORT_TYPE_MODULE_SLAVE            0x4
161611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_SERDES_NET_INTERFACE_MASK         0x00FF0000
161711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_SERDES_NET_INTERFACE_OFFSET       16
161811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_SERDES_NET_INTERFACE_BYPASS       0x0
161911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_SERDES_NET_INTERFACE_KR           0x2
162011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_SERDES_NET_INTERFACE_KR2          0x3
162111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_SERDES_NET_INTERFACE_KR4          0x4
162211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_SERDES_NET_INTERFACE_XFI          0x8
162311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_SERDES_NET_INTERFACE_SFI          0x9
162411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_SERDES_NET_INTERFACE_1000X        0xB
162511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_SERDES_NET_INTERFACE_SGMII        0xC
162611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_SERDES_NET_INTERFACE_XLAUI        0x11
162711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_SERDES_NET_INTERFACE_XLPPI        0x12
162811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_SERDES_NET_INTERFACE_CAUI         0x21
162911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_SERDES_NET_INTERFACE_CPPI         0x22
163011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_SERDES_NET_INTERFACE_25GAUI       0x31
163111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_ETH_DID_SUFFIX_MASK               0xFF000000
163211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_ETH_DID_SUFFIX_OFFSET             24
163311e25f0dSDavid C Somayajulu 	u32 mnm_25g_misc;                                                  /* 0x60 */
163411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_FEC_FORCE_MODE_MASK               0x00000007
163511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_FEC_FORCE_MODE_OFFSET             0
163611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_FEC_FORCE_MODE_NONE               0x0
163711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_FEC_FORCE_MODE_FIRECODE           0x1
163811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_FEC_FORCE_MODE_RS                 0x2
163911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_25G_FEC_FORCE_MODE_AUTO               0x7
164011e25f0dSDavid C Somayajulu 	u32 mnm_40g_cap;                                                   /* 0x64 */
164111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_DRV_SPEED_CAPABILITY_MASK_MASK    0x0000FFFF
164211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_DRV_SPEED_CAPABILITY_MASK_OFFSET  0
164311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_DRV_SPEED_CAPABILITY_MASK_1G      0x1
164411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_DRV_SPEED_CAPABILITY_MASK_10G     0x2
1645*217ec208SDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_DRV_SPEED_CAPABILITY_MASK_20G     0x4
164611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_DRV_SPEED_CAPABILITY_MASK_25G     0x8
164711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_DRV_SPEED_CAPABILITY_MASK_40G     0x10
164811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_DRV_SPEED_CAPABILITY_MASK_50G     0x20
164911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_DRV_SPEED_CAPABILITY_MASK_BB_100G 0x40
165011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_MFW_SPEED_CAPABILITY_MASK_MASK    0xFFFF0000
165111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_MFW_SPEED_CAPABILITY_MASK_OFFSET  16
165211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_MFW_SPEED_CAPABILITY_MASK_1G      0x1
165311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_MFW_SPEED_CAPABILITY_MASK_10G     0x2
1654*217ec208SDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_MFW_SPEED_CAPABILITY_MASK_20G     0x4
165511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_MFW_SPEED_CAPABILITY_MASK_25G     0x8
165611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_MFW_SPEED_CAPABILITY_MASK_40G     0x10
165711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_MFW_SPEED_CAPABILITY_MASK_50G     0x20
165811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_MFW_SPEED_CAPABILITY_MASK_BB_100G 0x40
165911e25f0dSDavid C Somayajulu 	u32 mnm_40g_ctrl;                                                  /* 0x68 */
166011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_DRV_LINK_SPEED_MASK               0x0000000F
166111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_DRV_LINK_SPEED_OFFSET             0
166211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_DRV_LINK_SPEED_AUTONEG            0x0
166311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_DRV_LINK_SPEED_1G                 0x1
166411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_DRV_LINK_SPEED_10G                0x2
1665*217ec208SDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_DRV_LINK_SPEED_20G                0x3
166611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_DRV_LINK_SPEED_25G                0x4
166711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_DRV_LINK_SPEED_40G                0x5
166811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_DRV_LINK_SPEED_50G                0x6
166911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_DRV_LINK_SPEED_BB_100G            0x7
167011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_MFW_LINK_SPEED_MASK               0x000000F0
167111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_MFW_LINK_SPEED_OFFSET             4
167211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_MFW_LINK_SPEED_AUTONEG            0x0
167311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_MFW_LINK_SPEED_1G                 0x1
167411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_MFW_LINK_SPEED_10G                0x2
1675*217ec208SDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_MFW_LINK_SPEED_20G                0x3
167611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_MFW_LINK_SPEED_25G                0x4
167711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_MFW_LINK_SPEED_40G                0x5
167811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_MFW_LINK_SPEED_50G                0x6
167911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_MFW_LINK_SPEED_BB_100G            0x7
168011e25f0dSDavid C Somayajulu 	/*  This field defines the board technology
168111e25f0dSDavid C Somayajulu           (backpane,transceiver,external PHY) */
168211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_PORT_TYPE_MASK                    0x0000FF00
168311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_PORT_TYPE_OFFSET                  8
168411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_PORT_TYPE_UNDEFINED               0x0
168511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_PORT_TYPE_MODULE                  0x1
168611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_PORT_TYPE_BACKPLANE               0x2
168711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_PORT_TYPE_EXT_PHY                 0x3
168811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_PORT_TYPE_MODULE_SLAVE            0x4
168911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_SERDES_NET_INTERFACE_MASK         0x00FF0000
169011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_SERDES_NET_INTERFACE_OFFSET       16
169111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_SERDES_NET_INTERFACE_BYPASS       0x0
169211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_SERDES_NET_INTERFACE_KR           0x2
169311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_SERDES_NET_INTERFACE_KR2          0x3
169411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_SERDES_NET_INTERFACE_KR4          0x4
169511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_SERDES_NET_INTERFACE_XFI          0x8
169611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_SERDES_NET_INTERFACE_SFI          0x9
169711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_SERDES_NET_INTERFACE_1000X        0xB
169811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_SERDES_NET_INTERFACE_SGMII        0xC
169911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_SERDES_NET_INTERFACE_XLAUI        0x11
170011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_SERDES_NET_INTERFACE_XLPPI        0x12
170111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_SERDES_NET_INTERFACE_CAUI         0x21
170211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_SERDES_NET_INTERFACE_CPPI         0x22
170311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_SERDES_NET_INTERFACE_25GAUI       0x31
170411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_ETH_DID_SUFFIX_MASK               0xFF000000
170511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_ETH_DID_SUFFIX_OFFSET             24
170611e25f0dSDavid C Somayajulu 	u32 mnm_40g_misc;                                                  /* 0x6C */
170711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_FEC_FORCE_MODE_MASK               0x00000007
170811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_FEC_FORCE_MODE_OFFSET             0
170911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_FEC_FORCE_MODE_NONE               0x0
171011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_FEC_FORCE_MODE_FIRECODE           0x1
171111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_FEC_FORCE_MODE_RS                 0x2
171211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_40G_FEC_FORCE_MODE_AUTO               0x7
171311e25f0dSDavid C Somayajulu 	u32 mnm_50g_cap;                                                   /* 0x70 */
171411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_DRV_SPEED_CAPABILITY_MASK_MASK    0x0000FFFF
171511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_DRV_SPEED_CAPABILITY_MASK_OFFSET  0
171611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_DRV_SPEED_CAPABILITY_MASK_1G      0x1
171711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_DRV_SPEED_CAPABILITY_MASK_10G     0x2
1718*217ec208SDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_DRV_SPEED_CAPABILITY_MASK_20G     0x4
171911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_DRV_SPEED_CAPABILITY_MASK_25G     0x8
172011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_DRV_SPEED_CAPABILITY_MASK_40G     0x10
172111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_DRV_SPEED_CAPABILITY_MASK_50G     0x20
172211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_DRV_SPEED_CAPABILITY_MASK_BB_100G 0x40
172311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_MFW_SPEED_CAPABILITY_MASK_MASK    0xFFFF0000
172411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_MFW_SPEED_CAPABILITY_MASK_OFFSET  16
172511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_MFW_SPEED_CAPABILITY_MASK_1G      0x1
172611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_MFW_SPEED_CAPABILITY_MASK_10G     0x2
1727*217ec208SDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_MFW_SPEED_CAPABILITY_MASK_20G     0x4
172811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_MFW_SPEED_CAPABILITY_MASK_25G     0x8
172911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_MFW_SPEED_CAPABILITY_MASK_40G     0x10
173011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_MFW_SPEED_CAPABILITY_MASK_50G     0x20
173111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_MFW_SPEED_CAPABILITY_MASK_BB_100G 0x40
173211e25f0dSDavid C Somayajulu 	u32 mnm_50g_ctrl;                                                  /* 0x74 */
173311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_DRV_LINK_SPEED_MASK               0x0000000F
173411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_DRV_LINK_SPEED_OFFSET             0
173511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_DRV_LINK_SPEED_AUTONEG            0x0
173611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_DRV_LINK_SPEED_1G                 0x1
173711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_DRV_LINK_SPEED_10G                0x2
1738*217ec208SDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_DRV_LINK_SPEED_20G                0x3
173911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_DRV_LINK_SPEED_25G                0x4
174011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_DRV_LINK_SPEED_40G                0x5
174111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_DRV_LINK_SPEED_50G                0x6
174211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_DRV_LINK_SPEED_BB_100G            0x7
174311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_MFW_LINK_SPEED_MASK               0x000000F0
174411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_MFW_LINK_SPEED_OFFSET             4
174511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_MFW_LINK_SPEED_AUTONEG            0x0
174611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_MFW_LINK_SPEED_1G                 0x1
174711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_MFW_LINK_SPEED_10G                0x2
1748*217ec208SDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_MFW_LINK_SPEED_20G                0x3
174911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_MFW_LINK_SPEED_25G                0x4
175011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_MFW_LINK_SPEED_40G                0x5
175111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_MFW_LINK_SPEED_50G                0x6
175211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_MFW_LINK_SPEED_BB_100G            0x7
175311e25f0dSDavid C Somayajulu 	/*  This field defines the board technology
175411e25f0dSDavid C Somayajulu           (backpane,transceiver,external PHY) */
175511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_PORT_TYPE_MASK                    0x0000FF00
175611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_PORT_TYPE_OFFSET                  8
175711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_PORT_TYPE_UNDEFINED               0x0
175811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_PORT_TYPE_MODULE                  0x1
175911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_PORT_TYPE_BACKPLANE               0x2
176011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_PORT_TYPE_EXT_PHY                 0x3
176111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_PORT_TYPE_MODULE_SLAVE            0x4
176211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_SERDES_NET_INTERFACE_MASK         0x00FF0000
176311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_SERDES_NET_INTERFACE_OFFSET       16
176411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_SERDES_NET_INTERFACE_BYPASS       0x0
176511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_SERDES_NET_INTERFACE_KR           0x2
176611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_SERDES_NET_INTERFACE_KR2          0x3
176711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_SERDES_NET_INTERFACE_KR4          0x4
176811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_SERDES_NET_INTERFACE_XFI          0x8
176911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_SERDES_NET_INTERFACE_SFI          0x9
177011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_SERDES_NET_INTERFACE_1000X        0xB
177111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_SERDES_NET_INTERFACE_SGMII        0xC
177211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_SERDES_NET_INTERFACE_XLAUI        0x11
177311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_SERDES_NET_INTERFACE_XLPPI        0x12
177411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_SERDES_NET_INTERFACE_CAUI         0x21
177511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_SERDES_NET_INTERFACE_CPPI         0x22
177611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_SERDES_NET_INTERFACE_25GAUI       0x31
177711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_ETH_DID_SUFFIX_MASK               0xFF000000
177811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_ETH_DID_SUFFIX_OFFSET             24
177911e25f0dSDavid C Somayajulu 	u32 mnm_50g_misc;                                                  /* 0x78 */
178011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_FEC_FORCE_MODE_MASK               0x00000007
178111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_FEC_FORCE_MODE_OFFSET             0
178211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_FEC_FORCE_MODE_NONE               0x0
178311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_FEC_FORCE_MODE_FIRECODE           0x1
178411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_FEC_FORCE_MODE_RS                 0x2
178511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_50G_FEC_FORCE_MODE_AUTO               0x7
178611e25f0dSDavid C Somayajulu 	u32 mnm_100g_cap;                                                  /* 0x7C */
178711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_DRV_SPEED_CAP_MASK_MASK          0x0000FFFF
178811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_DRV_SPEED_CAP_MASK_OFFSET        0
178911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_DRV_SPEED_CAP_MASK_1G            0x1
179011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_DRV_SPEED_CAP_MASK_10G           0x2
1791*217ec208SDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_DRV_SPEED_CAP_MASK_20G           0x4
179211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_DRV_SPEED_CAP_MASK_25G           0x8
179311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_DRV_SPEED_CAP_MASK_40G           0x10
179411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_DRV_SPEED_CAP_MASK_50G           0x20
179511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_DRV_SPEED_CAP_MASK_BB_100G       0x40
179611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_MFW_SPEED_CAP_MASK_MASK          0xFFFF0000
179711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_MFW_SPEED_CAP_MASK_OFFSET        16
179811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_MFW_SPEED_CAP_MASK_1G            0x1
179911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_MFW_SPEED_CAP_MASK_10G           0x2
1800*217ec208SDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_MFW_SPEED_CAP_MASK_20G           0x4
180111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_MFW_SPEED_CAP_MASK_25G           0x8
180211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_MFW_SPEED_CAP_MASK_40G           0x10
180311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_MFW_SPEED_CAP_MASK_50G           0x20
180411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_MFW_SPEED_CAP_MASK_BB_100G       0x40
180511e25f0dSDavid C Somayajulu 	u32 mnm_100g_ctrl;                                                 /* 0x80 */
180611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_DRV_LINK_SPEED_MASK              0x0000000F
180711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_DRV_LINK_SPEED_OFFSET            0
180811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_DRV_LINK_SPEED_AUTONEG           0x0
180911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_DRV_LINK_SPEED_1G                0x1
181011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_DRV_LINK_SPEED_10G               0x2
1811*217ec208SDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_DRV_LINK_SPEED_20G               0x3
181211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_DRV_LINK_SPEED_25G               0x4
181311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_DRV_LINK_SPEED_40G               0x5
181411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_DRV_LINK_SPEED_50G               0x6
181511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_DRV_LINK_SPEED_BB_100G           0x7
181611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_MFW_LINK_SPEED_MASK              0x000000F0
181711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_MFW_LINK_SPEED_OFFSET            4
181811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_MFW_LINK_SPEED_AUTONEG           0x0
181911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_MFW_LINK_SPEED_1G                0x1
182011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_MFW_LINK_SPEED_10G               0x2
1821*217ec208SDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_MFW_LINK_SPEED_20G               0x3
182211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_MFW_LINK_SPEED_25G               0x4
182311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_MFW_LINK_SPEED_40G               0x5
182411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_MFW_LINK_SPEED_50G               0x6
182511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_MFW_LINK_SPEED_BB_100G           0x7
182611e25f0dSDavid C Somayajulu 	/*  This field defines the board technology
182711e25f0dSDavid C Somayajulu           (backpane,transceiver,external PHY) */
182811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_PORT_TYPE_MASK                   0x0000FF00
182911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_PORT_TYPE_OFFSET                 8
183011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_PORT_TYPE_UNDEFINED              0x0
183111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_PORT_TYPE_MODULE                 0x1
183211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_PORT_TYPE_BACKPLANE              0x2
183311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_PORT_TYPE_EXT_PHY                0x3
183411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_PORT_TYPE_MODULE_SLAVE           0x4
183511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_SERDES_NET_INTERFACE_MASK        0x00FF0000
183611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_SERDES_NET_INTERFACE_OFFSET      16
183711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_SERDES_NET_INTERFACE_BYPASS      0x0
183811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_SERDES_NET_INTERFACE_KR          0x2
183911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_SERDES_NET_INTERFACE_KR2         0x3
184011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_SERDES_NET_INTERFACE_KR4         0x4
184111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_SERDES_NET_INTERFACE_XFI         0x8
184211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_SERDES_NET_INTERFACE_SFI         0x9
184311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_SERDES_NET_INTERFACE_1000X       0xB
184411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_SERDES_NET_INTERFACE_SGMII       0xC
184511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_SERDES_NET_INTERFACE_XLAUI       0x11
184611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_SERDES_NET_INTERFACE_XLPPI       0x12
184711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_SERDES_NET_INTERFACE_CAUI        0x21
184811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_SERDES_NET_INTERFACE_CPPI        0x22
184911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_SERDES_NET_INTERFACE_25GAUI      0x31
185011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_ETH_DID_SUFFIX_MASK              0xFF000000
185111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_ETH_DID_SUFFIX_OFFSET            24
185211e25f0dSDavid C Somayajulu 	u32 mnm_100g_misc;                                                 /* 0x84 */
185311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_FEC_FORCE_MODE_MASK              0x00000007
185411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_FEC_FORCE_MODE_OFFSET            0
185511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_FEC_FORCE_MODE_NONE              0x0
185611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_FEC_FORCE_MODE_FIRECODE          0x1
185711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_FEC_FORCE_MODE_RS                0x2
185811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_MNM_100G_FEC_FORCE_MODE_AUTO              0x7
185911e25f0dSDavid C Somayajulu 	u32 temperature;                                                   /* 0x88 */
186011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_PHY_MODULE_DEAD_TEMP_TH_MASK              0x000000FF
186111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_PHY_MODULE_DEAD_TEMP_TH_OFFSET            0
186211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_PHY_MODULE_ALOM_FAN_ON_TEMP_TH_MASK       0x0000FF00
186311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_PORT_PHY_MODULE_ALOM_FAN_ON_TEMP_TH_OFFSET     8
1864*217ec208SDavid C Somayajulu 	u32 ext_phy_cfg1;                                                  /* 0x8C */
1865*217ec208SDavid C Somayajulu 	/*  Ext PHY MDI pair swap value */
1866*217ec208SDavid C Somayajulu 		#define NVM_CFG1_PORT_EXT_PHY_MDI_PAIR_SWAP_MASK                0x0000FFFF
1867*217ec208SDavid C Somayajulu 		#define NVM_CFG1_PORT_EXT_PHY_MDI_PAIR_SWAP_OFFSET              0
1868*217ec208SDavid C Somayajulu 	u32 reserved[114];                                                 /* 0x90 */
186911e25f0dSDavid C Somayajulu };
187011e25f0dSDavid C Somayajulu 
187111e25f0dSDavid C Somayajulu struct nvm_cfg1_func
187211e25f0dSDavid C Somayajulu {
187311e25f0dSDavid C Somayajulu 	struct nvm_cfg_mac_address mac_address;                             /* 0x0 */
187411e25f0dSDavid C Somayajulu 	u32 rsrv1;                                                          /* 0x8 */
187511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_RESERVED1_MASK                            0x0000FFFF
187611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_RESERVED1_OFFSET                          0
187711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_RESERVED2_MASK                            0xFFFF0000
187811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_RESERVED2_OFFSET                          16
187911e25f0dSDavid C Somayajulu 	u32 rsrv2;                                                          /* 0xC */
188011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_RESERVED3_MASK                            0x0000FFFF
188111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_RESERVED3_OFFSET                          0
188211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_RESERVED4_MASK                            0xFFFF0000
188311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_RESERVED4_OFFSET                          16
188411e25f0dSDavid C Somayajulu 	u32 device_id;                                                     /* 0x10 */
188511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_MF_VENDOR_DEVICE_ID_MASK                  0x0000FFFF
188611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_MF_VENDOR_DEVICE_ID_OFFSET                0
188711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_RESERVED77_MASK                           0xFFFF0000
188811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_RESERVED77_OFFSET                         16
188911e25f0dSDavid C Somayajulu 	u32 cmn_cfg;                                                       /* 0x14 */
189011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_PREBOOT_BOOT_PROTOCOL_MASK                0x00000007
189111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_PREBOOT_BOOT_PROTOCOL_OFFSET              0
189211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_PREBOOT_BOOT_PROTOCOL_PXE                 0x0
189311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_PREBOOT_BOOT_PROTOCOL_ISCSI_BOOT          0x3
189411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_PREBOOT_BOOT_PROTOCOL_FCOE_BOOT           0x4
189511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_PREBOOT_BOOT_PROTOCOL_NONE                0x7
189611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_VF_PCI_DEVICE_ID_MASK                     0x0007FFF8
189711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_VF_PCI_DEVICE_ID_OFFSET                   3
189811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_PERSONALITY_MASK                          0x00780000
189911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_PERSONALITY_OFFSET                        19
190011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_PERSONALITY_ETHERNET                      0x0
190111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_PERSONALITY_ISCSI                         0x1
190211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_PERSONALITY_FCOE                          0x2
190311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_PERSONALITY_ROCE                          0x3
190411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_BANDWIDTH_WEIGHT_MASK                     0x7F800000
190511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_BANDWIDTH_WEIGHT_OFFSET                   23
190611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_PAUSE_ON_HOST_RING_MASK                   0x80000000
190711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_PAUSE_ON_HOST_RING_OFFSET                 31
190811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_PAUSE_ON_HOST_RING_DISABLED               0x0
190911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_PAUSE_ON_HOST_RING_ENABLED                0x1
191011e25f0dSDavid C Somayajulu 	u32 pci_cfg;                                                       /* 0x18 */
191111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_NUMBER_OF_VFS_PER_PF_MASK                 0x0000007F
191211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_NUMBER_OF_VFS_PER_PF_OFFSET               0
191311e25f0dSDavid C Somayajulu 	/*  AH VF BAR2 size */
191411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_VF_PCI_BAR2_SIZE_MASK                     0x00003F80
191511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_VF_PCI_BAR2_SIZE_OFFSET                   7
191611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_VF_PCI_BAR2_SIZE_DISABLED                 0x0
191711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_VF_PCI_BAR2_SIZE_4K                       0x1
191811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_VF_PCI_BAR2_SIZE_8K                       0x2
191911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_VF_PCI_BAR2_SIZE_16K                      0x3
192011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_VF_PCI_BAR2_SIZE_32K                      0x4
192111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_VF_PCI_BAR2_SIZE_64K                      0x5
192211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_VF_PCI_BAR2_SIZE_128K                     0x6
192311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_VF_PCI_BAR2_SIZE_256K                     0x7
192411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_VF_PCI_BAR2_SIZE_512K                     0x8
192511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_VF_PCI_BAR2_SIZE_1M                       0x9
192611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_VF_PCI_BAR2_SIZE_2M                       0xA
192711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_VF_PCI_BAR2_SIZE_4M                       0xB
192811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_VF_PCI_BAR2_SIZE_8M                       0xC
192911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_VF_PCI_BAR2_SIZE_16M                      0xD
193011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_VF_PCI_BAR2_SIZE_32M                      0xE
193111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_VF_PCI_BAR2_SIZE_64M                      0xF
193211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_BAR1_SIZE_MASK                            0x0003C000
193311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_BAR1_SIZE_OFFSET                          14
193411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_BAR1_SIZE_DISABLED                        0x0
193511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_BAR1_SIZE_64K                             0x1
193611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_BAR1_SIZE_128K                            0x2
193711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_BAR1_SIZE_256K                            0x3
193811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_BAR1_SIZE_512K                            0x4
193911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_BAR1_SIZE_1M                              0x5
194011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_BAR1_SIZE_2M                              0x6
194111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_BAR1_SIZE_4M                              0x7
194211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_BAR1_SIZE_8M                              0x8
194311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_BAR1_SIZE_16M                             0x9
194411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_BAR1_SIZE_32M                             0xA
194511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_BAR1_SIZE_64M                             0xB
194611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_BAR1_SIZE_128M                            0xC
194711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_BAR1_SIZE_256M                            0xD
194811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_BAR1_SIZE_512M                            0xE
194911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_BAR1_SIZE_1G                              0xF
195011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_MAX_BANDWIDTH_MASK                        0x03FC0000
195111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_MAX_BANDWIDTH_OFFSET                      18
195211e25f0dSDavid C Somayajulu 	/*  Hide function in npar mode */
195311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_FUNCTION_HIDE_MASK                        0x04000000
195411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_FUNCTION_HIDE_OFFSET                      26
195511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_FUNCTION_HIDE_DISABLED                    0x0
195611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_FUNCTION_HIDE_ENABLED                     0x1
195711e25f0dSDavid C Somayajulu 	/*  AH BAR2 size (per function) */
195811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_BAR2_SIZE_MASK                            0x78000000
195911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_BAR2_SIZE_OFFSET                          27
196011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_BAR2_SIZE_DISABLED                        0x0
196111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_BAR2_SIZE_1M                              0x5
196211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_BAR2_SIZE_2M                              0x6
196311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_BAR2_SIZE_4M                              0x7
196411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_BAR2_SIZE_8M                              0x8
196511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_BAR2_SIZE_16M                             0x9
196611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_BAR2_SIZE_32M                             0xA
196711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_BAR2_SIZE_64M                             0xB
196811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_BAR2_SIZE_128M                            0xC
196911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_BAR2_SIZE_256M                            0xD
197011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_BAR2_SIZE_512M                            0xE
197111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_BAR2_SIZE_1G                              0xF
197211e25f0dSDavid C Somayajulu 	struct nvm_cfg_mac_address fcoe_node_wwn_mac_addr;                 /* 0x1C */
197311e25f0dSDavid C Somayajulu 	struct nvm_cfg_mac_address fcoe_port_wwn_mac_addr;                 /* 0x24 */
197411e25f0dSDavid C Somayajulu 	u32 preboot_generic_cfg;                                           /* 0x2C */
197511e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_PREBOOT_VLAN_VALUE_MASK                   0x0000FFFF
197611e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_PREBOOT_VLAN_VALUE_OFFSET                 0
197711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_PREBOOT_VLAN_MASK                         0x00010000
197811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_PREBOOT_VLAN_OFFSET                       16
197911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_NPAR_ENABLED_PROTOCOL_MASK                0x001E0000
198011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_NPAR_ENABLED_PROTOCOL_OFFSET              17
198111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_NPAR_ENABLED_PROTOCOL_ETHERNET            0x1
198211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_NPAR_ENABLED_PROTOCOL_FCOE                0x2
198311e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_NPAR_ENABLED_PROTOCOL_ISCSI               0x4
198411e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_NPAR_ENABLED_PROTOCOL_RDMA                0x8
198511e25f0dSDavid C Somayajulu 	u32 features;                                                      /* 0x30 */
198611e25f0dSDavid C Somayajulu 	/*  RDMA protocol enablement  */
198711e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_RDMA_ENABLEMENT_MASK                      0x00000003
198811e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_RDMA_ENABLEMENT_OFFSET                    0
198911e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_RDMA_ENABLEMENT_NONE                      0x0
199011e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_RDMA_ENABLEMENT_ROCE                      0x1
199111e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_RDMA_ENABLEMENT_IWARP                     0x2
199211e25f0dSDavid C Somayajulu 		#define NVM_CFG1_FUNC_RDMA_ENABLEMENT_BOTH                      0x3
199311e25f0dSDavid C Somayajulu 	u32 reserved[7];                                                   /* 0x34 */
199411e25f0dSDavid C Somayajulu };
199511e25f0dSDavid C Somayajulu 
199611e25f0dSDavid C Somayajulu struct nvm_cfg1
199711e25f0dSDavid C Somayajulu {
199811e25f0dSDavid C Somayajulu 	struct nvm_cfg1_glob glob;                                          /* 0x0 */
199911e25f0dSDavid C Somayajulu 	struct nvm_cfg1_path path[MCP_GLOB_PATH_MAX];                     /* 0x228 */
200011e25f0dSDavid C Somayajulu 	struct nvm_cfg1_port port[MCP_GLOB_PORT_MAX];                     /* 0x230 */
200111e25f0dSDavid C Somayajulu 	struct nvm_cfg1_func func[MCP_GLOB_FUNC_MAX];                     /* 0xB90 */
200211e25f0dSDavid C Somayajulu };
200311e25f0dSDavid C Somayajulu 
200411e25f0dSDavid C Somayajulu /******************************************
200511e25f0dSDavid C Somayajulu  * nvm_cfg structs
200611e25f0dSDavid C Somayajulu  ******************************************/
2007*217ec208SDavid C Somayajulu 
2008*217ec208SDavid C Somayajulu struct board_info
2009*217ec208SDavid C Somayajulu {
2010*217ec208SDavid C Somayajulu   u16 vendor_id;
2011*217ec208SDavid C Somayajulu   u16 eth_did_suffix;
2012*217ec208SDavid C Somayajulu   u16 sub_vendor_id;
2013*217ec208SDavid C Somayajulu   u16 sub_device_id;
2014*217ec208SDavid C Somayajulu   char *board_name;
2015*217ec208SDavid C Somayajulu   char *friendly_name;
2016*217ec208SDavid C Somayajulu };
2017*217ec208SDavid C Somayajulu 
201811e25f0dSDavid C Somayajulu enum nvm_cfg_sections
201911e25f0dSDavid C Somayajulu {
202011e25f0dSDavid C Somayajulu 	NVM_CFG_SECTION_NVM_CFG1,
202111e25f0dSDavid C Somayajulu 	NVM_CFG_SECTION_MAX
202211e25f0dSDavid C Somayajulu };
202311e25f0dSDavid C Somayajulu 
202411e25f0dSDavid C Somayajulu struct nvm_cfg
202511e25f0dSDavid C Somayajulu {
202611e25f0dSDavid C Somayajulu 	u32 num_sections;
202711e25f0dSDavid C Somayajulu 	u32 sections_offset[NVM_CFG_SECTION_MAX];
202811e25f0dSDavid C Somayajulu 	struct nvm_cfg1 cfg1;
202911e25f0dSDavid C Somayajulu };
203011e25f0dSDavid C Somayajulu 
203111e25f0dSDavid C Somayajulu #endif /* NVM_CFG_H */
2032