ice: Clean up register file
This patch cleans up the existing register definitions. 1) Several instances of long defines names used in the BIT() macro were replaced to use the actual values they represent. As a result some defines for shifts (ending with _S) that were used only to create bitmasks were removed completely. 2) Apply more consistent tab spacing. Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com> Tested-by: Tony Brelinski <tonyx.brelinski@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
48cb27f2fd
commit
f80eaa4210
|
@ -10,171 +10,130 @@
|
|||
#define PF_FW_ARQBAH 0x00080180
|
||||
#define PF_FW_ARQBAL 0x00080080
|
||||
#define PF_FW_ARQH 0x00080380
|
||||
#define PF_FW_ARQH_ARQH_S 0
|
||||
#define PF_FW_ARQH_ARQH_M ICE_M(0x3FF, PF_FW_ARQH_ARQH_S)
|
||||
#define PF_FW_ARQH_ARQH_M ICE_M(0x3FF, 0)
|
||||
#define PF_FW_ARQLEN 0x00080280
|
||||
#define PF_FW_ARQLEN_ARQLEN_S 0
|
||||
#define PF_FW_ARQLEN_ARQLEN_M ICE_M(0x3FF, PF_FW_ARQLEN_ARQLEN_S)
|
||||
#define PF_FW_ARQLEN_ARQVFE_S 28
|
||||
#define PF_FW_ARQLEN_ARQVFE_M BIT(PF_FW_ARQLEN_ARQVFE_S)
|
||||
#define PF_FW_ARQLEN_ARQOVFL_S 29
|
||||
#define PF_FW_ARQLEN_ARQOVFL_M BIT(PF_FW_ARQLEN_ARQOVFL_S)
|
||||
#define PF_FW_ARQLEN_ARQCRIT_S 30
|
||||
#define PF_FW_ARQLEN_ARQCRIT_M BIT(PF_FW_ARQLEN_ARQCRIT_S)
|
||||
#define PF_FW_ARQLEN_ARQENABLE_S 31
|
||||
#define PF_FW_ARQLEN_ARQENABLE_M BIT(PF_FW_ARQLEN_ARQENABLE_S)
|
||||
#define PF_FW_ARQLEN_ARQLEN_M ICE_M(0x3FF, 0)
|
||||
#define PF_FW_ARQLEN_ARQVFE_M BIT(28)
|
||||
#define PF_FW_ARQLEN_ARQOVFL_M BIT(29)
|
||||
#define PF_FW_ARQLEN_ARQCRIT_M BIT(30)
|
||||
#define PF_FW_ARQLEN_ARQENABLE_M BIT(31)
|
||||
#define PF_FW_ARQT 0x00080480
|
||||
#define PF_FW_ATQBAH 0x00080100
|
||||
#define PF_FW_ATQBAL 0x00080000
|
||||
#define PF_FW_ATQH 0x00080300
|
||||
#define PF_FW_ATQH_ATQH_S 0
|
||||
#define PF_FW_ATQH_ATQH_M ICE_M(0x3FF, PF_FW_ATQH_ATQH_S)
|
||||
#define PF_FW_ATQH_ATQH_M ICE_M(0x3FF, 0)
|
||||
#define PF_FW_ATQLEN 0x00080200
|
||||
#define PF_FW_ATQLEN_ATQLEN_S 0
|
||||
#define PF_FW_ATQLEN_ATQLEN_M ICE_M(0x3FF, PF_FW_ATQLEN_ATQLEN_S)
|
||||
#define PF_FW_ATQLEN_ATQVFE_S 28
|
||||
#define PF_FW_ATQLEN_ATQVFE_M BIT(PF_FW_ATQLEN_ATQVFE_S)
|
||||
#define PF_FW_ATQLEN_ATQOVFL_S 29
|
||||
#define PF_FW_ATQLEN_ATQOVFL_M BIT(PF_FW_ATQLEN_ATQOVFL_S)
|
||||
#define PF_FW_ATQLEN_ATQCRIT_S 30
|
||||
#define PF_FW_ATQLEN_ATQCRIT_M BIT(PF_FW_ATQLEN_ATQCRIT_S)
|
||||
#define PF_FW_ATQLEN_ATQENABLE_S 31
|
||||
#define PF_FW_ATQLEN_ATQENABLE_M BIT(PF_FW_ATQLEN_ATQENABLE_S)
|
||||
#define PF_FW_ATQLEN_ATQLEN_M ICE_M(0x3FF, 0)
|
||||
#define PF_FW_ATQLEN_ATQVFE_M BIT(28)
|
||||
#define PF_FW_ATQLEN_ATQOVFL_M BIT(29)
|
||||
#define PF_FW_ATQLEN_ATQCRIT_M BIT(30)
|
||||
#define PF_FW_ATQLEN_ATQENABLE_M BIT(31)
|
||||
#define PF_FW_ATQT 0x00080400
|
||||
|
||||
#define GLFLXP_RXDID_FLAGS(_i, _j) (0x0045D000 + ((_i) * 4 + (_j) * 256))
|
||||
#define GLFLXP_RXDID_FLAGS_FLEXIFLAG_4N_S 0
|
||||
#define GLFLXP_RXDID_FLAGS_FLEXIFLAG_4N_M ICE_M(0x3F, GLFLXP_RXDID_FLAGS_FLEXIFLAG_4N_S)
|
||||
#define GLFLXP_RXDID_FLAGS_FLEXIFLAG_4N_M ICE_M(0x3F, 0)
|
||||
#define GLFLXP_RXDID_FLAGS_FLEXIFLAG_4N_1_S 8
|
||||
#define GLFLXP_RXDID_FLAGS_FLEXIFLAG_4N_1_M ICE_M(0x3F, GLFLXP_RXDID_FLAGS_FLEXIFLAG_4N_1_S)
|
||||
#define GLFLXP_RXDID_FLAGS_FLEXIFLAG_4N_1_M ICE_M(0x3F, 8)
|
||||
#define GLFLXP_RXDID_FLAGS_FLEXIFLAG_4N_2_S 16
|
||||
#define GLFLXP_RXDID_FLAGS_FLEXIFLAG_4N_2_M ICE_M(0x3F, GLFLXP_RXDID_FLAGS_FLEXIFLAG_4N_2_S)
|
||||
#define GLFLXP_RXDID_FLAGS_FLEXIFLAG_4N_2_M ICE_M(0x3F, 16)
|
||||
#define GLFLXP_RXDID_FLAGS_FLEXIFLAG_4N_3_S 24
|
||||
#define GLFLXP_RXDID_FLAGS_FLEXIFLAG_4N_3_M ICE_M(0x3F, GLFLXP_RXDID_FLAGS_FLEXIFLAG_4N_3_S)
|
||||
#define GLFLXP_RXDID_FLAGS_FLEXIFLAG_4N_3_M ICE_M(0x3F, 24)
|
||||
#define GLFLXP_RXDID_FLX_WRD_0(_i) (0x0045c800 + ((_i) * 4))
|
||||
#define GLFLXP_RXDID_FLX_WRD_0_PROT_MDID_S 0
|
||||
#define GLFLXP_RXDID_FLX_WRD_0_PROT_MDID_M ICE_M(0xFF, GLFLXP_RXDID_FLX_WRD_0_PROT_MDID_S)
|
||||
#define GLFLXP_RXDID_FLX_WRD_0_PROT_MDID_M ICE_M(0xFF, 0)
|
||||
#define GLFLXP_RXDID_FLX_WRD_0_RXDID_OPCODE_S 30
|
||||
#define GLFLXP_RXDID_FLX_WRD_0_RXDID_OPCODE_M ICE_M(0x3, GLFLXP_RXDID_FLX_WRD_0_RXDID_OPCODE_S)
|
||||
#define GLFLXP_RXDID_FLX_WRD_0_RXDID_OPCODE_M ICE_M(0x3, 30)
|
||||
#define GLFLXP_RXDID_FLX_WRD_1(_i) (0x0045c900 + ((_i) * 4))
|
||||
#define GLFLXP_RXDID_FLX_WRD_1_PROT_MDID_S 0
|
||||
#define GLFLXP_RXDID_FLX_WRD_1_PROT_MDID_M ICE_M(0xFF, GLFLXP_RXDID_FLX_WRD_1_PROT_MDID_S)
|
||||
#define GLFLXP_RXDID_FLX_WRD_1_PROT_MDID_M ICE_M(0xFF, 0)
|
||||
#define GLFLXP_RXDID_FLX_WRD_1_RXDID_OPCODE_S 30
|
||||
#define GLFLXP_RXDID_FLX_WRD_1_RXDID_OPCODE_M ICE_M(0x3, GLFLXP_RXDID_FLX_WRD_1_RXDID_OPCODE_S)
|
||||
#define GLFLXP_RXDID_FLX_WRD_1_RXDID_OPCODE_M ICE_M(0x3, 30)
|
||||
#define GLFLXP_RXDID_FLX_WRD_2(_i) (0x0045ca00 + ((_i) * 4))
|
||||
#define GLFLXP_RXDID_FLX_WRD_2_PROT_MDID_S 0
|
||||
#define GLFLXP_RXDID_FLX_WRD_2_PROT_MDID_M ICE_M(0xFF, GLFLXP_RXDID_FLX_WRD_2_PROT_MDID_S)
|
||||
#define GLFLXP_RXDID_FLX_WRD_2_PROT_MDID_M ICE_M(0xFF, 0)
|
||||
#define GLFLXP_RXDID_FLX_WRD_2_RXDID_OPCODE_S 30
|
||||
#define GLFLXP_RXDID_FLX_WRD_2_RXDID_OPCODE_M ICE_M(0x3, GLFLXP_RXDID_FLX_WRD_2_RXDID_OPCODE_S)
|
||||
#define GLFLXP_RXDID_FLX_WRD_2_RXDID_OPCODE_M ICE_M(0x3, 30)
|
||||
#define GLFLXP_RXDID_FLX_WRD_3(_i) (0x0045cb00 + ((_i) * 4))
|
||||
#define GLFLXP_RXDID_FLX_WRD_3_PROT_MDID_S 0
|
||||
#define GLFLXP_RXDID_FLX_WRD_3_PROT_MDID_M ICE_M(0xFF, GLFLXP_RXDID_FLX_WRD_3_PROT_MDID_S)
|
||||
#define GLFLXP_RXDID_FLX_WRD_3_PROT_MDID_M ICE_M(0xFF, 0)
|
||||
#define GLFLXP_RXDID_FLX_WRD_3_RXDID_OPCODE_S 30
|
||||
#define GLFLXP_RXDID_FLX_WRD_3_RXDID_OPCODE_M ICE_M(0x3, GLFLXP_RXDID_FLX_WRD_3_RXDID_OPCODE_S)
|
||||
|
||||
#define GLFLXP_RXDID_FLX_WRD_3_RXDID_OPCODE_M ICE_M(0x3, 30)
|
||||
#define QRXFLXP_CNTXT(_QRX) (0x00480000 + ((_QRX) * 4))
|
||||
#define QRXFLXP_CNTXT_RXDID_IDX_S 0
|
||||
#define QRXFLXP_CNTXT_RXDID_IDX_M ICE_M(0x3F, QRXFLXP_CNTXT_RXDID_IDX_S)
|
||||
#define QRXFLXP_CNTXT_RXDID_IDX_M ICE_M(0x3F, 0)
|
||||
#define QRXFLXP_CNTXT_RXDID_PRIO_S 8
|
||||
#define QRXFLXP_CNTXT_RXDID_PRIO_M ICE_M(0x7, QRXFLXP_CNTXT_RXDID_PRIO_S)
|
||||
#define QRXFLXP_CNTXT_TS_S 11
|
||||
#define QRXFLXP_CNTXT_TS_M BIT(QRXFLXP_CNTXT_TS_S)
|
||||
#define QRXFLXP_CNTXT_RXDID_PRIO_M ICE_M(0x7, 8)
|
||||
#define GLGEN_RSTAT 0x000B8188
|
||||
#define GLGEN_RSTAT_DEVSTATE_S 0
|
||||
#define GLGEN_RSTAT_DEVSTATE_M ICE_M(0x3, GLGEN_RSTAT_DEVSTATE_S)
|
||||
#define GLGEN_RSTAT_DEVSTATE_M ICE_M(0x3, 0)
|
||||
#define GLGEN_RSTCTL 0x000B8180
|
||||
#define GLGEN_RSTCTL_GRSTDEL_S 0
|
||||
#define GLGEN_RSTCTL_GRSTDEL_M ICE_M(0x3F, GLGEN_RSTCTL_GRSTDEL_S)
|
||||
#define GLGEN_RSTAT_RESET_TYPE_S 2
|
||||
#define GLGEN_RSTAT_RESET_TYPE_M ICE_M(0x3, GLGEN_RSTAT_RESET_TYPE_S)
|
||||
#define GLGEN_RSTAT_RESET_TYPE_M ICE_M(0x3, 2)
|
||||
#define GLGEN_RTRIG 0x000B8190
|
||||
#define GLGEN_RTRIG_CORER_S 0
|
||||
#define GLGEN_RTRIG_CORER_M BIT(GLGEN_RTRIG_CORER_S)
|
||||
#define GLGEN_RTRIG_GLOBR_S 1
|
||||
#define GLGEN_RTRIG_GLOBR_M BIT(GLGEN_RTRIG_GLOBR_S)
|
||||
#define GLGEN_RTRIG_CORER_M BIT(0)
|
||||
#define GLGEN_RTRIG_GLOBR_M BIT(1)
|
||||
#define GLGEN_STAT 0x000B612C
|
||||
#define PFGEN_CTRL 0x00091000
|
||||
#define PFGEN_CTRL_PFSWR_S 0
|
||||
#define PFGEN_CTRL_PFSWR_M BIT(PFGEN_CTRL_PFSWR_S)
|
||||
#define PFGEN_CTRL_PFSWR_M BIT(0)
|
||||
#define PFGEN_STATE 0x00088000
|
||||
#define PRTGEN_STATUS 0x000B8100
|
||||
#define PFHMC_ERRORDATA 0x00520500
|
||||
#define PFHMC_ERRORINFO 0x00520400
|
||||
#define GLINT_DYN_CTL(_INT) (0x00160000 + ((_INT) * 4))
|
||||
#define GLINT_DYN_CTL_INTENA_S 0
|
||||
#define GLINT_DYN_CTL_INTENA_M BIT(GLINT_DYN_CTL_INTENA_S)
|
||||
#define GLINT_DYN_CTL_CLEARPBA_S 1
|
||||
#define GLINT_DYN_CTL_CLEARPBA_M BIT(GLINT_DYN_CTL_CLEARPBA_S)
|
||||
#define GLINT_DYN_CTL_SWINT_TRIG_S 2
|
||||
#define GLINT_DYN_CTL_SWINT_TRIG_M BIT(GLINT_DYN_CTL_SWINT_TRIG_S)
|
||||
#define GLINT_DYN_CTL_INTENA_M BIT(0)
|
||||
#define GLINT_DYN_CTL_CLEARPBA_M BIT(1)
|
||||
#define GLINT_DYN_CTL_SWINT_TRIG_M BIT(2)
|
||||
#define GLINT_DYN_CTL_ITR_INDX_S 3
|
||||
#define GLINT_DYN_CTL_SW_ITR_INDX_S 25
|
||||
#define GLINT_DYN_CTL_SW_ITR_INDX_M ICE_M(0x3, GLINT_DYN_CTL_SW_ITR_INDX_S)
|
||||
#define GLINT_DYN_CTL_INTENA_MSK_S 31
|
||||
#define GLINT_DYN_CTL_INTENA_MSK_M BIT(GLINT_DYN_CTL_INTENA_MSK_S)
|
||||
#define GLINT_DYN_CTL_SW_ITR_INDX_M ICE_M(0x3, 25)
|
||||
#define GLINT_DYN_CTL_INTENA_MSK_M BIT(31)
|
||||
#define GLINT_ITR(_i, _INT) (0x00154000 + ((_i) * 8192 + (_INT) * 4))
|
||||
#define PFINT_FW_CTL 0x0016C800
|
||||
#define PFINT_FW_CTL_MSIX_INDX_S 0
|
||||
#define PFINT_FW_CTL_MSIX_INDX_M ICE_M(0x7FF, PFINT_FW_CTL_MSIX_INDX_S)
|
||||
#define PFINT_FW_CTL_MSIX_INDX_M ICE_M(0x7FF, 0)
|
||||
#define PFINT_FW_CTL_ITR_INDX_S 11
|
||||
#define PFINT_FW_CTL_ITR_INDX_M ICE_M(0x3, PFINT_FW_CTL_ITR_INDX_S)
|
||||
#define PFINT_FW_CTL_CAUSE_ENA_S 30
|
||||
#define PFINT_FW_CTL_CAUSE_ENA_M BIT(PFINT_FW_CTL_CAUSE_ENA_S)
|
||||
#define PFINT_FW_CTL_ITR_INDX_M ICE_M(0x3, 11)
|
||||
#define PFINT_FW_CTL_CAUSE_ENA_M BIT(30)
|
||||
#define PFINT_OICR 0x0016CA00
|
||||
#define PFINT_OICR_ECC_ERR_S 16
|
||||
#define PFINT_OICR_ECC_ERR_M BIT(PFINT_OICR_ECC_ERR_S)
|
||||
#define PFINT_OICR_MAL_DETECT_S 19
|
||||
#define PFINT_OICR_MAL_DETECT_M BIT(PFINT_OICR_MAL_DETECT_S)
|
||||
#define PFINT_OICR_GRST_S 20
|
||||
#define PFINT_OICR_GRST_M BIT(PFINT_OICR_GRST_S)
|
||||
#define PFINT_OICR_PCI_EXCEPTION_S 21
|
||||
#define PFINT_OICR_PCI_EXCEPTION_M BIT(PFINT_OICR_PCI_EXCEPTION_S)
|
||||
#define PFINT_OICR_HMC_ERR_S 26
|
||||
#define PFINT_OICR_HMC_ERR_M BIT(PFINT_OICR_HMC_ERR_S)
|
||||
#define PFINT_OICR_PE_CRITERR_S 28
|
||||
#define PFINT_OICR_PE_CRITERR_M BIT(PFINT_OICR_PE_CRITERR_S)
|
||||
#define PFINT_OICR_ECC_ERR_M BIT(16)
|
||||
#define PFINT_OICR_MAL_DETECT_M BIT(19)
|
||||
#define PFINT_OICR_GRST_M BIT(20)
|
||||
#define PFINT_OICR_PCI_EXCEPTION_M BIT(21)
|
||||
#define PFINT_OICR_HMC_ERR_M BIT(26)
|
||||
#define PFINT_OICR_PE_CRITERR_M BIT(28)
|
||||
#define PFINT_OICR_CTL 0x0016CA80
|
||||
#define PFINT_OICR_CTL_MSIX_INDX_S 0
|
||||
#define PFINT_OICR_CTL_MSIX_INDX_M ICE_M(0x7FF, PFINT_OICR_CTL_MSIX_INDX_S)
|
||||
#define PFINT_OICR_CTL_MSIX_INDX_M ICE_M(0x7FF, 0)
|
||||
#define PFINT_OICR_CTL_ITR_INDX_S 11
|
||||
#define PFINT_OICR_CTL_ITR_INDX_M ICE_M(0x3, PFINT_OICR_CTL_ITR_INDX_S)
|
||||
#define PFINT_OICR_CTL_CAUSE_ENA_S 30
|
||||
#define PFINT_OICR_CTL_CAUSE_ENA_M BIT(PFINT_OICR_CTL_CAUSE_ENA_S)
|
||||
#define PFINT_OICR_CTL_ITR_INDX_M ICE_M(0x3, 11)
|
||||
#define PFINT_OICR_CTL_CAUSE_ENA_M BIT(30)
|
||||
#define PFINT_OICR_ENA 0x0016C900
|
||||
#define QINT_RQCTL(_QRX) (0x00150000 + ((_QRX) * 4))
|
||||
#define QINT_RQCTL_MSIX_INDX_S 0
|
||||
#define QINT_RQCTL_ITR_INDX_S 11
|
||||
#define QINT_RQCTL_CAUSE_ENA_S 30
|
||||
#define QINT_RQCTL_CAUSE_ENA_M BIT(QINT_RQCTL_CAUSE_ENA_S)
|
||||
#define QINT_RQCTL_CAUSE_ENA_M BIT(30)
|
||||
#define QINT_TQCTL(_DBQM) (0x00140000 + ((_DBQM) * 4))
|
||||
#define QINT_TQCTL_MSIX_INDX_S 0
|
||||
#define QINT_TQCTL_ITR_INDX_S 11
|
||||
#define QINT_TQCTL_CAUSE_ENA_S 30
|
||||
#define QINT_TQCTL_CAUSE_ENA_M BIT(QINT_TQCTL_CAUSE_ENA_S)
|
||||
#define GLLAN_RCTL_0 0x002941F8
|
||||
#define QINT_TQCTL_CAUSE_ENA_M BIT(30)
|
||||
#define QRX_CONTEXT(_i, _QRX) (0x00280000 + ((_i) * 8192 + (_QRX) * 4))
|
||||
#define QRX_CTRL(_QRX) (0x00120000 + ((_QRX) * 4))
|
||||
#define QRX_CTRL_MAX_INDEX 2047
|
||||
#define QRX_CTRL_QENA_REQ_S 0
|
||||
#define QRX_CTRL_QENA_REQ_M BIT(QRX_CTRL_QENA_REQ_S)
|
||||
#define QRX_CTRL_QENA_REQ_M BIT(0)
|
||||
#define QRX_CTRL_QENA_STAT_S 2
|
||||
#define QRX_CTRL_QENA_STAT_M BIT(QRX_CTRL_QENA_STAT_S)
|
||||
#define QRX_CTRL_QENA_STAT_M BIT(2)
|
||||
#define QRX_ITR(_QRX) (0x00292000 + ((_QRX) * 4))
|
||||
#define QRX_TAIL(_QRX) (0x00290000 + ((_QRX) * 4))
|
||||
#define GLNVM_FLA 0x000B6108
|
||||
#define GLNVM_FLA_LOCKED_S 6
|
||||
#define GLNVM_FLA_LOCKED_M BIT(GLNVM_FLA_LOCKED_S)
|
||||
#define GLNVM_FLA_LOCKED_M BIT(6)
|
||||
#define GLNVM_GENS 0x000B6100
|
||||
#define GLNVM_GENS_SR_SIZE_S 5
|
||||
#define GLNVM_GENS_SR_SIZE_M ICE_M(0x7, GLNVM_GENS_SR_SIZE_S)
|
||||
#define GLNVM_GENS_SR_SIZE_M ICE_M(0x7, 5)
|
||||
#define GLNVM_ULD 0x000B6008
|
||||
#define GLNVM_ULD_CORER_DONE_S 3
|
||||
#define GLNVM_ULD_CORER_DONE_M BIT(GLNVM_ULD_CORER_DONE_S)
|
||||
#define GLNVM_ULD_GLOBR_DONE_S 4
|
||||
#define GLNVM_ULD_GLOBR_DONE_M BIT(GLNVM_ULD_GLOBR_DONE_S)
|
||||
#define GLNVM_ULD_CORER_DONE_M BIT(3)
|
||||
#define GLNVM_ULD_GLOBR_DONE_M BIT(4)
|
||||
#define PF_FUNC_RID 0x0009E880
|
||||
#define PF_FUNC_RID_FUNC_NUM_S 0
|
||||
#define PF_FUNC_RID_FUNC_NUM_M ICE_M(0x7, PF_FUNC_RID_FUNC_NUM_S)
|
||||
#define PF_FUNC_RID_FUNC_NUM_M ICE_M(0x7, 0)
|
||||
#define GLPRT_BPRCH(_i) (0x00381384 + ((_i) * 8))
|
||||
#define GLPRT_BPRCL(_i) (0x00381380 + ((_i) * 8))
|
||||
#define GLPRT_BPTCH(_i) (0x00381244 + ((_i) * 8))
|
||||
|
|
Loading…
Reference in New Issue