162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci/* Copyright(c) 2013 - 2018 Intel Corporation. */
362306a36Sopenharmony_ci
462306a36Sopenharmony_ci#ifndef _IAVF_REGISTER_H_
562306a36Sopenharmony_ci#define _IAVF_REGISTER_H_
662306a36Sopenharmony_ci
762306a36Sopenharmony_ci#define IAVF_VF_ARQBAH1 0x00006000 /* Reset: EMPR */
862306a36Sopenharmony_ci#define IAVF_VF_ARQBAL1 0x00006C00 /* Reset: EMPR */
962306a36Sopenharmony_ci#define IAVF_VF_ARQH1 0x00007400 /* Reset: EMPR */
1062306a36Sopenharmony_ci#define IAVF_VF_ARQH1_ARQH_SHIFT 0
1162306a36Sopenharmony_ci#define IAVF_VF_ARQH1_ARQH_MASK IAVF_MASK(0x3FF, IAVF_VF_ARQH1_ARQH_SHIFT)
1262306a36Sopenharmony_ci#define IAVF_VF_ARQLEN1 0x00008000 /* Reset: EMPR */
1362306a36Sopenharmony_ci#define IAVF_VF_ARQLEN1_ARQVFE_SHIFT 28
1462306a36Sopenharmony_ci#define IAVF_VF_ARQLEN1_ARQVFE_MASK IAVF_MASK(0x1, IAVF_VF_ARQLEN1_ARQVFE_SHIFT)
1562306a36Sopenharmony_ci#define IAVF_VF_ARQLEN1_ARQOVFL_SHIFT 29
1662306a36Sopenharmony_ci#define IAVF_VF_ARQLEN1_ARQOVFL_MASK IAVF_MASK(0x1, IAVF_VF_ARQLEN1_ARQOVFL_SHIFT)
1762306a36Sopenharmony_ci#define IAVF_VF_ARQLEN1_ARQCRIT_SHIFT 30
1862306a36Sopenharmony_ci#define IAVF_VF_ARQLEN1_ARQCRIT_MASK IAVF_MASK(0x1, IAVF_VF_ARQLEN1_ARQCRIT_SHIFT)
1962306a36Sopenharmony_ci#define IAVF_VF_ARQLEN1_ARQENABLE_SHIFT 31
2062306a36Sopenharmony_ci#define IAVF_VF_ARQLEN1_ARQENABLE_MASK IAVF_MASK(0x1, IAVF_VF_ARQLEN1_ARQENABLE_SHIFT)
2162306a36Sopenharmony_ci#define IAVF_VF_ARQT1 0x00007000 /* Reset: EMPR */
2262306a36Sopenharmony_ci#define IAVF_VF_ATQBAH1 0x00007800 /* Reset: EMPR */
2362306a36Sopenharmony_ci#define IAVF_VF_ATQBAL1 0x00007C00 /* Reset: EMPR */
2462306a36Sopenharmony_ci#define IAVF_VF_ATQH1 0x00006400 /* Reset: EMPR */
2562306a36Sopenharmony_ci#define IAVF_VF_ATQLEN1 0x00006800 /* Reset: EMPR */
2662306a36Sopenharmony_ci#define IAVF_VF_ATQLEN1_ATQVFE_SHIFT 28
2762306a36Sopenharmony_ci#define IAVF_VF_ATQLEN1_ATQVFE_MASK IAVF_MASK(0x1, IAVF_VF_ATQLEN1_ATQVFE_SHIFT)
2862306a36Sopenharmony_ci#define IAVF_VF_ATQLEN1_ATQOVFL_SHIFT 29
2962306a36Sopenharmony_ci#define IAVF_VF_ATQLEN1_ATQOVFL_MASK IAVF_MASK(0x1, IAVF_VF_ATQLEN1_ATQOVFL_SHIFT)
3062306a36Sopenharmony_ci#define IAVF_VF_ATQLEN1_ATQCRIT_SHIFT 30
3162306a36Sopenharmony_ci#define IAVF_VF_ATQLEN1_ATQCRIT_MASK IAVF_MASK(0x1, IAVF_VF_ATQLEN1_ATQCRIT_SHIFT)
3262306a36Sopenharmony_ci#define IAVF_VF_ATQLEN1_ATQENABLE_SHIFT 31
3362306a36Sopenharmony_ci#define IAVF_VF_ATQLEN1_ATQENABLE_MASK IAVF_MASK(0x1, IAVF_VF_ATQLEN1_ATQENABLE_SHIFT)
3462306a36Sopenharmony_ci#define IAVF_VF_ATQT1 0x00008400 /* Reset: EMPR */
3562306a36Sopenharmony_ci#define IAVF_VFGEN_RSTAT 0x00008800 /* Reset: VFR */
3662306a36Sopenharmony_ci#define IAVF_VFGEN_RSTAT_VFR_STATE_SHIFT 0
3762306a36Sopenharmony_ci#define IAVF_VFGEN_RSTAT_VFR_STATE_MASK IAVF_MASK(0x3, IAVF_VFGEN_RSTAT_VFR_STATE_SHIFT)
3862306a36Sopenharmony_ci#define IAVF_VFINT_DYN_CTL01 0x00005C00 /* Reset: VFR */
3962306a36Sopenharmony_ci#define IAVF_VFINT_DYN_CTL01_INTENA_SHIFT 0
4062306a36Sopenharmony_ci#define IAVF_VFINT_DYN_CTL01_INTENA_MASK IAVF_MASK(0x1, IAVF_VFINT_DYN_CTL01_INTENA_SHIFT)
4162306a36Sopenharmony_ci#define IAVF_VFINT_DYN_CTL01_ITR_INDX_SHIFT 3
4262306a36Sopenharmony_ci#define IAVF_VFINT_DYN_CTL01_ITR_INDX_MASK IAVF_MASK(0x3, IAVF_VFINT_DYN_CTL01_ITR_INDX_SHIFT)
4362306a36Sopenharmony_ci#define IAVF_VFINT_DYN_CTLN1(_INTVF) (0x00003800 + ((_INTVF) * 4)) /* _i=0...63 */ /* Reset: VFR */
4462306a36Sopenharmony_ci#define IAVF_VFINT_DYN_CTLN1_INTENA_SHIFT 0
4562306a36Sopenharmony_ci#define IAVF_VFINT_DYN_CTLN1_INTENA_MASK IAVF_MASK(0x1, IAVF_VFINT_DYN_CTLN1_INTENA_SHIFT)
4662306a36Sopenharmony_ci#define IAVF_VFINT_DYN_CTLN1_SWINT_TRIG_SHIFT 2
4762306a36Sopenharmony_ci#define IAVF_VFINT_DYN_CTLN1_SWINT_TRIG_MASK IAVF_MASK(0x1, IAVF_VFINT_DYN_CTLN1_SWINT_TRIG_SHIFT)
4862306a36Sopenharmony_ci#define IAVF_VFINT_DYN_CTLN1_ITR_INDX_SHIFT 3
4962306a36Sopenharmony_ci#define IAVF_VFINT_DYN_CTLN1_ITR_INDX_MASK IAVF_MASK(0x3, IAVF_VFINT_DYN_CTLN1_ITR_INDX_SHIFT)
5062306a36Sopenharmony_ci#define IAVF_VFINT_DYN_CTLN1_INTERVAL_SHIFT 5
5162306a36Sopenharmony_ci#define IAVF_VFINT_DYN_CTLN1_SW_ITR_INDX_ENA_SHIFT 24
5262306a36Sopenharmony_ci#define IAVF_VFINT_DYN_CTLN1_SW_ITR_INDX_ENA_MASK IAVF_MASK(0x1, IAVF_VFINT_DYN_CTLN1_SW_ITR_INDX_ENA_SHIFT)
5362306a36Sopenharmony_ci#define IAVF_VFINT_ICR0_ENA1 0x00005000 /* Reset: CORER */
5462306a36Sopenharmony_ci#define IAVF_VFINT_ICR0_ENA1_ADMINQ_SHIFT 30
5562306a36Sopenharmony_ci#define IAVF_VFINT_ICR0_ENA1_ADMINQ_MASK IAVF_MASK(0x1, IAVF_VFINT_ICR0_ENA1_ADMINQ_SHIFT)
5662306a36Sopenharmony_ci#define IAVF_VFINT_ICR0_ENA1_RSVD_SHIFT 31
5762306a36Sopenharmony_ci#define IAVF_VFINT_ICR01 0x00004800 /* Reset: CORER */
5862306a36Sopenharmony_ci#define IAVF_VFINT_ITRN1(_i, _INTVF) (0x00002800 + ((_i) * 64 + (_INTVF) * 4)) /* _i=0...2, _INTVF=0...15 */ /* Reset: VFR */
5962306a36Sopenharmony_ci#define IAVF_QRX_TAIL1(_Q) (0x00002000 + ((_Q) * 4)) /* _i=0...15 */ /* Reset: CORER */
6062306a36Sopenharmony_ci#define IAVF_QTX_TAIL1(_Q) (0x00000000 + ((_Q) * 4)) /* _i=0...15 */ /* Reset: PFR */
6162306a36Sopenharmony_ci#define IAVF_VFQF_HENA(_i) (0x0000C400 + ((_i) * 4)) /* _i=0...1 */ /* Reset: CORER */
6262306a36Sopenharmony_ci#define IAVF_VFQF_HKEY(_i) (0x0000CC00 + ((_i) * 4)) /* _i=0...12 */ /* Reset: CORER */
6362306a36Sopenharmony_ci#define IAVF_VFQF_HKEY_MAX_INDEX 12
6462306a36Sopenharmony_ci#define IAVF_VFQF_HLUT(_i) (0x0000D000 + ((_i) * 4)) /* _i=0...15 */ /* Reset: CORER */
6562306a36Sopenharmony_ci#define IAVF_VFQF_HLUT_MAX_INDEX 15
6662306a36Sopenharmony_ci#define IAVF_VFINT_DYN_CTLN1_WB_ON_ITR_SHIFT 30
6762306a36Sopenharmony_ci#define IAVF_VFINT_DYN_CTLN1_WB_ON_ITR_MASK IAVF_MASK(0x1, IAVF_VFINT_DYN_CTLN1_WB_ON_ITR_SHIFT)
6862306a36Sopenharmony_ci#endif /* _IAVF_REGISTER_H_ */
69