162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci
362306a36Sopenharmony_ci/* Copyright (C) 2023 Linaro Ltd. */
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci#include <linux/types.h>
662306a36Sopenharmony_ci
762306a36Sopenharmony_ci#include "../gsi.h"
862306a36Sopenharmony_ci#include "../reg.h"
962306a36Sopenharmony_ci#include "../gsi_reg.h"
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ciREG(INTER_EE_SRC_CH_IRQ_MSK, inter_ee_src_ch_irq_msk,
1262306a36Sopenharmony_ci    0x0000c01c + 0x1000 * GSI_EE_AP);
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ciREG(INTER_EE_SRC_EV_CH_IRQ_MSK, inter_ee_src_ev_ch_irq_msk,
1562306a36Sopenharmony_ci    0x0000c028 + 0x1000 * GSI_EE_AP);
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_cistatic const u32 reg_ch_c_cntxt_0_fmask[] = {
1862306a36Sopenharmony_ci	[CHTYPE_PROTOCOL]				= GENMASK(6, 0),
1962306a36Sopenharmony_ci	[CHTYPE_DIR]					= BIT(7),
2062306a36Sopenharmony_ci	[CH_EE]						= GENMASK(11, 8),
2162306a36Sopenharmony_ci	[CHID]						= GENMASK(19, 12),
2262306a36Sopenharmony_ci	[CHSTATE]					= GENMASK(23, 20),
2362306a36Sopenharmony_ci	[ELEMENT_SIZE]					= GENMASK(31, 24),
2462306a36Sopenharmony_ci};
2562306a36Sopenharmony_ci
2662306a36Sopenharmony_ciREG_STRIDE_FIELDS(CH_C_CNTXT_0, ch_c_cntxt_0,
2762306a36Sopenharmony_ci		  0x00014000 + 0x12000 * GSI_EE_AP, 0x80);
2862306a36Sopenharmony_ci
2962306a36Sopenharmony_cistatic const u32 reg_ch_c_cntxt_1_fmask[] = {
3062306a36Sopenharmony_ci	[CH_R_LENGTH]					= GENMASK(23, 0),
3162306a36Sopenharmony_ci	[ERINDEX]					= GENMASK(31, 24),
3262306a36Sopenharmony_ci};
3362306a36Sopenharmony_ci
3462306a36Sopenharmony_ciREG_STRIDE_FIELDS(CH_C_CNTXT_1, ch_c_cntxt_1,
3562306a36Sopenharmony_ci		  0x00014004 + 0x12000 * GSI_EE_AP, 0x80);
3662306a36Sopenharmony_ci
3762306a36Sopenharmony_ciREG_STRIDE(CH_C_CNTXT_2, ch_c_cntxt_2, 0x00014008 + 0x12000 * GSI_EE_AP, 0x80);
3862306a36Sopenharmony_ci
3962306a36Sopenharmony_ciREG_STRIDE(CH_C_CNTXT_3, ch_c_cntxt_3, 0x0001400c + 0x12000 * GSI_EE_AP, 0x80);
4062306a36Sopenharmony_ci
4162306a36Sopenharmony_cistatic const u32 reg_ch_c_qos_fmask[] = {
4262306a36Sopenharmony_ci	[WRR_WEIGHT]					= GENMASK(3, 0),
4362306a36Sopenharmony_ci						/* Bits 4-7 reserved */
4462306a36Sopenharmony_ci	[MAX_PREFETCH]					= BIT(8),
4562306a36Sopenharmony_ci	[USE_DB_ENG]					= BIT(9),
4662306a36Sopenharmony_ci	[PREFETCH_MODE]					= GENMASK(13, 10),
4762306a36Sopenharmony_ci						/* Bits 14-15 reserved */
4862306a36Sopenharmony_ci	[EMPTY_LVL_THRSHOLD]				= GENMASK(23, 16),
4962306a36Sopenharmony_ci	[DB_IN_BYTES]					= BIT(24),
5062306a36Sopenharmony_ci	[LOW_LATENCY_EN]				= BIT(25),
5162306a36Sopenharmony_ci						/* Bits 26-31 reserved */
5262306a36Sopenharmony_ci};
5362306a36Sopenharmony_ci
5462306a36Sopenharmony_ciREG_STRIDE_FIELDS(CH_C_QOS, ch_c_qos, 0x00014048 + 0x12000 * GSI_EE_AP, 0x80);
5562306a36Sopenharmony_ci
5662306a36Sopenharmony_ciREG_STRIDE(CH_C_SCRATCH_0, ch_c_scratch_0,
5762306a36Sopenharmony_ci	   0x0001404c + 0x12000 * GSI_EE_AP, 0x80);
5862306a36Sopenharmony_ci
5962306a36Sopenharmony_ciREG_STRIDE(CH_C_SCRATCH_1, ch_c_scratch_1,
6062306a36Sopenharmony_ci	   0x00014050 + 0x12000 * GSI_EE_AP, 0x80);
6162306a36Sopenharmony_ci
6262306a36Sopenharmony_ciREG_STRIDE(CH_C_SCRATCH_2, ch_c_scratch_2,
6362306a36Sopenharmony_ci	   0x00014054 + 0x12000 * GSI_EE_AP, 0x80);
6462306a36Sopenharmony_ci
6562306a36Sopenharmony_ciREG_STRIDE(CH_C_SCRATCH_3, ch_c_scratch_3,
6662306a36Sopenharmony_ci	   0x00014058 + 0x12000 * GSI_EE_AP, 0x80);
6762306a36Sopenharmony_ci
6862306a36Sopenharmony_cistatic const u32 reg_ev_ch_e_cntxt_0_fmask[] = {
6962306a36Sopenharmony_ci	[EV_CHTYPE]					= GENMASK(6, 0),
7062306a36Sopenharmony_ci	[EV_INTYPE]					= BIT(7),
7162306a36Sopenharmony_ci	[EV_EVCHID]					= GENMASK(15, 8),
7262306a36Sopenharmony_ci	[EV_EE]						= GENMASK(19, 16),
7362306a36Sopenharmony_ci	[EV_CHSTATE]					= GENMASK(23, 20),
7462306a36Sopenharmony_ci	[EV_ELEMENT_SIZE]				= GENMASK(31, 24),
7562306a36Sopenharmony_ci};
7662306a36Sopenharmony_ci
7762306a36Sopenharmony_ciREG_STRIDE_FIELDS(EV_CH_E_CNTXT_0, ev_ch_e_cntxt_0,
7862306a36Sopenharmony_ci		  0x0001c000 + 0x12000 * GSI_EE_AP, 0x80);
7962306a36Sopenharmony_ci
8062306a36Sopenharmony_cistatic const u32 reg_ev_ch_e_cntxt_1_fmask[] = {
8162306a36Sopenharmony_ci	[R_LENGTH]					= GENMASK(23, 0),
8262306a36Sopenharmony_ci};
8362306a36Sopenharmony_ci
8462306a36Sopenharmony_ciREG_STRIDE_FIELDS(EV_CH_E_CNTXT_1, ev_ch_e_cntxt_1,
8562306a36Sopenharmony_ci		  0x0001c004 + 0x12000 * GSI_EE_AP, 0x80);
8662306a36Sopenharmony_ci
8762306a36Sopenharmony_ciREG_STRIDE(EV_CH_E_CNTXT_2, ev_ch_e_cntxt_2,
8862306a36Sopenharmony_ci	   0x0001c008 + 0x12000 * GSI_EE_AP, 0x80);
8962306a36Sopenharmony_ci
9062306a36Sopenharmony_ciREG_STRIDE(EV_CH_E_CNTXT_3, ev_ch_e_cntxt_3,
9162306a36Sopenharmony_ci	   0x0001c00c + 0x12000 * GSI_EE_AP, 0x80);
9262306a36Sopenharmony_ci
9362306a36Sopenharmony_ciREG_STRIDE(EV_CH_E_CNTXT_4, ev_ch_e_cntxt_4,
9462306a36Sopenharmony_ci	   0x0001c010 + 0x12000 * GSI_EE_AP, 0x80);
9562306a36Sopenharmony_ci
9662306a36Sopenharmony_cistatic const u32 reg_ev_ch_e_cntxt_8_fmask[] = {
9762306a36Sopenharmony_ci	[EV_MODT]					= GENMASK(15, 0),
9862306a36Sopenharmony_ci	[EV_MODC]					= GENMASK(23, 16),
9962306a36Sopenharmony_ci	[EV_MOD_CNT]					= GENMASK(31, 24),
10062306a36Sopenharmony_ci};
10162306a36Sopenharmony_ci
10262306a36Sopenharmony_ciREG_STRIDE_FIELDS(EV_CH_E_CNTXT_8, ev_ch_e_cntxt_8,
10362306a36Sopenharmony_ci		  0x0001c020 + 0x12000 * GSI_EE_AP, 0x80);
10462306a36Sopenharmony_ci
10562306a36Sopenharmony_ciREG_STRIDE(EV_CH_E_CNTXT_9, ev_ch_e_cntxt_9,
10662306a36Sopenharmony_ci	   0x0001c024 + 0x12000 * GSI_EE_AP, 0x80);
10762306a36Sopenharmony_ci
10862306a36Sopenharmony_ciREG_STRIDE(EV_CH_E_CNTXT_10, ev_ch_e_cntxt_10,
10962306a36Sopenharmony_ci	   0x0001c028 + 0x12000 * GSI_EE_AP, 0x80);
11062306a36Sopenharmony_ci
11162306a36Sopenharmony_ciREG_STRIDE(EV_CH_E_CNTXT_11, ev_ch_e_cntxt_11,
11262306a36Sopenharmony_ci	   0x0001c02c + 0x12000 * GSI_EE_AP, 0x80);
11362306a36Sopenharmony_ci
11462306a36Sopenharmony_ciREG_STRIDE(EV_CH_E_CNTXT_12, ev_ch_e_cntxt_12,
11562306a36Sopenharmony_ci	   0x0001c030 + 0x12000 * GSI_EE_AP, 0x80);
11662306a36Sopenharmony_ci
11762306a36Sopenharmony_ciREG_STRIDE(EV_CH_E_CNTXT_13, ev_ch_e_cntxt_13,
11862306a36Sopenharmony_ci	   0x0001c034 + 0x12000 * GSI_EE_AP, 0x80);
11962306a36Sopenharmony_ci
12062306a36Sopenharmony_ciREG_STRIDE(EV_CH_E_SCRATCH_0, ev_ch_e_scratch_0,
12162306a36Sopenharmony_ci	   0x0001c048 + 0x12000 * GSI_EE_AP, 0x80);
12262306a36Sopenharmony_ci
12362306a36Sopenharmony_ciREG_STRIDE(EV_CH_E_SCRATCH_1, ev_ch_e_scratch_1,
12462306a36Sopenharmony_ci	   0x0001c04c + 0x12000 * GSI_EE_AP, 0x80);
12562306a36Sopenharmony_ci
12662306a36Sopenharmony_ciREG_STRIDE(CH_C_DOORBELL_0, ch_c_doorbell_0,
12762306a36Sopenharmony_ci	   0x00024000 + 0x12000 * GSI_EE_AP, 0x08);
12862306a36Sopenharmony_ci
12962306a36Sopenharmony_ciREG_STRIDE(EV_CH_E_DOORBELL_0, ev_ch_e_doorbell_0,
13062306a36Sopenharmony_ci	   0x00024800 + 0x12000 * GSI_EE_AP, 0x08);
13162306a36Sopenharmony_ci
13262306a36Sopenharmony_cistatic const u32 reg_gsi_status_fmask[] = {
13362306a36Sopenharmony_ci	[ENABLED]					= BIT(0),
13462306a36Sopenharmony_ci						/* Bits 1-31 reserved */
13562306a36Sopenharmony_ci};
13662306a36Sopenharmony_ci
13762306a36Sopenharmony_ciREG_FIELDS(GSI_STATUS, gsi_status, 0x00025000 + 0x12000 * GSI_EE_AP);
13862306a36Sopenharmony_ci
13962306a36Sopenharmony_cistatic const u32 reg_ch_cmd_fmask[] = {
14062306a36Sopenharmony_ci	[CH_CHID]					= GENMASK(7, 0),
14162306a36Sopenharmony_ci						/* Bits 8-23 reserved */
14262306a36Sopenharmony_ci	[CH_OPCODE]					= GENMASK(31, 24),
14362306a36Sopenharmony_ci};
14462306a36Sopenharmony_ci
14562306a36Sopenharmony_ciREG_FIELDS(CH_CMD, ch_cmd, 0x00025008 + 0x12000 * GSI_EE_AP);
14662306a36Sopenharmony_ci
14762306a36Sopenharmony_cistatic const u32 reg_ev_ch_cmd_fmask[] = {
14862306a36Sopenharmony_ci	[EV_CHID]					= GENMASK(7, 0),
14962306a36Sopenharmony_ci						/* Bits 8-23 reserved */
15062306a36Sopenharmony_ci	[EV_OPCODE]					= GENMASK(31, 24),
15162306a36Sopenharmony_ci};
15262306a36Sopenharmony_ci
15362306a36Sopenharmony_ciREG_FIELDS(EV_CH_CMD, ev_ch_cmd, 0x00025010 + 0x12000 * GSI_EE_AP);
15462306a36Sopenharmony_ci
15562306a36Sopenharmony_cistatic const u32 reg_generic_cmd_fmask[] = {
15662306a36Sopenharmony_ci	[GENERIC_OPCODE]				= GENMASK(4, 0),
15762306a36Sopenharmony_ci	[GENERIC_CHID]					= GENMASK(9, 5),
15862306a36Sopenharmony_ci	[GENERIC_EE]					= GENMASK(13, 10),
15962306a36Sopenharmony_ci						/* Bits 14-31 reserved */
16062306a36Sopenharmony_ci};
16162306a36Sopenharmony_ci
16262306a36Sopenharmony_ciREG_FIELDS(GENERIC_CMD, generic_cmd, 0x00025018 + 0x12000 * GSI_EE_AP);
16362306a36Sopenharmony_ci
16462306a36Sopenharmony_cistatic const u32 reg_hw_param_2_fmask[] = {
16562306a36Sopenharmony_ci	[NUM_CH_PER_EE]					= GENMASK(7, 0),
16662306a36Sopenharmony_ci	[IRAM_SIZE]					= GENMASK(12, 8),
16762306a36Sopenharmony_ci	[GSI_CH_PEND_TRANSLATE]				= BIT(13),
16862306a36Sopenharmony_ci	[GSI_CH_FULL_LOGIC]				= BIT(14),
16962306a36Sopenharmony_ci	[GSI_USE_SDMA]					= BIT(15),
17062306a36Sopenharmony_ci	[GSI_SDMA_N_INT]				= GENMASK(18, 16),
17162306a36Sopenharmony_ci	[GSI_SDMA_MAX_BURST]				= GENMASK(26, 19),
17262306a36Sopenharmony_ci	[GSI_SDMA_N_IOVEC]				= GENMASK(29, 27),
17362306a36Sopenharmony_ci	[GSI_USE_RD_WR_ENG]				= BIT(30),
17462306a36Sopenharmony_ci	[GSI_USE_INTER_EE]				= BIT(31),
17562306a36Sopenharmony_ci};
17662306a36Sopenharmony_ci
17762306a36Sopenharmony_ciREG_FIELDS(HW_PARAM_2, hw_param_2, 0x00025040 + 0x12000 * GSI_EE_AP);
17862306a36Sopenharmony_ci
17962306a36Sopenharmony_cistatic const u32 reg_hw_param_4_fmask[] = {
18062306a36Sopenharmony_ci	[EV_PER_EE]					= GENMASK(7, 0),
18162306a36Sopenharmony_ci	[IRAM_PROTOCOL_COUNT]				= GENMASK(15, 8),
18262306a36Sopenharmony_ci						/* Bits 16-31 reserved */
18362306a36Sopenharmony_ci};
18462306a36Sopenharmony_ci
18562306a36Sopenharmony_ciREG_FIELDS(HW_PARAM_4, hw_param_4, 0x00025050 + 0x12000 * GSI_EE_AP);
18662306a36Sopenharmony_ci
18762306a36Sopenharmony_ciREG(CNTXT_TYPE_IRQ, cntxt_type_irq, 0x00025080 + 0x12000 * GSI_EE_AP);
18862306a36Sopenharmony_ci
18962306a36Sopenharmony_ciREG(CNTXT_TYPE_IRQ_MSK, cntxt_type_irq_msk, 0x00025088 + 0x12000 * GSI_EE_AP);
19062306a36Sopenharmony_ci
19162306a36Sopenharmony_ciREG(CNTXT_SRC_CH_IRQ, cntxt_src_ch_irq, 0x00025090 + 0x12000 * GSI_EE_AP);
19262306a36Sopenharmony_ci
19362306a36Sopenharmony_ciREG(CNTXT_SRC_CH_IRQ_MSK, cntxt_src_ch_irq_msk,
19462306a36Sopenharmony_ci    0x00025094 + 0x12000 * GSI_EE_AP);
19562306a36Sopenharmony_ci
19662306a36Sopenharmony_ciREG(CNTXT_SRC_CH_IRQ_CLR, cntxt_src_ch_irq_clr,
19762306a36Sopenharmony_ci    0x00025098 + 0x12000 * GSI_EE_AP);
19862306a36Sopenharmony_ci
19962306a36Sopenharmony_ciREG(CNTXT_SRC_EV_CH_IRQ, cntxt_src_ev_ch_irq, 0x0002509c + 0x12000 * GSI_EE_AP);
20062306a36Sopenharmony_ci
20162306a36Sopenharmony_ciREG(CNTXT_SRC_EV_CH_IRQ_MSK, cntxt_src_ev_ch_irq_msk,
20262306a36Sopenharmony_ci    0x000250a0 + 0x12000 * GSI_EE_AP);
20362306a36Sopenharmony_ci
20462306a36Sopenharmony_ciREG(CNTXT_SRC_EV_CH_IRQ_CLR, cntxt_src_ev_ch_irq_clr,
20562306a36Sopenharmony_ci    0x000250a4 + 0x12000 * GSI_EE_AP);
20662306a36Sopenharmony_ci
20762306a36Sopenharmony_ciREG(CNTXT_SRC_IEOB_IRQ, cntxt_src_ieob_irq, 0x000250a8 + 0x12000 * GSI_EE_AP);
20862306a36Sopenharmony_ci
20962306a36Sopenharmony_ciREG(CNTXT_SRC_IEOB_IRQ_MSK, cntxt_src_ieob_irq_msk,
21062306a36Sopenharmony_ci    0x000250ac + 0x12000 * GSI_EE_AP);
21162306a36Sopenharmony_ci
21262306a36Sopenharmony_ciREG(CNTXT_SRC_IEOB_IRQ_CLR, cntxt_src_ieob_irq_clr,
21362306a36Sopenharmony_ci    0x000250b0 + 0x12000 * GSI_EE_AP);
21462306a36Sopenharmony_ci
21562306a36Sopenharmony_ciREG(CNTXT_GLOB_IRQ_STTS, cntxt_glob_irq_stts, 0x00025200 + 0x12000 * GSI_EE_AP);
21662306a36Sopenharmony_ci
21762306a36Sopenharmony_ciREG(CNTXT_GLOB_IRQ_EN, cntxt_glob_irq_en, 0x00025204 + 0x12000 * GSI_EE_AP);
21862306a36Sopenharmony_ci
21962306a36Sopenharmony_ciREG(CNTXT_GLOB_IRQ_CLR, cntxt_glob_irq_clr, 0x00025208 + 0x12000 * GSI_EE_AP);
22062306a36Sopenharmony_ci
22162306a36Sopenharmony_ciREG(CNTXT_GSI_IRQ_STTS, cntxt_gsi_irq_stts, 0x0002520c + 0x12000 * GSI_EE_AP);
22262306a36Sopenharmony_ci
22362306a36Sopenharmony_ciREG(CNTXT_GSI_IRQ_EN, cntxt_gsi_irq_en, 0x00025210 + 0x12000 * GSI_EE_AP);
22462306a36Sopenharmony_ci
22562306a36Sopenharmony_ciREG(CNTXT_GSI_IRQ_CLR, cntxt_gsi_irq_clr, 0x00025214 + 0x12000 * GSI_EE_AP);
22662306a36Sopenharmony_ci
22762306a36Sopenharmony_cistatic const u32 reg_cntxt_intset_fmask[] = {
22862306a36Sopenharmony_ci	[INTYPE]					= BIT(0)
22962306a36Sopenharmony_ci						/* Bits 1-31 reserved */
23062306a36Sopenharmony_ci};
23162306a36Sopenharmony_ci
23262306a36Sopenharmony_ciREG_FIELDS(CNTXT_INTSET, cntxt_intset, 0x00025220 + 0x12000 * GSI_EE_AP);
23362306a36Sopenharmony_ci
23462306a36Sopenharmony_cistatic const u32 reg_error_log_fmask[] = {
23562306a36Sopenharmony_ci	[ERR_ARG3]					= GENMASK(3, 0),
23662306a36Sopenharmony_ci	[ERR_ARG2]					= GENMASK(7, 4),
23762306a36Sopenharmony_ci	[ERR_ARG1]					= GENMASK(11, 8),
23862306a36Sopenharmony_ci	[ERR_CODE]					= GENMASK(15, 12),
23962306a36Sopenharmony_ci						/* Bits 16-18 reserved */
24062306a36Sopenharmony_ci	[ERR_VIRT_IDX]					= GENMASK(23, 19),
24162306a36Sopenharmony_ci	[ERR_TYPE]					= GENMASK(27, 24),
24262306a36Sopenharmony_ci	[ERR_EE]					= GENMASK(31, 28),
24362306a36Sopenharmony_ci};
24462306a36Sopenharmony_ci
24562306a36Sopenharmony_ciREG_FIELDS(ERROR_LOG, error_log, 0x00025240 + 0x12000 * GSI_EE_AP);
24662306a36Sopenharmony_ci
24762306a36Sopenharmony_ciREG(ERROR_LOG_CLR, error_log_clr, 0x00025244 + 0x12000 * GSI_EE_AP);
24862306a36Sopenharmony_ci
24962306a36Sopenharmony_cistatic const u32 reg_cntxt_scratch_0_fmask[] = {
25062306a36Sopenharmony_ci	[INTER_EE_RESULT]				= GENMASK(2, 0),
25162306a36Sopenharmony_ci						/* Bits 3-4 reserved */
25262306a36Sopenharmony_ci	[GENERIC_EE_RESULT]				= GENMASK(7, 5),
25362306a36Sopenharmony_ci						/* Bits 8-31 reserved */
25462306a36Sopenharmony_ci};
25562306a36Sopenharmony_ci
25662306a36Sopenharmony_ciREG_FIELDS(CNTXT_SCRATCH_0, cntxt_scratch_0, 0x00025400 + 0x12000 * GSI_EE_AP);
25762306a36Sopenharmony_ci
25862306a36Sopenharmony_cistatic const struct reg *reg_array[] = {
25962306a36Sopenharmony_ci	[INTER_EE_SRC_CH_IRQ_MSK]	= &reg_inter_ee_src_ch_irq_msk,
26062306a36Sopenharmony_ci	[INTER_EE_SRC_EV_CH_IRQ_MSK]	= &reg_inter_ee_src_ev_ch_irq_msk,
26162306a36Sopenharmony_ci	[CH_C_CNTXT_0]			= &reg_ch_c_cntxt_0,
26262306a36Sopenharmony_ci	[CH_C_CNTXT_1]			= &reg_ch_c_cntxt_1,
26362306a36Sopenharmony_ci	[CH_C_CNTXT_2]			= &reg_ch_c_cntxt_2,
26462306a36Sopenharmony_ci	[CH_C_CNTXT_3]			= &reg_ch_c_cntxt_3,
26562306a36Sopenharmony_ci	[CH_C_QOS]			= &reg_ch_c_qos,
26662306a36Sopenharmony_ci	[CH_C_SCRATCH_0]		= &reg_ch_c_scratch_0,
26762306a36Sopenharmony_ci	[CH_C_SCRATCH_1]		= &reg_ch_c_scratch_1,
26862306a36Sopenharmony_ci	[CH_C_SCRATCH_2]		= &reg_ch_c_scratch_2,
26962306a36Sopenharmony_ci	[CH_C_SCRATCH_3]		= &reg_ch_c_scratch_3,
27062306a36Sopenharmony_ci	[EV_CH_E_CNTXT_0]		= &reg_ev_ch_e_cntxt_0,
27162306a36Sopenharmony_ci	[EV_CH_E_CNTXT_1]		= &reg_ev_ch_e_cntxt_1,
27262306a36Sopenharmony_ci	[EV_CH_E_CNTXT_2]		= &reg_ev_ch_e_cntxt_2,
27362306a36Sopenharmony_ci	[EV_CH_E_CNTXT_3]		= &reg_ev_ch_e_cntxt_3,
27462306a36Sopenharmony_ci	[EV_CH_E_CNTXT_4]		= &reg_ev_ch_e_cntxt_4,
27562306a36Sopenharmony_ci	[EV_CH_E_CNTXT_8]		= &reg_ev_ch_e_cntxt_8,
27662306a36Sopenharmony_ci	[EV_CH_E_CNTXT_9]		= &reg_ev_ch_e_cntxt_9,
27762306a36Sopenharmony_ci	[EV_CH_E_CNTXT_10]		= &reg_ev_ch_e_cntxt_10,
27862306a36Sopenharmony_ci	[EV_CH_E_CNTXT_11]		= &reg_ev_ch_e_cntxt_11,
27962306a36Sopenharmony_ci	[EV_CH_E_CNTXT_12]		= &reg_ev_ch_e_cntxt_12,
28062306a36Sopenharmony_ci	[EV_CH_E_CNTXT_13]		= &reg_ev_ch_e_cntxt_13,
28162306a36Sopenharmony_ci	[EV_CH_E_SCRATCH_0]		= &reg_ev_ch_e_scratch_0,
28262306a36Sopenharmony_ci	[EV_CH_E_SCRATCH_1]		= &reg_ev_ch_e_scratch_1,
28362306a36Sopenharmony_ci	[CH_C_DOORBELL_0]		= &reg_ch_c_doorbell_0,
28462306a36Sopenharmony_ci	[EV_CH_E_DOORBELL_0]		= &reg_ev_ch_e_doorbell_0,
28562306a36Sopenharmony_ci	[GSI_STATUS]			= &reg_gsi_status,
28662306a36Sopenharmony_ci	[CH_CMD]			= &reg_ch_cmd,
28762306a36Sopenharmony_ci	[EV_CH_CMD]			= &reg_ev_ch_cmd,
28862306a36Sopenharmony_ci	[GENERIC_CMD]			= &reg_generic_cmd,
28962306a36Sopenharmony_ci	[HW_PARAM_2]			= &reg_hw_param_2,
29062306a36Sopenharmony_ci	[HW_PARAM_4]			= &reg_hw_param_4,
29162306a36Sopenharmony_ci	[CNTXT_TYPE_IRQ]		= &reg_cntxt_type_irq,
29262306a36Sopenharmony_ci	[CNTXT_TYPE_IRQ_MSK]		= &reg_cntxt_type_irq_msk,
29362306a36Sopenharmony_ci	[CNTXT_SRC_CH_IRQ]		= &reg_cntxt_src_ch_irq,
29462306a36Sopenharmony_ci	[CNTXT_SRC_CH_IRQ_MSK]		= &reg_cntxt_src_ch_irq_msk,
29562306a36Sopenharmony_ci	[CNTXT_SRC_CH_IRQ_CLR]		= &reg_cntxt_src_ch_irq_clr,
29662306a36Sopenharmony_ci	[CNTXT_SRC_EV_CH_IRQ]		= &reg_cntxt_src_ev_ch_irq,
29762306a36Sopenharmony_ci	[CNTXT_SRC_EV_CH_IRQ_MSK]	= &reg_cntxt_src_ev_ch_irq_msk,
29862306a36Sopenharmony_ci	[CNTXT_SRC_EV_CH_IRQ_CLR]	= &reg_cntxt_src_ev_ch_irq_clr,
29962306a36Sopenharmony_ci	[CNTXT_SRC_IEOB_IRQ]		= &reg_cntxt_src_ieob_irq,
30062306a36Sopenharmony_ci	[CNTXT_SRC_IEOB_IRQ_MSK]	= &reg_cntxt_src_ieob_irq_msk,
30162306a36Sopenharmony_ci	[CNTXT_SRC_IEOB_IRQ_CLR]	= &reg_cntxt_src_ieob_irq_clr,
30262306a36Sopenharmony_ci	[CNTXT_GLOB_IRQ_STTS]		= &reg_cntxt_glob_irq_stts,
30362306a36Sopenharmony_ci	[CNTXT_GLOB_IRQ_EN]		= &reg_cntxt_glob_irq_en,
30462306a36Sopenharmony_ci	[CNTXT_GLOB_IRQ_CLR]		= &reg_cntxt_glob_irq_clr,
30562306a36Sopenharmony_ci	[CNTXT_GSI_IRQ_STTS]		= &reg_cntxt_gsi_irq_stts,
30662306a36Sopenharmony_ci	[CNTXT_GSI_IRQ_EN]		= &reg_cntxt_gsi_irq_en,
30762306a36Sopenharmony_ci	[CNTXT_GSI_IRQ_CLR]		= &reg_cntxt_gsi_irq_clr,
30862306a36Sopenharmony_ci	[CNTXT_INTSET]			= &reg_cntxt_intset,
30962306a36Sopenharmony_ci	[ERROR_LOG]			= &reg_error_log,
31062306a36Sopenharmony_ci	[ERROR_LOG_CLR]			= &reg_error_log_clr,
31162306a36Sopenharmony_ci	[CNTXT_SCRATCH_0]		= &reg_cntxt_scratch_0,
31262306a36Sopenharmony_ci};
31362306a36Sopenharmony_ci
31462306a36Sopenharmony_ciconst struct regs gsi_regs_v5_0 = {
31562306a36Sopenharmony_ci	.reg_count	= ARRAY_SIZE(reg_array),
31662306a36Sopenharmony_ci	.reg		= reg_array,
31762306a36Sopenharmony_ci};
318