18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci *
38c2ecf20Sopenharmony_ci * Copyright 2016-2020 HabanaLabs, Ltd.
48c2ecf20Sopenharmony_ci * All Rights Reserved.
58c2ecf20Sopenharmony_ci *
68c2ecf20Sopenharmony_ci */
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci#ifndef GAUDI_MASKS_H_
98c2ecf20Sopenharmony_ci#define GAUDI_MASKS_H_
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#include "asic_reg/gaudi_regs.h"
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci/* Useful masks for bits in various registers */
148c2ecf20Sopenharmony_ci#define PCI_DMA_QMAN_ENABLE		(\
158c2ecf20Sopenharmony_ci	(FIELD_PREP(DMA0_QM_GLBL_CFG0_PQF_EN_MASK, 0xF)) | \
168c2ecf20Sopenharmony_ci	(FIELD_PREP(DMA0_QM_GLBL_CFG0_CQF_EN_MASK, 0xF)) | \
178c2ecf20Sopenharmony_ci	(FIELD_PREP(DMA0_QM_GLBL_CFG0_CP_EN_MASK, 0xF)))
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci#define QMAN_EXTERNAL_MAKE_TRUSTED	(\
208c2ecf20Sopenharmony_ci	(FIELD_PREP(DMA0_QM_GLBL_PROT_PQF_MASK, 0xF)) | \
218c2ecf20Sopenharmony_ci	(FIELD_PREP(DMA0_QM_GLBL_PROT_CQF_MASK, 0xF)) | \
228c2ecf20Sopenharmony_ci	(FIELD_PREP(DMA0_QM_GLBL_PROT_CP_MASK, 0xF)) | \
238c2ecf20Sopenharmony_ci	(FIELD_PREP(DMA0_QM_GLBL_PROT_ERR_MASK, 0x1)))
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci#define QMAN_INTERNAL_MAKE_TRUSTED	(\
268c2ecf20Sopenharmony_ci	(FIELD_PREP(DMA0_QM_GLBL_PROT_PQF_MASK, 0xF)) | \
278c2ecf20Sopenharmony_ci	(FIELD_PREP(DMA0_QM_GLBL_PROT_ERR_MASK, 0x1)))
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci#define HBM_DMA_QMAN_ENABLE		(\
308c2ecf20Sopenharmony_ci	(FIELD_PREP(DMA0_QM_GLBL_CFG0_PQF_EN_MASK, 0xF)) | \
318c2ecf20Sopenharmony_ci	(FIELD_PREP(DMA0_QM_GLBL_CFG0_CQF_EN_MASK, 0x1F)) | \
328c2ecf20Sopenharmony_ci	(FIELD_PREP(DMA0_QM_GLBL_CFG0_CP_EN_MASK, 0x1F)))
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci#define QMAN_MME_ENABLE		(\
358c2ecf20Sopenharmony_ci	(FIELD_PREP(MME0_QM_GLBL_CFG0_PQF_EN_MASK, 0xF)) | \
368c2ecf20Sopenharmony_ci	(FIELD_PREP(MME0_QM_GLBL_CFG0_CQF_EN_MASK, 0x1F)) | \
378c2ecf20Sopenharmony_ci	(FIELD_PREP(MME0_QM_GLBL_CFG0_CP_EN_MASK, 0x1F)))
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_ci#define QMAN_TPC_ENABLE		(\
408c2ecf20Sopenharmony_ci	(FIELD_PREP(TPC0_QM_GLBL_CFG0_PQF_EN_MASK, 0xF)) | \
418c2ecf20Sopenharmony_ci	(FIELD_PREP(TPC0_QM_GLBL_CFG0_CQF_EN_MASK, 0x1F)) | \
428c2ecf20Sopenharmony_ci	(FIELD_PREP(TPC0_QM_GLBL_CFG0_CP_EN_MASK, 0x1F)))
438c2ecf20Sopenharmony_ci
448c2ecf20Sopenharmony_ci#define QMAN_UPPER_CP_CGM_PWR_GATE_EN	(\
458c2ecf20Sopenharmony_ci	(FIELD_PREP(DMA0_QM_CGM_CFG_IDLE_TH_MASK, 0x20)) | \
468c2ecf20Sopenharmony_ci	(FIELD_PREP(DMA0_QM_CGM_CFG_G2F_TH_MASK, 0xA)) | \
478c2ecf20Sopenharmony_ci	(FIELD_PREP(DMA0_QM_CGM_CFG_CP_IDLE_MASK_MASK, 0x10)) | \
488c2ecf20Sopenharmony_ci	(FIELD_PREP(DMA0_QM_CGM_CFG_EN_MASK, 0x1)))
498c2ecf20Sopenharmony_ci
508c2ecf20Sopenharmony_ci#define QMAN_COMMON_CP_CGM_PWR_GATE_EN	(\
518c2ecf20Sopenharmony_ci	(FIELD_PREP(DMA0_QM_CGM_CFG_IDLE_TH_MASK, 0x20)) | \
528c2ecf20Sopenharmony_ci	(FIELD_PREP(DMA0_QM_CGM_CFG_G2F_TH_MASK, 0xA)) | \
538c2ecf20Sopenharmony_ci	(FIELD_PREP(DMA0_QM_CGM_CFG_CP_IDLE_MASK_MASK, 0xF)) | \
548c2ecf20Sopenharmony_ci	(FIELD_PREP(DMA0_QM_CGM_CFG_EN_MASK, 0x1)))
558c2ecf20Sopenharmony_ci
568c2ecf20Sopenharmony_ci#define PCI_DMA_QMAN_GLBL_ERR_CFG_MSG_EN_MASK	(\
578c2ecf20Sopenharmony_ci	(FIELD_PREP(DMA0_QM_GLBL_ERR_CFG_PQF_ERR_MSG_EN_MASK, 0xF)) | \
588c2ecf20Sopenharmony_ci	(FIELD_PREP(DMA0_QM_GLBL_ERR_CFG_CQF_ERR_MSG_EN_MASK, 0xF)) | \
598c2ecf20Sopenharmony_ci	(FIELD_PREP(DMA0_QM_GLBL_ERR_CFG_CP_ERR_MSG_EN_MASK, 0xF)))
608c2ecf20Sopenharmony_ci
618c2ecf20Sopenharmony_ci#define PCI_DMA_QMAN_GLBL_ERR_CFG_STOP_ON_ERR_EN_MASK	(\
628c2ecf20Sopenharmony_ci	(FIELD_PREP(DMA0_QM_GLBL_ERR_CFG_PQF_STOP_ON_ERR_MASK, 0xF)) | \
638c2ecf20Sopenharmony_ci	(FIELD_PREP(DMA0_QM_GLBL_ERR_CFG_CQF_STOP_ON_ERR_MASK, 0xF)) | \
648c2ecf20Sopenharmony_ci	(FIELD_PREP(DMA0_QM_GLBL_ERR_CFG_CP_STOP_ON_ERR_MASK, 0xF)))
658c2ecf20Sopenharmony_ci
668c2ecf20Sopenharmony_ci#define HBM_DMA_QMAN_GLBL_ERR_CFG_MSG_EN_MASK	(\
678c2ecf20Sopenharmony_ci	(FIELD_PREP(DMA0_QM_GLBL_ERR_CFG_PQF_ERR_MSG_EN_MASK, 0xF)) | \
688c2ecf20Sopenharmony_ci	(FIELD_PREP(DMA0_QM_GLBL_ERR_CFG_CQF_ERR_MSG_EN_MASK, 0x1F)) | \
698c2ecf20Sopenharmony_ci	(FIELD_PREP(DMA0_QM_GLBL_ERR_CFG_CP_ERR_MSG_EN_MASK, 0x1F)))
708c2ecf20Sopenharmony_ci
718c2ecf20Sopenharmony_ci#define HBM_DMA_QMAN_GLBL_ERR_CFG_STOP_ON_ERR_EN_MASK	(\
728c2ecf20Sopenharmony_ci	(FIELD_PREP(DMA0_QM_GLBL_ERR_CFG_PQF_STOP_ON_ERR_MASK, 0xF)) | \
738c2ecf20Sopenharmony_ci	(FIELD_PREP(DMA0_QM_GLBL_ERR_CFG_CQF_STOP_ON_ERR_MASK, 0x1F)) | \
748c2ecf20Sopenharmony_ci	(FIELD_PREP(DMA0_QM_GLBL_ERR_CFG_CP_STOP_ON_ERR_MASK, 0x1F)))
758c2ecf20Sopenharmony_ci
768c2ecf20Sopenharmony_ci#define TPC_QMAN_GLBL_ERR_CFG_MSG_EN_MASK	(\
778c2ecf20Sopenharmony_ci	(FIELD_PREP(TPC0_QM_GLBL_ERR_CFG_PQF_ERR_MSG_EN_MASK, 0xF)) | \
788c2ecf20Sopenharmony_ci	(FIELD_PREP(TPC0_QM_GLBL_ERR_CFG_CQF_ERR_MSG_EN_MASK, 0x1F)) | \
798c2ecf20Sopenharmony_ci	(FIELD_PREP(TPC0_QM_GLBL_ERR_CFG_CP_ERR_MSG_EN_MASK, 0x1F)))
808c2ecf20Sopenharmony_ci
818c2ecf20Sopenharmony_ci#define TPC_QMAN_GLBL_ERR_CFG_STOP_ON_ERR_EN_MASK	(\
828c2ecf20Sopenharmony_ci	(FIELD_PREP(TPC0_QM_GLBL_ERR_CFG_PQF_STOP_ON_ERR_MASK, 0xF)) | \
838c2ecf20Sopenharmony_ci	(FIELD_PREP(TPC0_QM_GLBL_ERR_CFG_CQF_STOP_ON_ERR_MASK, 0x1F)) | \
848c2ecf20Sopenharmony_ci	(FIELD_PREP(TPC0_QM_GLBL_ERR_CFG_CP_STOP_ON_ERR_MASK, 0x1F)))
858c2ecf20Sopenharmony_ci
868c2ecf20Sopenharmony_ci#define MME_QMAN_GLBL_ERR_CFG_MSG_EN_MASK	(\
878c2ecf20Sopenharmony_ci	(FIELD_PREP(MME0_QM_GLBL_ERR_CFG_PQF_ERR_MSG_EN_MASK, 0xF)) | \
888c2ecf20Sopenharmony_ci	(FIELD_PREP(MME0_QM_GLBL_ERR_CFG_CQF_ERR_MSG_EN_MASK, 0x1F)) | \
898c2ecf20Sopenharmony_ci	(FIELD_PREP(MME0_QM_GLBL_ERR_CFG_CP_ERR_MSG_EN_MASK, 0x1F)))
908c2ecf20Sopenharmony_ci
918c2ecf20Sopenharmony_ci#define MME_QMAN_GLBL_ERR_CFG_STOP_ON_ERR_EN_MASK	(\
928c2ecf20Sopenharmony_ci	(FIELD_PREP(MME0_QM_GLBL_ERR_CFG_PQF_STOP_ON_ERR_MASK, 0xF)) | \
938c2ecf20Sopenharmony_ci	(FIELD_PREP(MME0_QM_GLBL_ERR_CFG_CQF_STOP_ON_ERR_MASK, 0x1F)) | \
948c2ecf20Sopenharmony_ci	(FIELD_PREP(MME0_QM_GLBL_ERR_CFG_CP_STOP_ON_ERR_MASK, 0x1F)))
958c2ecf20Sopenharmony_ci
968c2ecf20Sopenharmony_ci#define QMAN_CGM1_PWR_GATE_EN	(FIELD_PREP(DMA0_QM_CGM_CFG1_MASK_TH_MASK, 0xA))
978c2ecf20Sopenharmony_ci
988c2ecf20Sopenharmony_ci/* RESET registers configuration */
998c2ecf20Sopenharmony_ci#define CFG_RST_L_PSOC_MASK		BIT_MASK(0)
1008c2ecf20Sopenharmony_ci#define CFG_RST_L_PCIE_MASK		BIT_MASK(1)
1018c2ecf20Sopenharmony_ci#define CFG_RST_L_PCIE_IF_MASK		BIT_MASK(2)
1028c2ecf20Sopenharmony_ci#define CFG_RST_L_HBM_S_PLL_MASK	BIT_MASK(3)
1038c2ecf20Sopenharmony_ci#define CFG_RST_L_TPC_S_PLL_MASK	BIT_MASK(4)
1048c2ecf20Sopenharmony_ci#define CFG_RST_L_MME_S_PLL_MASK	BIT_MASK(5)
1058c2ecf20Sopenharmony_ci#define CFG_RST_L_CPU_PLL_MASK		BIT_MASK(6)
1068c2ecf20Sopenharmony_ci#define CFG_RST_L_PCIE_PLL_MASK		BIT_MASK(7)
1078c2ecf20Sopenharmony_ci#define CFG_RST_L_NIC_S_PLL_MASK	BIT_MASK(8)
1088c2ecf20Sopenharmony_ci#define CFG_RST_L_HBM_N_PLL_MASK	BIT_MASK(9)
1098c2ecf20Sopenharmony_ci#define CFG_RST_L_TPC_N_PLL_MASK	BIT_MASK(10)
1108c2ecf20Sopenharmony_ci#define CFG_RST_L_MME_N_PLL_MASK	BIT_MASK(11)
1118c2ecf20Sopenharmony_ci#define CFG_RST_L_NIC_N_PLL_MASK	BIT_MASK(12)
1128c2ecf20Sopenharmony_ci#define CFG_RST_L_DMA_W_PLL_MASK	BIT_MASK(13)
1138c2ecf20Sopenharmony_ci#define CFG_RST_L_SIF_W_PLL_MASK	BIT_MASK(14)
1148c2ecf20Sopenharmony_ci#define CFG_RST_L_MESH_W_PLL_MASK	BIT_MASK(15)
1158c2ecf20Sopenharmony_ci#define CFG_RST_L_SRAM_W_PLL_MASK	BIT_MASK(16)
1168c2ecf20Sopenharmony_ci#define CFG_RST_L_DMA_E_PLL_MASK	BIT_MASK(17)
1178c2ecf20Sopenharmony_ci#define CFG_RST_L_SIF_E_PLL_MASK	BIT_MASK(18)
1188c2ecf20Sopenharmony_ci#define CFG_RST_L_MESH_E_PLL_MASK	BIT_MASK(19)
1198c2ecf20Sopenharmony_ci#define CFG_RST_L_SRAM_E_PLL_MASK	BIT_MASK(20)
1208c2ecf20Sopenharmony_ci
1218c2ecf20Sopenharmony_ci#define CFG_RST_L_IF_1_MASK		BIT_MASK(21)
1228c2ecf20Sopenharmony_ci#define CFG_RST_L_IF_0_MASK		BIT_MASK(22)
1238c2ecf20Sopenharmony_ci#define CFG_RST_L_IF_2_MASK		BIT_MASK(23)
1248c2ecf20Sopenharmony_ci#define CFG_RST_L_IF_3_MASK		BIT_MASK(24)
1258c2ecf20Sopenharmony_ci#define CFG_RST_L_IF_MASK		GENMASK(24, 21)
1268c2ecf20Sopenharmony_ci
1278c2ecf20Sopenharmony_ci#define CFG_RST_L_TPC_0_MASK		BIT_MASK(25)
1288c2ecf20Sopenharmony_ci#define CFG_RST_L_TPC_1_MASK		BIT_MASK(26)
1298c2ecf20Sopenharmony_ci#define CFG_RST_L_TPC_2_MASK		BIT_MASK(27)
1308c2ecf20Sopenharmony_ci#define CFG_RST_L_TPC_3_MASK		BIT_MASK(28)
1318c2ecf20Sopenharmony_ci#define CFG_RST_L_TPC_4_MASK		BIT_MASK(29)
1328c2ecf20Sopenharmony_ci#define CFG_RST_L_TPC_5_MASK		BIT_MASK(30)
1338c2ecf20Sopenharmony_ci#define CFG_RST_L_TPC_6_MASK		BIT_MASK(31)
1348c2ecf20Sopenharmony_ci#define CFG_RST_L_TPC_MASK		GENMASK(31, 25)
1358c2ecf20Sopenharmony_ci
1368c2ecf20Sopenharmony_ci#define CFG_RST_H_TPC_7_MASK		BIT_MASK(0)
1378c2ecf20Sopenharmony_ci
1388c2ecf20Sopenharmony_ci#define CFG_RST_H_MME_0_MASK		BIT_MASK(1)
1398c2ecf20Sopenharmony_ci#define CFG_RST_H_MME_1_MASK		BIT_MASK(2)
1408c2ecf20Sopenharmony_ci#define CFG_RST_H_MME_2_MASK		BIT_MASK(3)
1418c2ecf20Sopenharmony_ci#define CFG_RST_H_MME_3_MASK		BIT_MASK(4)
1428c2ecf20Sopenharmony_ci#define CFG_RST_H_MME_MASK		GENMASK(4, 1)
1438c2ecf20Sopenharmony_ci
1448c2ecf20Sopenharmony_ci#define CFG_RST_H_HBM_0_MASK		BIT_MASK(5)
1458c2ecf20Sopenharmony_ci#define CFG_RST_H_HBM_1_MASK		BIT_MASK(6)
1468c2ecf20Sopenharmony_ci#define CFG_RST_H_HBM_2_MASK		BIT_MASK(7)
1478c2ecf20Sopenharmony_ci#define CFG_RST_H_HBM_3_MASK		BIT_MASK(8)
1488c2ecf20Sopenharmony_ci#define CFG_RST_H_HBM_MASK		GENMASK(8, 5)
1498c2ecf20Sopenharmony_ci
1508c2ecf20Sopenharmony_ci#define CFG_RST_H_NIC_0_MASK		BIT_MASK(9)
1518c2ecf20Sopenharmony_ci#define CFG_RST_H_NIC_1_MASK		BIT_MASK(10)
1528c2ecf20Sopenharmony_ci#define CFG_RST_H_NIC_2_MASK		BIT_MASK(11)
1538c2ecf20Sopenharmony_ci#define CFG_RST_H_NIC_3_MASK		BIT_MASK(12)
1548c2ecf20Sopenharmony_ci#define CFG_RST_H_NIC_4_MASK		BIT_MASK(13)
1558c2ecf20Sopenharmony_ci#define CFG_RST_H_NIC_MASK		GENMASK(13, 9)
1568c2ecf20Sopenharmony_ci
1578c2ecf20Sopenharmony_ci#define CFG_RST_H_SM_0_MASK		BIT_MASK(14)
1588c2ecf20Sopenharmony_ci#define CFG_RST_H_SM_1_MASK		BIT_MASK(15)
1598c2ecf20Sopenharmony_ci#define CFG_RST_H_SM_2_MASK		BIT_MASK(16)
1608c2ecf20Sopenharmony_ci#define CFG_RST_H_SM_3_MASK		BIT_MASK(17)
1618c2ecf20Sopenharmony_ci#define CFG_RST_H_SM_MASK		GENMASK(17, 14)
1628c2ecf20Sopenharmony_ci
1638c2ecf20Sopenharmony_ci#define CFG_RST_H_DMA_0_MASK		BIT_MASK(18)
1648c2ecf20Sopenharmony_ci#define CFG_RST_H_DMA_1_MASK		BIT_MASK(19)
1658c2ecf20Sopenharmony_ci#define CFG_RST_H_DMA_MASK		GENMASK(19, 18)
1668c2ecf20Sopenharmony_ci
1678c2ecf20Sopenharmony_ci#define CFG_RST_H_CPU_MASK		BIT_MASK(20)
1688c2ecf20Sopenharmony_ci#define CFG_RST_H_MMU_MASK		BIT_MASK(21)
1698c2ecf20Sopenharmony_ci
1708c2ecf20Sopenharmony_ci#define UNIT_RST_L_PSOC_SHIFT		0
1718c2ecf20Sopenharmony_ci#define UNIT_RST_L_PCIE_SHIFT		1
1728c2ecf20Sopenharmony_ci#define UNIT_RST_L_PCIE_IF_SHIFT	2
1738c2ecf20Sopenharmony_ci#define UNIT_RST_L_HBM_S_PLL_SHIFT	3
1748c2ecf20Sopenharmony_ci#define UNIT_RST_L_TPC_S_PLL_SHIFT	4
1758c2ecf20Sopenharmony_ci#define UNIT_RST_L_MME_S_PLL_SHIFT	5
1768c2ecf20Sopenharmony_ci#define UNIT_RST_L_CPU_PLL_SHIFT	6
1778c2ecf20Sopenharmony_ci#define UNIT_RST_L_PCIE_PLL_SHIFT	7
1788c2ecf20Sopenharmony_ci#define UNIT_RST_L_NIC_S_PLL_SHIFT	8
1798c2ecf20Sopenharmony_ci#define UNIT_RST_L_HBM_N_PLL_SHIFT	9
1808c2ecf20Sopenharmony_ci#define UNIT_RST_L_TPC_N_PLL_SHIFT	10
1818c2ecf20Sopenharmony_ci#define UNIT_RST_L_MME_N_PLL_SHIFT	11
1828c2ecf20Sopenharmony_ci#define UNIT_RST_L_NIC_N_PLL_SHIFT	12
1838c2ecf20Sopenharmony_ci#define UNIT_RST_L_DMA_W_PLL_SHIFT	13
1848c2ecf20Sopenharmony_ci#define UNIT_RST_L_SIF_W_PLL_SHIFT	14
1858c2ecf20Sopenharmony_ci#define UNIT_RST_L_MESH_W_PLL_SHIFT	15
1868c2ecf20Sopenharmony_ci#define UNIT_RST_L_SRAM_W_PLL_SHIFT	16
1878c2ecf20Sopenharmony_ci#define UNIT_RST_L_DMA_E_PLL_SHIFT	17
1888c2ecf20Sopenharmony_ci#define UNIT_RST_L_SIF_E_PLL_SHIFT	18
1898c2ecf20Sopenharmony_ci#define UNIT_RST_L_MESH_E_PLL_SHIFT	19
1908c2ecf20Sopenharmony_ci#define UNIT_RST_L_SRAM_E_PLL_SHIFT	20
1918c2ecf20Sopenharmony_ci#define UNIT_RST_L_TPC_0_SHIFT		21
1928c2ecf20Sopenharmony_ci#define UNIT_RST_L_TPC_1_SHIFT		22
1938c2ecf20Sopenharmony_ci#define UNIT_RST_L_TPC_2_SHIFT		23
1948c2ecf20Sopenharmony_ci#define UNIT_RST_L_TPC_3_SHIFT		24
1958c2ecf20Sopenharmony_ci#define UNIT_RST_L_TPC_4_SHIFT		25
1968c2ecf20Sopenharmony_ci#define UNIT_RST_L_TPC_5_SHIFT		26
1978c2ecf20Sopenharmony_ci#define UNIT_RST_L_TPC_6_SHIFT		27
1988c2ecf20Sopenharmony_ci#define UNIT_RST_L_TPC_7_SHIFT		28
1998c2ecf20Sopenharmony_ci#define UNIT_RST_L_MME_0_SHIFT		29
2008c2ecf20Sopenharmony_ci#define UNIT_RST_L_MME_1_SHIFT		30
2018c2ecf20Sopenharmony_ci#define UNIT_RST_L_MME_2_SHIFT		31
2028c2ecf20Sopenharmony_ci
2038c2ecf20Sopenharmony_ci#define UNIT_RST_H_MME_3_SHIFT		0
2048c2ecf20Sopenharmony_ci#define UNIT_RST_H_HBM_0_SHIFT		1
2058c2ecf20Sopenharmony_ci#define UNIT_RST_H_HBM_1_SHIFT		2
2068c2ecf20Sopenharmony_ci#define UNIT_RST_H_HBM_2_SHIFT		3
2078c2ecf20Sopenharmony_ci#define UNIT_RST_H_HBM_3_SHIFT		4
2088c2ecf20Sopenharmony_ci#define UNIT_RST_H_NIC_0_SHIFT		5
2098c2ecf20Sopenharmony_ci#define UNIT_RST_H_NIC_1_SHIFT		6
2108c2ecf20Sopenharmony_ci#define UNIT_RST_H_NIC_2_SHIFT		7
2118c2ecf20Sopenharmony_ci#define UNIT_RST_H_NIC_3_SHIFT		8
2128c2ecf20Sopenharmony_ci#define UNIT_RST_H_NIC_4_SHIFT		9
2138c2ecf20Sopenharmony_ci#define UNIT_RST_H_SM_0_SHIFT		10
2148c2ecf20Sopenharmony_ci#define UNIT_RST_H_SM_1_SHIFT		11
2158c2ecf20Sopenharmony_ci#define UNIT_RST_H_SM_2_SHIFT		12
2168c2ecf20Sopenharmony_ci#define UNIT_RST_H_SM_3_SHIFT		13
2178c2ecf20Sopenharmony_ci#define UNIT_RST_H_IF_0_SHIFT		14
2188c2ecf20Sopenharmony_ci#define UNIT_RST_H_IF_1_SHIFT		15
2198c2ecf20Sopenharmony_ci#define UNIT_RST_H_IF_2_SHIFT		16
2208c2ecf20Sopenharmony_ci#define UNIT_RST_H_IF_3_SHIFT		17
2218c2ecf20Sopenharmony_ci#define UNIT_RST_H_DMA_0_SHIFT		18
2228c2ecf20Sopenharmony_ci#define UNIT_RST_H_DMA_1_SHIFT		19
2238c2ecf20Sopenharmony_ci#define UNIT_RST_H_CPU_SHIFT		20
2248c2ecf20Sopenharmony_ci#define UNIT_RST_H_MMU_SHIFT		21
2258c2ecf20Sopenharmony_ci
2268c2ecf20Sopenharmony_ci#define UNIT_RST_H_HBM_MASK		((1 << UNIT_RST_H_HBM_0_SHIFT) | \
2278c2ecf20Sopenharmony_ci					(1 << UNIT_RST_H_HBM_1_SHIFT) | \
2288c2ecf20Sopenharmony_ci					(1 << UNIT_RST_H_HBM_2_SHIFT) | \
2298c2ecf20Sopenharmony_ci					(1 << UNIT_RST_H_HBM_3_SHIFT))
2308c2ecf20Sopenharmony_ci
2318c2ecf20Sopenharmony_ci#define UNIT_RST_H_NIC_MASK		((1 << UNIT_RST_H_NIC_0_SHIFT) | \
2328c2ecf20Sopenharmony_ci					(1 << UNIT_RST_H_NIC_1_SHIFT) | \
2338c2ecf20Sopenharmony_ci					(1 << UNIT_RST_H_NIC_2_SHIFT) | \
2348c2ecf20Sopenharmony_ci					(1 << UNIT_RST_H_NIC_3_SHIFT) | \
2358c2ecf20Sopenharmony_ci					(1 << UNIT_RST_H_NIC_4_SHIFT))
2368c2ecf20Sopenharmony_ci
2378c2ecf20Sopenharmony_ci#define UNIT_RST_H_SM_MASK		((1 << UNIT_RST_H_SM_0_SHIFT) | \
2388c2ecf20Sopenharmony_ci					(1 << UNIT_RST_H_SM_1_SHIFT) | \
2398c2ecf20Sopenharmony_ci					(1 << UNIT_RST_H_SM_2_SHIFT) | \
2408c2ecf20Sopenharmony_ci					(1 << UNIT_RST_H_SM_3_SHIFT))
2418c2ecf20Sopenharmony_ci
2428c2ecf20Sopenharmony_ci#define UNIT_RST_H_MME_MASK		((1 << UNIT_RST_H_MME_0_SHIFT) | \
2438c2ecf20Sopenharmony_ci					(1 << UNIT_RST_H_MME_1_SHIFT) | \
2448c2ecf20Sopenharmony_ci					(1 << UNIT_RST_H_MME_2_SHIFT))
2458c2ecf20Sopenharmony_ci
2468c2ecf20Sopenharmony_ci#define UNIT_RST_L_MME_MASK		(1 << UNIT_RST_L_MME_3_SHIFT)
2478c2ecf20Sopenharmony_ci
2488c2ecf20Sopenharmony_ci#define UNIT_RST_L_IF_MASK		((1 << UNIT_RST_L_IF_0_SHIFT) | \
2498c2ecf20Sopenharmony_ci					(1 << UNIT_RST_L_IF_1_SHIFT) | \
2508c2ecf20Sopenharmony_ci					(1 << UNIT_RST_L_IF_2_SHIFT) | \
2518c2ecf20Sopenharmony_ci					(1 << UNIT_RST_L_IF_3_SHIFT))
2528c2ecf20Sopenharmony_ci
2538c2ecf20Sopenharmony_ci#define UNIT_RST_L_TPC_MASK		((1 << UNIT_RST_L_TPC_0_SHIFT) | \
2548c2ecf20Sopenharmony_ci					(1 << UNIT_RST_L_TPC_1_SHIFT) | \
2558c2ecf20Sopenharmony_ci					(1 << UNIT_RST_L_TPC_2_SHIFT) | \
2568c2ecf20Sopenharmony_ci					(1 << UNIT_RST_L_TPC_3_SHIFT) | \
2578c2ecf20Sopenharmony_ci					(1 << UNIT_RST_L_TPC_4_SHIFT) | \
2588c2ecf20Sopenharmony_ci					(1 << UNIT_RST_L_TPC_5_SHIFT) | \
2598c2ecf20Sopenharmony_ci					(1 << UNIT_RST_L_TPC_6_SHIFT) | \
2608c2ecf20Sopenharmony_ci					(1 << UNIT_RST_L_TPC_7_SHIFT))
2618c2ecf20Sopenharmony_ci
2628c2ecf20Sopenharmony_ci/* CPU_CA53_CFG_ARM_RST_CONTROL */
2638c2ecf20Sopenharmony_ci#define CPU_CA53_CFG_ARM_RST_CONTROL_NCPUPORESET_SHIFT               0
2648c2ecf20Sopenharmony_ci#define CPU_CA53_CFG_ARM_RST_CONTROL_NCPUPORESET_MASK                0x3
2658c2ecf20Sopenharmony_ci#define CPU_CA53_CFG_ARM_RST_CONTROL_NCORERESET_SHIFT                4
2668c2ecf20Sopenharmony_ci#define CPU_CA53_CFG_ARM_RST_CONTROL_NCORERESET_MASK                 0x30
2678c2ecf20Sopenharmony_ci#define CPU_CA53_CFG_ARM_RST_CONTROL_NL2RESET_SHIFT                  8
2688c2ecf20Sopenharmony_ci#define CPU_CA53_CFG_ARM_RST_CONTROL_NL2RESET_MASK                   0x100
2698c2ecf20Sopenharmony_ci#define CPU_CA53_CFG_ARM_RST_CONTROL_NPRESETDBG_SHIFT                12
2708c2ecf20Sopenharmony_ci#define CPU_CA53_CFG_ARM_RST_CONTROL_NPRESETDBG_MASK                 0x1000
2718c2ecf20Sopenharmony_ci#define CPU_CA53_CFG_ARM_RST_CONTROL_NMBISTRESET_SHIFT               16
2728c2ecf20Sopenharmony_ci#define CPU_CA53_CFG_ARM_RST_CONTROL_NMBISTRESET_MASK                0x10000
2738c2ecf20Sopenharmony_ci#define CPU_CA53_CFG_ARM_RST_CONTROL_WARMRSTREQ_SHIFT                20
2748c2ecf20Sopenharmony_ci#define CPU_CA53_CFG_ARM_RST_CONTROL_WARMRSTREQ_MASK                 0x300000
2758c2ecf20Sopenharmony_ci
2768c2ecf20Sopenharmony_ci#define CPU_RESET_ASSERT	(\
2778c2ecf20Sopenharmony_ci			1 << CPU_CA53_CFG_ARM_RST_CONTROL_NMBISTRESET_SHIFT)
2788c2ecf20Sopenharmony_ci
2798c2ecf20Sopenharmony_ci#define CPU_RESET_CORE0_DEASSERT	(\
2808c2ecf20Sopenharmony_ci			1 << CPU_CA53_CFG_ARM_RST_CONTROL_NCPUPORESET_SHIFT |\
2818c2ecf20Sopenharmony_ci			1 << CPU_CA53_CFG_ARM_RST_CONTROL_NCORERESET_SHIFT |\
2828c2ecf20Sopenharmony_ci			1 << CPU_CA53_CFG_ARM_RST_CONTROL_NL2RESET_SHIFT |\
2838c2ecf20Sopenharmony_ci			1 << CPU_CA53_CFG_ARM_RST_CONTROL_NMBISTRESET_SHIFT)
2848c2ecf20Sopenharmony_ci
2858c2ecf20Sopenharmony_ci/* QM_IDLE_MASK is valid for all engines QM idle check */
2868c2ecf20Sopenharmony_ci#define QM_IDLE_MASK	(DMA0_QM_GLBL_STS0_PQF_IDLE_MASK | \
2878c2ecf20Sopenharmony_ci			DMA0_QM_GLBL_STS0_CQF_IDLE_MASK | \
2888c2ecf20Sopenharmony_ci			DMA0_QM_GLBL_STS0_CP_IDLE_MASK)
2898c2ecf20Sopenharmony_ci
2908c2ecf20Sopenharmony_ci/* CGM_IDLE_MASK is valid for all engines CGM idle check */
2918c2ecf20Sopenharmony_ci#define CGM_IDLE_MASK	DMA0_QM_CGM_STS_AGENT_IDLE_MASK
2928c2ecf20Sopenharmony_ci
2938c2ecf20Sopenharmony_ci#define TPC_IDLE_MASK	((1 << TPC0_CFG_STATUS_SCALAR_PIPE_EMPTY_SHIFT) | \
2948c2ecf20Sopenharmony_ci			(1 << TPC0_CFG_STATUS_VECTOR_PIPE_EMPTY_SHIFT) | \
2958c2ecf20Sopenharmony_ci			(1 << TPC0_CFG_STATUS_IQ_EMPTY_SHIFT) | \
2968c2ecf20Sopenharmony_ci			(1 << TPC0_CFG_STATUS_SB_EMPTY_SHIFT) | \
2978c2ecf20Sopenharmony_ci			(1 << TPC0_CFG_STATUS_QM_IDLE_SHIFT) | \
2988c2ecf20Sopenharmony_ci			(1 << TPC0_CFG_STATUS_QM_RDY_SHIFT))
2998c2ecf20Sopenharmony_ci
3008c2ecf20Sopenharmony_ci#define MME0_CTRL_ARCH_STATUS_SB_A_EMPTY_MASK                        0x80
3018c2ecf20Sopenharmony_ci#define MME0_CTRL_ARCH_STATUS_SB_B_EMPTY_MASK                        0x100
3028c2ecf20Sopenharmony_ci#define MME0_CTRL_ARCH_STATUS_WBC_AXI_IDLE_MASK                      0x1000
3038c2ecf20Sopenharmony_ci
3048c2ecf20Sopenharmony_ci#define MME_ARCH_IDLE_MASK	(MME0_CTRL_ARCH_STATUS_SB_A_EMPTY_MASK | \
3058c2ecf20Sopenharmony_ci				MME0_CTRL_ARCH_STATUS_SB_B_EMPTY_MASK | \
3068c2ecf20Sopenharmony_ci				MME0_CTRL_ARCH_STATUS_WBC_AXI_IDLE_MASK)
3078c2ecf20Sopenharmony_ci
3088c2ecf20Sopenharmony_ci#define IS_QM_IDLE(qm_glbl_sts0, qm_cgm_sts) \
3098c2ecf20Sopenharmony_ci	((((qm_glbl_sts0) & QM_IDLE_MASK) == QM_IDLE_MASK) && \
3108c2ecf20Sopenharmony_ci			(((qm_cgm_sts) & CGM_IDLE_MASK) == CGM_IDLE_MASK))
3118c2ecf20Sopenharmony_ci
3128c2ecf20Sopenharmony_ci#define IS_DMA_IDLE(dma_core_sts0) \
3138c2ecf20Sopenharmony_ci	!(dma_core_sts0 & DMA0_CORE_STS0_BUSY_MASK)
3148c2ecf20Sopenharmony_ci
3158c2ecf20Sopenharmony_ci#define IS_TPC_IDLE(tpc_cfg_sts) \
3168c2ecf20Sopenharmony_ci	(((tpc_cfg_sts) & TPC_IDLE_MASK) == TPC_IDLE_MASK)
3178c2ecf20Sopenharmony_ci
3188c2ecf20Sopenharmony_ci#define IS_MME_IDLE(mme_arch_sts) \
3198c2ecf20Sopenharmony_ci	(((mme_arch_sts) & MME_ARCH_IDLE_MASK) == MME_ARCH_IDLE_MASK)
3208c2ecf20Sopenharmony_ci
3218c2ecf20Sopenharmony_cienum axi_id {
3228c2ecf20Sopenharmony_ci	AXI_ID_MME,
3238c2ecf20Sopenharmony_ci	AXI_ID_TPC,
3248c2ecf20Sopenharmony_ci	AXI_ID_DMA,
3258c2ecf20Sopenharmony_ci	AXI_ID_NIC,	/* Local NIC */
3268c2ecf20Sopenharmony_ci	AXI_ID_PCI,
3278c2ecf20Sopenharmony_ci	AXI_ID_CPU,
3288c2ecf20Sopenharmony_ci	AXI_ID_PSOC,
3298c2ecf20Sopenharmony_ci	AXI_ID_MMU,
3308c2ecf20Sopenharmony_ci	AXI_ID_NIC_FT	/* Feed-Through NIC */
3318c2ecf20Sopenharmony_ci};
3328c2ecf20Sopenharmony_ci
3338c2ecf20Sopenharmony_ci/* RAZWI initiator ID is built from the location in the chip and the AXI ID */
3348c2ecf20Sopenharmony_ci
3358c2ecf20Sopenharmony_ci#define RAZWI_INITIATOR_AXI_ID_SHIFT	20
3368c2ecf20Sopenharmony_ci#define RAZWI_INITIATOR_AXI_ID_MASK	0xF
3378c2ecf20Sopenharmony_ci#define RAZWI_INITIATOR_X_SHIFT		24
3388c2ecf20Sopenharmony_ci#define RAZWI_INITIATOR_X_MASK		0xF
3398c2ecf20Sopenharmony_ci#define RAZWI_INITIATOR_Y_SHIFT		28
3408c2ecf20Sopenharmony_ci#define RAZWI_INITIATOR_Y_MASK		0x7
3418c2ecf20Sopenharmony_ci
3428c2ecf20Sopenharmony_ci#define RAZWI_INITIATOR_ID_AXI_ID(axi_id) \
3438c2ecf20Sopenharmony_ci	(((axi_id) & RAZWI_INITIATOR_AXI_ID_MASK) << \
3448c2ecf20Sopenharmony_ci		RAZWI_INITIATOR_AXI_ID_SHIFT)
3458c2ecf20Sopenharmony_ci
3468c2ecf20Sopenharmony_ci#define RAZWI_INITIATOR_ID_X_Y(x, y) \
3478c2ecf20Sopenharmony_ci	((((y) & RAZWI_INITIATOR_Y_MASK) << RAZWI_INITIATOR_Y_SHIFT) | \
3488c2ecf20Sopenharmony_ci		(((x) & RAZWI_INITIATOR_X_MASK) << RAZWI_INITIATOR_X_SHIFT))
3498c2ecf20Sopenharmony_ci
3508c2ecf20Sopenharmony_ci#define RAZWI_INITIATOR_ID_X_Y_TPC0_NIC0	RAZWI_INITIATOR_ID_X_Y(1, 1)
3518c2ecf20Sopenharmony_ci#define RAZWI_INITIATOR_ID_X_Y_TPC1		RAZWI_INITIATOR_ID_X_Y(2, 1)
3528c2ecf20Sopenharmony_ci#define RAZWI_INITIATOR_ID_X_Y_MME0_0		RAZWI_INITIATOR_ID_X_Y(3, 1)
3538c2ecf20Sopenharmony_ci#define RAZWI_INITIATOR_ID_X_Y_MME0_1		RAZWI_INITIATOR_ID_X_Y(4, 1)
3548c2ecf20Sopenharmony_ci#define RAZWI_INITIATOR_ID_X_Y_MME1_0		RAZWI_INITIATOR_ID_X_Y(5, 1)
3558c2ecf20Sopenharmony_ci#define RAZWI_INITIATOR_ID_X_Y_MME1_1		RAZWI_INITIATOR_ID_X_Y(6, 1)
3568c2ecf20Sopenharmony_ci#define RAZWI_INITIATOR_ID_X_Y_TPC2		RAZWI_INITIATOR_ID_X_Y(7, 1)
3578c2ecf20Sopenharmony_ci#define RAZWI_INITIATOR_ID_X_Y_TPC3_PCI_CPU_PSOC \
3588c2ecf20Sopenharmony_ci						RAZWI_INITIATOR_ID_X_Y(8, 1)
3598c2ecf20Sopenharmony_ci#define RAZWI_INITIATOR_ID_X_Y_DMA_IF_W_S_0	RAZWI_INITIATOR_ID_X_Y(0, 1)
3608c2ecf20Sopenharmony_ci#define RAZWI_INITIATOR_ID_X_Y_DMA_IF_E_S_0	RAZWI_INITIATOR_ID_X_Y(9, 1)
3618c2ecf20Sopenharmony_ci#define RAZWI_INITIATOR_ID_X_Y_DMA_IF_W_S_1	RAZWI_INITIATOR_ID_X_Y(0, 2)
3628c2ecf20Sopenharmony_ci#define RAZWI_INITIATOR_ID_X_Y_DMA_IF_E_S_1	RAZWI_INITIATOR_ID_X_Y(9, 2)
3638c2ecf20Sopenharmony_ci#define RAZWI_INITIATOR_ID_X_Y_DMA_IF_W_N_0	RAZWI_INITIATOR_ID_X_Y(0, 3)
3648c2ecf20Sopenharmony_ci#define RAZWI_INITIATOR_ID_X_Y_DMA_IF_E_N_0	RAZWI_INITIATOR_ID_X_Y(9, 3)
3658c2ecf20Sopenharmony_ci#define RAZWI_INITIATOR_ID_X_Y_DMA_IF_W_N_1	RAZWI_INITIATOR_ID_X_Y(0, 4)
3668c2ecf20Sopenharmony_ci#define RAZWI_INITIATOR_ID_X_Y_DMA_IF_E_N_1	RAZWI_INITIATOR_ID_X_Y(9, 4)
3678c2ecf20Sopenharmony_ci#define RAZWI_INITIATOR_ID_X_Y_TPC4_NIC1_NIC2	RAZWI_INITIATOR_ID_X_Y(1, 6)
3688c2ecf20Sopenharmony_ci#define RAZWI_INITIATOR_ID_X_Y_TPC5		RAZWI_INITIATOR_ID_X_Y(2, 6)
3698c2ecf20Sopenharmony_ci#define RAZWI_INITIATOR_ID_X_Y_MME2_0		RAZWI_INITIATOR_ID_X_Y(3, 6)
3708c2ecf20Sopenharmony_ci#define RAZWI_INITIATOR_ID_X_Y_MME2_1		RAZWI_INITIATOR_ID_X_Y(4, 6)
3718c2ecf20Sopenharmony_ci#define RAZWI_INITIATOR_ID_X_Y_MME3_0		RAZWI_INITIATOR_ID_X_Y(5, 6)
3728c2ecf20Sopenharmony_ci#define RAZWI_INITIATOR_ID_X_Y_MME3_1		RAZWI_INITIATOR_ID_X_Y(6, 6)
3738c2ecf20Sopenharmony_ci#define RAZWI_INITIATOR_ID_X_Y_TPC6		RAZWI_INITIATOR_ID_X_Y(7, 6)
3748c2ecf20Sopenharmony_ci#define RAZWI_INITIATOR_ID_X_Y_TPC7_NIC4_NIC5	RAZWI_INITIATOR_ID_X_Y(8, 6)
3758c2ecf20Sopenharmony_ci
3768c2ecf20Sopenharmony_ci#define PSOC_ETR_AXICTL_PROTCTRLBIT1_SHIFT                           1
3778c2ecf20Sopenharmony_ci
3788c2ecf20Sopenharmony_ci/* STLB_CACHE_INV */
3798c2ecf20Sopenharmony_ci#define STLB_CACHE_INV_PRODUCER_INDEX_SHIFT                          0
3808c2ecf20Sopenharmony_ci#define STLB_CACHE_INV_PRODUCER_INDEX_MASK                           0xFF
3818c2ecf20Sopenharmony_ci#define STLB_CACHE_INV_INDEX_MASK_SHIFT                              8
3828c2ecf20Sopenharmony_ci#define STLB_CACHE_INV_INDEX_MASK_MASK                               0xFF00
3838c2ecf20Sopenharmony_ci
3848c2ecf20Sopenharmony_ci#define MME_ACC_ACC_STALL_R_SHIFT                                    0
3858c2ecf20Sopenharmony_ci#define MME_SBAB_SB_STALL_R_SHIFT                                    0
3868c2ecf20Sopenharmony_ci
3878c2ecf20Sopenharmony_ci#define PCIE_WRAP_LBW_PROT_OVR_RD_EN_MASK                            0x700
3888c2ecf20Sopenharmony_ci#define PCIE_WRAP_LBW_PROT_OVR_WR_EN_MASK                            0x7000
3898c2ecf20Sopenharmony_ci
3908c2ecf20Sopenharmony_ci#define PCIE_WRAP_LBW_DRAIN_CFG_EN_SHIFT                             0
3918c2ecf20Sopenharmony_ci#define PCIE_WRAP_HBW_DRAIN_CFG_EN_SHIFT                             0
3928c2ecf20Sopenharmony_ci
3938c2ecf20Sopenharmony_ci/* DMA_IF_HBM_CRED_EN */
3948c2ecf20Sopenharmony_ci#define DMA_IF_HBM_CRED_EN_READ_CREDIT_EN_SHIFT                      0
3958c2ecf20Sopenharmony_ci#define DMA_IF_HBM_CRED_EN_READ_CREDIT_EN_MASK                       0x1
3968c2ecf20Sopenharmony_ci#define DMA_IF_HBM_CRED_EN_WRITE_CREDIT_EN_SHIFT                     1
3978c2ecf20Sopenharmony_ci#define DMA_IF_HBM_CRED_EN_WRITE_CREDIT_EN_MASK                      0x2
3988c2ecf20Sopenharmony_ci
3998c2ecf20Sopenharmony_ci#define DMA_IF_DOWN_CHX_SCRAM_SRAM_EN_VAL_SHIFT                      0
4008c2ecf20Sopenharmony_ci#define DMA_IF_DOWN_CHX_SCRAM_HBM_EN_VAL_SHIFT                       0
4018c2ecf20Sopenharmony_ci#define DMA_IF_DOWN_CHX_E2E_HBM_EN_VAL_SHIFT                         0
4028c2ecf20Sopenharmony_ci#define DMA_IF_DOWN_CHX_E2E_PCI_EN_VAL_SHIFT                         0
4038c2ecf20Sopenharmony_ci
4048c2ecf20Sopenharmony_ci#define IF_RTR_CTRL_SCRAM_SRAM_EN_VAL_SHIFT                          0
4058c2ecf20Sopenharmony_ci#define IF_RTR_CTRL_SCRAM_HBM_EN_VAL_SHIFT                           0
4068c2ecf20Sopenharmony_ci
4078c2ecf20Sopenharmony_ci#define IF_RTR_CTRL_E2E_HBM_EN_VAL_SHIFT                             0
4088c2ecf20Sopenharmony_ci#define IF_RTR_CTRL_E2E_PCI_EN_VAL_SHIFT                             0
4098c2ecf20Sopenharmony_ci
4108c2ecf20Sopenharmony_ci/* MMU_UP_PAGE_ERROR_CAPTURE */
4118c2ecf20Sopenharmony_ci#define MMU_UP_PAGE_ERROR_CAPTURE_VA_49_32_MASK                      0x3FFFF
4128c2ecf20Sopenharmony_ci#define MMU_UP_PAGE_ERROR_CAPTURE_ENTRY_VALID_MASK                   0x40000
4138c2ecf20Sopenharmony_ci
4148c2ecf20Sopenharmony_ci/* MMU_UP_ACCESS_ERROR_CAPTURE */
4158c2ecf20Sopenharmony_ci#define MMU_UP_ACCESS_ERROR_CAPTURE_VA_49_32_MASK                    0x3FFFF
4168c2ecf20Sopenharmony_ci#define MMU_UP_ACCESS_ERROR_CAPTURE_ENTRY_VALID_MASK                 0x40000
4178c2ecf20Sopenharmony_ci
4188c2ecf20Sopenharmony_ci#define QM_ARB_ERR_MSG_EN_CHOISE_OVF_MASK                            0x1
4198c2ecf20Sopenharmony_ci#define QM_ARB_ERR_MSG_EN_CHOISE_WDT_MASK                            0x2
4208c2ecf20Sopenharmony_ci#define QM_ARB_ERR_MSG_EN_AXI_LBW_ERR_MASK                           0x4
4218c2ecf20Sopenharmony_ci
4228c2ecf20Sopenharmony_ci#define QM_ARB_ERR_MSG_EN_MASK		(\
4238c2ecf20Sopenharmony_ci					QM_ARB_ERR_MSG_EN_CHOISE_OVF_MASK |\
4248c2ecf20Sopenharmony_ci					QM_ARB_ERR_MSG_EN_AXI_LBW_ERR_MASK)
4258c2ecf20Sopenharmony_ci
4268c2ecf20Sopenharmony_ci#define PCIE_AUX_FLR_CTRL_HW_CTRL_MASK                               0x1
4278c2ecf20Sopenharmony_ci#define PCIE_AUX_FLR_CTRL_INT_MASK_MASK                              0x2
4288c2ecf20Sopenharmony_ci
4298c2ecf20Sopenharmony_ci#endif /* GAUDI_MASKS_H_ */
430