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 "../ipa.h"
862306a36Sopenharmony_ci#include "../ipa_reg.h"
962306a36Sopenharmony_ci
1062306a36Sopenharmony_cistatic const u32 reg_flavor_0_fmask[] = {
1162306a36Sopenharmony_ci	[MAX_PIPES]					= GENMASK(7, 0),
1262306a36Sopenharmony_ci	[MAX_CONS_PIPES]				= GENMASK(15, 8),
1362306a36Sopenharmony_ci	[MAX_PROD_PIPES]				= GENMASK(23, 16),
1462306a36Sopenharmony_ci	[PROD_LOWEST]					= GENMASK(31, 24),
1562306a36Sopenharmony_ci};
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ciREG_FIELDS(FLAVOR_0, flavor_0, 0x00000000);
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_cistatic const u32 reg_comp_cfg_fmask[] = {
2062306a36Sopenharmony_ci	[RAM_ARB_PRI_CLIENT_SAMP_FIX_DIS]		= BIT(0),
2162306a36Sopenharmony_ci	[GSI_SNOC_BYPASS_DIS]				= BIT(1),
2262306a36Sopenharmony_ci	[GEN_QMB_0_SNOC_BYPASS_DIS]			= BIT(2),
2362306a36Sopenharmony_ci	[GEN_QMB_1_SNOC_BYPASS_DIS]			= BIT(3),
2462306a36Sopenharmony_ci						/* Bit 4 reserved */
2562306a36Sopenharmony_ci	[IPA_QMB_SELECT_CONS_EN]			= BIT(5),
2662306a36Sopenharmony_ci	[IPA_QMB_SELECT_PROD_EN]			= BIT(6),
2762306a36Sopenharmony_ci	[GSI_MULTI_INORDER_RD_DIS]			= BIT(7),
2862306a36Sopenharmony_ci	[GSI_MULTI_INORDER_WR_DIS]			= BIT(8),
2962306a36Sopenharmony_ci	[GEN_QMB_0_MULTI_INORDER_RD_DIS]		= BIT(9),
3062306a36Sopenharmony_ci	[GEN_QMB_1_MULTI_INORDER_RD_DIS]		= BIT(10),
3162306a36Sopenharmony_ci	[GEN_QMB_0_MULTI_INORDER_WR_DIS]		= BIT(11),
3262306a36Sopenharmony_ci	[GEN_QMB_1_MULTI_INORDER_WR_DIS]		= BIT(12),
3362306a36Sopenharmony_ci	[GEN_QMB_0_SNOC_CNOC_LOOP_PROT_DIS]		= BIT(13),
3462306a36Sopenharmony_ci	[GSI_SNOC_CNOC_LOOP_PROT_DISABLE]		= BIT(14),
3562306a36Sopenharmony_ci	[GSI_MULTI_AXI_MASTERS_DIS]			= BIT(15),
3662306a36Sopenharmony_ci	[IPA_QMB_SELECT_GLOBAL_EN]			= BIT(16),
3762306a36Sopenharmony_ci	[FULL_FLUSH_WAIT_RS_CLOSURE_EN]			= BIT(17),
3862306a36Sopenharmony_ci						/* Bit 18 reserved */
3962306a36Sopenharmony_ci	[QMB_RAM_RD_CACHE_DISABLE]			= BIT(19),
4062306a36Sopenharmony_ci	[GENQMB_AOOOWR]					= BIT(20),
4162306a36Sopenharmony_ci	[IF_OUT_OF_BUF_STOP_RESET_MASK_EN]		= BIT(21),
4262306a36Sopenharmony_ci	[ATOMIC_FETCHER_ARB_LOCK_DIS]			= GENMASK(27, 22),
4362306a36Sopenharmony_ci						/* Bits 28-29 reserved */
4462306a36Sopenharmony_ci	[GEN_QMB_1_DYNAMIC_ASIZE]			= BIT(30),
4562306a36Sopenharmony_ci	[GEN_QMB_0_DYNAMIC_ASIZE]			= BIT(31),
4662306a36Sopenharmony_ci};
4762306a36Sopenharmony_ci
4862306a36Sopenharmony_ciREG_FIELDS(COMP_CFG, comp_cfg, 0x0000002c);
4962306a36Sopenharmony_ci
5062306a36Sopenharmony_cistatic const u32 reg_clkon_cfg_fmask[] = {
5162306a36Sopenharmony_ci	[CLKON_RX]					= BIT(0),
5262306a36Sopenharmony_ci	[CLKON_PROC]					= BIT(1),
5362306a36Sopenharmony_ci	[TX_WRAPPER]					= BIT(2),
5462306a36Sopenharmony_ci	[CLKON_MISC]					= BIT(3),
5562306a36Sopenharmony_ci	[RAM_ARB]					= BIT(4),
5662306a36Sopenharmony_ci	[FTCH_HPS]					= BIT(5),
5762306a36Sopenharmony_ci	[FTCH_DPS]					= BIT(6),
5862306a36Sopenharmony_ci	[CLKON_HPS]					= BIT(7),
5962306a36Sopenharmony_ci	[CLKON_DPS]					= BIT(8),
6062306a36Sopenharmony_ci	[RX_HPS_CMDQS]					= BIT(9),
6162306a36Sopenharmony_ci	[HPS_DPS_CMDQS]					= BIT(10),
6262306a36Sopenharmony_ci	[DPS_TX_CMDQS]					= BIT(11),
6362306a36Sopenharmony_ci	[RSRC_MNGR]					= BIT(12),
6462306a36Sopenharmony_ci	[CTX_HANDLER]					= BIT(13),
6562306a36Sopenharmony_ci	[ACK_MNGR]					= BIT(14),
6662306a36Sopenharmony_ci	[D_DCPH]					= BIT(15),
6762306a36Sopenharmony_ci	[H_DCPH]					= BIT(16),
6862306a36Sopenharmony_ci						/* Bit 17 reserved */
6962306a36Sopenharmony_ci	[NTF_TX_CMDQS]					= BIT(18),
7062306a36Sopenharmony_ci	[CLKON_TX_0]					= BIT(19),
7162306a36Sopenharmony_ci	[CLKON_TX_1]					= BIT(20),
7262306a36Sopenharmony_ci	[CLKON_FNR]					= BIT(21),
7362306a36Sopenharmony_ci	[QSB2AXI_CMDQ_L]				= BIT(22),
7462306a36Sopenharmony_ci	[AGGR_WRAPPER]					= BIT(23),
7562306a36Sopenharmony_ci	[RAM_SLAVEWAY]					= BIT(24),
7662306a36Sopenharmony_ci	[CLKON_QMB]					= BIT(25),
7762306a36Sopenharmony_ci	[WEIGHT_ARB]					= BIT(26),
7862306a36Sopenharmony_ci	[GSI_IF]					= BIT(27),
7962306a36Sopenharmony_ci	[CLKON_GLOBAL]					= BIT(28),
8062306a36Sopenharmony_ci	[GLOBAL_2X_CLK]					= BIT(29),
8162306a36Sopenharmony_ci	[DPL_FIFO]					= BIT(30),
8262306a36Sopenharmony_ci	[DRBIP]						= BIT(31),
8362306a36Sopenharmony_ci};
8462306a36Sopenharmony_ci
8562306a36Sopenharmony_ciREG_FIELDS(CLKON_CFG, clkon_cfg, 0x00000034);
8662306a36Sopenharmony_ci
8762306a36Sopenharmony_cistatic const u32 reg_route_fmask[] = {
8862306a36Sopenharmony_ci	[ROUTE_DEF_PIPE]				= GENMASK(7, 0),
8962306a36Sopenharmony_ci	[ROUTE_FRAG_DEF_PIPE]				= GENMASK(15, 8),
9062306a36Sopenharmony_ci	[ROUTE_DEF_HDR_OFST]				= GENMASK(25, 16),
9162306a36Sopenharmony_ci	[ROUTE_DEF_HDR_TABLE]				= BIT(26),
9262306a36Sopenharmony_ci	[ROUTE_DEF_RETAIN_HDR]				= BIT(27),
9362306a36Sopenharmony_ci	[ROUTE_DIS]					= BIT(28),
9462306a36Sopenharmony_ci						/* Bits 29-31 reserved */
9562306a36Sopenharmony_ci};
9662306a36Sopenharmony_ci
9762306a36Sopenharmony_ciREG_FIELDS(ROUTE, route, 0x00000038);
9862306a36Sopenharmony_ci
9962306a36Sopenharmony_cistatic const u32 reg_shared_mem_size_fmask[] = {
10062306a36Sopenharmony_ci	[MEM_SIZE]					= GENMASK(15, 0),
10162306a36Sopenharmony_ci	[MEM_BADDR]					= GENMASK(31, 16),
10262306a36Sopenharmony_ci};
10362306a36Sopenharmony_ci
10462306a36Sopenharmony_ciREG_FIELDS(SHARED_MEM_SIZE, shared_mem_size, 0x00000040);
10562306a36Sopenharmony_ci
10662306a36Sopenharmony_cistatic const u32 reg_qsb_max_writes_fmask[] = {
10762306a36Sopenharmony_ci	[GEN_QMB_0_MAX_WRITES]				= GENMASK(3, 0),
10862306a36Sopenharmony_ci	[GEN_QMB_1_MAX_WRITES]				= GENMASK(7, 4),
10962306a36Sopenharmony_ci						/* Bits 8-31 reserved */
11062306a36Sopenharmony_ci};
11162306a36Sopenharmony_ci
11262306a36Sopenharmony_ciREG_FIELDS(QSB_MAX_WRITES, qsb_max_writes, 0x00000054);
11362306a36Sopenharmony_ci
11462306a36Sopenharmony_cistatic const u32 reg_qsb_max_reads_fmask[] = {
11562306a36Sopenharmony_ci	[GEN_QMB_0_MAX_READS]				= GENMASK(3, 0),
11662306a36Sopenharmony_ci	[GEN_QMB_1_MAX_READS]				= GENMASK(7, 4),
11762306a36Sopenharmony_ci						/* Bits 8-15 reserved */
11862306a36Sopenharmony_ci	[GEN_QMB_0_MAX_READS_BEATS]			= GENMASK(23, 16),
11962306a36Sopenharmony_ci	[GEN_QMB_1_MAX_READS_BEATS]			= GENMASK(31, 24),
12062306a36Sopenharmony_ci};
12162306a36Sopenharmony_ci
12262306a36Sopenharmony_ciREG_FIELDS(QSB_MAX_READS, qsb_max_reads, 0x00000058);
12362306a36Sopenharmony_ci
12462306a36Sopenharmony_ci/* Valid bits defined by ipa->available */
12562306a36Sopenharmony_ci
12662306a36Sopenharmony_ciREG_STRIDE(STATE_AGGR_ACTIVE, state_aggr_active, 0x00000100, 0x0004);
12762306a36Sopenharmony_ci
12862306a36Sopenharmony_cistatic const u32 reg_filt_rout_cache_flush_fmask[] = {
12962306a36Sopenharmony_ci	[ROUTER_CACHE]					= BIT(0),
13062306a36Sopenharmony_ci						/* Bits 1-3 reserved */
13162306a36Sopenharmony_ci	[FILTER_CACHE]					= BIT(4),
13262306a36Sopenharmony_ci						/* Bits 5-31 reserved */
13362306a36Sopenharmony_ci};
13462306a36Sopenharmony_ci
13562306a36Sopenharmony_ciREG_FIELDS(FILT_ROUT_CACHE_FLUSH, filt_rout_cache_flush, 0x0000404);
13662306a36Sopenharmony_ci
13762306a36Sopenharmony_cistatic const u32 reg_local_pkt_proc_cntxt_fmask[] = {
13862306a36Sopenharmony_ci	[IPA_BASE_ADDR]					= GENMASK(17, 0),
13962306a36Sopenharmony_ci						/* Bits 18-31 reserved */
14062306a36Sopenharmony_ci};
14162306a36Sopenharmony_ci
14262306a36Sopenharmony_ci/* Offset must be a multiple of 8 */
14362306a36Sopenharmony_ciREG_FIELDS(LOCAL_PKT_PROC_CNTXT, local_pkt_proc_cntxt, 0x00000478);
14462306a36Sopenharmony_ci
14562306a36Sopenharmony_cistatic const u32 reg_ipa_tx_cfg_fmask[] = {
14662306a36Sopenharmony_ci						/* Bits 0-1 reserved */
14762306a36Sopenharmony_ci	[PREFETCH_ALMOST_EMPTY_SIZE_TX0]		= GENMASK(5, 2),
14862306a36Sopenharmony_ci	[DMAW_SCND_OUTSD_PRED_THRESHOLD]		= GENMASK(9, 6),
14962306a36Sopenharmony_ci	[DMAW_SCND_OUTSD_PRED_EN]			= BIT(10),
15062306a36Sopenharmony_ci	[DMAW_MAX_BEATS_256_DIS]			= BIT(11),
15162306a36Sopenharmony_ci	[PA_MASK_EN]					= BIT(12),
15262306a36Sopenharmony_ci	[PREFETCH_ALMOST_EMPTY_SIZE_TX1]		= GENMASK(16, 13),
15362306a36Sopenharmony_ci	[DUAL_TX_ENABLE]				= BIT(17),
15462306a36Sopenharmony_ci	[SSPND_PA_NO_START_STATE]			= BIT(18),
15562306a36Sopenharmony_ci						/* Bit 19 reserved */
15662306a36Sopenharmony_ci	[HOLB_STICKY_DROP_EN]				= BIT(20),
15762306a36Sopenharmony_ci						/* Bits 21-31 reserved */
15862306a36Sopenharmony_ci};
15962306a36Sopenharmony_ci
16062306a36Sopenharmony_ciREG_FIELDS(IPA_TX_CFG, ipa_tx_cfg, 0x00000488);
16162306a36Sopenharmony_ci
16262306a36Sopenharmony_cistatic const u32 reg_idle_indication_cfg_fmask[] = {
16362306a36Sopenharmony_ci	[ENTER_IDLE_DEBOUNCE_THRESH]			= GENMASK(15, 0),
16462306a36Sopenharmony_ci	[CONST_NON_IDLE_ENABLE]				= BIT(16),
16562306a36Sopenharmony_ci						/* Bits 17-31 reserved */
16662306a36Sopenharmony_ci};
16762306a36Sopenharmony_ci
16862306a36Sopenharmony_ciREG_FIELDS(IDLE_INDICATION_CFG, idle_indication_cfg, 0x000004a8);
16962306a36Sopenharmony_ci
17062306a36Sopenharmony_cistatic const u32 reg_qtime_timestamp_cfg_fmask[] = {
17162306a36Sopenharmony_ci	[DPL_TIMESTAMP_LSB]				= GENMASK(4, 0),
17262306a36Sopenharmony_ci						/* Bits 5-6 reserved */
17362306a36Sopenharmony_ci	[DPL_TIMESTAMP_SEL]				= BIT(7),
17462306a36Sopenharmony_ci	[TAG_TIMESTAMP_LSB]				= GENMASK(12, 8),
17562306a36Sopenharmony_ci						/* Bits 13-15 reserved */
17662306a36Sopenharmony_ci	[NAT_TIMESTAMP_LSB]				= GENMASK(20, 16),
17762306a36Sopenharmony_ci						/* Bits 21-31 reserved */
17862306a36Sopenharmony_ci};
17962306a36Sopenharmony_ci
18062306a36Sopenharmony_ciREG_FIELDS(QTIME_TIMESTAMP_CFG, qtime_timestamp_cfg, 0x000004ac);
18162306a36Sopenharmony_ci
18262306a36Sopenharmony_cistatic const u32 reg_timers_xo_clk_div_cfg_fmask[] = {
18362306a36Sopenharmony_ci	[DIV_VALUE]					= GENMASK(8, 0),
18462306a36Sopenharmony_ci						/* Bits 9-30 reserved */
18562306a36Sopenharmony_ci	[DIV_ENABLE]					= BIT(31),
18662306a36Sopenharmony_ci};
18762306a36Sopenharmony_ci
18862306a36Sopenharmony_ciREG_FIELDS(TIMERS_XO_CLK_DIV_CFG, timers_xo_clk_div_cfg, 0x000004b0);
18962306a36Sopenharmony_ci
19062306a36Sopenharmony_cistatic const u32 reg_timers_pulse_gran_cfg_fmask[] = {
19162306a36Sopenharmony_ci	[PULSE_GRAN_0]					= GENMASK(2, 0),
19262306a36Sopenharmony_ci	[PULSE_GRAN_1]					= GENMASK(5, 3),
19362306a36Sopenharmony_ci	[PULSE_GRAN_2]					= GENMASK(8, 6),
19462306a36Sopenharmony_ci	[PULSE_GRAN_3]					= GENMASK(11, 9),
19562306a36Sopenharmony_ci						/* Bits 12-31 reserved */
19662306a36Sopenharmony_ci};
19762306a36Sopenharmony_ci
19862306a36Sopenharmony_ciREG_FIELDS(TIMERS_PULSE_GRAN_CFG, timers_pulse_gran_cfg, 0x000004b4);
19962306a36Sopenharmony_ci
20062306a36Sopenharmony_cistatic const u32 reg_src_rsrc_grp_01_rsrc_type_fmask[] = {
20162306a36Sopenharmony_ci	[X_MIN_LIM]					= GENMASK(5, 0),
20262306a36Sopenharmony_ci						/* Bits 6-7 reserved */
20362306a36Sopenharmony_ci	[X_MAX_LIM]					= GENMASK(13, 8),
20462306a36Sopenharmony_ci						/* Bits 14-15 reserved */
20562306a36Sopenharmony_ci	[Y_MIN_LIM]					= GENMASK(21, 16),
20662306a36Sopenharmony_ci						/* Bits 22-23 reserved */
20762306a36Sopenharmony_ci	[Y_MAX_LIM]					= GENMASK(29, 24),
20862306a36Sopenharmony_ci						/* Bits 30-31 reserved */
20962306a36Sopenharmony_ci};
21062306a36Sopenharmony_ci
21162306a36Sopenharmony_ciREG_STRIDE_FIELDS(SRC_RSRC_GRP_01_RSRC_TYPE, src_rsrc_grp_01_rsrc_type,
21262306a36Sopenharmony_ci		  0x00000500, 0x0020);
21362306a36Sopenharmony_ci
21462306a36Sopenharmony_cistatic const u32 reg_src_rsrc_grp_23_rsrc_type_fmask[] = {
21562306a36Sopenharmony_ci	[X_MIN_LIM]					= GENMASK(5, 0),
21662306a36Sopenharmony_ci						/* Bits 6-7 reserved */
21762306a36Sopenharmony_ci	[X_MAX_LIM]					= GENMASK(13, 8),
21862306a36Sopenharmony_ci						/* Bits 14-15 reserved */
21962306a36Sopenharmony_ci	[Y_MIN_LIM]					= GENMASK(21, 16),
22062306a36Sopenharmony_ci						/* Bits 22-23 reserved */
22162306a36Sopenharmony_ci	[Y_MAX_LIM]					= GENMASK(29, 24),
22262306a36Sopenharmony_ci						/* Bits 30-31 reserved */
22362306a36Sopenharmony_ci};
22462306a36Sopenharmony_ci
22562306a36Sopenharmony_ciREG_STRIDE_FIELDS(SRC_RSRC_GRP_23_RSRC_TYPE, src_rsrc_grp_23_rsrc_type,
22662306a36Sopenharmony_ci		  0x00000504, 0x0020);
22762306a36Sopenharmony_ci
22862306a36Sopenharmony_cistatic const u32 reg_src_rsrc_grp_45_rsrc_type_fmask[] = {
22962306a36Sopenharmony_ci	[X_MIN_LIM]					= GENMASK(5, 0),
23062306a36Sopenharmony_ci						/* Bits 6-7 reserved */
23162306a36Sopenharmony_ci	[X_MAX_LIM]					= GENMASK(13, 8),
23262306a36Sopenharmony_ci						/* Bits 14-15 reserved */
23362306a36Sopenharmony_ci	[Y_MIN_LIM]					= GENMASK(21, 16),
23462306a36Sopenharmony_ci						/* Bits 22-23 reserved */
23562306a36Sopenharmony_ci	[Y_MAX_LIM]					= GENMASK(29, 24),
23662306a36Sopenharmony_ci						/* Bits 30-31 reserved */
23762306a36Sopenharmony_ci};
23862306a36Sopenharmony_ci
23962306a36Sopenharmony_ciREG_STRIDE_FIELDS(SRC_RSRC_GRP_45_RSRC_TYPE, src_rsrc_grp_45_rsrc_type,
24062306a36Sopenharmony_ci		  0x00000508, 0x0020);
24162306a36Sopenharmony_ci
24262306a36Sopenharmony_cistatic const u32 reg_src_rsrc_grp_67_rsrc_type_fmask[] = {
24362306a36Sopenharmony_ci	[X_MIN_LIM]					= GENMASK(5, 0),
24462306a36Sopenharmony_ci						/* Bits 6-7 reserved */
24562306a36Sopenharmony_ci	[X_MAX_LIM]					= GENMASK(13, 8),
24662306a36Sopenharmony_ci						/* Bits 14-15 reserved */
24762306a36Sopenharmony_ci	[Y_MIN_LIM]					= GENMASK(21, 16),
24862306a36Sopenharmony_ci						/* Bits 22-23 reserved */
24962306a36Sopenharmony_ci	[Y_MAX_LIM]					= GENMASK(29, 24),
25062306a36Sopenharmony_ci						/* Bits 30-31 reserved */
25162306a36Sopenharmony_ci};
25262306a36Sopenharmony_ci
25362306a36Sopenharmony_ciREG_STRIDE_FIELDS(SRC_RSRC_GRP_67_RSRC_TYPE, src_rsrc_grp_67_rsrc_type,
25462306a36Sopenharmony_ci		  0x0000050c, 0x0020);
25562306a36Sopenharmony_ci
25662306a36Sopenharmony_cistatic const u32 reg_dst_rsrc_grp_01_rsrc_type_fmask[] = {
25762306a36Sopenharmony_ci	[X_MIN_LIM]					= GENMASK(5, 0),
25862306a36Sopenharmony_ci						/* Bits 6-7 reserved */
25962306a36Sopenharmony_ci	[X_MAX_LIM]					= GENMASK(13, 8),
26062306a36Sopenharmony_ci						/* Bits 14-15 reserved */
26162306a36Sopenharmony_ci	[Y_MIN_LIM]					= GENMASK(21, 16),
26262306a36Sopenharmony_ci						/* Bits 22-23 reserved */
26362306a36Sopenharmony_ci	[Y_MAX_LIM]					= GENMASK(29, 24),
26462306a36Sopenharmony_ci						/* Bits 30-31 reserved */
26562306a36Sopenharmony_ci};
26662306a36Sopenharmony_ci
26762306a36Sopenharmony_ciREG_STRIDE_FIELDS(DST_RSRC_GRP_01_RSRC_TYPE, dst_rsrc_grp_01_rsrc_type,
26862306a36Sopenharmony_ci		  0x00000600, 0x0020);
26962306a36Sopenharmony_ci
27062306a36Sopenharmony_cistatic const u32 reg_dst_rsrc_grp_23_rsrc_type_fmask[] = {
27162306a36Sopenharmony_ci	[X_MIN_LIM]					= GENMASK(5, 0),
27262306a36Sopenharmony_ci						/* Bits 6-7 reserved */
27362306a36Sopenharmony_ci	[X_MAX_LIM]					= GENMASK(13, 8),
27462306a36Sopenharmony_ci						/* Bits 14-15 reserved */
27562306a36Sopenharmony_ci	[Y_MIN_LIM]					= GENMASK(21, 16),
27662306a36Sopenharmony_ci						/* Bits 22-23 reserved */
27762306a36Sopenharmony_ci	[Y_MAX_LIM]					= GENMASK(29, 24),
27862306a36Sopenharmony_ci						/* Bits 30-31 reserved */
27962306a36Sopenharmony_ci};
28062306a36Sopenharmony_ci
28162306a36Sopenharmony_ciREG_STRIDE_FIELDS(DST_RSRC_GRP_23_RSRC_TYPE, dst_rsrc_grp_23_rsrc_type,
28262306a36Sopenharmony_ci		  0x00000604, 0x0020);
28362306a36Sopenharmony_ci
28462306a36Sopenharmony_cistatic const u32 reg_dst_rsrc_grp_45_rsrc_type_fmask[] = {
28562306a36Sopenharmony_ci	[X_MIN_LIM]					= GENMASK(5, 0),
28662306a36Sopenharmony_ci						/* Bits 6-7 reserved */
28762306a36Sopenharmony_ci	[X_MAX_LIM]					= GENMASK(13, 8),
28862306a36Sopenharmony_ci						/* Bits 14-15 reserved */
28962306a36Sopenharmony_ci	[Y_MIN_LIM]					= GENMASK(21, 16),
29062306a36Sopenharmony_ci						/* Bits 22-23 reserved */
29162306a36Sopenharmony_ci	[Y_MAX_LIM]					= GENMASK(29, 24),
29262306a36Sopenharmony_ci						/* Bits 30-31 reserved */
29362306a36Sopenharmony_ci};
29462306a36Sopenharmony_ci
29562306a36Sopenharmony_ciREG_STRIDE_FIELDS(DST_RSRC_GRP_45_RSRC_TYPE, dst_rsrc_grp_45_rsrc_type,
29662306a36Sopenharmony_ci		  0x00000608, 0x0020);
29762306a36Sopenharmony_ci
29862306a36Sopenharmony_cistatic const u32 reg_dst_rsrc_grp_67_rsrc_type_fmask[] = {
29962306a36Sopenharmony_ci	[X_MIN_LIM]					= GENMASK(5, 0),
30062306a36Sopenharmony_ci						/* Bits 6-7 reserved */
30162306a36Sopenharmony_ci	[X_MAX_LIM]					= GENMASK(13, 8),
30262306a36Sopenharmony_ci						/* Bits 14-15 reserved */
30362306a36Sopenharmony_ci	[Y_MIN_LIM]					= GENMASK(21, 16),
30462306a36Sopenharmony_ci						/* Bits 22-23 reserved */
30562306a36Sopenharmony_ci	[Y_MAX_LIM]					= GENMASK(29, 24),
30662306a36Sopenharmony_ci						/* Bits 30-31 reserved */
30762306a36Sopenharmony_ci};
30862306a36Sopenharmony_ci
30962306a36Sopenharmony_ciREG_STRIDE_FIELDS(DST_RSRC_GRP_67_RSRC_TYPE, dst_rsrc_grp_67_rsrc_type,
31062306a36Sopenharmony_ci		  0x0000060c, 0x0020);
31162306a36Sopenharmony_ci
31262306a36Sopenharmony_ci/* Valid bits defined by ipa->available */
31362306a36Sopenharmony_ci
31462306a36Sopenharmony_ciREG_STRIDE(AGGR_FORCE_CLOSE, aggr_force_close, 0x000006b0, 0x0004);
31562306a36Sopenharmony_ci
31662306a36Sopenharmony_cistatic const u32 reg_endp_init_cfg_fmask[] = {
31762306a36Sopenharmony_ci	[FRAG_OFFLOAD_EN]				= BIT(0),
31862306a36Sopenharmony_ci	[CS_OFFLOAD_EN]					= GENMASK(2, 1),
31962306a36Sopenharmony_ci	[CS_METADATA_HDR_OFFSET]			= GENMASK(6, 3),
32062306a36Sopenharmony_ci						/* Bit 7 reserved */
32162306a36Sopenharmony_ci	[CS_GEN_QMB_MASTER_SEL]				= BIT(8),
32262306a36Sopenharmony_ci						/* Bits 9-31 reserved */
32362306a36Sopenharmony_ci};
32462306a36Sopenharmony_ci
32562306a36Sopenharmony_ciREG_STRIDE_FIELDS(ENDP_INIT_CFG, endp_init_cfg, 0x00001008, 0x0080);
32662306a36Sopenharmony_ci
32762306a36Sopenharmony_cistatic const u32 reg_endp_init_nat_fmask[] = {
32862306a36Sopenharmony_ci	[NAT_EN]					= GENMASK(1, 0),
32962306a36Sopenharmony_ci						/* Bits 2-31 reserved */
33062306a36Sopenharmony_ci};
33162306a36Sopenharmony_ci
33262306a36Sopenharmony_ciREG_STRIDE_FIELDS(ENDP_INIT_NAT, endp_init_nat, 0x0000100c, 0x0080);
33362306a36Sopenharmony_ci
33462306a36Sopenharmony_cistatic const u32 reg_endp_init_hdr_fmask[] = {
33562306a36Sopenharmony_ci	[HDR_LEN]					= GENMASK(5, 0),
33662306a36Sopenharmony_ci	[HDR_OFST_METADATA_VALID]			= BIT(6),
33762306a36Sopenharmony_ci	[HDR_OFST_METADATA]				= GENMASK(12, 7),
33862306a36Sopenharmony_ci	[HDR_ADDITIONAL_CONST_LEN]			= GENMASK(18, 13),
33962306a36Sopenharmony_ci	[HDR_OFST_PKT_SIZE_VALID]			= BIT(19),
34062306a36Sopenharmony_ci	[HDR_OFST_PKT_SIZE]				= GENMASK(25, 20),
34162306a36Sopenharmony_ci						/* Bit 26 reserved */
34262306a36Sopenharmony_ci	[HDR_LEN_INC_DEAGG_HDR]				= BIT(27),
34362306a36Sopenharmony_ci	[HDR_LEN_MSB]					= GENMASK(29, 28),
34462306a36Sopenharmony_ci	[HDR_OFST_METADATA_MSB]				= GENMASK(31, 30),
34562306a36Sopenharmony_ci};
34662306a36Sopenharmony_ci
34762306a36Sopenharmony_ciREG_STRIDE_FIELDS(ENDP_INIT_HDR, endp_init_hdr, 0x00001010, 0x0080);
34862306a36Sopenharmony_ci
34962306a36Sopenharmony_cistatic const u32 reg_endp_init_hdr_ext_fmask[] = {
35062306a36Sopenharmony_ci	[HDR_ENDIANNESS]				= BIT(0),
35162306a36Sopenharmony_ci	[HDR_TOTAL_LEN_OR_PAD_VALID]			= BIT(1),
35262306a36Sopenharmony_ci	[HDR_TOTAL_LEN_OR_PAD]				= BIT(2),
35362306a36Sopenharmony_ci	[HDR_PAYLOAD_LEN_INC_PADDING]			= BIT(3),
35462306a36Sopenharmony_ci	[HDR_TOTAL_LEN_OR_PAD_OFFSET]			= GENMASK(9, 4),
35562306a36Sopenharmony_ci	[HDR_PAD_TO_ALIGNMENT]				= GENMASK(13, 10),
35662306a36Sopenharmony_ci						/* Bits 14-15 reserved */
35762306a36Sopenharmony_ci	[HDR_TOTAL_LEN_OR_PAD_OFFSET_MSB]		= GENMASK(17, 16),
35862306a36Sopenharmony_ci	[HDR_OFST_PKT_SIZE_MSB]				= GENMASK(19, 18),
35962306a36Sopenharmony_ci	[HDR_ADDITIONAL_CONST_LEN_MSB]			= GENMASK(21, 20),
36062306a36Sopenharmony_ci	[HDR_BYTES_TO_REMOVE_VALID]			= BIT(22),
36162306a36Sopenharmony_ci						/* Bit 23 reserved */
36262306a36Sopenharmony_ci	[HDR_BYTES_TO_REMOVE]				= GENMASK(31, 24),
36362306a36Sopenharmony_ci};
36462306a36Sopenharmony_ci
36562306a36Sopenharmony_ciREG_STRIDE_FIELDS(ENDP_INIT_HDR_EXT, endp_init_hdr_ext, 0x00001014, 0x0080);
36662306a36Sopenharmony_ci
36762306a36Sopenharmony_ciREG_STRIDE(ENDP_INIT_HDR_METADATA_MASK, endp_init_hdr_metadata_mask,
36862306a36Sopenharmony_ci	   0x00001018, 0x0080);
36962306a36Sopenharmony_ci
37062306a36Sopenharmony_cistatic const u32 reg_endp_init_mode_fmask[] = {
37162306a36Sopenharmony_ci	[ENDP_MODE]					= GENMASK(2, 0),
37262306a36Sopenharmony_ci	[DCPH_ENABLE]					= BIT(3),
37362306a36Sopenharmony_ci	[DEST_PIPE_INDEX]				= GENMASK(11, 4),
37462306a36Sopenharmony_ci	[BYTE_THRESHOLD]				= GENMASK(27, 12),
37562306a36Sopenharmony_ci	[PIPE_REPLICATION_EN]				= BIT(28),
37662306a36Sopenharmony_ci	[PAD_EN]					= BIT(29),
37762306a36Sopenharmony_ci	[DRBIP_ACL_ENABLE]				= BIT(30),
37862306a36Sopenharmony_ci						/* Bit 31 reserved */
37962306a36Sopenharmony_ci};
38062306a36Sopenharmony_ci
38162306a36Sopenharmony_ciREG_STRIDE_FIELDS(ENDP_INIT_MODE, endp_init_mode, 0x00001020, 0x0080);
38262306a36Sopenharmony_ci
38362306a36Sopenharmony_cistatic const u32 reg_endp_init_aggr_fmask[] = {
38462306a36Sopenharmony_ci	[AGGR_EN]					= GENMASK(1, 0),
38562306a36Sopenharmony_ci	[AGGR_TYPE]					= GENMASK(4, 2),
38662306a36Sopenharmony_ci	[BYTE_LIMIT]					= GENMASK(10, 5),
38762306a36Sopenharmony_ci						/* Bit 11 reserved */
38862306a36Sopenharmony_ci	[TIME_LIMIT]					= GENMASK(16, 12),
38962306a36Sopenharmony_ci	[PKT_LIMIT]					= GENMASK(22, 17),
39062306a36Sopenharmony_ci	[SW_EOF_ACTIVE]					= BIT(23),
39162306a36Sopenharmony_ci	[FORCE_CLOSE]					= BIT(24),
39262306a36Sopenharmony_ci						/* Bit 25 reserved */
39362306a36Sopenharmony_ci	[HARD_BYTE_LIMIT_EN]				= BIT(26),
39462306a36Sopenharmony_ci	[AGGR_GRAN_SEL]					= BIT(27),
39562306a36Sopenharmony_ci						/* Bits 28-31 reserved */
39662306a36Sopenharmony_ci};
39762306a36Sopenharmony_ci
39862306a36Sopenharmony_ciREG_STRIDE_FIELDS(ENDP_INIT_AGGR, endp_init_aggr, 0x00001024, 0x0080);
39962306a36Sopenharmony_ci
40062306a36Sopenharmony_cistatic const u32 reg_endp_init_hol_block_en_fmask[] = {
40162306a36Sopenharmony_ci	[HOL_BLOCK_EN]					= BIT(0),
40262306a36Sopenharmony_ci						/* Bits 1-31 reserved */
40362306a36Sopenharmony_ci};
40462306a36Sopenharmony_ci
40562306a36Sopenharmony_ciREG_STRIDE_FIELDS(ENDP_INIT_HOL_BLOCK_EN, endp_init_hol_block_en,
40662306a36Sopenharmony_ci		  0x0000102c, 0x0080);
40762306a36Sopenharmony_ci
40862306a36Sopenharmony_cistatic const u32 reg_endp_init_hol_block_timer_fmask[] = {
40962306a36Sopenharmony_ci	[TIMER_LIMIT]					= GENMASK(4, 0),
41062306a36Sopenharmony_ci						/* Bits 5-7 reserved */
41162306a36Sopenharmony_ci	[TIMER_GRAN_SEL]				= GENMASK(9, 8),
41262306a36Sopenharmony_ci						/* Bits 10-31 reserved */
41362306a36Sopenharmony_ci};
41462306a36Sopenharmony_ci
41562306a36Sopenharmony_ciREG_STRIDE_FIELDS(ENDP_INIT_HOL_BLOCK_TIMER, endp_init_hol_block_timer,
41662306a36Sopenharmony_ci		  0x00001030, 0x0080);
41762306a36Sopenharmony_ci
41862306a36Sopenharmony_cistatic const u32 reg_endp_init_deaggr_fmask[] = {
41962306a36Sopenharmony_ci	[DEAGGR_HDR_LEN]				= GENMASK(5, 0),
42062306a36Sopenharmony_ci	[SYSPIPE_ERR_DETECTION]				= BIT(6),
42162306a36Sopenharmony_ci	[PACKET_OFFSET_VALID]				= BIT(7),
42262306a36Sopenharmony_ci	[PACKET_OFFSET_LOCATION]			= GENMASK(13, 8),
42362306a36Sopenharmony_ci	[IGNORE_MIN_PKT_ERR]				= BIT(14),
42462306a36Sopenharmony_ci						/* Bit 15 reserved */
42562306a36Sopenharmony_ci	[MAX_PACKET_LEN]				= GENMASK(31, 16),
42662306a36Sopenharmony_ci};
42762306a36Sopenharmony_ci
42862306a36Sopenharmony_ciREG_STRIDE_FIELDS(ENDP_INIT_DEAGGR, endp_init_deaggr, 0x00001034, 0x0080);
42962306a36Sopenharmony_ci
43062306a36Sopenharmony_cistatic const u32 reg_endp_init_rsrc_grp_fmask[] = {
43162306a36Sopenharmony_ci	[ENDP_RSRC_GRP]					= GENMASK(2, 0),
43262306a36Sopenharmony_ci						/* Bits 3-31 reserved */
43362306a36Sopenharmony_ci};
43462306a36Sopenharmony_ci
43562306a36Sopenharmony_ciREG_STRIDE_FIELDS(ENDP_INIT_RSRC_GRP, endp_init_rsrc_grp, 0x00001038, 0x0080);
43662306a36Sopenharmony_ci
43762306a36Sopenharmony_cistatic const u32 reg_endp_init_seq_fmask[] = {
43862306a36Sopenharmony_ci	[SEQ_TYPE]					= GENMASK(7, 0),
43962306a36Sopenharmony_ci						/* Bits 8-31 reserved */
44062306a36Sopenharmony_ci};
44162306a36Sopenharmony_ci
44262306a36Sopenharmony_ciREG_STRIDE_FIELDS(ENDP_INIT_SEQ, endp_init_seq, 0x0000103c, 0x0080);
44362306a36Sopenharmony_ci
44462306a36Sopenharmony_cistatic const u32 reg_endp_status_fmask[] = {
44562306a36Sopenharmony_ci	[STATUS_EN]					= BIT(0),
44662306a36Sopenharmony_ci	[STATUS_ENDP]					= GENMASK(8, 1),
44762306a36Sopenharmony_ci	[STATUS_PKT_SUPPRESS]				= BIT(9),
44862306a36Sopenharmony_ci						/* Bits 10-31 reserved */
44962306a36Sopenharmony_ci};
45062306a36Sopenharmony_ci
45162306a36Sopenharmony_ciREG_STRIDE_FIELDS(ENDP_STATUS, endp_status, 0x00001040, 0x0080);
45262306a36Sopenharmony_ci
45362306a36Sopenharmony_cistatic const u32 reg_endp_filter_cache_cfg_fmask[] = {
45462306a36Sopenharmony_ci	[CACHE_MSK_SRC_ID]				= BIT(0),
45562306a36Sopenharmony_ci	[CACHE_MSK_SRC_IP]				= BIT(1),
45662306a36Sopenharmony_ci	[CACHE_MSK_DST_IP]				= BIT(2),
45762306a36Sopenharmony_ci	[CACHE_MSK_SRC_PORT]				= BIT(3),
45862306a36Sopenharmony_ci	[CACHE_MSK_DST_PORT]				= BIT(4),
45962306a36Sopenharmony_ci	[CACHE_MSK_PROTOCOL]				= BIT(5),
46062306a36Sopenharmony_ci	[CACHE_MSK_METADATA]				= BIT(6),
46162306a36Sopenharmony_ci						/* Bits 7-31 reserved */
46262306a36Sopenharmony_ci};
46362306a36Sopenharmony_ci
46462306a36Sopenharmony_ciREG_STRIDE_FIELDS(ENDP_FILTER_CACHE_CFG, endp_filter_cache_cfg,
46562306a36Sopenharmony_ci		  0x0000105c, 0x0080);
46662306a36Sopenharmony_ci
46762306a36Sopenharmony_cistatic const u32 reg_endp_router_cache_cfg_fmask[] = {
46862306a36Sopenharmony_ci	[CACHE_MSK_SRC_ID]				= BIT(0),
46962306a36Sopenharmony_ci	[CACHE_MSK_SRC_IP]				= BIT(1),
47062306a36Sopenharmony_ci	[CACHE_MSK_DST_IP]				= BIT(2),
47162306a36Sopenharmony_ci	[CACHE_MSK_SRC_PORT]				= BIT(3),
47262306a36Sopenharmony_ci	[CACHE_MSK_DST_PORT]				= BIT(4),
47362306a36Sopenharmony_ci	[CACHE_MSK_PROTOCOL]				= BIT(5),
47462306a36Sopenharmony_ci	[CACHE_MSK_METADATA]				= BIT(6),
47562306a36Sopenharmony_ci						/* Bits 7-31 reserved */
47662306a36Sopenharmony_ci};
47762306a36Sopenharmony_ci
47862306a36Sopenharmony_ciREG_STRIDE_FIELDS(ENDP_ROUTER_CACHE_CFG, endp_router_cache_cfg,
47962306a36Sopenharmony_ci		  0x00001070, 0x0080);
48062306a36Sopenharmony_ci
48162306a36Sopenharmony_ci/* Valid bits defined by enum ipa_irq_id; only used for GSI_EE_AP */
48262306a36Sopenharmony_ciREG(IPA_IRQ_STTS, ipa_irq_stts, 0x0000c008 + 0x1000 * GSI_EE_AP);
48362306a36Sopenharmony_ci
48462306a36Sopenharmony_ci/* Valid bits defined by enum ipa_irq_id; only used for GSI_EE_AP */
48562306a36Sopenharmony_ciREG(IPA_IRQ_EN, ipa_irq_en, 0x0000c00c + 0x1000 * GSI_EE_AP);
48662306a36Sopenharmony_ci
48762306a36Sopenharmony_ci/* Valid bits defined by enum ipa_irq_id; only used for GSI_EE_AP */
48862306a36Sopenharmony_ciREG(IPA_IRQ_CLR, ipa_irq_clr, 0x0000c010 + 0x1000 * GSI_EE_AP);
48962306a36Sopenharmony_ci
49062306a36Sopenharmony_cistatic const u32 reg_ipa_irq_uc_fmask[] = {
49162306a36Sopenharmony_ci	[UC_INTR]					= BIT(0),
49262306a36Sopenharmony_ci						/* Bits 1-31 reserved */
49362306a36Sopenharmony_ci};
49462306a36Sopenharmony_ci
49562306a36Sopenharmony_ciREG_FIELDS(IPA_IRQ_UC, ipa_irq_uc, 0x0000c01c + 0x1000 * GSI_EE_AP);
49662306a36Sopenharmony_ci
49762306a36Sopenharmony_ci/* Valid bits defined by ipa->available */
49862306a36Sopenharmony_ci
49962306a36Sopenharmony_ciREG_STRIDE(IRQ_SUSPEND_INFO, irq_suspend_info,
50062306a36Sopenharmony_ci	   0x0000c030 + 0x1000 * GSI_EE_AP, 0x0004);
50162306a36Sopenharmony_ci
50262306a36Sopenharmony_ci/* Valid bits defined by ipa->available */
50362306a36Sopenharmony_ci
50462306a36Sopenharmony_ciREG_STRIDE(IRQ_SUSPEND_EN, irq_suspend_en,
50562306a36Sopenharmony_ci	   0x0000c050 + 0x1000 * GSI_EE_AP, 0x0004);
50662306a36Sopenharmony_ci
50762306a36Sopenharmony_ci/* Valid bits defined by ipa->available */
50862306a36Sopenharmony_ci
50962306a36Sopenharmony_ciREG_STRIDE(IRQ_SUSPEND_CLR, irq_suspend_clr,
51062306a36Sopenharmony_ci	   0x0000c070 + 0x1000 * GSI_EE_AP, 0x0004);
51162306a36Sopenharmony_ci
51262306a36Sopenharmony_cistatic const struct reg *reg_array[] = {
51362306a36Sopenharmony_ci	[COMP_CFG]			= &reg_comp_cfg,
51462306a36Sopenharmony_ci	[CLKON_CFG]			= &reg_clkon_cfg,
51562306a36Sopenharmony_ci	[ROUTE]				= &reg_route,
51662306a36Sopenharmony_ci	[SHARED_MEM_SIZE]		= &reg_shared_mem_size,
51762306a36Sopenharmony_ci	[QSB_MAX_WRITES]		= &reg_qsb_max_writes,
51862306a36Sopenharmony_ci	[QSB_MAX_READS]			= &reg_qsb_max_reads,
51962306a36Sopenharmony_ci	[FILT_ROUT_CACHE_FLUSH]		= &reg_filt_rout_cache_flush,
52062306a36Sopenharmony_ci	[STATE_AGGR_ACTIVE]		= &reg_state_aggr_active,
52162306a36Sopenharmony_ci	[LOCAL_PKT_PROC_CNTXT]		= &reg_local_pkt_proc_cntxt,
52262306a36Sopenharmony_ci	[AGGR_FORCE_CLOSE]		= &reg_aggr_force_close,
52362306a36Sopenharmony_ci	[IPA_TX_CFG]			= &reg_ipa_tx_cfg,
52462306a36Sopenharmony_ci	[FLAVOR_0]			= &reg_flavor_0,
52562306a36Sopenharmony_ci	[IDLE_INDICATION_CFG]		= &reg_idle_indication_cfg,
52662306a36Sopenharmony_ci	[QTIME_TIMESTAMP_CFG]		= &reg_qtime_timestamp_cfg,
52762306a36Sopenharmony_ci	[TIMERS_XO_CLK_DIV_CFG]		= &reg_timers_xo_clk_div_cfg,
52862306a36Sopenharmony_ci	[TIMERS_PULSE_GRAN_CFG]		= &reg_timers_pulse_gran_cfg,
52962306a36Sopenharmony_ci	[SRC_RSRC_GRP_01_RSRC_TYPE]	= &reg_src_rsrc_grp_01_rsrc_type,
53062306a36Sopenharmony_ci	[SRC_RSRC_GRP_23_RSRC_TYPE]	= &reg_src_rsrc_grp_23_rsrc_type,
53162306a36Sopenharmony_ci	[SRC_RSRC_GRP_45_RSRC_TYPE]	= &reg_src_rsrc_grp_45_rsrc_type,
53262306a36Sopenharmony_ci	[SRC_RSRC_GRP_67_RSRC_TYPE]	= &reg_src_rsrc_grp_67_rsrc_type,
53362306a36Sopenharmony_ci	[DST_RSRC_GRP_01_RSRC_TYPE]	= &reg_dst_rsrc_grp_01_rsrc_type,
53462306a36Sopenharmony_ci	[DST_RSRC_GRP_23_RSRC_TYPE]	= &reg_dst_rsrc_grp_23_rsrc_type,
53562306a36Sopenharmony_ci	[DST_RSRC_GRP_45_RSRC_TYPE]	= &reg_dst_rsrc_grp_45_rsrc_type,
53662306a36Sopenharmony_ci	[DST_RSRC_GRP_67_RSRC_TYPE]	= &reg_dst_rsrc_grp_67_rsrc_type,
53762306a36Sopenharmony_ci	[ENDP_INIT_CFG]			= &reg_endp_init_cfg,
53862306a36Sopenharmony_ci	[ENDP_INIT_NAT]			= &reg_endp_init_nat,
53962306a36Sopenharmony_ci	[ENDP_INIT_HDR]			= &reg_endp_init_hdr,
54062306a36Sopenharmony_ci	[ENDP_INIT_HDR_EXT]		= &reg_endp_init_hdr_ext,
54162306a36Sopenharmony_ci	[ENDP_INIT_HDR_METADATA_MASK]	= &reg_endp_init_hdr_metadata_mask,
54262306a36Sopenharmony_ci	[ENDP_INIT_MODE]		= &reg_endp_init_mode,
54362306a36Sopenharmony_ci	[ENDP_INIT_AGGR]		= &reg_endp_init_aggr,
54462306a36Sopenharmony_ci	[ENDP_INIT_HOL_BLOCK_EN]	= &reg_endp_init_hol_block_en,
54562306a36Sopenharmony_ci	[ENDP_INIT_HOL_BLOCK_TIMER]	= &reg_endp_init_hol_block_timer,
54662306a36Sopenharmony_ci	[ENDP_INIT_DEAGGR]		= &reg_endp_init_deaggr,
54762306a36Sopenharmony_ci	[ENDP_INIT_RSRC_GRP]		= &reg_endp_init_rsrc_grp,
54862306a36Sopenharmony_ci	[ENDP_INIT_SEQ]			= &reg_endp_init_seq,
54962306a36Sopenharmony_ci	[ENDP_STATUS]			= &reg_endp_status,
55062306a36Sopenharmony_ci	[ENDP_FILTER_CACHE_CFG]		= &reg_endp_filter_cache_cfg,
55162306a36Sopenharmony_ci	[ENDP_ROUTER_CACHE_CFG]		= &reg_endp_router_cache_cfg,
55262306a36Sopenharmony_ci	[IPA_IRQ_STTS]			= &reg_ipa_irq_stts,
55362306a36Sopenharmony_ci	[IPA_IRQ_EN]			= &reg_ipa_irq_en,
55462306a36Sopenharmony_ci	[IPA_IRQ_CLR]			= &reg_ipa_irq_clr,
55562306a36Sopenharmony_ci	[IPA_IRQ_UC]			= &reg_ipa_irq_uc,
55662306a36Sopenharmony_ci	[IRQ_SUSPEND_INFO]		= &reg_irq_suspend_info,
55762306a36Sopenharmony_ci	[IRQ_SUSPEND_EN]		= &reg_irq_suspend_en,
55862306a36Sopenharmony_ci	[IRQ_SUSPEND_CLR]		= &reg_irq_suspend_clr,
55962306a36Sopenharmony_ci};
56062306a36Sopenharmony_ci
56162306a36Sopenharmony_ciconst struct regs ipa_regs_v5_0 = {
56262306a36Sopenharmony_ci	.reg_count	= ARRAY_SIZE(reg_array),
56362306a36Sopenharmony_ci	.reg		= reg_array,
56462306a36Sopenharmony_ci};
565