1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Copyright(c) 2013 - 2018 Intel Corporation. */ 3 4 #ifndef _I40E_REGISTER_H_ 5 #define _I40E_REGISTER_H_ 6 7 #define I40E_GL_ATQLEN_ATQCRIT_SHIFT 30 8 #define I40E_GL_ATQLEN_ATQCRIT_MASK I40E_MASK(0x1, I40E_GL_ATQLEN_ATQCRIT_SHIFT) 9 #define I40E_PF_ARQBAH 0x00080180 /* Reset: EMPR */ 10 #define I40E_PF_ARQBAL 0x00080080 /* Reset: EMPR */ 11 #define I40E_PF_ARQH 0x00080380 /* Reset: EMPR */ 12 #define I40E_PF_ARQH_ARQH_SHIFT 0 13 #define I40E_PF_ARQH_ARQH_MASK I40E_MASK(0x3FF, I40E_PF_ARQH_ARQH_SHIFT) 14 #define I40E_PF_ARQLEN 0x00080280 /* Reset: EMPR */ 15 #define I40E_PF_ARQLEN_ARQVFE_SHIFT 28 16 #define I40E_PF_ARQLEN_ARQVFE_MASK I40E_MASK(0x1, I40E_PF_ARQLEN_ARQVFE_SHIFT) 17 #define I40E_PF_ARQLEN_ARQOVFL_SHIFT 29 18 #define I40E_PF_ARQLEN_ARQOVFL_MASK I40E_MASK(0x1, I40E_PF_ARQLEN_ARQOVFL_SHIFT) 19 #define I40E_PF_ARQLEN_ARQCRIT_SHIFT 30 20 #define I40E_PF_ARQLEN_ARQCRIT_MASK I40E_MASK(0x1, I40E_PF_ARQLEN_ARQCRIT_SHIFT) 21 #define I40E_PF_ARQLEN_ARQENABLE_SHIFT 31 22 #define I40E_PF_ARQLEN_ARQENABLE_MASK I40E_MASK(0x1u, I40E_PF_ARQLEN_ARQENABLE_SHIFT) 23 #define I40E_PF_ARQT 0x00080480 /* Reset: EMPR */ 24 #define I40E_PF_ATQBAH 0x00080100 /* Reset: EMPR */ 25 #define I40E_PF_ATQBAL 0x00080000 /* Reset: EMPR */ 26 #define I40E_PF_ATQH 0x00080300 /* Reset: EMPR */ 27 #define I40E_PF_ATQLEN 0x00080200 /* Reset: EMPR */ 28 #define I40E_PF_ATQLEN_ATQVFE_SHIFT 28 29 #define I40E_PF_ATQLEN_ATQVFE_MASK I40E_MASK(0x1, I40E_PF_ATQLEN_ATQVFE_SHIFT) 30 #define I40E_PF_ATQLEN_ATQOVFL_SHIFT 29 31 #define I40E_PF_ATQLEN_ATQOVFL_MASK I40E_MASK(0x1, I40E_PF_ATQLEN_ATQOVFL_SHIFT) 32 #define I40E_PF_ATQLEN_ATQCRIT_SHIFT 30 33 #define I40E_PF_ATQLEN_ATQCRIT_MASK I40E_MASK(0x1, I40E_PF_ATQLEN_ATQCRIT_SHIFT) 34 #define I40E_PF_ATQLEN_ATQENABLE_SHIFT 31 35 #define I40E_PF_ATQLEN_ATQENABLE_MASK I40E_MASK(0x1u, I40E_PF_ATQLEN_ATQENABLE_SHIFT) 36 #define I40E_PF_ATQT 0x00080400 /* Reset: EMPR */ 37 #define I40E_PRTDCB_GENC 0x00083000 /* Reset: CORER */ 38 #define I40E_PRTDCB_GENC_PFCLDA_SHIFT 16 39 #define I40E_PRTDCB_GENC_PFCLDA_MASK I40E_MASK(0xFFFF, I40E_PRTDCB_GENC_PFCLDA_SHIFT) 40 #define I40E_PRTDCB_GENS 0x00083020 /* Reset: CORER */ 41 #define I40E_PRTDCB_GENS_DCBX_STATUS_SHIFT 0 42 #define I40E_PRTDCB_GENS_DCBX_STATUS_MASK I40E_MASK(0x7, I40E_PRTDCB_GENS_DCBX_STATUS_SHIFT) 43 #define I40E_GL_FWSTS 0x00083048 /* Reset: POR */ 44 #define I40E_GL_FWSTS_FWS1B_SHIFT 16 45 #define I40E_GL_FWSTS_FWS1B_MASK I40E_MASK(0xFF, I40E_GL_FWSTS_FWS1B_SHIFT) 46 #define I40E_GL_FWSTS_FWS1B_EMPR_0 I40E_MASK(0x20, I40E_GL_FWSTS_FWS1B_SHIFT) 47 #define I40E_GL_FWSTS_FWS1B_EMPR_10 I40E_MASK(0x2A, I40E_GL_FWSTS_FWS1B_SHIFT) 48 #define I40E_XL710_GL_FWSTS_FWS1B_REC_MOD_CORER_MASK I40E_MASK(0x30, I40E_GL_FWSTS_FWS1B_SHIFT) 49 #define I40E_XL710_GL_FWSTS_FWS1B_REC_MOD_GLOBR_MASK I40E_MASK(0x31, I40E_GL_FWSTS_FWS1B_SHIFT) 50 #define I40E_XL710_GL_FWSTS_FWS1B_REC_MOD_TRANSITION_MASK I40E_MASK(0x32, I40E_GL_FWSTS_FWS1B_SHIFT) 51 #define I40E_XL710_GL_FWSTS_FWS1B_REC_MOD_NVM_MASK I40E_MASK(0x33, I40E_GL_FWSTS_FWS1B_SHIFT) 52 #define I40E_X722_GL_FWSTS_FWS1B_REC_MOD_CORER_MASK I40E_MASK(0xB, I40E_GL_FWSTS_FWS1B_SHIFT) 53 #define I40E_X722_GL_FWSTS_FWS1B_REC_MOD_GLOBR_MASK I40E_MASK(0xC, I40E_GL_FWSTS_FWS1B_SHIFT) 54 #define I40E_GLGEN_GPIO_CTL(_i) (0x00088100 + ((_i) * 4)) /* _i=0...29 */ /* Reset: POR */ 55 #define I40E_GLGEN_GPIO_CTL_MAX_INDEX 29 56 #define I40E_GLGEN_GPIO_CTL_PRT_NUM_SHIFT 0 57 #define I40E_GLGEN_GPIO_CTL_PRT_NUM_MASK I40E_MASK(0x3, I40E_GLGEN_GPIO_CTL_PRT_NUM_SHIFT) 58 #define I40E_GLGEN_GPIO_CTL_PRT_NUM_NA_SHIFT 3 59 #define I40E_GLGEN_GPIO_CTL_PRT_NUM_NA_MASK I40E_MASK(0x1, I40E_GLGEN_GPIO_CTL_PRT_NUM_NA_SHIFT) 60 #define I40E_GLGEN_GPIO_CTL_PIN_FUNC_SHIFT 7 61 #define I40E_GLGEN_GPIO_CTL_PIN_FUNC_MASK I40E_MASK(0x7, I40E_GLGEN_GPIO_CTL_PIN_FUNC_SHIFT) 62 #define I40E_GLGEN_GPIO_CTL_LED_BLINK_SHIFT 11 63 #define I40E_GLGEN_GPIO_CTL_LED_MODE_SHIFT 12 64 #define I40E_GLGEN_GPIO_CTL_LED_MODE_MASK I40E_MASK(0x1F, I40E_GLGEN_GPIO_CTL_LED_MODE_SHIFT) 65 #define I40E_GLGEN_MDIO_I2C_SEL(_i) (0x000881C0 + ((_i) * 4)) /* _i=0...3 */ /* Reset: POR */ 66 #define I40E_GLGEN_MSCA(_i) (0x0008818C + ((_i) * 4)) /* _i=0...3 */ /* Reset: POR */ 67 #define I40E_GLGEN_MSCA_MDIADD_SHIFT 0 68 #define I40E_GLGEN_MSCA_DEVADD_SHIFT 16 69 #define I40E_GLGEN_MSCA_PHYADD_SHIFT 21 70 #define I40E_GLGEN_MSCA_OPCODE_SHIFT 26 71 #define I40E_GLGEN_MSCA_STCODE_SHIFT 28 72 #define I40E_GLGEN_MSCA_MDICMD_SHIFT 30 73 #define I40E_GLGEN_MSCA_MDICMD_MASK I40E_MASK(0x1, I40E_GLGEN_MSCA_MDICMD_SHIFT) 74 #define I40E_GLGEN_MSCA_MDIINPROGEN_SHIFT 31 75 #define I40E_GLGEN_MSCA_MDIINPROGEN_MASK I40E_MASK(0x1u, I40E_GLGEN_MSCA_MDIINPROGEN_SHIFT) 76 #define I40E_GLGEN_MSRWD(_i) (0x0008819C + ((_i) * 4)) /* _i=0...3 */ /* Reset: POR */ 77 #define I40E_GLGEN_MSRWD_MDIWRDATA_SHIFT 0 78 #define I40E_GLGEN_MSRWD_MDIRDDATA_SHIFT 16 79 #define I40E_GLGEN_MSRWD_MDIRDDATA_MASK I40E_MASK(0xFFFF, I40E_GLGEN_MSRWD_MDIRDDATA_SHIFT) 80 #define I40E_GLGEN_PCIFCNCNT 0x001C0AB4 /* Reset: PCIR */ 81 #define I40E_GLGEN_PCIFCNCNT_PCIPFCNT_SHIFT 0 82 #define I40E_GLGEN_PCIFCNCNT_PCIPFCNT_MASK I40E_MASK(0x1F, I40E_GLGEN_PCIFCNCNT_PCIPFCNT_SHIFT) 83 #define I40E_GLGEN_PCIFCNCNT_PCIVFCNT_SHIFT 16 84 #define I40E_GLGEN_PCIFCNCNT_PCIVFCNT_MASK I40E_MASK(0xFF, I40E_GLGEN_PCIFCNCNT_PCIVFCNT_SHIFT) 85 #define I40E_GLGEN_RSTAT 0x000B8188 /* Reset: POR */ 86 #define I40E_GLGEN_RSTAT_DEVSTATE_SHIFT 0 87 #define I40E_GLGEN_RSTAT_DEVSTATE_MASK I40E_MASK(0x3, I40E_GLGEN_RSTAT_DEVSTATE_SHIFT) 88 #define I40E_GLGEN_RSTAT_RESET_TYPE_SHIFT 2 89 #define I40E_GLGEN_RSTAT_RESET_TYPE_MASK I40E_MASK(0x3, I40E_GLGEN_RSTAT_RESET_TYPE_SHIFT) 90 #define I40E_GLGEN_RSTCTL 0x000B8180 /* Reset: POR */ 91 #define I40E_GLGEN_RSTCTL_GRSTDEL_SHIFT 0 92 #define I40E_GLGEN_RSTCTL_GRSTDEL_MASK I40E_MASK(0x3F, I40E_GLGEN_RSTCTL_GRSTDEL_SHIFT) 93 #define I40E_GLGEN_RTRIG 0x000B8190 /* Reset: CORER */ 94 #define I40E_GLGEN_RTRIG_CORER_SHIFT 0 95 #define I40E_GLGEN_RTRIG_CORER_MASK I40E_MASK(0x1, I40E_GLGEN_RTRIG_CORER_SHIFT) 96 #define I40E_GLGEN_RTRIG_GLOBR_SHIFT 1 97 #define I40E_GLGEN_RTRIG_GLOBR_MASK I40E_MASK(0x1, I40E_GLGEN_RTRIG_GLOBR_SHIFT) 98 #define I40E_GLGEN_STAT 0x000B612C /* Reset: POR */ 99 #define I40E_GLGEN_VFLRSTAT(_i) (0x00092600 + ((_i) * 4)) /* _i=0...3 */ /* Reset: CORER */ 100 #define I40E_GLVFGEN_TIMER 0x000881BC /* Reset: CORER */ 101 #define I40E_PFGEN_CTRL 0x00092400 /* Reset: PFR */ 102 #define I40E_PFGEN_CTRL_PFSWR_SHIFT 0 103 #define I40E_PFGEN_CTRL_PFSWR_MASK I40E_MASK(0x1, I40E_PFGEN_CTRL_PFSWR_SHIFT) 104 #define I40E_PFGEN_PORTNUM 0x001C0480 /* Reset: CORER */ 105 #define I40E_PFGEN_PORTNUM_PORT_NUM_SHIFT 0 106 #define I40E_PFGEN_PORTNUM_PORT_NUM_MASK I40E_MASK(0x3, I40E_PFGEN_PORTNUM_PORT_NUM_SHIFT) 107 #define I40E_PRTGEN_CNF 0x000B8120 /* Reset: POR */ 108 #define I40E_PRTGEN_CNF_PORT_DIS_SHIFT 0 109 #define I40E_PRTGEN_CNF_PORT_DIS_MASK I40E_MASK(0x1, I40E_PRTGEN_CNF_PORT_DIS_SHIFT) 110 #define I40E_PRTGEN_STATUS 0x000B8100 /* Reset: POR */ 111 #define I40E_VFGEN_RSTAT1(_VF) (0x00074400 + ((_VF) * 4)) /* _i=0...127 */ /* Reset: VFR */ 112 #define I40E_VPGEN_VFRSTAT(_VF) (0x00091C00 + ((_VF) * 4)) /* _i=0...127 */ /* Reset: CORER */ 113 #define I40E_VPGEN_VFRSTAT_VFRD_SHIFT 0 114 #define I40E_VPGEN_VFRSTAT_VFRD_MASK I40E_MASK(0x1, I40E_VPGEN_VFRSTAT_VFRD_SHIFT) 115 #define I40E_VPGEN_VFRTRIG(_VF) (0x00091800 + ((_VF) * 4)) /* _i=0...127 */ /* Reset: CORER */ 116 #define I40E_VPGEN_VFRTRIG_VFSWR_SHIFT 0 117 #define I40E_VPGEN_VFRTRIG_VFSWR_MASK I40E_MASK(0x1, I40E_VPGEN_VFRTRIG_VFSWR_SHIFT) 118 #define I40E_GLHMC_FCOEDDPBASE(_i) (0x000C6600 + ((_i) * 4)) /* _i=0...15 */ /* Reset: CORER */ 119 #define I40E_GLHMC_FCOEDDPBASE_FPMFCOEDDPBASE_SHIFT 0 120 #define I40E_GLHMC_FCOEDDPBASE_FPMFCOEDDPBASE_MASK I40E_MASK(0xFFFFFF, I40E_GLHMC_FCOEDDPBASE_FPMFCOEDDPBASE_SHIFT) 121 #define I40E_GLHMC_FCOEDDPCNT(_i) (0x000C6700 + ((_i) * 4)) /* _i=0...15 */ /* Reset: CORER */ 122 #define I40E_GLHMC_FCOEDDPOBJSZ 0x000C2010 /* Reset: CORER */ 123 #define I40E_GLHMC_FCOEFBASE(_i) (0x000C6800 + ((_i) * 4)) /* _i=0...15 */ /* Reset: CORER */ 124 #define I40E_GLHMC_FCOEFBASE_FPMFCOEFBASE_SHIFT 0 125 #define I40E_GLHMC_FCOEFBASE_FPMFCOEFBASE_MASK I40E_MASK(0xFFFFFF, I40E_GLHMC_FCOEFBASE_FPMFCOEFBASE_SHIFT) 126 #define I40E_GLHMC_FCOEFCNT(_i) (0x000C6900 + ((_i) * 4)) /* _i=0...15 */ /* Reset: CORER */ 127 #define I40E_GLHMC_FCOEFMAX 0x000C20D0 /* Reset: CORER */ 128 #define I40E_GLHMC_FCOEFMAX_PMFCOEFMAX_SHIFT 0 129 #define I40E_GLHMC_FCOEFMAX_PMFCOEFMAX_MASK I40E_MASK(0xFFFF, I40E_GLHMC_FCOEFMAX_PMFCOEFMAX_SHIFT) 130 #define I40E_GLHMC_FCOEFOBJSZ 0x000C2018 /* Reset: CORER */ 131 #define I40E_GLHMC_FCOEMAX 0x000C2014 /* Reset: CORER */ 132 #define I40E_GLHMC_LANQMAX 0x000C2008 /* Reset: CORER */ 133 #define I40E_GLHMC_LANRXBASE(_i) (0x000C6400 + ((_i) * 4)) /* _i=0...15 */ /* Reset: CORER */ 134 #define I40E_GLHMC_LANRXBASE_FPMLANRXBASE_SHIFT 0 135 #define I40E_GLHMC_LANRXBASE_FPMLANRXBASE_MASK I40E_MASK(0xFFFFFF, I40E_GLHMC_LANRXBASE_FPMLANRXBASE_SHIFT) 136 #define I40E_GLHMC_LANRXCNT(_i) (0x000C6500 + ((_i) * 4)) /* _i=0...15 */ /* Reset: CORER */ 137 #define I40E_GLHMC_LANRXOBJSZ 0x000C200c /* Reset: CORER */ 138 #define I40E_GLHMC_LANTXBASE(_i) (0x000C6200 + ((_i) * 4)) /* _i=0...15 */ /* Reset: CORER */ 139 #define I40E_GLHMC_LANTXBASE_FPMLANTXBASE_SHIFT 0 140 #define I40E_GLHMC_LANTXBASE_FPMLANTXBASE_MASK I40E_MASK(0xFFFFFF, I40E_GLHMC_LANTXBASE_FPMLANTXBASE_SHIFT) 141 #define I40E_GLHMC_LANTXCNT(_i) (0x000C6300 + ((_i) * 4)) /* _i=0...15 */ /* Reset: CORER */ 142 #define I40E_GLHMC_LANTXOBJSZ 0x000C2004 /* Reset: CORER */ 143 #define I40E_PFHMC_ERRORDATA 0x000C0500 /* Reset: PFR */ 144 #define I40E_PFHMC_ERRORINFO 0x000C0400 /* Reset: PFR */ 145 #define I40E_PFHMC_PDINV 0x000C0300 /* Reset: PFR */ 146 #define I40E_PFHMC_PDINV_PMSDIDX_SHIFT 0 147 #define I40E_PFHMC_PDINV_PMPDIDX_SHIFT 16 148 #define I40E_PFHMC_SDCMD 0x000C0000 /* Reset: PFR */ 149 #define I40E_PFHMC_SDCMD_PMSDWR_SHIFT 31 150 #define I40E_PFHMC_SDDATAHIGH 0x000C0200 /* Reset: PFR */ 151 #define I40E_PFHMC_SDDATALOW 0x000C0100 /* Reset: PFR */ 152 #define I40E_PFHMC_SDDATALOW_PMSDVALID_SHIFT 0 153 #define I40E_PFHMC_SDDATALOW_PMSDTYPE_SHIFT 1 154 #define I40E_PFHMC_SDDATALOW_PMSDBPCOUNT_SHIFT 2 155 #define I40E_PFGEN_PORTMDIO_NUM 0x0003F100 /* Reset: CORER */ 156 #define I40E_PFGEN_PORTMDIO_NUM_VFLINK_STAT_ENA_SHIFT 4 157 #define I40E_PFGEN_PORTMDIO_NUM_VFLINK_STAT_ENA_MASK I40E_MASK(0x1, I40E_PFGEN_PORTMDIO_NUM_VFLINK_STAT_ENA_SHIFT) 158 #define I40E_PFINT_AEQCTL 0x00038700 /* Reset: CORER */ 159 #define I40E_PFINT_AEQCTL_MSIX_INDX_SHIFT 0 160 #define I40E_PFINT_AEQCTL_ITR_INDX_SHIFT 11 161 #define I40E_PFINT_AEQCTL_CAUSE_ENA_SHIFT 30 162 #define I40E_PFINT_AEQCTL_CAUSE_ENA_MASK I40E_MASK(0x1, I40E_PFINT_AEQCTL_CAUSE_ENA_SHIFT) 163 #define I40E_PFINT_CEQCTL(_INTPF) (0x00036800 + ((_INTPF) * 4)) /* _i=0...511 */ /* Reset: CORER */ 164 #define I40E_PFINT_CEQCTL_MSIX_INDX_SHIFT 0 165 #define I40E_PFINT_CEQCTL_ITR_INDX_SHIFT 11 166 #define I40E_PFINT_CEQCTL_NEXTQ_INDX_SHIFT 16 167 #define I40E_PFINT_CEQCTL_CAUSE_ENA_SHIFT 30 168 #define I40E_PFINT_CEQCTL_CAUSE_ENA_MASK I40E_MASK(0x1, I40E_PFINT_CEQCTL_CAUSE_ENA_SHIFT) 169 #define I40E_GLINT_CTL 0x0003F800 /* Reset: CORER */ 170 #define I40E_GLINT_CTL_DIS_AUTOMASK_VF0_SHIFT 1 171 #define I40E_GLINT_CTL_DIS_AUTOMASK_VF0_MASK I40E_MASK(0x1, I40E_GLINT_CTL_DIS_AUTOMASK_VF0_SHIFT) 172 #define I40E_PFINT_DYN_CTL0 0x00038480 /* Reset: PFR */ 173 #define I40E_PFINT_DYN_CTL0_INTENA_SHIFT 0 174 #define I40E_PFINT_DYN_CTL0_INTENA_MASK I40E_MASK(0x1, I40E_PFINT_DYN_CTL0_INTENA_SHIFT) 175 #define I40E_PFINT_DYN_CTL0_CLEARPBA_SHIFT 1 176 #define I40E_PFINT_DYN_CTL0_CLEARPBA_MASK I40E_MASK(0x1, I40E_PFINT_DYN_CTL0_CLEARPBA_SHIFT) 177 #define I40E_PFINT_DYN_CTL0_SWINT_TRIG_SHIFT 2 178 #define I40E_PFINT_DYN_CTL0_SWINT_TRIG_MASK I40E_MASK(0x1, I40E_PFINT_DYN_CTL0_SWINT_TRIG_SHIFT) 179 #define I40E_PFINT_DYN_CTL0_ITR_INDX_SHIFT 3 180 #define I40E_PFINT_DYN_CTL0_ITR_INDX_MASK I40E_MASK(0x3, I40E_PFINT_DYN_CTL0_ITR_INDX_SHIFT) 181 #define I40E_PFINT_DYN_CTL0_SW_ITR_INDX_ENA_SHIFT 24 182 #define I40E_PFINT_DYN_CTL0_SW_ITR_INDX_ENA_MASK I40E_MASK(0x1, I40E_PFINT_DYN_CTL0_SW_ITR_INDX_ENA_SHIFT) 183 #define I40E_PFINT_DYN_CTL0_SW_ITR_INDX_SHIFT 25 184 #define I40E_PFINT_DYN_CTL0_SW_ITR_INDX_MASK I40E_MASK(0x3, I40E_PFINT_DYN_CTL0_SW_ITR_INDX_SHIFT) 185 #define I40E_PFINT_DYN_CTL0_INTENA_MSK_SHIFT 31 186 #define I40E_PFINT_DYN_CTL0_INTENA_MSK_MASK I40E_MASK(0x1, I40E_PFINT_DYN_CTL0_INTENA_MSK_SHIFT) 187 #define I40E_PFINT_DYN_CTLN(_INTPF) (0x00034800 + ((_INTPF) * 4)) /* _i=0...511 */ /* Reset: PFR */ 188 #define I40E_PFINT_DYN_CTLN_INTENA_SHIFT 0 189 #define I40E_PFINT_DYN_CTLN_INTENA_MASK I40E_MASK(0x1, I40E_PFINT_DYN_CTLN_INTENA_SHIFT) 190 #define I40E_PFINT_DYN_CTLN_CLEARPBA_SHIFT 1 191 #define I40E_PFINT_DYN_CTLN_CLEARPBA_MASK I40E_MASK(0x1, I40E_PFINT_DYN_CTLN_CLEARPBA_SHIFT) 192 #define I40E_PFINT_DYN_CTLN_SWINT_TRIG_SHIFT 2 193 #define I40E_PFINT_DYN_CTLN_SWINT_TRIG_MASK I40E_MASK(0x1, I40E_PFINT_DYN_CTLN_SWINT_TRIG_SHIFT) 194 #define I40E_PFINT_DYN_CTLN_ITR_INDX_SHIFT 3 195 #define I40E_PFINT_DYN_CTLN_ITR_INDX_MASK I40E_MASK(0x3, I40E_PFINT_DYN_CTLN_ITR_INDX_SHIFT) 196 #define I40E_PFINT_DYN_CTLN_INTERVAL_SHIFT 5 197 #define I40E_PFINT_DYN_CTLN_SW_ITR_INDX_ENA_SHIFT 24 198 #define I40E_PFINT_DYN_CTLN_SW_ITR_INDX_ENA_MASK I40E_MASK(0x1, I40E_PFINT_DYN_CTLN_SW_ITR_INDX_ENA_SHIFT) 199 #define I40E_PFINT_ICR0 0x00038780 /* Reset: CORER */ 200 #define I40E_PFINT_ICR0_INTEVENT_SHIFT 0 201 #define I40E_PFINT_ICR0_INTEVENT_MASK I40E_MASK(0x1, I40E_PFINT_ICR0_INTEVENT_SHIFT) 202 #define I40E_PFINT_ICR0_QUEUE_0_SHIFT 1 203 #define I40E_PFINT_ICR0_QUEUE_0_MASK I40E_MASK(0x1, I40E_PFINT_ICR0_QUEUE_0_SHIFT) 204 #define I40E_PFINT_ICR0_ECC_ERR_SHIFT 16 205 #define I40E_PFINT_ICR0_ECC_ERR_MASK I40E_MASK(0x1, I40E_PFINT_ICR0_ECC_ERR_SHIFT) 206 #define I40E_PFINT_ICR0_MAL_DETECT_SHIFT 19 207 #define I40E_PFINT_ICR0_MAL_DETECT_MASK I40E_MASK(0x1, I40E_PFINT_ICR0_MAL_DETECT_SHIFT) 208 #define I40E_PFINT_ICR0_GRST_SHIFT 20 209 #define I40E_PFINT_ICR0_GRST_MASK I40E_MASK(0x1, I40E_PFINT_ICR0_GRST_SHIFT) 210 #define I40E_PFINT_ICR0_PCI_EXCEPTION_SHIFT 21 211 #define I40E_PFINT_ICR0_PCI_EXCEPTION_MASK I40E_MASK(0x1, I40E_PFINT_ICR0_PCI_EXCEPTION_SHIFT) 212 #define I40E_PFINT_ICR0_TIMESYNC_SHIFT 23 213 #define I40E_PFINT_ICR0_TIMESYNC_MASK I40E_MASK(0x1, I40E_PFINT_ICR0_TIMESYNC_SHIFT) 214 #define I40E_PFINT_ICR0_HMC_ERR_SHIFT 26 215 #define I40E_PFINT_ICR0_HMC_ERR_MASK I40E_MASK(0x1, I40E_PFINT_ICR0_HMC_ERR_SHIFT) 216 #define I40E_PFINT_ICR0_PE_CRITERR_SHIFT 28 217 #define I40E_PFINT_ICR0_PE_CRITERR_MASK I40E_MASK(0x1, I40E_PFINT_ICR0_PE_CRITERR_SHIFT) 218 #define I40E_PFINT_ICR0_VFLR_SHIFT 29 219 #define I40E_PFINT_ICR0_VFLR_MASK I40E_MASK(0x1, I40E_PFINT_ICR0_VFLR_SHIFT) 220 #define I40E_PFINT_ICR0_ADMINQ_SHIFT 30 221 #define I40E_PFINT_ICR0_ADMINQ_MASK I40E_MASK(0x1, I40E_PFINT_ICR0_ADMINQ_SHIFT) 222 #define I40E_PFINT_ICR0_SWINT_SHIFT 31 223 #define I40E_PFINT_ICR0_SWINT_MASK I40E_MASK(0x1, I40E_PFINT_ICR0_SWINT_SHIFT) 224 #define I40E_PFINT_ICR0_ENA 0x00038800 /* Reset: CORER */ 225 #define I40E_PFINT_ICR0_ENA_ECC_ERR_SHIFT 16 226 #define I40E_PFINT_ICR0_ENA_ECC_ERR_MASK I40E_MASK(0x1, I40E_PFINT_ICR0_ENA_ECC_ERR_SHIFT) 227 #define I40E_PFINT_ICR0_ENA_MAL_DETECT_SHIFT 19 228 #define I40E_PFINT_ICR0_ENA_MAL_DETECT_MASK I40E_MASK(0x1, I40E_PFINT_ICR0_ENA_MAL_DETECT_SHIFT) 229 #define I40E_PFINT_ICR0_ENA_GRST_SHIFT 20 230 #define I40E_PFINT_ICR0_ENA_GRST_MASK I40E_MASK(0x1, I40E_PFINT_ICR0_ENA_GRST_SHIFT) 231 #define I40E_PFINT_ICR0_ENA_PCI_EXCEPTION_SHIFT 21 232 #define I40E_PFINT_ICR0_ENA_PCI_EXCEPTION_MASK I40E_MASK(0x1, I40E_PFINT_ICR0_ENA_PCI_EXCEPTION_SHIFT) 233 #define I40E_PFINT_ICR0_ENA_GPIO_SHIFT 22 234 #define I40E_PFINT_ICR0_ENA_GPIO_MASK I40E_MASK(0x1, I40E_PFINT_ICR0_ENA_GPIO_SHIFT) 235 #define I40E_PFINT_ICR0_ENA_TIMESYNC_SHIFT 23 236 #define I40E_PFINT_ICR0_ENA_TIMESYNC_MASK I40E_MASK(0x1, I40E_PFINT_ICR0_ENA_TIMESYNC_SHIFT) 237 #define I40E_PFINT_ICR0_ENA_HMC_ERR_SHIFT 26 238 #define I40E_PFINT_ICR0_ENA_HMC_ERR_MASK I40E_MASK(0x1, I40E_PFINT_ICR0_ENA_HMC_ERR_SHIFT) 239 #define I40E_PFINT_ICR0_ENA_PE_CRITERR_SHIFT 28 240 #define I40E_PFINT_ICR0_ENA_PE_CRITERR_MASK I40E_MASK(0x1, I40E_PFINT_ICR0_ENA_PE_CRITERR_SHIFT) 241 #define I40E_PFINT_ICR0_ENA_VFLR_SHIFT 29 242 #define I40E_PFINT_ICR0_ENA_VFLR_MASK I40E_MASK(0x1, I40E_PFINT_ICR0_ENA_VFLR_SHIFT) 243 #define I40E_PFINT_ICR0_ENA_ADMINQ_SHIFT 30 244 #define I40E_PFINT_ICR0_ENA_ADMINQ_MASK I40E_MASK(0x1, I40E_PFINT_ICR0_ENA_ADMINQ_SHIFT) 245 #define I40E_PFINT_ITR0(_i) (0x00038000 + ((_i) * 128)) /* _i=0...2 */ /* Reset: PFR */ 246 #define I40E_PFINT_ITRN(_i, _INTPF) (0x00030000 + ((_i) * 2048 + (_INTPF) * 4)) /* _i=0...2, _INTPF=0...511 */ /* Reset: PFR */ 247 #define I40E_PFINT_LNKLST0 0x00038500 /* Reset: PFR */ 248 #define I40E_PFINT_LNKLST0_FIRSTQ_INDX_SHIFT 0 249 #define I40E_PFINT_LNKLSTN(_INTPF) (0x00035000 + ((_INTPF) * 4)) /* _i=0...511 */ /* Reset: PFR */ 250 #define I40E_PFINT_LNKLSTN_FIRSTQ_INDX_SHIFT 0 251 #define I40E_PFINT_LNKLSTN_FIRSTQ_INDX_MASK I40E_MASK(0x7FF, I40E_PFINT_LNKLSTN_FIRSTQ_INDX_SHIFT) 252 #define I40E_PFINT_LNKLSTN_FIRSTQ_TYPE_SHIFT 11 253 #define I40E_PFINT_RATEN(_INTPF) (0x00035800 + ((_INTPF) * 4)) /* _i=0...511 */ /* Reset: PFR */ 254 #define I40E_PFINT_STAT_CTL0 0x00038400 /* Reset: CORER */ 255 #define I40E_QINT_RQCTL(_Q) (0x0003A000 + ((_Q) * 4)) /* _i=0...1535 */ /* Reset: CORER */ 256 #define I40E_QINT_RQCTL_MSIX_INDX_SHIFT 0 257 #define I40E_QINT_RQCTL_MSIX_INDX_MASK I40E_MASK(0xFF, I40E_QINT_RQCTL_MSIX_INDX_SHIFT) 258 #define I40E_QINT_RQCTL_ITR_INDX_SHIFT 11 259 #define I40E_QINT_RQCTL_ITR_INDX_MASK I40E_MASK(0x3, I40E_QINT_RQCTL_ITR_INDX_SHIFT) 260 #define I40E_QINT_RQCTL_MSIX0_INDX_SHIFT 13 261 #define I40E_QINT_RQCTL_MSIX0_INDX_MASK I40E_MASK(0x7, I40E_QINT_RQCTL_MSIX0_INDX_SHIFT) 262 #define I40E_QINT_RQCTL_NEXTQ_INDX_SHIFT 16 263 #define I40E_QINT_RQCTL_NEXTQ_INDX_MASK I40E_MASK(0x7FF, I40E_QINT_RQCTL_NEXTQ_INDX_SHIFT) 264 #define I40E_QINT_RQCTL_NEXTQ_TYPE_SHIFT 27 265 #define I40E_QINT_RQCTL_CAUSE_ENA_SHIFT 30 266 #define I40E_QINT_RQCTL_CAUSE_ENA_MASK I40E_MASK(0x1, I40E_QINT_RQCTL_CAUSE_ENA_SHIFT) 267 #define I40E_QINT_RQCTL_INTEVENT_SHIFT 31 268 #define I40E_QINT_RQCTL_INTEVENT_MASK I40E_MASK(0x1, I40E_QINT_RQCTL_INTEVENT_SHIFT) 269 #define I40E_QINT_TQCTL(_Q) (0x0003C000 + ((_Q) * 4)) /* _i=0...1535 */ /* Reset: CORER */ 270 #define I40E_QINT_TQCTL_MSIX_INDX_SHIFT 0 271 #define I40E_QINT_TQCTL_MSIX_INDX_MASK I40E_MASK(0xFF, I40E_QINT_TQCTL_MSIX_INDX_SHIFT) 272 #define I40E_QINT_TQCTL_ITR_INDX_SHIFT 11 273 #define I40E_QINT_TQCTL_ITR_INDX_MASK I40E_MASK(0x3, I40E_QINT_TQCTL_ITR_INDX_SHIFT) 274 #define I40E_QINT_TQCTL_MSIX0_INDX_SHIFT 13 275 #define I40E_QINT_TQCTL_MSIX0_INDX_MASK I40E_MASK(0x7, I40E_QINT_TQCTL_MSIX0_INDX_SHIFT) 276 #define I40E_QINT_TQCTL_NEXTQ_INDX_SHIFT 16 277 #define I40E_QINT_TQCTL_NEXTQ_INDX_MASK I40E_MASK(0x7FF, I40E_QINT_TQCTL_NEXTQ_INDX_SHIFT) 278 #define I40E_QINT_TQCTL_NEXTQ_TYPE_SHIFT 27 279 #define I40E_QINT_TQCTL_CAUSE_ENA_SHIFT 30 280 #define I40E_QINT_TQCTL_CAUSE_ENA_MASK I40E_MASK(0x1, I40E_QINT_TQCTL_CAUSE_ENA_SHIFT) 281 #define I40E_QINT_TQCTL_INTEVENT_SHIFT 31 282 #define I40E_QINT_TQCTL_INTEVENT_MASK I40E_MASK(0x1, I40E_QINT_TQCTL_INTEVENT_SHIFT) 283 #define I40E_VFINT_DYN_CTL0(_VF) (0x0002A400 + ((_VF) * 4)) /* _i=0...127 */ /* Reset: VFR */ 284 #define I40E_VFINT_DYN_CTLN(_INTVF) (0x00024800 + ((_INTVF) * 4)) /* _i=0...511 */ /* Reset: VFR */ 285 #define I40E_VFINT_DYN_CTLN_CLEARPBA_SHIFT 1 286 #define I40E_VFINT_DYN_CTLN_CLEARPBA_MASK I40E_MASK(0x1, I40E_VFINT_DYN_CTLN_CLEARPBA_SHIFT) 287 #define I40E_VFINT_ICR0_ADMINQ_SHIFT 30 288 #define I40E_VFINT_ICR0_ADMINQ_MASK I40E_MASK(0x1, I40E_VFINT_ICR0_ADMINQ_SHIFT) 289 #define I40E_VFINT_ICR0_ENA(_VF) (0x0002C000 + ((_VF) * 4)) /* _i=0...127 */ /* Reset: CORER */ 290 #define I40E_VPINT_AEQCTL(_VF) (0x0002B800 + ((_VF) * 4)) /* _i=0...127 */ /* Reset: CORER */ 291 #define I40E_VPINT_AEQCTL_MSIX_INDX_SHIFT 0 292 #define I40E_VPINT_AEQCTL_ITR_INDX_SHIFT 11 293 #define I40E_VPINT_AEQCTL_CAUSE_ENA_SHIFT 30 294 #define I40E_VPINT_AEQCTL_CAUSE_ENA_MASK I40E_MASK(0x1, I40E_VPINT_AEQCTL_CAUSE_ENA_SHIFT) 295 #define I40E_VPINT_CEQCTL(_INTVF) (0x00026800 + ((_INTVF) * 4)) /* _i=0...511 */ /* Reset: CORER */ 296 #define I40E_VPINT_CEQCTL_MSIX_INDX_SHIFT 0 297 #define I40E_VPINT_CEQCTL_ITR_INDX_SHIFT 11 298 #define I40E_VPINT_CEQCTL_NEXTQ_INDX_SHIFT 16 299 #define I40E_VPINT_CEQCTL_NEXTQ_INDX_MASK I40E_MASK(0x7FF, I40E_VPINT_CEQCTL_NEXTQ_INDX_SHIFT) 300 #define I40E_VPINT_CEQCTL_NEXTQ_TYPE_SHIFT 27 301 #define I40E_VPINT_CEQCTL_NEXTQ_TYPE_MASK I40E_MASK(0x3, I40E_VPINT_CEQCTL_NEXTQ_TYPE_SHIFT) 302 #define I40E_VPINT_CEQCTL_CAUSE_ENA_SHIFT 30 303 #define I40E_VPINT_CEQCTL_CAUSE_ENA_MASK I40E_MASK(0x1, I40E_VPINT_CEQCTL_CAUSE_ENA_SHIFT) 304 #define I40E_VPINT_LNKLST0(_VF) (0x0002A800 + ((_VF) * 4)) /* _i=0...127 */ /* Reset: VFR */ 305 #define I40E_VPINT_LNKLST0_FIRSTQ_INDX_SHIFT 0 306 #define I40E_VPINT_LNKLST0_FIRSTQ_INDX_MASK I40E_MASK(0x7FF, I40E_VPINT_LNKLST0_FIRSTQ_INDX_SHIFT) 307 #define I40E_VPINT_LNKLSTN(_INTVF) (0x00025000 + ((_INTVF) * 4)) /* _i=0...511 */ /* Reset: VFR */ 308 #define I40E_VPINT_LNKLSTN_FIRSTQ_INDX_SHIFT 0 309 #define I40E_VPINT_LNKLSTN_FIRSTQ_INDX_MASK I40E_MASK(0x7FF, I40E_VPINT_LNKLSTN_FIRSTQ_INDX_SHIFT) 310 #define I40E_VPINT_LNKLSTN_FIRSTQ_TYPE_SHIFT 11 311 #define I40E_VPINT_LNKLSTN_FIRSTQ_TYPE_MASK I40E_MASK(0x3, I40E_VPINT_LNKLSTN_FIRSTQ_TYPE_SHIFT) 312 #define I40E_GLLAN_RCTL_0 0x0012A500 /* Reset: CORER */ 313 #define I40E_GLLAN_RCTL_0_PXE_MODE_SHIFT 0 314 #define I40E_GLLAN_RCTL_0_PXE_MODE_MASK I40E_MASK(0x1, I40E_GLLAN_RCTL_0_PXE_MODE_SHIFT) 315 #define I40E_GLLAN_TSOMSK_F 0x000442D8 /* Reset: CORER */ 316 #define I40E_GLLAN_TSOMSK_L 0x000442E0 /* Reset: CORER */ 317 #define I40E_GLLAN_TSOMSK_M 0x000442DC /* Reset: CORER */ 318 #define I40E_GLLAN_TXPRE_QDIS(_i) (0x000e6500 + ((_i) * 4)) /* _i=0...11 */ /* Reset: CORER */ 319 #define I40E_GLLAN_TXPRE_QDIS_QINDX_SHIFT 0 320 #define I40E_GLLAN_TXPRE_QDIS_QINDX_MASK I40E_MASK(0x7FF, I40E_GLLAN_TXPRE_QDIS_QINDX_SHIFT) 321 #define I40E_GLLAN_TXPRE_QDIS_SET_QDIS_SHIFT 30 322 #define I40E_GLLAN_TXPRE_QDIS_SET_QDIS_MASK I40E_MASK(0x1, I40E_GLLAN_TXPRE_QDIS_SET_QDIS_SHIFT) 323 #define I40E_GLLAN_TXPRE_QDIS_CLEAR_QDIS_SHIFT 31 324 #define I40E_GLLAN_TXPRE_QDIS_CLEAR_QDIS_MASK I40E_MASK(0x1u, I40E_GLLAN_TXPRE_QDIS_CLEAR_QDIS_SHIFT) 325 #define I40E_PFLAN_QALLOC 0x001C0400 /* Reset: CORER */ 326 #define I40E_PFLAN_QALLOC_FIRSTQ_SHIFT 0 327 #define I40E_PFLAN_QALLOC_FIRSTQ_MASK I40E_MASK(0x7FF, I40E_PFLAN_QALLOC_FIRSTQ_SHIFT) 328 #define I40E_PFLAN_QALLOC_LASTQ_SHIFT 16 329 #define I40E_PFLAN_QALLOC_LASTQ_MASK I40E_MASK(0x7FF, I40E_PFLAN_QALLOC_LASTQ_SHIFT) 330 #define I40E_PFLAN_QALLOC_VALID_SHIFT 31 331 #define I40E_PFLAN_QALLOC_VALID_MASK I40E_MASK(0x1u, I40E_PFLAN_QALLOC_VALID_SHIFT) 332 #define I40E_QRX_ENA(_Q) (0x00120000 + ((_Q) * 4)) /* _i=0...1535 */ /* Reset: PFR */ 333 #define I40E_QRX_ENA_QENA_REQ_SHIFT 0 334 #define I40E_QRX_ENA_QENA_REQ_MASK I40E_MASK(0x1, I40E_QRX_ENA_QENA_REQ_SHIFT) 335 #define I40E_QRX_ENA_QENA_STAT_SHIFT 2 336 #define I40E_QRX_ENA_QENA_STAT_MASK I40E_MASK(0x1, I40E_QRX_ENA_QENA_STAT_SHIFT) 337 #define I40E_QRX_TAIL(_Q) (0x00128000 + ((_Q) * 4)) /* _i=0...1535 */ /* Reset: CORER */ 338 #define I40E_QTX_CTL(_Q) (0x00104000 + ((_Q) * 4)) /* _i=0...1535 */ /* Reset: CORER */ 339 #define I40E_QTX_CTL_PFVF_Q_SHIFT 0 340 #define I40E_QTX_CTL_PFVF_Q_MASK I40E_MASK(0x3, I40E_QTX_CTL_PFVF_Q_SHIFT) 341 #define I40E_QTX_CTL_PF_INDX_SHIFT 2 342 #define I40E_QTX_CTL_PF_INDX_MASK I40E_MASK(0xF, I40E_QTX_CTL_PF_INDX_SHIFT) 343 #define I40E_QTX_CTL_VFVM_INDX_SHIFT 7 344 #define I40E_QTX_CTL_VFVM_INDX_MASK I40E_MASK(0x1FF, I40E_QTX_CTL_VFVM_INDX_SHIFT) 345 #define I40E_QTX_ENA(_Q) (0x00100000 + ((_Q) * 4)) /* _i=0...1535 */ /* Reset: PFR */ 346 #define I40E_QTX_ENA_QENA_REQ_SHIFT 0 347 #define I40E_QTX_ENA_QENA_REQ_MASK I40E_MASK(0x1, I40E_QTX_ENA_QENA_REQ_SHIFT) 348 #define I40E_QTX_ENA_QENA_STAT_SHIFT 2 349 #define I40E_QTX_ENA_QENA_STAT_MASK I40E_MASK(0x1, I40E_QTX_ENA_QENA_STAT_SHIFT) 350 #define I40E_QTX_HEAD(_Q) (0x000E4000 + ((_Q) * 4)) /* _i=0...1535 */ /* Reset: CORER */ 351 #define I40E_QTX_TAIL(_Q) (0x00108000 + ((_Q) * 4)) /* _i=0...1535 */ /* Reset: PFR */ 352 #define I40E_VPLAN_MAPENA(_VF) (0x00074000 + ((_VF) * 4)) /* _i=0...127 */ /* Reset: VFR */ 353 #define I40E_VPLAN_MAPENA_TXRX_ENA_SHIFT 0 354 #define I40E_VPLAN_MAPENA_TXRX_ENA_MASK I40E_MASK(0x1, I40E_VPLAN_MAPENA_TXRX_ENA_SHIFT) 355 #define I40E_VPLAN_QTABLE(_i, _VF) (0x00070000 + ((_i) * 1024 + (_VF) * 4)) /* _i=0...15, _VF=0...127 */ /* Reset: VFR */ 356 #define I40E_VPLAN_QTABLE_QINDEX_SHIFT 0 357 #define I40E_VPLAN_QTABLE_QINDEX_MASK I40E_MASK(0x7FF, I40E_VPLAN_QTABLE_QINDEX_SHIFT) 358 #define I40E_VSILAN_QBASE(_VSI) (0x0020C800 + ((_VSI) * 4)) /* _i=0...383 */ /* Reset: PFR */ 359 #define I40E_VSILAN_QBASE_VSIQTABLE_ENA_SHIFT 11 360 #define I40E_VSILAN_QBASE_VSIQTABLE_ENA_MASK I40E_MASK(0x1, I40E_VSILAN_QBASE_VSIQTABLE_ENA_SHIFT) 361 #define I40E_VSILAN_QTABLE(_i, _VSI) (0x00200000 + ((_i) * 2048 + (_VSI) * 4)) /* _i=0...7, _VSI=0...383 */ /* Reset: PFR */ 362 #define I40E_PRTGL_SAH 0x001E2140 /* Reset: GLOBR */ 363 #define I40E_PRTGL_SAH_FC_SAH_SHIFT 0 364 #define I40E_PRTGL_SAH_FC_SAH_MASK I40E_MASK(0xFFFF, I40E_PRTGL_SAH_FC_SAH_SHIFT) 365 #define I40E_PRTGL_SAH_MFS_SHIFT 16 366 #define I40E_PRTGL_SAH_MFS_MASK I40E_MASK(0xFFFF, I40E_PRTGL_SAH_MFS_SHIFT) 367 #define I40E_PRTGL_SAL 0x001E2120 /* Reset: GLOBR */ 368 #define I40E_PRTGL_SAL_FC_SAL_SHIFT 0 369 #define I40E_PRTGL_SAL_FC_SAL_MASK I40E_MASK(0xFFFFFFFF, I40E_PRTGL_SAL_FC_SAL_SHIFT) 370 #define I40E_GLNVM_FLA 0x000B6108 /* Reset: POR */ 371 #define I40E_GLNVM_FLA_LOCKED_SHIFT 6 372 #define I40E_GLNVM_FLA_LOCKED_MASK I40E_MASK(0x1, I40E_GLNVM_FLA_LOCKED_SHIFT) 373 #define I40E_GLNVM_GENS 0x000B6100 /* Reset: POR */ 374 #define I40E_GLNVM_GENS_SR_SIZE_SHIFT 5 375 #define I40E_GLNVM_GENS_SR_SIZE_MASK I40E_MASK(0x7, I40E_GLNVM_GENS_SR_SIZE_SHIFT) 376 #define I40E_GLNVM_SRCTL 0x000B6110 /* Reset: POR */ 377 #define I40E_GLNVM_SRCTL_ADDR_SHIFT 14 378 #define I40E_GLNVM_SRCTL_START_SHIFT 30 379 #define I40E_GLNVM_SRCTL_DONE_SHIFT 31 380 #define I40E_GLNVM_SRCTL_DONE_MASK I40E_MASK(0x1u, I40E_GLNVM_SRCTL_DONE_SHIFT) 381 #define I40E_GLNVM_SRDATA 0x000B6114 /* Reset: POR */ 382 #define I40E_GLNVM_SRDATA_RDDATA_SHIFT 16 383 #define I40E_GLNVM_SRDATA_RDDATA_MASK I40E_MASK(0xFFFF, I40E_GLNVM_SRDATA_RDDATA_SHIFT) 384 #define I40E_GLNVM_ULD 0x000B6008 /* Reset: POR */ 385 #define I40E_GLNVM_ULD_CONF_CORE_DONE_SHIFT 3 386 #define I40E_GLNVM_ULD_CONF_CORE_DONE_MASK I40E_MASK(0x1, I40E_GLNVM_ULD_CONF_CORE_DONE_SHIFT) 387 #define I40E_GLNVM_ULD_CONF_GLOBAL_DONE_SHIFT 4 388 #define I40E_GLNVM_ULD_CONF_GLOBAL_DONE_MASK I40E_MASK(0x1, I40E_GLNVM_ULD_CONF_GLOBAL_DONE_SHIFT) 389 #define I40E_GLPCI_CAPSUP 0x000BE4A8 /* Reset: PCIR */ 390 #define I40E_GLPCI_CAPSUP_ARI_EN_SHIFT 4 391 #define I40E_GLPCI_CAPSUP_ARI_EN_MASK I40E_MASK(0x1, I40E_GLPCI_CAPSUP_ARI_EN_SHIFT) 392 #define I40E_GLPCI_CNF2 0x000BE494 /* Reset: PCIR */ 393 #define I40E_GLPCI_CNF2_MSI_X_PF_N_SHIFT 2 394 #define I40E_GLPCI_CNF2_MSI_X_PF_N_MASK I40E_MASK(0x7FF, I40E_GLPCI_CNF2_MSI_X_PF_N_SHIFT) 395 #define I40E_GLPCI_CNF2_MSI_X_VF_N_SHIFT 13 396 #define I40E_GLPCI_CNF2_MSI_X_VF_N_MASK I40E_MASK(0x7FF, I40E_GLPCI_CNF2_MSI_X_VF_N_SHIFT) 397 #define I40E_GLPCI_LBARCTRL 0x000BE484 /* Reset: POR */ 398 #define I40E_GLPCI_LBARCTRL_FL_SIZE_SHIFT 6 399 #define I40E_GLPCI_LBARCTRL_FL_SIZE_MASK I40E_MASK(0x7, I40E_GLPCI_LBARCTRL_FL_SIZE_SHIFT) 400 #define I40E_PF_FUNC_RID 0x0009C000 /* Reset: PCIR */ 401 #define I40E_PF_PCI_CIAA 0x0009C080 /* Reset: FLR */ 402 #define I40E_PF_PCI_CIAA_VF_NUM_SHIFT 12 403 #define I40E_PF_PCI_CIAD 0x0009C100 /* Reset: FLR */ 404 #define I40E_PRTPM_EEE_STAT 0x001E4320 /* Reset: GLOBR */ 405 #define I40E_PRTPM_EEE_STAT_RX_LPI_STATUS_SHIFT 30 406 #define I40E_PRTPM_EEE_STAT_RX_LPI_STATUS_MASK I40E_MASK(0x1, I40E_PRTPM_EEE_STAT_RX_LPI_STATUS_SHIFT) 407 #define I40E_PRTPM_EEE_STAT_TX_LPI_STATUS_SHIFT 31 408 #define I40E_PRTPM_EEE_STAT_TX_LPI_STATUS_MASK I40E_MASK(0x1, I40E_PRTPM_EEE_STAT_TX_LPI_STATUS_SHIFT) 409 #define I40E_PRTPM_RLPIC 0x001E43A0 /* Reset: GLOBR */ 410 #define I40E_PRTPM_TLPIC 0x001E43C0 /* Reset: GLOBR */ 411 #define I40E_GLQF_FDCNT_0 0x00269BAC /* Reset: CORER */ 412 #define I40E_GLQF_FDCNT_0_GUARANT_CNT_SHIFT 0 413 #define I40E_GLQF_FDCNT_0_GUARANT_CNT_MASK I40E_MASK(0x1FFF, I40E_GLQF_FDCNT_0_GUARANT_CNT_SHIFT) 414 #define I40E_GLQF_FDCNT_0_BESTCNT_SHIFT 13 415 #define I40E_GLQF_FDCNT_0_BESTCNT_MASK I40E_MASK(0x1FFF, I40E_GLQF_FDCNT_0_BESTCNT_SHIFT) 416 #define I40E_GLQF_HKEY(_i) (0x00270140 + ((_i) * 4)) /* _i=0...12 */ /* Reset: CORER */ 417 #define I40E_GLQF_HKEY_MAX_INDEX 12 418 #define I40E_GLQF_PCNT(_i) (0x00266800 + ((_i) * 4)) /* _i=0...511 */ /* Reset: CORER */ 419 #define I40E_PFQF_CTL_0 0x001C0AC0 /* Reset: CORER */ 420 #define I40E_PFQF_CTL_0_PEHSIZE_SHIFT 0 421 #define I40E_PFQF_CTL_0_PEHSIZE_MASK I40E_MASK(0x1F, I40E_PFQF_CTL_0_PEHSIZE_SHIFT) 422 #define I40E_PFQF_CTL_0_PEDSIZE_SHIFT 5 423 #define I40E_PFQF_CTL_0_PEDSIZE_MASK I40E_MASK(0x1F, I40E_PFQF_CTL_0_PEDSIZE_SHIFT) 424 #define I40E_PFQF_CTL_0_PFFCHSIZE_SHIFT 10 425 #define I40E_PFQF_CTL_0_PFFCHSIZE_MASK I40E_MASK(0xF, I40E_PFQF_CTL_0_PFFCHSIZE_SHIFT) 426 #define I40E_PFQF_CTL_0_PFFCDSIZE_SHIFT 14 427 #define I40E_PFQF_CTL_0_PFFCDSIZE_MASK I40E_MASK(0x3, I40E_PFQF_CTL_0_PFFCDSIZE_SHIFT) 428 #define I40E_PFQF_CTL_0_HASHLUTSIZE_SHIFT 16 429 #define I40E_PFQF_CTL_0_HASHLUTSIZE_MASK I40E_MASK(0x1, I40E_PFQF_CTL_0_HASHLUTSIZE_SHIFT) 430 #define I40E_PFQF_CTL_0_FD_ENA_SHIFT 17 431 #define I40E_PFQF_CTL_0_FD_ENA_MASK I40E_MASK(0x1, I40E_PFQF_CTL_0_FD_ENA_SHIFT) 432 #define I40E_PFQF_CTL_0_ETYPE_ENA_SHIFT 18 433 #define I40E_PFQF_CTL_0_ETYPE_ENA_MASK I40E_MASK(0x1, I40E_PFQF_CTL_0_ETYPE_ENA_SHIFT) 434 #define I40E_PFQF_CTL_0_MACVLAN_ENA_SHIFT 19 435 #define I40E_PFQF_CTL_0_MACVLAN_ENA_MASK I40E_MASK(0x1, I40E_PFQF_CTL_0_MACVLAN_ENA_SHIFT) 436 #define I40E_PFQF_CTL_1 0x00245D80 /* Reset: CORER */ 437 #define I40E_PFQF_CTL_1_CLEARFDTABLE_SHIFT 0 438 #define I40E_PFQF_CTL_1_CLEARFDTABLE_MASK I40E_MASK(0x1, I40E_PFQF_CTL_1_CLEARFDTABLE_SHIFT) 439 #define I40E_PFQF_FDSTAT 0x00246380 /* Reset: CORER */ 440 #define I40E_PFQF_FDSTAT_GUARANT_CNT_SHIFT 0 441 #define I40E_PFQF_FDSTAT_GUARANT_CNT_MASK I40E_MASK(0x1FFF, I40E_PFQF_FDSTAT_GUARANT_CNT_SHIFT) 442 #define I40E_PFQF_FDSTAT_BEST_CNT_SHIFT 16 443 #define I40E_PFQF_FDSTAT_BEST_CNT_MASK I40E_MASK(0x1FFF, I40E_PFQF_FDSTAT_BEST_CNT_SHIFT) 444 #define I40E_PFQF_HENA(_i) (0x00245900 + ((_i) * 128)) /* _i=0...1 */ /* Reset: CORER */ 445 #define I40E_PFQF_HKEY(_i) (0x00244800 + ((_i) * 128)) /* _i=0...12 */ /* Reset: CORER */ 446 #define I40E_PFQF_HKEY_MAX_INDEX 12 447 #define I40E_PFQF_HLUT(_i) (0x00240000 + ((_i) * 128)) /* _i=0...127 */ /* Reset: CORER */ 448 #define I40E_PFQF_HLUT_MAX_INDEX 127 449 #define I40E_PRTQF_FD_INSET(_i, _j) (0x00250000 + ((_i) * 64 + (_j) * 32)) /* _i=0...63, _j=0...1 */ /* Reset: CORER */ 450 #define I40E_PRTQF_FD_INSET_MAX_INDEX 63 451 #define I40E_PRTQF_FD_INSET_INSET_SHIFT 0 452 #define I40E_PRTQF_FD_INSET_INSET_MASK I40E_MASK(0xFFFFFFFF, I40E_PRTQF_FD_INSET_INSET_SHIFT) 453 #define I40E_PRTQF_FD_INSET(_i, _j) (0x00250000 + ((_i) * 64 + (_j) * 32)) /* _i=0...63, _j=0...1 */ /* Reset: CORER */ 454 #define I40E_PRTQF_FD_INSET_MAX_INDEX 63 455 #define I40E_PRTQF_FD_INSET_INSET_SHIFT 0 456 #define I40E_PRTQF_FD_INSET_INSET_MASK I40E_MASK(0xFFFFFFFF, I40E_PRTQF_FD_INSET_INSET_SHIFT) 457 #define I40E_PRTQF_FLX_PIT(_i) (0x00255200 + ((_i) * 32)) /* _i=0...8 */ /* Reset: CORER */ 458 #define I40E_PRTQF_FLX_PIT_SOURCE_OFF_SHIFT 0 459 #define I40E_PRTQF_FLX_PIT_SOURCE_OFF_MASK I40E_MASK(0x1F, I40E_PRTQF_FLX_PIT_SOURCE_OFF_SHIFT) 460 #define I40E_PRTQF_FLX_PIT_FSIZE_SHIFT 5 461 #define I40E_PRTQF_FLX_PIT_FSIZE_MASK I40E_MASK(0x1F, I40E_PRTQF_FLX_PIT_FSIZE_SHIFT) 462 #define I40E_PRTQF_FLX_PIT_DEST_OFF_SHIFT 10 463 #define I40E_PRTQF_FLX_PIT_DEST_OFF_MASK I40E_MASK(0x3F, I40E_PRTQF_FLX_PIT_DEST_OFF_SHIFT) 464 #define I40E_VFQF_HENA1(_i, _VF) (0x00230800 + ((_i) * 1024 + (_VF) * 4)) /* _i=0...1, _VF=0...127 */ /* Reset: CORER */ 465 #define I40E_VFQF_HKEY1(_i, _VF) (0x00228000 + ((_i) * 1024 + (_VF) * 4)) /* _i=0...12, _VF=0...127 */ /* Reset: CORER */ 466 #define I40E_VFQF_HKEY1_MAX_INDEX 12 467 #define I40E_VFQF_HLUT1(_i, _VF) (0x00220000 + ((_i) * 1024 + (_VF) * 4)) /* _i=0...15, _VF=0...127 */ /* Reset: CORER */ 468 #define I40E_VFQF_HLUT1_MAX_INDEX 15 469 #define I40E_GL_RXERR1H(_i) (0x00318004 + ((_i) * 8)) /* _i=0...143 */ /* Reset: CORER */ 470 #define I40E_GL_RXERR1H_MAX_INDEX 143 471 #define I40E_GL_RXERR1H_RXERR1H_SHIFT 0 472 #define I40E_GL_RXERR1H_RXERR1H_MASK I40E_MASK(0xFFFFFFFF, I40E_GL_RXERR1H_RXERR1H_SHIFT) 473 #define I40E_GL_RXERR1L(_i) (0x00318000 + ((_i) * 8)) /* _i=0...143 */ /* Reset: CORER */ 474 #define I40E_GL_RXERR1L_MAX_INDEX 143 475 #define I40E_GL_RXERR1L_RXERR1L_SHIFT 0 476 #define I40E_GL_RXERR1L_RXERR1L_MASK I40E_MASK(0xFFFFFFFF, I40E_GL_RXERR1L_RXERR1L_SHIFT) 477 #define I40E_GLPRT_BPRCH(_i) (0x003005E4 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 478 #define I40E_GLPRT_BPRCL(_i) (0x003005E0 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 479 #define I40E_GLPRT_BPTCH(_i) (0x00300A04 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 480 #define I40E_GLPRT_BPTCL(_i) (0x00300A00 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 481 #define I40E_GLPRT_CRCERRS(_i) (0x00300080 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 482 #define I40E_GLPRT_GORCH(_i) (0x00300004 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 483 #define I40E_GLPRT_GORCL(_i) (0x00300000 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 484 #define I40E_GLPRT_GOTCH(_i) (0x00300684 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 485 #define I40E_GLPRT_GOTCL(_i) (0x00300680 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 486 #define I40E_GLPRT_ILLERRC(_i) (0x003000E0 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 487 #define I40E_GLPRT_LXOFFRXC(_i) (0x00300160 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 488 #define I40E_GLPRT_LXOFFTXC(_i) (0x003009A0 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 489 #define I40E_GLPRT_LXONRXC(_i) (0x00300140 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 490 #define I40E_GLPRT_LXONTXC(_i) (0x00300980 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 491 #define I40E_GLPRT_MLFC(_i) (0x00300020 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 492 #define I40E_GLPRT_MPRCH(_i) (0x003005C4 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 493 #define I40E_GLPRT_MPRCL(_i) (0x003005C0 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 494 #define I40E_GLPRT_MPTCH(_i) (0x003009E4 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 495 #define I40E_GLPRT_MPTCL(_i) (0x003009E0 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 496 #define I40E_GLPRT_MRFC(_i) (0x00300040 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 497 #define I40E_GLPRT_PRC1023H(_i) (0x00300504 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 498 #define I40E_GLPRT_PRC1023L(_i) (0x00300500 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 499 #define I40E_GLPRT_PRC127H(_i) (0x003004A4 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 500 #define I40E_GLPRT_PRC127L(_i) (0x003004A0 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 501 #define I40E_GLPRT_PRC1522H(_i) (0x00300524 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 502 #define I40E_GLPRT_PRC1522L(_i) (0x00300520 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 503 #define I40E_GLPRT_PRC255H(_i) (0x003004C4 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 504 #define I40E_GLPRT_PRC255L(_i) (0x003004C0 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 505 #define I40E_GLPRT_PRC511H(_i) (0x003004E4 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 506 #define I40E_GLPRT_PRC511L(_i) (0x003004E0 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 507 #define I40E_GLPRT_PRC64H(_i) (0x00300484 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 508 #define I40E_GLPRT_PRC64L(_i) (0x00300480 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 509 #define I40E_GLPRT_PRC9522H(_i) (0x00300544 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 510 #define I40E_GLPRT_PRC9522L(_i) (0x00300540 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 511 #define I40E_GLPRT_PTC1023H(_i) (0x00300724 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 512 #define I40E_GLPRT_PTC1023L(_i) (0x00300720 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 513 #define I40E_GLPRT_PTC127H(_i) (0x003006C4 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 514 #define I40E_GLPRT_PTC127L(_i) (0x003006C0 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 515 #define I40E_GLPRT_PTC1522H(_i) (0x00300744 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 516 #define I40E_GLPRT_PTC1522L(_i) (0x00300740 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 517 #define I40E_GLPRT_PTC255H(_i) (0x003006E4 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 518 #define I40E_GLPRT_PTC255L(_i) (0x003006E0 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 519 #define I40E_GLPRT_PTC511H(_i) (0x00300704 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 520 #define I40E_GLPRT_PTC511L(_i) (0x00300700 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 521 #define I40E_GLPRT_PTC64H(_i) (0x003006A4 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 522 #define I40E_GLPRT_PTC64L(_i) (0x003006A0 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 523 #define I40E_GLPRT_PTC9522H(_i) (0x00300764 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 524 #define I40E_GLPRT_PTC9522L(_i) (0x00300760 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 525 #define I40E_GLPRT_PXOFFRXC(_i, _j) (0x00300280 + ((_i) * 8 + (_j) * 32)) /* _i=0...3, _j=0...7 */ /* Reset: CORER */ 526 #define I40E_GLPRT_PXOFFTXC(_i, _j) (0x00300880 + ((_i) * 8 + (_j) * 32)) /* _i=0...3, _j=0...7 */ /* Reset: CORER */ 527 #define I40E_GLPRT_PXONRXC(_i, _j) (0x00300180 + ((_i) * 8 + (_j) * 32)) /* _i=0...3, _j=0...7 */ /* Reset: CORER */ 528 #define I40E_GLPRT_PXONTXC(_i, _j) (0x00300780 + ((_i) * 8 + (_j) * 32)) /* _i=0...3, _j=0...7 */ /* Reset: CORER */ 529 #define I40E_GLPRT_RDPC(_i) (0x00300600 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 530 #define I40E_GLPRT_RFC(_i) (0x00300560 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 531 #define I40E_GLPRT_RJC(_i) (0x00300580 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 532 #define I40E_GLPRT_RLEC(_i) (0x003000A0 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 533 #define I40E_GLPRT_ROC(_i) (0x00300120 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 534 #define I40E_GLPRT_RUC(_i) (0x00300100 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 535 #define I40E_GLPRT_RXON2OFFCNT(_i, _j) (0x00300380 + ((_i) * 8 + (_j) * 32)) /* _i=0...3, _j=0...7 */ /* Reset: CORER */ 536 #define I40E_GLPRT_TDOLD(_i) (0x00300A20 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 537 #define I40E_GLPRT_UPRCH(_i) (0x003005A4 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 538 #define I40E_GLPRT_UPRCL(_i) (0x003005A0 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 539 #define I40E_GLPRT_UPTCH(_i) (0x003009C4 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 540 #define I40E_GLPRT_UPTCL(_i) (0x003009C0 + ((_i) * 8)) /* _i=0...3 */ /* Reset: CORER */ 541 #define I40E_GLSW_BPRCH(_i) (0x00370104 + ((_i) * 8)) /* _i=0...15 */ /* Reset: CORER */ 542 #define I40E_GLSW_BPRCL(_i) (0x00370100 + ((_i) * 8)) /* _i=0...15 */ /* Reset: CORER */ 543 #define I40E_GLSW_BPTCH(_i) (0x00340104 + ((_i) * 8)) /* _i=0...15 */ /* Reset: CORER */ 544 #define I40E_GLSW_BPTCL(_i) (0x00340100 + ((_i) * 8)) /* _i=0...15 */ /* Reset: CORER */ 545 #define I40E_GLSW_GORCH(_i) (0x0035C004 + ((_i) * 8)) /* _i=0...15 */ /* Reset: CORER */ 546 #define I40E_GLSW_GORCL(_i) (0x0035c000 + ((_i) * 8)) /* _i=0...15 */ /* Reset: CORER */ 547 #define I40E_GLSW_GOTCH(_i) (0x0032C004 + ((_i) * 8)) /* _i=0...15 */ /* Reset: CORER */ 548 #define I40E_GLSW_GOTCL(_i) (0x0032c000 + ((_i) * 8)) /* _i=0...15 */ /* Reset: CORER */ 549 #define I40E_GLSW_MPRCH(_i) (0x00370084 + ((_i) * 8)) /* _i=0...15 */ /* Reset: CORER */ 550 #define I40E_GLSW_MPRCL(_i) (0x00370080 + ((_i) * 8)) /* _i=0...15 */ /* Reset: CORER */ 551 #define I40E_GLSW_MPTCH(_i) (0x00340084 + ((_i) * 8)) /* _i=0...15 */ /* Reset: CORER */ 552 #define I40E_GLSW_MPTCL(_i) (0x00340080 + ((_i) * 8)) /* _i=0...15 */ /* Reset: CORER */ 553 #define I40E_GLSW_RUPP(_i) (0x00370180 + ((_i) * 8)) /* _i=0...15 */ /* Reset: CORER */ 554 #define I40E_GLSW_TDPC(_i) (0x00348000 + ((_i) * 8)) /* _i=0...15 */ /* Reset: CORER */ 555 #define I40E_GLSW_UPRCH(_i) (0x00370004 + ((_i) * 8)) /* _i=0...15 */ /* Reset: CORER */ 556 #define I40E_GLSW_UPRCL(_i) (0x00370000 + ((_i) * 8)) /* _i=0...15 */ /* Reset: CORER */ 557 #define I40E_GLSW_UPTCH(_i) (0x00340004 + ((_i) * 8)) /* _i=0...15 */ /* Reset: CORER */ 558 #define I40E_GLSW_UPTCL(_i) (0x00340000 + ((_i) * 8)) /* _i=0...15 */ /* Reset: CORER */ 559 #define I40E_GLV_BPRCH(_i) (0x0036D804 + ((_i) * 8)) /* _i=0...383 */ /* Reset: CORER */ 560 #define I40E_GLV_BPRCL(_i) (0x0036d800 + ((_i) * 8)) /* _i=0...383 */ /* Reset: CORER */ 561 #define I40E_GLV_BPTCH(_i) (0x0033D804 + ((_i) * 8)) /* _i=0...383 */ /* Reset: CORER */ 562 #define I40E_GLV_BPTCL(_i) (0x0033d800 + ((_i) * 8)) /* _i=0...383 */ /* Reset: CORER */ 563 #define I40E_GLV_GORCH(_i) (0x00358004 + ((_i) * 8)) /* _i=0...383 */ /* Reset: CORER */ 564 #define I40E_GLV_GORCL(_i) (0x00358000 + ((_i) * 8)) /* _i=0...383 */ /* Reset: CORER */ 565 #define I40E_GLV_GOTCH(_i) (0x00328004 + ((_i) * 8)) /* _i=0...383 */ /* Reset: CORER */ 566 #define I40E_GLV_GOTCL(_i) (0x00328000 + ((_i) * 8)) /* _i=0...383 */ /* Reset: CORER */ 567 #define I40E_GLV_MPRCH(_i) (0x0036CC04 + ((_i) * 8)) /* _i=0...383 */ /* Reset: CORER */ 568 #define I40E_GLV_MPRCL(_i) (0x0036cc00 + ((_i) * 8)) /* _i=0...383 */ /* Reset: CORER */ 569 #define I40E_GLV_MPTCH(_i) (0x0033CC04 + ((_i) * 8)) /* _i=0...383 */ /* Reset: CORER */ 570 #define I40E_GLV_MPTCL(_i) (0x0033cc00 + ((_i) * 8)) /* _i=0...383 */ /* Reset: CORER */ 571 #define I40E_GLV_RDPC(_i) (0x00310000 + ((_i) * 8)) /* _i=0...383 */ /* Reset: CORER */ 572 #define I40E_GLV_RUPP(_i) (0x0036E400 + ((_i) * 8)) /* _i=0...383 */ /* Reset: CORER */ 573 #define I40E_GLV_TEPC(_i) (0x00344000 + ((_i) * 8)) /* _i=0...383 */ /* Reset: CORER */ 574 #define I40E_GLV_UPRCH(_i) (0x0036C004 + ((_i) * 8)) /* _i=0...383 */ /* Reset: CORER */ 575 #define I40E_GLV_UPRCL(_i) (0x0036c000 + ((_i) * 8)) /* _i=0...383 */ /* Reset: CORER */ 576 #define I40E_GLV_UPTCH(_i) (0x0033C004 + ((_i) * 8)) /* _i=0...383 */ /* Reset: CORER */ 577 #define I40E_GLV_UPTCL(_i) (0x0033c000 + ((_i) * 8)) /* _i=0...383 */ /* Reset: CORER */ 578 #define I40E_GLVEBTC_RBCH(_i, _j) (0x00364004 + ((_i) * 8 + (_j) * 64)) /* _i=0...7, _j=0...15 */ /* Reset: CORER */ 579 #define I40E_GLVEBTC_RBCL(_i, _j) (0x00364000 + ((_i) * 8 + (_j) * 64)) /* _i=0...7, _j=0...15 */ /* Reset: CORER */ 580 #define I40E_GLVEBTC_RPCH(_i, _j) (0x00368004 + ((_i) * 8 + (_j) * 64)) /* _i=0...7, _j=0...15 */ /* Reset: CORER */ 581 #define I40E_GLVEBTC_RPCL(_i, _j) (0x00368000 + ((_i) * 8 + (_j) * 64)) /* _i=0...7, _j=0...15 */ /* Reset: CORER */ 582 #define I40E_GLVEBTC_TBCH(_i, _j) (0x00334004 + ((_i) * 8 + (_j) * 64)) /* _i=0...7, _j=0...15 */ /* Reset: CORER */ 583 #define I40E_GLVEBTC_TBCL(_i, _j) (0x00334000 + ((_i) * 8 + (_j) * 64)) /* _i=0...7, _j=0...15 */ /* Reset: CORER */ 584 #define I40E_GLVEBTC_TPCH(_i, _j) (0x00338004 + ((_i) * 8 + (_j) * 64)) /* _i=0...7, _j=0...15 */ /* Reset: CORER */ 585 #define I40E_GLVEBTC_TPCL(_i, _j) (0x00338000 + ((_i) * 8 + (_j) * 64)) /* _i=0...7, _j=0...15 */ /* Reset: CORER */ 586 #define I40E_PRTTSYN_CTL0 0x001E4200 /* Reset: GLOBR */ 587 #define I40E_PRTTSYN_CTL0_TXTIME_INT_ENA_SHIFT 1 588 #define I40E_PRTTSYN_CTL0_TXTIME_INT_ENA_MASK I40E_MASK(0x1, I40E_PRTTSYN_CTL0_TXTIME_INT_ENA_SHIFT) 589 #define I40E_PRTTSYN_CTL0_PF_ID_SHIFT 8 590 #define I40E_PRTTSYN_CTL0_PF_ID_MASK I40E_MASK(0xF, I40E_PRTTSYN_CTL0_PF_ID_SHIFT) 591 #define I40E_PRTTSYN_CTL0_TSYNENA_SHIFT 31 592 #define I40E_PRTTSYN_CTL0_TSYNENA_MASK I40E_MASK(0x1, I40E_PRTTSYN_CTL0_TSYNENA_SHIFT) 593 #define I40E_PRTTSYN_CTL1 0x00085020 /* Reset: CORER */ 594 #define I40E_PRTTSYN_CTL1_V1MESSTYPE0_SHIFT 0 595 #define I40E_PRTTSYN_CTL1_V1MESSTYPE0_MASK I40E_MASK(0xFF, I40E_PRTTSYN_CTL1_V1MESSTYPE0_SHIFT) 596 #define I40E_PRTTSYN_CTL1_V2MESSTYPE0_SHIFT 16 597 #define I40E_PRTTSYN_CTL1_V2MESSTYPE0_MASK I40E_MASK(0xF, I40E_PRTTSYN_CTL1_V2MESSTYPE0_SHIFT) 598 #define I40E_PRTTSYN_CTL1_TSYNTYPE_SHIFT 24 599 #define I40E_PRTTSYN_CTL1_UDP_ENA_SHIFT 26 600 #define I40E_PRTTSYN_CTL1_UDP_ENA_MASK I40E_MASK(0x3, I40E_PRTTSYN_CTL1_UDP_ENA_SHIFT) 601 #define I40E_PRTTSYN_CTL1_TSYNENA_SHIFT 31 602 #define I40E_PRTTSYN_CTL1_TSYNENA_MASK I40E_MASK(0x1, I40E_PRTTSYN_CTL1_TSYNENA_SHIFT) 603 #define I40E_PRTTSYN_INC_H 0x001E4060 /* Reset: GLOBR */ 604 #define I40E_PRTTSYN_INC_L 0x001E4040 /* Reset: GLOBR */ 605 #define I40E_PRTTSYN_RXTIME_H(_i) (0x00085040 + ((_i) * 32)) /* _i=0...3 */ /* Reset: CORER */ 606 #define I40E_PRTTSYN_RXTIME_L(_i) (0x000850C0 + ((_i) * 32)) /* _i=0...3 */ /* Reset: CORER */ 607 #define I40E_PRTTSYN_STAT_0 0x001E4220 /* Reset: GLOBR */ 608 #define I40E_PRTTSYN_STAT_0_TXTIME_SHIFT 4 609 #define I40E_PRTTSYN_STAT_0_TXTIME_MASK I40E_MASK(0x1, I40E_PRTTSYN_STAT_0_TXTIME_SHIFT) 610 #define I40E_PRTTSYN_STAT_1 0x00085140 /* Reset: CORER */ 611 #define I40E_PRTTSYN_TIME_H 0x001E4120 /* Reset: GLOBR */ 612 #define I40E_PRTTSYN_TIME_L 0x001E4100 /* Reset: GLOBR */ 613 #define I40E_PRTTSYN_TXTIME_H 0x001E41E0 /* Reset: GLOBR */ 614 #define I40E_PRTTSYN_TXTIME_L 0x001E41C0 /* Reset: GLOBR */ 615 #define I40E_GL_MDET_RX 0x0012A510 /* Reset: CORER */ 616 #define I40E_GL_MDET_RX_FUNCTION_SHIFT 0 617 #define I40E_GL_MDET_RX_FUNCTION_MASK I40E_MASK(0xFF, I40E_GL_MDET_RX_FUNCTION_SHIFT) 618 #define I40E_GL_MDET_RX_EVENT_SHIFT 8 619 #define I40E_GL_MDET_RX_EVENT_MASK I40E_MASK(0x1FF, I40E_GL_MDET_RX_EVENT_SHIFT) 620 #define I40E_GL_MDET_RX_QUEUE_SHIFT 17 621 #define I40E_GL_MDET_RX_QUEUE_MASK I40E_MASK(0x3FFF, I40E_GL_MDET_RX_QUEUE_SHIFT) 622 #define I40E_GL_MDET_RX_VALID_SHIFT 31 623 #define I40E_GL_MDET_RX_VALID_MASK I40E_MASK(0x1, I40E_GL_MDET_RX_VALID_SHIFT) 624 #define I40E_GL_MDET_TX 0x000E6480 /* Reset: CORER */ 625 #define I40E_GL_MDET_TX_QUEUE_SHIFT 0 626 #define I40E_GL_MDET_TX_QUEUE_MASK I40E_MASK(0xFFF, I40E_GL_MDET_TX_QUEUE_SHIFT) 627 #define I40E_GL_MDET_TX_VF_NUM_SHIFT 12 628 #define I40E_GL_MDET_TX_VF_NUM_MASK I40E_MASK(0x1FF, I40E_GL_MDET_TX_VF_NUM_SHIFT) 629 #define I40E_GL_MDET_TX_PF_NUM_SHIFT 21 630 #define I40E_GL_MDET_TX_PF_NUM_MASK I40E_MASK(0xF, I40E_GL_MDET_TX_PF_NUM_SHIFT) 631 #define I40E_GL_MDET_TX_EVENT_SHIFT 25 632 #define I40E_GL_MDET_TX_EVENT_MASK I40E_MASK(0x1F, I40E_GL_MDET_TX_EVENT_SHIFT) 633 #define I40E_GL_MDET_TX_VALID_SHIFT 31 634 #define I40E_GL_MDET_TX_VALID_MASK I40E_MASK(0x1, I40E_GL_MDET_TX_VALID_SHIFT) 635 #define I40E_PF_MDET_RX 0x0012A400 /* Reset: CORER */ 636 #define I40E_PF_MDET_RX_VALID_SHIFT 0 637 #define I40E_PF_MDET_RX_VALID_MASK I40E_MASK(0x1, I40E_PF_MDET_RX_VALID_SHIFT) 638 #define I40E_PF_MDET_TX 0x000E6400 /* Reset: CORER */ 639 #define I40E_PF_MDET_TX_VALID_SHIFT 0 640 #define I40E_PF_MDET_TX_VALID_MASK I40E_MASK(0x1, I40E_PF_MDET_TX_VALID_SHIFT) 641 #define I40E_PF_VT_PFALLOC 0x001C0500 /* Reset: CORER */ 642 #define I40E_PF_VT_PFALLOC_FIRSTVF_SHIFT 0 643 #define I40E_PF_VT_PFALLOC_FIRSTVF_MASK I40E_MASK(0xFF, I40E_PF_VT_PFALLOC_FIRSTVF_SHIFT) 644 #define I40E_PF_VT_PFALLOC_LASTVF_SHIFT 8 645 #define I40E_PF_VT_PFALLOC_LASTVF_MASK I40E_MASK(0xFF, I40E_PF_VT_PFALLOC_LASTVF_SHIFT) 646 #define I40E_PF_VT_PFALLOC_VALID_SHIFT 31 647 #define I40E_PF_VT_PFALLOC_VALID_MASK I40E_MASK(0x1u, I40E_PF_VT_PFALLOC_VALID_SHIFT) 648 #define I40E_VP_MDET_RX(_VF) (0x0012A000 + ((_VF) * 4)) /* _i=0...127 */ /* Reset: CORER */ 649 #define I40E_VP_MDET_RX_VALID_SHIFT 0 650 #define I40E_VP_MDET_RX_VALID_MASK I40E_MASK(0x1, I40E_VP_MDET_RX_VALID_SHIFT) 651 #define I40E_VP_MDET_TX(_VF) (0x000E6000 + ((_VF) * 4)) /* _i=0...127 */ /* Reset: CORER */ 652 #define I40E_VP_MDET_TX_VALID_SHIFT 0 653 #define I40E_VP_MDET_TX_VALID_MASK I40E_MASK(0x1, I40E_VP_MDET_TX_VALID_SHIFT) 654 #define I40E_PFPM_APM 0x000B8080 /* Reset: POR */ 655 #define I40E_PFPM_APM_APME_SHIFT 0 656 #define I40E_PFPM_APM_APME_MASK I40E_MASK(0x1, I40E_PFPM_APM_APME_SHIFT) 657 #define I40E_PFPM_WUFC 0x0006B400 /* Reset: POR */ 658 #define I40E_PFPM_WUFC_MAG_SHIFT 1 659 #define I40E_PFPM_WUFC_MAG_MASK I40E_MASK(0x1, I40E_PFPM_WUFC_MAG_SHIFT) 660 #define I40E_VF_ARQBAH1 0x00006000 /* Reset: EMPR */ 661 #define I40E_VF_ARQBAL1 0x00006C00 /* Reset: EMPR */ 662 #define I40E_VF_ARQH1 0x00007400 /* Reset: EMPR */ 663 #define I40E_VF_ARQLEN1 0x00008000 /* Reset: EMPR */ 664 #define I40E_VF_ARQT1 0x00007000 /* Reset: EMPR */ 665 #define I40E_VF_ATQBAH1 0x00007800 /* Reset: EMPR */ 666 #define I40E_VF_ATQBAL1 0x00007C00 /* Reset: EMPR */ 667 #define I40E_VF_ATQH1 0x00006400 /* Reset: EMPR */ 668 #define I40E_VF_ATQLEN1 0x00006800 /* Reset: EMPR */ 669 #define I40E_VF_ATQT1 0x00008400 /* Reset: EMPR */ 670 #define I40E_VFQF_HLUT_MAX_INDEX 15 671 672 673 674 675 #define I40E_PFINT_DYN_CTL0_WB_ON_ITR_SHIFT 30 676 #define I40E_PFINT_DYN_CTL0_WB_ON_ITR_MASK I40E_MASK(0x1, I40E_PFINT_DYN_CTL0_WB_ON_ITR_SHIFT) 677 #define I40E_PFINT_DYN_CTLN_WB_ON_ITR_SHIFT 30 678 #define I40E_PFINT_DYN_CTLN_WB_ON_ITR_MASK I40E_MASK(0x1, I40E_PFINT_DYN_CTLN_WB_ON_ITR_SHIFT) 679 #define I40E_GLNVM_FLA 0x000B6108 /* Reset: POR */ 680 #define I40E_GLNVM_FLA_LOCKED_SHIFT 6 681 #define I40E_GLNVM_FLA_LOCKED_MASK I40E_MASK(0x1, I40E_GLNVM_FLA_LOCKED_SHIFT) 682 683 #define I40E_GLNVM_ULD 0x000B6008 /* Reset: POR */ 684 685 686 687 #define I40E_GLQF_HASH_INSET(_i, _j) (0x00267600 + ((_i) * 4 + (_j) * 8)) /* _i=0...1, _j=0...63 */ /* Reset: CORER */ 688 #define I40E_GLQF_ORT(_i) (0x00268900 + ((_i) * 4)) /* _i=0...63 */ /* Reset: CORER */ 689 #define I40E_GLQF_ORT_PIT_INDX_SHIFT 0 690 #define I40E_GLQF_ORT_PIT_INDX_MASK I40E_MASK(0x1F, I40E_GLQF_ORT_PIT_INDX_SHIFT) 691 #define I40E_GLQF_ORT_FIELD_CNT_SHIFT 5 692 #define I40E_GLQF_ORT_FIELD_CNT_MASK I40E_MASK(0x3, I40E_GLQF_ORT_FIELD_CNT_SHIFT) 693 #define I40E_GLQF_ORT_FLX_PAYLOAD_SHIFT 7 694 #define I40E_GLQF_ORT_FLX_PAYLOAD_MASK I40E_MASK(0x1, I40E_GLQF_ORT_FLX_PAYLOAD_SHIFT) 695 #define I40E_GLQF_FDEVICTENA(_i) (0x00270384 + ((_i) * 4)) /* _i=0...1 */ /* Reset: CORER */ 696 /* Redefined for X722 family */ 697 #define I40E_GLGEN_STAT_CLEAR 0x00390004 /* Reset: CORER */ 698 #endif /* _I40E_REGISTER_H_ */ 699