1*66bc8e0fSJesse Brandeburg /* SPDX-License-Identifier: GPL-2.0 */ 2*66bc8e0fSJesse Brandeburg /* Copyright(c) 2013 - 2018 Intel Corporation. */ 3*66bc8e0fSJesse Brandeburg 4*66bc8e0fSJesse Brandeburg #ifndef _IAVF_REGISTER_H_ 5*66bc8e0fSJesse Brandeburg #define _IAVF_REGISTER_H_ 6*66bc8e0fSJesse Brandeburg 7*66bc8e0fSJesse Brandeburg #define IAVF_VF_ARQBAH1 0x00006000 /* Reset: EMPR */ 8*66bc8e0fSJesse Brandeburg #define IAVF_VF_ARQBAL1 0x00006C00 /* Reset: EMPR */ 9*66bc8e0fSJesse Brandeburg #define IAVF_VF_ARQH1 0x00007400 /* Reset: EMPR */ 10*66bc8e0fSJesse Brandeburg #define IAVF_VF_ARQH1_ARQH_SHIFT 0 11*66bc8e0fSJesse Brandeburg #define IAVF_VF_ARQH1_ARQH_MASK IAVF_MASK(0x3FF, IAVF_VF_ARQH1_ARQH_SHIFT) 12*66bc8e0fSJesse Brandeburg #define IAVF_VF_ARQLEN1 0x00008000 /* Reset: EMPR */ 13*66bc8e0fSJesse Brandeburg #define IAVF_VF_ARQLEN1_ARQVFE_SHIFT 28 14*66bc8e0fSJesse Brandeburg #define IAVF_VF_ARQLEN1_ARQVFE_MASK IAVF_MASK(0x1, IAVF_VF_ARQLEN1_ARQVFE_SHIFT) 15*66bc8e0fSJesse Brandeburg #define IAVF_VF_ARQLEN1_ARQOVFL_SHIFT 29 16*66bc8e0fSJesse Brandeburg #define IAVF_VF_ARQLEN1_ARQOVFL_MASK IAVF_MASK(0x1, IAVF_VF_ARQLEN1_ARQOVFL_SHIFT) 17*66bc8e0fSJesse Brandeburg #define IAVF_VF_ARQLEN1_ARQCRIT_SHIFT 30 18*66bc8e0fSJesse Brandeburg #define IAVF_VF_ARQLEN1_ARQCRIT_MASK IAVF_MASK(0x1, IAVF_VF_ARQLEN1_ARQCRIT_SHIFT) 19*66bc8e0fSJesse Brandeburg #define IAVF_VF_ARQLEN1_ARQENABLE_SHIFT 31 20*66bc8e0fSJesse Brandeburg #define IAVF_VF_ARQLEN1_ARQENABLE_MASK IAVF_MASK(0x1, IAVF_VF_ARQLEN1_ARQENABLE_SHIFT) 21*66bc8e0fSJesse Brandeburg #define IAVF_VF_ARQT1 0x00007000 /* Reset: EMPR */ 22*66bc8e0fSJesse Brandeburg #define IAVF_VF_ATQBAH1 0x00007800 /* Reset: EMPR */ 23*66bc8e0fSJesse Brandeburg #define IAVF_VF_ATQBAL1 0x00007C00 /* Reset: EMPR */ 24*66bc8e0fSJesse Brandeburg #define IAVF_VF_ATQH1 0x00006400 /* Reset: EMPR */ 25*66bc8e0fSJesse Brandeburg #define IAVF_VF_ATQLEN1 0x00006800 /* Reset: EMPR */ 26*66bc8e0fSJesse Brandeburg #define IAVF_VF_ATQLEN1_ATQVFE_SHIFT 28 27*66bc8e0fSJesse Brandeburg #define IAVF_VF_ATQLEN1_ATQVFE_MASK IAVF_MASK(0x1, IAVF_VF_ATQLEN1_ATQVFE_SHIFT) 28*66bc8e0fSJesse Brandeburg #define IAVF_VF_ATQLEN1_ATQOVFL_SHIFT 29 29*66bc8e0fSJesse Brandeburg #define IAVF_VF_ATQLEN1_ATQOVFL_MASK IAVF_MASK(0x1, IAVF_VF_ATQLEN1_ATQOVFL_SHIFT) 30*66bc8e0fSJesse Brandeburg #define IAVF_VF_ATQLEN1_ATQCRIT_SHIFT 30 31*66bc8e0fSJesse Brandeburg #define IAVF_VF_ATQLEN1_ATQCRIT_MASK IAVF_MASK(0x1, IAVF_VF_ATQLEN1_ATQCRIT_SHIFT) 32*66bc8e0fSJesse Brandeburg #define IAVF_VF_ATQLEN1_ATQENABLE_SHIFT 31 33*66bc8e0fSJesse Brandeburg #define IAVF_VF_ATQLEN1_ATQENABLE_MASK IAVF_MASK(0x1, IAVF_VF_ATQLEN1_ATQENABLE_SHIFT) 34*66bc8e0fSJesse Brandeburg #define IAVF_VF_ATQT1 0x00008400 /* Reset: EMPR */ 35*66bc8e0fSJesse Brandeburg #define IAVF_VFGEN_RSTAT 0x00008800 /* Reset: VFR */ 36*66bc8e0fSJesse Brandeburg #define IAVF_VFGEN_RSTAT_VFR_STATE_SHIFT 0 37*66bc8e0fSJesse Brandeburg #define IAVF_VFGEN_RSTAT_VFR_STATE_MASK IAVF_MASK(0x3, IAVF_VFGEN_RSTAT_VFR_STATE_SHIFT) 38*66bc8e0fSJesse Brandeburg #define IAVF_VFINT_DYN_CTL01 0x00005C00 /* Reset: VFR */ 39*66bc8e0fSJesse Brandeburg #define IAVF_VFINT_DYN_CTL01_INTENA_SHIFT 0 40*66bc8e0fSJesse Brandeburg #define IAVF_VFINT_DYN_CTL01_INTENA_MASK IAVF_MASK(0x1, IAVF_VFINT_DYN_CTL01_INTENA_SHIFT) 41*66bc8e0fSJesse Brandeburg #define IAVF_VFINT_DYN_CTL01_ITR_INDX_SHIFT 3 42*66bc8e0fSJesse Brandeburg #define IAVF_VFINT_DYN_CTL01_ITR_INDX_MASK IAVF_MASK(0x3, IAVF_VFINT_DYN_CTL01_ITR_INDX_SHIFT) 43*66bc8e0fSJesse Brandeburg #define IAVF_VFINT_DYN_CTLN1(_INTVF) (0x00003800 + ((_INTVF) * 4)) /* _i=0...63 */ /* Reset: VFR */ 44*66bc8e0fSJesse Brandeburg #define IAVF_VFINT_DYN_CTLN1_INTENA_SHIFT 0 45*66bc8e0fSJesse Brandeburg #define IAVF_VFINT_DYN_CTLN1_INTENA_MASK IAVF_MASK(0x1, IAVF_VFINT_DYN_CTLN1_INTENA_SHIFT) 46*66bc8e0fSJesse Brandeburg #define IAVF_VFINT_DYN_CTLN1_SWINT_TRIG_SHIFT 2 47*66bc8e0fSJesse Brandeburg #define IAVF_VFINT_DYN_CTLN1_SWINT_TRIG_MASK IAVF_MASK(0x1, IAVF_VFINT_DYN_CTLN1_SWINT_TRIG_SHIFT) 48*66bc8e0fSJesse Brandeburg #define IAVF_VFINT_DYN_CTLN1_ITR_INDX_SHIFT 3 49*66bc8e0fSJesse Brandeburg #define IAVF_VFINT_DYN_CTLN1_ITR_INDX_MASK IAVF_MASK(0x3, IAVF_VFINT_DYN_CTLN1_ITR_INDX_SHIFT) 50*66bc8e0fSJesse Brandeburg #define IAVF_VFINT_DYN_CTLN1_INTERVAL_SHIFT 5 51*66bc8e0fSJesse Brandeburg #define IAVF_VFINT_DYN_CTLN1_SW_ITR_INDX_ENA_SHIFT 24 52*66bc8e0fSJesse Brandeburg #define IAVF_VFINT_DYN_CTLN1_SW_ITR_INDX_ENA_MASK IAVF_MASK(0x1, IAVF_VFINT_DYN_CTLN1_SW_ITR_INDX_ENA_SHIFT) 53*66bc8e0fSJesse Brandeburg #define IAVF_VFINT_ICR0_ENA1 0x00005000 /* Reset: CORER */ 54*66bc8e0fSJesse Brandeburg #define IAVF_VFINT_ICR0_ENA1_ADMINQ_SHIFT 30 55*66bc8e0fSJesse Brandeburg #define IAVF_VFINT_ICR0_ENA1_ADMINQ_MASK IAVF_MASK(0x1, IAVF_VFINT_ICR0_ENA1_ADMINQ_SHIFT) 56*66bc8e0fSJesse Brandeburg #define IAVF_VFINT_ICR0_ENA1_RSVD_SHIFT 31 57*66bc8e0fSJesse Brandeburg #define IAVF_VFINT_ICR01 0x00004800 /* Reset: CORER */ 58*66bc8e0fSJesse Brandeburg #define IAVF_VFINT_ITRN1(_i, _INTVF) (0x00002800 + ((_i) * 64 + (_INTVF) * 4)) /* _i=0...2, _INTVF=0...15 */ /* Reset: VFR */ 59*66bc8e0fSJesse Brandeburg #define IAVF_QRX_TAIL1(_Q) (0x00002000 + ((_Q) * 4)) /* _i=0...15 */ /* Reset: CORER */ 60*66bc8e0fSJesse Brandeburg #define IAVF_QTX_TAIL1(_Q) (0x00000000 + ((_Q) * 4)) /* _i=0...15 */ /* Reset: PFR */ 61*66bc8e0fSJesse Brandeburg #define IAVF_VFQF_HENA(_i) (0x0000C400 + ((_i) * 4)) /* _i=0...1 */ /* Reset: CORER */ 62*66bc8e0fSJesse Brandeburg #define IAVF_VFQF_HKEY(_i) (0x0000CC00 + ((_i) * 4)) /* _i=0...12 */ /* Reset: CORER */ 63*66bc8e0fSJesse Brandeburg #define IAVF_VFQF_HKEY_MAX_INDEX 12 64*66bc8e0fSJesse Brandeburg #define IAVF_VFQF_HLUT(_i) (0x0000D000 + ((_i) * 4)) /* _i=0...15 */ /* Reset: CORER */ 65*66bc8e0fSJesse Brandeburg #define IAVF_VFQF_HLUT_MAX_INDEX 15 66*66bc8e0fSJesse Brandeburg #define IAVF_VFINT_DYN_CTLN1_WB_ON_ITR_SHIFT 30 67*66bc8e0fSJesse Brandeburg #define IAVF_VFINT_DYN_CTLN1_WB_ON_ITR_MASK IAVF_MASK(0x1, IAVF_VFINT_DYN_CTLN1_WB_ON_ITR_SHIFT) 68*66bc8e0fSJesse Brandeburg #endif /* _IAVF_REGISTER_H_ */ 69