162306a36Sopenharmony_ci/*
262306a36Sopenharmony_ci * This file is part of the Chelsio T4 Ethernet driver for Linux.
362306a36Sopenharmony_ci *
462306a36Sopenharmony_ci * Copyright (c) 2003-2014 Chelsio Communications, Inc. All rights reserved.
562306a36Sopenharmony_ci *
662306a36Sopenharmony_ci * This software is available to you under a choice of one of two
762306a36Sopenharmony_ci * licenses.  You may choose to be licensed under the terms of the GNU
862306a36Sopenharmony_ci * General Public License (GPL) Version 2, available from the file
962306a36Sopenharmony_ci * COPYING in the main directory of this source tree, or the
1062306a36Sopenharmony_ci * OpenIB.org BSD license below:
1162306a36Sopenharmony_ci *
1262306a36Sopenharmony_ci *     Redistribution and use in source and binary forms, with or
1362306a36Sopenharmony_ci *     without modification, are permitted provided that the following
1462306a36Sopenharmony_ci *     conditions are met:
1562306a36Sopenharmony_ci *
1662306a36Sopenharmony_ci *      - Redistributions of source code must retain the above
1762306a36Sopenharmony_ci *        copyright notice, this list of conditions and the following
1862306a36Sopenharmony_ci *        disclaimer.
1962306a36Sopenharmony_ci *
2062306a36Sopenharmony_ci *      - Redistributions in binary form must reproduce the above
2162306a36Sopenharmony_ci *        copyright notice, this list of conditions and the following
2262306a36Sopenharmony_ci *        disclaimer in the documentation and/or other materials
2362306a36Sopenharmony_ci *        provided with the distribution.
2462306a36Sopenharmony_ci *
2562306a36Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
2662306a36Sopenharmony_ci * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
2762306a36Sopenharmony_ci * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
2862306a36Sopenharmony_ci * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
2962306a36Sopenharmony_ci * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
3062306a36Sopenharmony_ci * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
3162306a36Sopenharmony_ci * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3262306a36Sopenharmony_ci * SOFTWARE.
3362306a36Sopenharmony_ci */
3462306a36Sopenharmony_ci
3562306a36Sopenharmony_ci#ifndef __T4_REGS_H
3662306a36Sopenharmony_ci#define __T4_REGS_H
3762306a36Sopenharmony_ci
3862306a36Sopenharmony_ci#define MYPF_BASE 0x1b000
3962306a36Sopenharmony_ci#define MYPF_REG(reg_addr) (MYPF_BASE + (reg_addr))
4062306a36Sopenharmony_ci
4162306a36Sopenharmony_ci#define PF0_BASE 0x1e000
4262306a36Sopenharmony_ci#define PF0_REG(reg_addr) (PF0_BASE + (reg_addr))
4362306a36Sopenharmony_ci
4462306a36Sopenharmony_ci#define PF_STRIDE 0x400
4562306a36Sopenharmony_ci#define PF_BASE(idx) (PF0_BASE + (idx) * PF_STRIDE)
4662306a36Sopenharmony_ci#define PF_REG(idx, reg) (PF_BASE(idx) + (reg))
4762306a36Sopenharmony_ci
4862306a36Sopenharmony_ci#define NUM_CIM_CTL_TSCH_CHANNEL_INSTANCES 4
4962306a36Sopenharmony_ci#define NUM_CIM_CTL_TSCH_CHANNEL_TSCH_CLASS_INSTANCES 16
5062306a36Sopenharmony_ci
5162306a36Sopenharmony_ci#define MYPORT_BASE 0x1c000
5262306a36Sopenharmony_ci#define MYPORT_REG(reg_addr) (MYPORT_BASE + (reg_addr))
5362306a36Sopenharmony_ci
5462306a36Sopenharmony_ci#define PORT0_BASE 0x20000
5562306a36Sopenharmony_ci#define PORT0_REG(reg_addr) (PORT0_BASE + (reg_addr))
5662306a36Sopenharmony_ci
5762306a36Sopenharmony_ci#define PORT_STRIDE 0x2000
5862306a36Sopenharmony_ci#define PORT_BASE(idx) (PORT0_BASE + (idx) * PORT_STRIDE)
5962306a36Sopenharmony_ci#define PORT_REG(idx, reg) (PORT_BASE(idx) + (reg))
6062306a36Sopenharmony_ci
6162306a36Sopenharmony_ci#define EDC_STRIDE (EDC_1_BASE_ADDR - EDC_0_BASE_ADDR)
6262306a36Sopenharmony_ci#define EDC_REG(reg, idx) (reg + EDC_STRIDE * idx)
6362306a36Sopenharmony_ci
6462306a36Sopenharmony_ci#define PCIE_MEM_ACCESS_REG(reg_addr, idx) ((reg_addr) + (idx) * 8)
6562306a36Sopenharmony_ci#define PCIE_MAILBOX_REG(reg_addr, idx) ((reg_addr) + (idx) * 8)
6662306a36Sopenharmony_ci#define MC_BIST_STATUS_REG(reg_addr, idx) ((reg_addr) + (idx) * 4)
6762306a36Sopenharmony_ci#define EDC_BIST_STATUS_REG(reg_addr, idx) ((reg_addr) + (idx) * 4)
6862306a36Sopenharmony_ci
6962306a36Sopenharmony_ci#define PCIE_FW_REG(reg_addr, idx) ((reg_addr) + (idx) * 4)
7062306a36Sopenharmony_ci
7162306a36Sopenharmony_ci#define NUM_LE_DB_DBGI_REQ_DATA_INSTANCES 17
7262306a36Sopenharmony_ci#define NUM_LE_DB_DBGI_RSP_DATA_INSTANCES 17
7362306a36Sopenharmony_ci
7462306a36Sopenharmony_ci#define SGE_PF_KDOORBELL_A 0x0
7562306a36Sopenharmony_ci
7662306a36Sopenharmony_ci#define QID_S    15
7762306a36Sopenharmony_ci#define QID_V(x) ((x) << QID_S)
7862306a36Sopenharmony_ci
7962306a36Sopenharmony_ci#define DBPRIO_S    14
8062306a36Sopenharmony_ci#define DBPRIO_V(x) ((x) << DBPRIO_S)
8162306a36Sopenharmony_ci#define DBPRIO_F    DBPRIO_V(1U)
8262306a36Sopenharmony_ci
8362306a36Sopenharmony_ci#define PIDX_S    0
8462306a36Sopenharmony_ci#define PIDX_V(x) ((x) << PIDX_S)
8562306a36Sopenharmony_ci
8662306a36Sopenharmony_ci#define SGE_VF_KDOORBELL_A 0x0
8762306a36Sopenharmony_ci
8862306a36Sopenharmony_ci#define DBTYPE_S    13
8962306a36Sopenharmony_ci#define DBTYPE_V(x) ((x) << DBTYPE_S)
9062306a36Sopenharmony_ci#define DBTYPE_F    DBTYPE_V(1U)
9162306a36Sopenharmony_ci
9262306a36Sopenharmony_ci#define PIDX_T5_S    0
9362306a36Sopenharmony_ci#define PIDX_T5_M    0x1fffU
9462306a36Sopenharmony_ci#define PIDX_T5_V(x) ((x) << PIDX_T5_S)
9562306a36Sopenharmony_ci#define PIDX_T5_G(x) (((x) >> PIDX_T5_S) & PIDX_T5_M)
9662306a36Sopenharmony_ci
9762306a36Sopenharmony_ci#define SGE_PF_GTS_A 0x4
9862306a36Sopenharmony_ci
9962306a36Sopenharmony_ci#define INGRESSQID_S    16
10062306a36Sopenharmony_ci#define INGRESSQID_V(x) ((x) << INGRESSQID_S)
10162306a36Sopenharmony_ci
10262306a36Sopenharmony_ci#define TIMERREG_S    13
10362306a36Sopenharmony_ci#define TIMERREG_V(x) ((x) << TIMERREG_S)
10462306a36Sopenharmony_ci
10562306a36Sopenharmony_ci#define SEINTARM_S    12
10662306a36Sopenharmony_ci#define SEINTARM_V(x) ((x) << SEINTARM_S)
10762306a36Sopenharmony_ci
10862306a36Sopenharmony_ci#define CIDXINC_S    0
10962306a36Sopenharmony_ci#define CIDXINC_M    0xfffU
11062306a36Sopenharmony_ci#define CIDXINC_V(x) ((x) << CIDXINC_S)
11162306a36Sopenharmony_ci
11262306a36Sopenharmony_ci#define SGE_CONTROL_A	0x1008
11362306a36Sopenharmony_ci#define SGE_CONTROL2_A	0x1124
11462306a36Sopenharmony_ci
11562306a36Sopenharmony_ci#define RXPKTCPLMODE_S    18
11662306a36Sopenharmony_ci#define RXPKTCPLMODE_V(x) ((x) << RXPKTCPLMODE_S)
11762306a36Sopenharmony_ci#define RXPKTCPLMODE_F    RXPKTCPLMODE_V(1U)
11862306a36Sopenharmony_ci
11962306a36Sopenharmony_ci#define EGRSTATUSPAGESIZE_S    17
12062306a36Sopenharmony_ci#define EGRSTATUSPAGESIZE_V(x) ((x) << EGRSTATUSPAGESIZE_S)
12162306a36Sopenharmony_ci#define EGRSTATUSPAGESIZE_F    EGRSTATUSPAGESIZE_V(1U)
12262306a36Sopenharmony_ci
12362306a36Sopenharmony_ci#define PKTSHIFT_S    10
12462306a36Sopenharmony_ci#define PKTSHIFT_M    0x7U
12562306a36Sopenharmony_ci#define PKTSHIFT_V(x) ((x) << PKTSHIFT_S)
12662306a36Sopenharmony_ci#define PKTSHIFT_G(x) (((x) >> PKTSHIFT_S) & PKTSHIFT_M)
12762306a36Sopenharmony_ci
12862306a36Sopenharmony_ci#define INGPCIEBOUNDARY_S    7
12962306a36Sopenharmony_ci#define INGPCIEBOUNDARY_V(x) ((x) << INGPCIEBOUNDARY_S)
13062306a36Sopenharmony_ci
13162306a36Sopenharmony_ci#define INGPADBOUNDARY_S    4
13262306a36Sopenharmony_ci#define INGPADBOUNDARY_M    0x7U
13362306a36Sopenharmony_ci#define INGPADBOUNDARY_V(x) ((x) << INGPADBOUNDARY_S)
13462306a36Sopenharmony_ci#define INGPADBOUNDARY_G(x) (((x) >> INGPADBOUNDARY_S) & INGPADBOUNDARY_M)
13562306a36Sopenharmony_ci
13662306a36Sopenharmony_ci#define EGRPCIEBOUNDARY_S    1
13762306a36Sopenharmony_ci#define EGRPCIEBOUNDARY_V(x) ((x) << EGRPCIEBOUNDARY_S)
13862306a36Sopenharmony_ci
13962306a36Sopenharmony_ci#define  INGPACKBOUNDARY_S	16
14062306a36Sopenharmony_ci#define  INGPACKBOUNDARY_M	0x7U
14162306a36Sopenharmony_ci#define  INGPACKBOUNDARY_V(x)	((x) << INGPACKBOUNDARY_S)
14262306a36Sopenharmony_ci#define  INGPACKBOUNDARY_G(x)	(((x) >> INGPACKBOUNDARY_S) \
14362306a36Sopenharmony_ci				 & INGPACKBOUNDARY_M)
14462306a36Sopenharmony_ci
14562306a36Sopenharmony_ci#define VFIFO_ENABLE_S    10
14662306a36Sopenharmony_ci#define VFIFO_ENABLE_V(x) ((x) << VFIFO_ENABLE_S)
14762306a36Sopenharmony_ci#define VFIFO_ENABLE_F    VFIFO_ENABLE_V(1U)
14862306a36Sopenharmony_ci
14962306a36Sopenharmony_ci#define SGE_DBVFIFO_BADDR_A 0x1138
15062306a36Sopenharmony_ci
15162306a36Sopenharmony_ci#define DBVFIFO_SIZE_S    6
15262306a36Sopenharmony_ci#define DBVFIFO_SIZE_M    0xfffU
15362306a36Sopenharmony_ci#define DBVFIFO_SIZE_G(x) (((x) >> DBVFIFO_SIZE_S) & DBVFIFO_SIZE_M)
15462306a36Sopenharmony_ci
15562306a36Sopenharmony_ci#define T6_DBVFIFO_SIZE_S    0
15662306a36Sopenharmony_ci#define T6_DBVFIFO_SIZE_M    0x1fffU
15762306a36Sopenharmony_ci#define T6_DBVFIFO_SIZE_G(x) (((x) >> T6_DBVFIFO_SIZE_S) & T6_DBVFIFO_SIZE_M)
15862306a36Sopenharmony_ci
15962306a36Sopenharmony_ci#define SGE_CTXT_CMD_A 0x11fc
16062306a36Sopenharmony_ci
16162306a36Sopenharmony_ci#define BUSY_S    31
16262306a36Sopenharmony_ci#define BUSY_V(x) ((x) << BUSY_S)
16362306a36Sopenharmony_ci#define BUSY_F    BUSY_V(1U)
16462306a36Sopenharmony_ci
16562306a36Sopenharmony_ci#define CTXTTYPE_S    24
16662306a36Sopenharmony_ci#define CTXTTYPE_M    0x3U
16762306a36Sopenharmony_ci#define CTXTTYPE_V(x) ((x) << CTXTTYPE_S)
16862306a36Sopenharmony_ci
16962306a36Sopenharmony_ci#define CTXTQID_S    0
17062306a36Sopenharmony_ci#define CTXTQID_M    0x1ffffU
17162306a36Sopenharmony_ci#define CTXTQID_V(x) ((x) << CTXTQID_S)
17262306a36Sopenharmony_ci
17362306a36Sopenharmony_ci#define SGE_CTXT_DATA0_A 0x1200
17462306a36Sopenharmony_ci#define SGE_CTXT_DATA5_A 0x1214
17562306a36Sopenharmony_ci
17662306a36Sopenharmony_ci#define GLOBALENABLE_S    0
17762306a36Sopenharmony_ci#define GLOBALENABLE_V(x) ((x) << GLOBALENABLE_S)
17862306a36Sopenharmony_ci#define GLOBALENABLE_F    GLOBALENABLE_V(1U)
17962306a36Sopenharmony_ci
18062306a36Sopenharmony_ci#define SGE_HOST_PAGE_SIZE_A 0x100c
18162306a36Sopenharmony_ci
18262306a36Sopenharmony_ci#define HOSTPAGESIZEPF7_S    28
18362306a36Sopenharmony_ci#define HOSTPAGESIZEPF7_M    0xfU
18462306a36Sopenharmony_ci#define HOSTPAGESIZEPF7_V(x) ((x) << HOSTPAGESIZEPF7_S)
18562306a36Sopenharmony_ci#define HOSTPAGESIZEPF7_G(x) (((x) >> HOSTPAGESIZEPF7_S) & HOSTPAGESIZEPF7_M)
18662306a36Sopenharmony_ci
18762306a36Sopenharmony_ci#define HOSTPAGESIZEPF6_S    24
18862306a36Sopenharmony_ci#define HOSTPAGESIZEPF6_M    0xfU
18962306a36Sopenharmony_ci#define HOSTPAGESIZEPF6_V(x) ((x) << HOSTPAGESIZEPF6_S)
19062306a36Sopenharmony_ci#define HOSTPAGESIZEPF6_G(x) (((x) >> HOSTPAGESIZEPF6_S) & HOSTPAGESIZEPF6_M)
19162306a36Sopenharmony_ci
19262306a36Sopenharmony_ci#define HOSTPAGESIZEPF5_S    20
19362306a36Sopenharmony_ci#define HOSTPAGESIZEPF5_M    0xfU
19462306a36Sopenharmony_ci#define HOSTPAGESIZEPF5_V(x) ((x) << HOSTPAGESIZEPF5_S)
19562306a36Sopenharmony_ci#define HOSTPAGESIZEPF5_G(x) (((x) >> HOSTPAGESIZEPF5_S) & HOSTPAGESIZEPF5_M)
19662306a36Sopenharmony_ci
19762306a36Sopenharmony_ci#define HOSTPAGESIZEPF4_S    16
19862306a36Sopenharmony_ci#define HOSTPAGESIZEPF4_M    0xfU
19962306a36Sopenharmony_ci#define HOSTPAGESIZEPF4_V(x) ((x) << HOSTPAGESIZEPF4_S)
20062306a36Sopenharmony_ci#define HOSTPAGESIZEPF4_G(x) (((x) >> HOSTPAGESIZEPF4_S) & HOSTPAGESIZEPF4_M)
20162306a36Sopenharmony_ci
20262306a36Sopenharmony_ci#define HOSTPAGESIZEPF3_S    12
20362306a36Sopenharmony_ci#define HOSTPAGESIZEPF3_M    0xfU
20462306a36Sopenharmony_ci#define HOSTPAGESIZEPF3_V(x) ((x) << HOSTPAGESIZEPF3_S)
20562306a36Sopenharmony_ci#define HOSTPAGESIZEPF3_G(x) (((x) >> HOSTPAGESIZEPF3_S) & HOSTPAGESIZEPF3_M)
20662306a36Sopenharmony_ci
20762306a36Sopenharmony_ci#define HOSTPAGESIZEPF2_S    8
20862306a36Sopenharmony_ci#define HOSTPAGESIZEPF2_M    0xfU
20962306a36Sopenharmony_ci#define HOSTPAGESIZEPF2_V(x) ((x) << HOSTPAGESIZEPF2_S)
21062306a36Sopenharmony_ci#define HOSTPAGESIZEPF2_G(x) (((x) >> HOSTPAGESIZEPF2_S) & HOSTPAGESIZEPF2_M)
21162306a36Sopenharmony_ci
21262306a36Sopenharmony_ci#define HOSTPAGESIZEPF1_S    4
21362306a36Sopenharmony_ci#define HOSTPAGESIZEPF1_M    0xfU
21462306a36Sopenharmony_ci#define HOSTPAGESIZEPF1_V(x) ((x) << HOSTPAGESIZEPF1_S)
21562306a36Sopenharmony_ci#define HOSTPAGESIZEPF1_G(x) (((x) >> HOSTPAGESIZEPF1_S) & HOSTPAGESIZEPF1_M)
21662306a36Sopenharmony_ci
21762306a36Sopenharmony_ci#define HOSTPAGESIZEPF0_S    0
21862306a36Sopenharmony_ci#define HOSTPAGESIZEPF0_M    0xfU
21962306a36Sopenharmony_ci#define HOSTPAGESIZEPF0_V(x) ((x) << HOSTPAGESIZEPF0_S)
22062306a36Sopenharmony_ci#define HOSTPAGESIZEPF0_G(x) (((x) >> HOSTPAGESIZEPF0_S) & HOSTPAGESIZEPF0_M)
22162306a36Sopenharmony_ci
22262306a36Sopenharmony_ci#define SGE_EGRESS_QUEUES_PER_PAGE_PF_A 0x1010
22362306a36Sopenharmony_ci#define SGE_EGRESS_QUEUES_PER_PAGE_VF_A 0x1014
22462306a36Sopenharmony_ci
22562306a36Sopenharmony_ci#define QUEUESPERPAGEPF1_S    4
22662306a36Sopenharmony_ci
22762306a36Sopenharmony_ci#define QUEUESPERPAGEPF0_S    0
22862306a36Sopenharmony_ci#define QUEUESPERPAGEPF0_M    0xfU
22962306a36Sopenharmony_ci#define QUEUESPERPAGEPF0_V(x) ((x) << QUEUESPERPAGEPF0_S)
23062306a36Sopenharmony_ci#define QUEUESPERPAGEPF0_G(x) (((x) >> QUEUESPERPAGEPF0_S) & QUEUESPERPAGEPF0_M)
23162306a36Sopenharmony_ci
23262306a36Sopenharmony_ci#define SGE_INT_CAUSE1_A	0x1024
23362306a36Sopenharmony_ci#define SGE_INT_CAUSE2_A	0x1030
23462306a36Sopenharmony_ci#define SGE_INT_CAUSE3_A	0x103c
23562306a36Sopenharmony_ci
23662306a36Sopenharmony_ci#define ERR_FLM_DBP_S    31
23762306a36Sopenharmony_ci#define ERR_FLM_DBP_V(x) ((x) << ERR_FLM_DBP_S)
23862306a36Sopenharmony_ci#define ERR_FLM_DBP_F    ERR_FLM_DBP_V(1U)
23962306a36Sopenharmony_ci
24062306a36Sopenharmony_ci#define ERR_FLM_IDMA1_S    30
24162306a36Sopenharmony_ci#define ERR_FLM_IDMA1_V(x) ((x) << ERR_FLM_IDMA1_S)
24262306a36Sopenharmony_ci#define ERR_FLM_IDMA1_F    ERR_FLM_IDMA1_V(1U)
24362306a36Sopenharmony_ci
24462306a36Sopenharmony_ci#define ERR_FLM_IDMA0_S    29
24562306a36Sopenharmony_ci#define ERR_FLM_IDMA0_V(x) ((x) << ERR_FLM_IDMA0_S)
24662306a36Sopenharmony_ci#define ERR_FLM_IDMA0_F    ERR_FLM_IDMA0_V(1U)
24762306a36Sopenharmony_ci
24862306a36Sopenharmony_ci#define ERR_FLM_HINT_S    28
24962306a36Sopenharmony_ci#define ERR_FLM_HINT_V(x) ((x) << ERR_FLM_HINT_S)
25062306a36Sopenharmony_ci#define ERR_FLM_HINT_F    ERR_FLM_HINT_V(1U)
25162306a36Sopenharmony_ci
25262306a36Sopenharmony_ci#define ERR_PCIE_ERROR3_S    27
25362306a36Sopenharmony_ci#define ERR_PCIE_ERROR3_V(x) ((x) << ERR_PCIE_ERROR3_S)
25462306a36Sopenharmony_ci#define ERR_PCIE_ERROR3_F    ERR_PCIE_ERROR3_V(1U)
25562306a36Sopenharmony_ci
25662306a36Sopenharmony_ci#define ERR_PCIE_ERROR2_S    26
25762306a36Sopenharmony_ci#define ERR_PCIE_ERROR2_V(x) ((x) << ERR_PCIE_ERROR2_S)
25862306a36Sopenharmony_ci#define ERR_PCIE_ERROR2_F    ERR_PCIE_ERROR2_V(1U)
25962306a36Sopenharmony_ci
26062306a36Sopenharmony_ci#define ERR_PCIE_ERROR1_S    25
26162306a36Sopenharmony_ci#define ERR_PCIE_ERROR1_V(x) ((x) << ERR_PCIE_ERROR1_S)
26262306a36Sopenharmony_ci#define ERR_PCIE_ERROR1_F    ERR_PCIE_ERROR1_V(1U)
26362306a36Sopenharmony_ci
26462306a36Sopenharmony_ci#define ERR_PCIE_ERROR0_S    24
26562306a36Sopenharmony_ci#define ERR_PCIE_ERROR0_V(x) ((x) << ERR_PCIE_ERROR0_S)
26662306a36Sopenharmony_ci#define ERR_PCIE_ERROR0_F    ERR_PCIE_ERROR0_V(1U)
26762306a36Sopenharmony_ci
26862306a36Sopenharmony_ci#define ERR_CPL_EXCEED_IQE_SIZE_S    22
26962306a36Sopenharmony_ci#define ERR_CPL_EXCEED_IQE_SIZE_V(x) ((x) << ERR_CPL_EXCEED_IQE_SIZE_S)
27062306a36Sopenharmony_ci#define ERR_CPL_EXCEED_IQE_SIZE_F    ERR_CPL_EXCEED_IQE_SIZE_V(1U)
27162306a36Sopenharmony_ci
27262306a36Sopenharmony_ci#define ERR_INVALID_CIDX_INC_S    21
27362306a36Sopenharmony_ci#define ERR_INVALID_CIDX_INC_V(x) ((x) << ERR_INVALID_CIDX_INC_S)
27462306a36Sopenharmony_ci#define ERR_INVALID_CIDX_INC_F    ERR_INVALID_CIDX_INC_V(1U)
27562306a36Sopenharmony_ci
27662306a36Sopenharmony_ci#define ERR_CPL_OPCODE_0_S    19
27762306a36Sopenharmony_ci#define ERR_CPL_OPCODE_0_V(x) ((x) << ERR_CPL_OPCODE_0_S)
27862306a36Sopenharmony_ci#define ERR_CPL_OPCODE_0_F    ERR_CPL_OPCODE_0_V(1U)
27962306a36Sopenharmony_ci
28062306a36Sopenharmony_ci#define ERR_DROPPED_DB_S    18
28162306a36Sopenharmony_ci#define ERR_DROPPED_DB_V(x) ((x) << ERR_DROPPED_DB_S)
28262306a36Sopenharmony_ci#define ERR_DROPPED_DB_F    ERR_DROPPED_DB_V(1U)
28362306a36Sopenharmony_ci
28462306a36Sopenharmony_ci#define ERR_DATA_CPL_ON_HIGH_QID1_S    17
28562306a36Sopenharmony_ci#define ERR_DATA_CPL_ON_HIGH_QID1_V(x) ((x) << ERR_DATA_CPL_ON_HIGH_QID1_S)
28662306a36Sopenharmony_ci#define ERR_DATA_CPL_ON_HIGH_QID1_F    ERR_DATA_CPL_ON_HIGH_QID1_V(1U)
28762306a36Sopenharmony_ci
28862306a36Sopenharmony_ci#define ERR_DATA_CPL_ON_HIGH_QID0_S    16
28962306a36Sopenharmony_ci#define ERR_DATA_CPL_ON_HIGH_QID0_V(x) ((x) << ERR_DATA_CPL_ON_HIGH_QID0_S)
29062306a36Sopenharmony_ci#define ERR_DATA_CPL_ON_HIGH_QID0_F    ERR_DATA_CPL_ON_HIGH_QID0_V(1U)
29162306a36Sopenharmony_ci
29262306a36Sopenharmony_ci#define ERR_BAD_DB_PIDX3_S    15
29362306a36Sopenharmony_ci#define ERR_BAD_DB_PIDX3_V(x) ((x) << ERR_BAD_DB_PIDX3_S)
29462306a36Sopenharmony_ci#define ERR_BAD_DB_PIDX3_F    ERR_BAD_DB_PIDX3_V(1U)
29562306a36Sopenharmony_ci
29662306a36Sopenharmony_ci#define ERR_BAD_DB_PIDX2_S    14
29762306a36Sopenharmony_ci#define ERR_BAD_DB_PIDX2_V(x) ((x) << ERR_BAD_DB_PIDX2_S)
29862306a36Sopenharmony_ci#define ERR_BAD_DB_PIDX2_F    ERR_BAD_DB_PIDX2_V(1U)
29962306a36Sopenharmony_ci
30062306a36Sopenharmony_ci#define ERR_BAD_DB_PIDX1_S    13
30162306a36Sopenharmony_ci#define ERR_BAD_DB_PIDX1_V(x) ((x) << ERR_BAD_DB_PIDX1_S)
30262306a36Sopenharmony_ci#define ERR_BAD_DB_PIDX1_F    ERR_BAD_DB_PIDX1_V(1U)
30362306a36Sopenharmony_ci
30462306a36Sopenharmony_ci#define ERR_BAD_DB_PIDX0_S    12
30562306a36Sopenharmony_ci#define ERR_BAD_DB_PIDX0_V(x) ((x) << ERR_BAD_DB_PIDX0_S)
30662306a36Sopenharmony_ci#define ERR_BAD_DB_PIDX0_F    ERR_BAD_DB_PIDX0_V(1U)
30762306a36Sopenharmony_ci
30862306a36Sopenharmony_ci#define ERR_ING_CTXT_PRIO_S    10
30962306a36Sopenharmony_ci#define ERR_ING_CTXT_PRIO_V(x) ((x) << ERR_ING_CTXT_PRIO_S)
31062306a36Sopenharmony_ci#define ERR_ING_CTXT_PRIO_F    ERR_ING_CTXT_PRIO_V(1U)
31162306a36Sopenharmony_ci
31262306a36Sopenharmony_ci#define ERR_EGR_CTXT_PRIO_S    9
31362306a36Sopenharmony_ci#define ERR_EGR_CTXT_PRIO_V(x) ((x) << ERR_EGR_CTXT_PRIO_S)
31462306a36Sopenharmony_ci#define ERR_EGR_CTXT_PRIO_F    ERR_EGR_CTXT_PRIO_V(1U)
31562306a36Sopenharmony_ci
31662306a36Sopenharmony_ci#define DBFIFO_HP_INT_S    8
31762306a36Sopenharmony_ci#define DBFIFO_HP_INT_V(x) ((x) << DBFIFO_HP_INT_S)
31862306a36Sopenharmony_ci#define DBFIFO_HP_INT_F    DBFIFO_HP_INT_V(1U)
31962306a36Sopenharmony_ci
32062306a36Sopenharmony_ci#define DBFIFO_LP_INT_S    7
32162306a36Sopenharmony_ci#define DBFIFO_LP_INT_V(x) ((x) << DBFIFO_LP_INT_S)
32262306a36Sopenharmony_ci#define DBFIFO_LP_INT_F    DBFIFO_LP_INT_V(1U)
32362306a36Sopenharmony_ci
32462306a36Sopenharmony_ci#define INGRESS_SIZE_ERR_S    5
32562306a36Sopenharmony_ci#define INGRESS_SIZE_ERR_V(x) ((x) << INGRESS_SIZE_ERR_S)
32662306a36Sopenharmony_ci#define INGRESS_SIZE_ERR_F    INGRESS_SIZE_ERR_V(1U)
32762306a36Sopenharmony_ci
32862306a36Sopenharmony_ci#define EGRESS_SIZE_ERR_S    4
32962306a36Sopenharmony_ci#define EGRESS_SIZE_ERR_V(x) ((x) << EGRESS_SIZE_ERR_S)
33062306a36Sopenharmony_ci#define EGRESS_SIZE_ERR_F    EGRESS_SIZE_ERR_V(1U)
33162306a36Sopenharmony_ci
33262306a36Sopenharmony_ci#define SGE_INT_ENABLE3_A 0x1040
33362306a36Sopenharmony_ci#define SGE_FL_BUFFER_SIZE0_A 0x1044
33462306a36Sopenharmony_ci#define SGE_FL_BUFFER_SIZE1_A 0x1048
33562306a36Sopenharmony_ci#define SGE_FL_BUFFER_SIZE2_A 0x104c
33662306a36Sopenharmony_ci#define SGE_FL_BUFFER_SIZE3_A 0x1050
33762306a36Sopenharmony_ci#define SGE_FL_BUFFER_SIZE4_A 0x1054
33862306a36Sopenharmony_ci#define SGE_FL_BUFFER_SIZE5_A 0x1058
33962306a36Sopenharmony_ci#define SGE_FL_BUFFER_SIZE6_A 0x105c
34062306a36Sopenharmony_ci#define SGE_FL_BUFFER_SIZE7_A 0x1060
34162306a36Sopenharmony_ci#define SGE_FL_BUFFER_SIZE8_A 0x1064
34262306a36Sopenharmony_ci
34362306a36Sopenharmony_ci#define SGE_IMSG_CTXT_BADDR_A 0x1088
34462306a36Sopenharmony_ci#define SGE_FLM_CACHE_BADDR_A 0x108c
34562306a36Sopenharmony_ci#define SGE_FLM_CFG_A 0x1090
34662306a36Sopenharmony_ci
34762306a36Sopenharmony_ci#define NOHDR_S    18
34862306a36Sopenharmony_ci#define NOHDR_V(x) ((x) << NOHDR_S)
34962306a36Sopenharmony_ci#define NOHDR_F    NOHDR_V(1U)
35062306a36Sopenharmony_ci
35162306a36Sopenharmony_ci#define HDRSTARTFLQ_S    11
35262306a36Sopenharmony_ci#define HDRSTARTFLQ_M    0x7U
35362306a36Sopenharmony_ci#define HDRSTARTFLQ_G(x) (((x) >> HDRSTARTFLQ_S) & HDRSTARTFLQ_M)
35462306a36Sopenharmony_ci
35562306a36Sopenharmony_ci#define SGE_INGRESS_RX_THRESHOLD_A 0x10a0
35662306a36Sopenharmony_ci
35762306a36Sopenharmony_ci#define THRESHOLD_0_S    24
35862306a36Sopenharmony_ci#define THRESHOLD_0_M    0x3fU
35962306a36Sopenharmony_ci#define THRESHOLD_0_V(x) ((x) << THRESHOLD_0_S)
36062306a36Sopenharmony_ci#define THRESHOLD_0_G(x) (((x) >> THRESHOLD_0_S) & THRESHOLD_0_M)
36162306a36Sopenharmony_ci
36262306a36Sopenharmony_ci#define THRESHOLD_1_S    16
36362306a36Sopenharmony_ci#define THRESHOLD_1_M    0x3fU
36462306a36Sopenharmony_ci#define THRESHOLD_1_V(x) ((x) << THRESHOLD_1_S)
36562306a36Sopenharmony_ci#define THRESHOLD_1_G(x) (((x) >> THRESHOLD_1_S) & THRESHOLD_1_M)
36662306a36Sopenharmony_ci
36762306a36Sopenharmony_ci#define THRESHOLD_2_S    8
36862306a36Sopenharmony_ci#define THRESHOLD_2_M    0x3fU
36962306a36Sopenharmony_ci#define THRESHOLD_2_V(x) ((x) << THRESHOLD_2_S)
37062306a36Sopenharmony_ci#define THRESHOLD_2_G(x) (((x) >> THRESHOLD_2_S) & THRESHOLD_2_M)
37162306a36Sopenharmony_ci
37262306a36Sopenharmony_ci#define THRESHOLD_3_S    0
37362306a36Sopenharmony_ci#define THRESHOLD_3_M    0x3fU
37462306a36Sopenharmony_ci#define THRESHOLD_3_V(x) ((x) << THRESHOLD_3_S)
37562306a36Sopenharmony_ci#define THRESHOLD_3_G(x) (((x) >> THRESHOLD_3_S) & THRESHOLD_3_M)
37662306a36Sopenharmony_ci
37762306a36Sopenharmony_ci#define SGE_CONM_CTRL_A 0x1094
37862306a36Sopenharmony_ci
37962306a36Sopenharmony_ci#define EGRTHRESHOLD_S    8
38062306a36Sopenharmony_ci#define EGRTHRESHOLD_M    0x3fU
38162306a36Sopenharmony_ci#define EGRTHRESHOLD_V(x) ((x) << EGRTHRESHOLD_S)
38262306a36Sopenharmony_ci#define EGRTHRESHOLD_G(x) (((x) >> EGRTHRESHOLD_S) & EGRTHRESHOLD_M)
38362306a36Sopenharmony_ci
38462306a36Sopenharmony_ci#define EGRTHRESHOLDPACKING_S    14
38562306a36Sopenharmony_ci#define EGRTHRESHOLDPACKING_M    0x3fU
38662306a36Sopenharmony_ci#define EGRTHRESHOLDPACKING_V(x) ((x) << EGRTHRESHOLDPACKING_S)
38762306a36Sopenharmony_ci#define EGRTHRESHOLDPACKING_G(x) \
38862306a36Sopenharmony_ci	(((x) >> EGRTHRESHOLDPACKING_S) & EGRTHRESHOLDPACKING_M)
38962306a36Sopenharmony_ci
39062306a36Sopenharmony_ci#define T6_EGRTHRESHOLDPACKING_S    16
39162306a36Sopenharmony_ci#define T6_EGRTHRESHOLDPACKING_M    0xffU
39262306a36Sopenharmony_ci#define T6_EGRTHRESHOLDPACKING_G(x) \
39362306a36Sopenharmony_ci	(((x) >> T6_EGRTHRESHOLDPACKING_S) & T6_EGRTHRESHOLDPACKING_M)
39462306a36Sopenharmony_ci
39562306a36Sopenharmony_ci#define SGE_TIMESTAMP_LO_A 0x1098
39662306a36Sopenharmony_ci#define SGE_TIMESTAMP_HI_A 0x109c
39762306a36Sopenharmony_ci
39862306a36Sopenharmony_ci#define TSOP_S    28
39962306a36Sopenharmony_ci#define TSOP_M    0x3U
40062306a36Sopenharmony_ci#define TSOP_V(x) ((x) << TSOP_S)
40162306a36Sopenharmony_ci#define TSOP_G(x) (((x) >> TSOP_S) & TSOP_M)
40262306a36Sopenharmony_ci
40362306a36Sopenharmony_ci#define TSVAL_S    0
40462306a36Sopenharmony_ci#define TSVAL_M    0xfffffffU
40562306a36Sopenharmony_ci#define TSVAL_V(x) ((x) << TSVAL_S)
40662306a36Sopenharmony_ci#define TSVAL_G(x) (((x) >> TSVAL_S) & TSVAL_M)
40762306a36Sopenharmony_ci
40862306a36Sopenharmony_ci#define SGE_DBFIFO_STATUS_A 0x10a4
40962306a36Sopenharmony_ci#define SGE_DBVFIFO_SIZE_A 0x113c
41062306a36Sopenharmony_ci
41162306a36Sopenharmony_ci#define HP_INT_THRESH_S    28
41262306a36Sopenharmony_ci#define HP_INT_THRESH_M    0xfU
41362306a36Sopenharmony_ci#define HP_INT_THRESH_V(x) ((x) << HP_INT_THRESH_S)
41462306a36Sopenharmony_ci
41562306a36Sopenharmony_ci#define LP_INT_THRESH_S    12
41662306a36Sopenharmony_ci#define LP_INT_THRESH_M    0xfU
41762306a36Sopenharmony_ci#define LP_INT_THRESH_V(x) ((x) << LP_INT_THRESH_S)
41862306a36Sopenharmony_ci
41962306a36Sopenharmony_ci#define SGE_DOORBELL_CONTROL_A 0x10a8
42062306a36Sopenharmony_ci
42162306a36Sopenharmony_ci#define NOCOALESCE_S    26
42262306a36Sopenharmony_ci#define NOCOALESCE_V(x) ((x) << NOCOALESCE_S)
42362306a36Sopenharmony_ci#define NOCOALESCE_F    NOCOALESCE_V(1U)
42462306a36Sopenharmony_ci
42562306a36Sopenharmony_ci#define ENABLE_DROP_S    13
42662306a36Sopenharmony_ci#define ENABLE_DROP_V(x) ((x) << ENABLE_DROP_S)
42762306a36Sopenharmony_ci#define ENABLE_DROP_F    ENABLE_DROP_V(1U)
42862306a36Sopenharmony_ci
42962306a36Sopenharmony_ci#define SGE_TIMER_VALUE_0_AND_1_A 0x10b8
43062306a36Sopenharmony_ci
43162306a36Sopenharmony_ci#define TIMERVALUE0_S    16
43262306a36Sopenharmony_ci#define TIMERVALUE0_M    0xffffU
43362306a36Sopenharmony_ci#define TIMERVALUE0_V(x) ((x) << TIMERVALUE0_S)
43462306a36Sopenharmony_ci#define TIMERVALUE0_G(x) (((x) >> TIMERVALUE0_S) & TIMERVALUE0_M)
43562306a36Sopenharmony_ci
43662306a36Sopenharmony_ci#define TIMERVALUE1_S    0
43762306a36Sopenharmony_ci#define TIMERVALUE1_M    0xffffU
43862306a36Sopenharmony_ci#define TIMERVALUE1_V(x) ((x) << TIMERVALUE1_S)
43962306a36Sopenharmony_ci#define TIMERVALUE1_G(x) (((x) >> TIMERVALUE1_S) & TIMERVALUE1_M)
44062306a36Sopenharmony_ci
44162306a36Sopenharmony_ci#define SGE_TIMER_VALUE_2_AND_3_A 0x10bc
44262306a36Sopenharmony_ci
44362306a36Sopenharmony_ci#define TIMERVALUE2_S    16
44462306a36Sopenharmony_ci#define TIMERVALUE2_M    0xffffU
44562306a36Sopenharmony_ci#define TIMERVALUE2_V(x) ((x) << TIMERVALUE2_S)
44662306a36Sopenharmony_ci#define TIMERVALUE2_G(x) (((x) >> TIMERVALUE2_S) & TIMERVALUE2_M)
44762306a36Sopenharmony_ci
44862306a36Sopenharmony_ci#define TIMERVALUE3_S    0
44962306a36Sopenharmony_ci#define TIMERVALUE3_M    0xffffU
45062306a36Sopenharmony_ci#define TIMERVALUE3_V(x) ((x) << TIMERVALUE3_S)
45162306a36Sopenharmony_ci#define TIMERVALUE3_G(x) (((x) >> TIMERVALUE3_S) & TIMERVALUE3_M)
45262306a36Sopenharmony_ci
45362306a36Sopenharmony_ci#define SGE_TIMER_VALUE_4_AND_5_A 0x10c0
45462306a36Sopenharmony_ci
45562306a36Sopenharmony_ci#define TIMERVALUE4_S    16
45662306a36Sopenharmony_ci#define TIMERVALUE4_M    0xffffU
45762306a36Sopenharmony_ci#define TIMERVALUE4_V(x) ((x) << TIMERVALUE4_S)
45862306a36Sopenharmony_ci#define TIMERVALUE4_G(x) (((x) >> TIMERVALUE4_S) & TIMERVALUE4_M)
45962306a36Sopenharmony_ci
46062306a36Sopenharmony_ci#define TIMERVALUE5_S    0
46162306a36Sopenharmony_ci#define TIMERVALUE5_M    0xffffU
46262306a36Sopenharmony_ci#define TIMERVALUE5_V(x) ((x) << TIMERVALUE5_S)
46362306a36Sopenharmony_ci#define TIMERVALUE5_G(x) (((x) >> TIMERVALUE5_S) & TIMERVALUE5_M)
46462306a36Sopenharmony_ci
46562306a36Sopenharmony_ci#define SGE_DEBUG_INDEX_A 0x10cc
46662306a36Sopenharmony_ci#define SGE_DEBUG_DATA_HIGH_A 0x10d0
46762306a36Sopenharmony_ci#define SGE_DEBUG_DATA_LOW_A 0x10d4
46862306a36Sopenharmony_ci
46962306a36Sopenharmony_ci#define SGE_DEBUG_DATA_LOW_INDEX_2_A	0x12c8
47062306a36Sopenharmony_ci#define SGE_DEBUG_DATA_LOW_INDEX_3_A	0x12cc
47162306a36Sopenharmony_ci#define SGE_DEBUG_DATA_HIGH_INDEX_10_A	0x12a8
47262306a36Sopenharmony_ci
47362306a36Sopenharmony_ci#define SGE_INGRESS_QUEUES_PER_PAGE_PF_A 0x10f4
47462306a36Sopenharmony_ci#define SGE_INGRESS_QUEUES_PER_PAGE_VF_A 0x10f8
47562306a36Sopenharmony_ci
47662306a36Sopenharmony_ci#define SGE_ERROR_STATS_A 0x1100
47762306a36Sopenharmony_ci
47862306a36Sopenharmony_ci#define UNCAPTURED_ERROR_S    18
47962306a36Sopenharmony_ci#define UNCAPTURED_ERROR_V(x) ((x) << UNCAPTURED_ERROR_S)
48062306a36Sopenharmony_ci#define UNCAPTURED_ERROR_F    UNCAPTURED_ERROR_V(1U)
48162306a36Sopenharmony_ci
48262306a36Sopenharmony_ci#define ERROR_QID_VALID_S    17
48362306a36Sopenharmony_ci#define ERROR_QID_VALID_V(x) ((x) << ERROR_QID_VALID_S)
48462306a36Sopenharmony_ci#define ERROR_QID_VALID_F    ERROR_QID_VALID_V(1U)
48562306a36Sopenharmony_ci
48662306a36Sopenharmony_ci#define ERROR_QID_S    0
48762306a36Sopenharmony_ci#define ERROR_QID_M    0x1ffffU
48862306a36Sopenharmony_ci#define ERROR_QID_G(x) (((x) >> ERROR_QID_S) & ERROR_QID_M)
48962306a36Sopenharmony_ci
49062306a36Sopenharmony_ci#define SGE_INT_CAUSE5_A        0x110c
49162306a36Sopenharmony_ci
49262306a36Sopenharmony_ci#define ERR_T_RXCRC_S    31
49362306a36Sopenharmony_ci#define ERR_T_RXCRC_V(x) ((x) << ERR_T_RXCRC_S)
49462306a36Sopenharmony_ci#define ERR_T_RXCRC_F    ERR_T_RXCRC_V(1U)
49562306a36Sopenharmony_ci
49662306a36Sopenharmony_ci#define HP_INT_THRESH_S    28
49762306a36Sopenharmony_ci#define HP_INT_THRESH_M    0xfU
49862306a36Sopenharmony_ci#define HP_INT_THRESH_V(x) ((x) << HP_INT_THRESH_S)
49962306a36Sopenharmony_ci
50062306a36Sopenharmony_ci#define HP_COUNT_S    16
50162306a36Sopenharmony_ci#define HP_COUNT_M    0x7ffU
50262306a36Sopenharmony_ci#define HP_COUNT_G(x) (((x) >> HP_COUNT_S) & HP_COUNT_M)
50362306a36Sopenharmony_ci
50462306a36Sopenharmony_ci#define LP_INT_THRESH_S    12
50562306a36Sopenharmony_ci#define LP_INT_THRESH_M    0xfU
50662306a36Sopenharmony_ci#define LP_INT_THRESH_V(x) ((x) << LP_INT_THRESH_S)
50762306a36Sopenharmony_ci
50862306a36Sopenharmony_ci#define LP_COUNT_S    0
50962306a36Sopenharmony_ci#define LP_COUNT_M    0x7ffU
51062306a36Sopenharmony_ci#define LP_COUNT_G(x) (((x) >> LP_COUNT_S) & LP_COUNT_M)
51162306a36Sopenharmony_ci
51262306a36Sopenharmony_ci#define LP_INT_THRESH_T5_S    18
51362306a36Sopenharmony_ci#define LP_INT_THRESH_T5_M    0xfffU
51462306a36Sopenharmony_ci#define LP_INT_THRESH_T5_V(x) ((x) << LP_INT_THRESH_T5_S)
51562306a36Sopenharmony_ci
51662306a36Sopenharmony_ci#define LP_COUNT_T5_S    0
51762306a36Sopenharmony_ci#define LP_COUNT_T5_M    0x3ffffU
51862306a36Sopenharmony_ci#define LP_COUNT_T5_G(x) (((x) >> LP_COUNT_T5_S) & LP_COUNT_T5_M)
51962306a36Sopenharmony_ci
52062306a36Sopenharmony_ci#define SGE_DOORBELL_CONTROL_A 0x10a8
52162306a36Sopenharmony_ci
52262306a36Sopenharmony_ci#define SGE_STAT_TOTAL_A	0x10e4
52362306a36Sopenharmony_ci#define SGE_STAT_MATCH_A	0x10e8
52462306a36Sopenharmony_ci#define SGE_STAT_CFG_A		0x10ec
52562306a36Sopenharmony_ci
52662306a36Sopenharmony_ci#define STATMODE_S    2
52762306a36Sopenharmony_ci#define STATMODE_V(x) ((x) << STATMODE_S)
52862306a36Sopenharmony_ci
52962306a36Sopenharmony_ci#define STATSOURCE_T5_S    9
53062306a36Sopenharmony_ci#define STATSOURCE_T5_M    0xfU
53162306a36Sopenharmony_ci#define STATSOURCE_T5_V(x) ((x) << STATSOURCE_T5_S)
53262306a36Sopenharmony_ci#define STATSOURCE_T5_G(x) (((x) >> STATSOURCE_T5_S) & STATSOURCE_T5_M)
53362306a36Sopenharmony_ci
53462306a36Sopenharmony_ci#define T6_STATMODE_S    0
53562306a36Sopenharmony_ci#define T6_STATMODE_V(x) ((x) << T6_STATMODE_S)
53662306a36Sopenharmony_ci
53762306a36Sopenharmony_ci#define SGE_DBFIFO_STATUS2_A 0x1118
53862306a36Sopenharmony_ci
53962306a36Sopenharmony_ci#define HP_INT_THRESH_T5_S    10
54062306a36Sopenharmony_ci#define HP_INT_THRESH_T5_M    0xfU
54162306a36Sopenharmony_ci#define HP_INT_THRESH_T5_V(x) ((x) << HP_INT_THRESH_T5_S)
54262306a36Sopenharmony_ci
54362306a36Sopenharmony_ci#define HP_COUNT_T5_S    0
54462306a36Sopenharmony_ci#define HP_COUNT_T5_M    0x3ffU
54562306a36Sopenharmony_ci#define HP_COUNT_T5_G(x) (((x) >> HP_COUNT_T5_S) & HP_COUNT_T5_M)
54662306a36Sopenharmony_ci
54762306a36Sopenharmony_ci#define ENABLE_DROP_S    13
54862306a36Sopenharmony_ci#define ENABLE_DROP_V(x) ((x) << ENABLE_DROP_S)
54962306a36Sopenharmony_ci#define ENABLE_DROP_F    ENABLE_DROP_V(1U)
55062306a36Sopenharmony_ci
55162306a36Sopenharmony_ci#define DROPPED_DB_S    0
55262306a36Sopenharmony_ci#define DROPPED_DB_V(x) ((x) << DROPPED_DB_S)
55362306a36Sopenharmony_ci#define DROPPED_DB_F    DROPPED_DB_V(1U)
55462306a36Sopenharmony_ci
55562306a36Sopenharmony_ci#define SGE_CTXT_CMD_A 0x11fc
55662306a36Sopenharmony_ci#define SGE_DBQ_CTXT_BADDR_A 0x1084
55762306a36Sopenharmony_ci
55862306a36Sopenharmony_ci/* registers for module PCIE */
55962306a36Sopenharmony_ci#define PCIE_PF_CFG_A	0x40
56062306a36Sopenharmony_ci
56162306a36Sopenharmony_ci#define AIVEC_S    4
56262306a36Sopenharmony_ci#define AIVEC_M    0x3ffU
56362306a36Sopenharmony_ci#define AIVEC_V(x) ((x) << AIVEC_S)
56462306a36Sopenharmony_ci
56562306a36Sopenharmony_ci#define PCIE_PF_CLI_A	0x44
56662306a36Sopenharmony_ci
56762306a36Sopenharmony_ci#define PCIE_PF_EXPROM_OFST_A 0x4c
56862306a36Sopenharmony_ci#define OFFSET_S    10
56962306a36Sopenharmony_ci#define OFFSET_M    0x3fffU
57062306a36Sopenharmony_ci#define OFFSET_G(x) (((x) >> OFFSET_S) & OFFSET_M)
57162306a36Sopenharmony_ci
57262306a36Sopenharmony_ci#define PCIE_INT_CAUSE_A	0x3004
57362306a36Sopenharmony_ci
57462306a36Sopenharmony_ci#define UNXSPLCPLERR_S    29
57562306a36Sopenharmony_ci#define UNXSPLCPLERR_V(x) ((x) << UNXSPLCPLERR_S)
57662306a36Sopenharmony_ci#define UNXSPLCPLERR_F    UNXSPLCPLERR_V(1U)
57762306a36Sopenharmony_ci
57862306a36Sopenharmony_ci#define PCIEPINT_S    28
57962306a36Sopenharmony_ci#define PCIEPINT_V(x) ((x) << PCIEPINT_S)
58062306a36Sopenharmony_ci#define PCIEPINT_F    PCIEPINT_V(1U)
58162306a36Sopenharmony_ci
58262306a36Sopenharmony_ci#define PCIESINT_S    27
58362306a36Sopenharmony_ci#define PCIESINT_V(x) ((x) << PCIESINT_S)
58462306a36Sopenharmony_ci#define PCIESINT_F    PCIESINT_V(1U)
58562306a36Sopenharmony_ci
58662306a36Sopenharmony_ci#define RPLPERR_S    26
58762306a36Sopenharmony_ci#define RPLPERR_V(x) ((x) << RPLPERR_S)
58862306a36Sopenharmony_ci#define RPLPERR_F    RPLPERR_V(1U)
58962306a36Sopenharmony_ci
59062306a36Sopenharmony_ci#define RXWRPERR_S    25
59162306a36Sopenharmony_ci#define RXWRPERR_V(x) ((x) << RXWRPERR_S)
59262306a36Sopenharmony_ci#define RXWRPERR_F    RXWRPERR_V(1U)
59362306a36Sopenharmony_ci
59462306a36Sopenharmony_ci#define RXCPLPERR_S    24
59562306a36Sopenharmony_ci#define RXCPLPERR_V(x) ((x) << RXCPLPERR_S)
59662306a36Sopenharmony_ci#define RXCPLPERR_F    RXCPLPERR_V(1U)
59762306a36Sopenharmony_ci
59862306a36Sopenharmony_ci#define PIOTAGPERR_S    23
59962306a36Sopenharmony_ci#define PIOTAGPERR_V(x) ((x) << PIOTAGPERR_S)
60062306a36Sopenharmony_ci#define PIOTAGPERR_F    PIOTAGPERR_V(1U)
60162306a36Sopenharmony_ci
60262306a36Sopenharmony_ci#define MATAGPERR_S    22
60362306a36Sopenharmony_ci#define MATAGPERR_V(x) ((x) << MATAGPERR_S)
60462306a36Sopenharmony_ci#define MATAGPERR_F    MATAGPERR_V(1U)
60562306a36Sopenharmony_ci
60662306a36Sopenharmony_ci#define INTXCLRPERR_S    21
60762306a36Sopenharmony_ci#define INTXCLRPERR_V(x) ((x) << INTXCLRPERR_S)
60862306a36Sopenharmony_ci#define INTXCLRPERR_F    INTXCLRPERR_V(1U)
60962306a36Sopenharmony_ci
61062306a36Sopenharmony_ci#define FIDPERR_S    20
61162306a36Sopenharmony_ci#define FIDPERR_V(x) ((x) << FIDPERR_S)
61262306a36Sopenharmony_ci#define FIDPERR_F    FIDPERR_V(1U)
61362306a36Sopenharmony_ci
61462306a36Sopenharmony_ci#define CFGSNPPERR_S    19
61562306a36Sopenharmony_ci#define CFGSNPPERR_V(x) ((x) << CFGSNPPERR_S)
61662306a36Sopenharmony_ci#define CFGSNPPERR_F    CFGSNPPERR_V(1U)
61762306a36Sopenharmony_ci
61862306a36Sopenharmony_ci#define HRSPPERR_S    18
61962306a36Sopenharmony_ci#define HRSPPERR_V(x) ((x) << HRSPPERR_S)
62062306a36Sopenharmony_ci#define HRSPPERR_F    HRSPPERR_V(1U)
62162306a36Sopenharmony_ci
62262306a36Sopenharmony_ci#define HREQPERR_S    17
62362306a36Sopenharmony_ci#define HREQPERR_V(x) ((x) << HREQPERR_S)
62462306a36Sopenharmony_ci#define HREQPERR_F    HREQPERR_V(1U)
62562306a36Sopenharmony_ci
62662306a36Sopenharmony_ci#define HCNTPERR_S    16
62762306a36Sopenharmony_ci#define HCNTPERR_V(x) ((x) << HCNTPERR_S)
62862306a36Sopenharmony_ci#define HCNTPERR_F    HCNTPERR_V(1U)
62962306a36Sopenharmony_ci
63062306a36Sopenharmony_ci#define DRSPPERR_S    15
63162306a36Sopenharmony_ci#define DRSPPERR_V(x) ((x) << DRSPPERR_S)
63262306a36Sopenharmony_ci#define DRSPPERR_F    DRSPPERR_V(1U)
63362306a36Sopenharmony_ci
63462306a36Sopenharmony_ci#define DREQPERR_S    14
63562306a36Sopenharmony_ci#define DREQPERR_V(x) ((x) << DREQPERR_S)
63662306a36Sopenharmony_ci#define DREQPERR_F    DREQPERR_V(1U)
63762306a36Sopenharmony_ci
63862306a36Sopenharmony_ci#define DCNTPERR_S    13
63962306a36Sopenharmony_ci#define DCNTPERR_V(x) ((x) << DCNTPERR_S)
64062306a36Sopenharmony_ci#define DCNTPERR_F    DCNTPERR_V(1U)
64162306a36Sopenharmony_ci
64262306a36Sopenharmony_ci#define CRSPPERR_S    12
64362306a36Sopenharmony_ci#define CRSPPERR_V(x) ((x) << CRSPPERR_S)
64462306a36Sopenharmony_ci#define CRSPPERR_F    CRSPPERR_V(1U)
64562306a36Sopenharmony_ci
64662306a36Sopenharmony_ci#define CREQPERR_S    11
64762306a36Sopenharmony_ci#define CREQPERR_V(x) ((x) << CREQPERR_S)
64862306a36Sopenharmony_ci#define CREQPERR_F    CREQPERR_V(1U)
64962306a36Sopenharmony_ci
65062306a36Sopenharmony_ci#define CCNTPERR_S    10
65162306a36Sopenharmony_ci#define CCNTPERR_V(x) ((x) << CCNTPERR_S)
65262306a36Sopenharmony_ci#define CCNTPERR_F    CCNTPERR_V(1U)
65362306a36Sopenharmony_ci
65462306a36Sopenharmony_ci#define TARTAGPERR_S    9
65562306a36Sopenharmony_ci#define TARTAGPERR_V(x) ((x) << TARTAGPERR_S)
65662306a36Sopenharmony_ci#define TARTAGPERR_F    TARTAGPERR_V(1U)
65762306a36Sopenharmony_ci
65862306a36Sopenharmony_ci#define PIOREQPERR_S    8
65962306a36Sopenharmony_ci#define PIOREQPERR_V(x) ((x) << PIOREQPERR_S)
66062306a36Sopenharmony_ci#define PIOREQPERR_F    PIOREQPERR_V(1U)
66162306a36Sopenharmony_ci
66262306a36Sopenharmony_ci#define PIOCPLPERR_S    7
66362306a36Sopenharmony_ci#define PIOCPLPERR_V(x) ((x) << PIOCPLPERR_S)
66462306a36Sopenharmony_ci#define PIOCPLPERR_F    PIOCPLPERR_V(1U)
66562306a36Sopenharmony_ci
66662306a36Sopenharmony_ci#define MSIXDIPERR_S    6
66762306a36Sopenharmony_ci#define MSIXDIPERR_V(x) ((x) << MSIXDIPERR_S)
66862306a36Sopenharmony_ci#define MSIXDIPERR_F    MSIXDIPERR_V(1U)
66962306a36Sopenharmony_ci
67062306a36Sopenharmony_ci#define MSIXDATAPERR_S    5
67162306a36Sopenharmony_ci#define MSIXDATAPERR_V(x) ((x) << MSIXDATAPERR_S)
67262306a36Sopenharmony_ci#define MSIXDATAPERR_F    MSIXDATAPERR_V(1U)
67362306a36Sopenharmony_ci
67462306a36Sopenharmony_ci#define MSIXADDRHPERR_S    4
67562306a36Sopenharmony_ci#define MSIXADDRHPERR_V(x) ((x) << MSIXADDRHPERR_S)
67662306a36Sopenharmony_ci#define MSIXADDRHPERR_F    MSIXADDRHPERR_V(1U)
67762306a36Sopenharmony_ci
67862306a36Sopenharmony_ci#define MSIXADDRLPERR_S    3
67962306a36Sopenharmony_ci#define MSIXADDRLPERR_V(x) ((x) << MSIXADDRLPERR_S)
68062306a36Sopenharmony_ci#define MSIXADDRLPERR_F    MSIXADDRLPERR_V(1U)
68162306a36Sopenharmony_ci
68262306a36Sopenharmony_ci#define MSIDATAPERR_S    2
68362306a36Sopenharmony_ci#define MSIDATAPERR_V(x) ((x) << MSIDATAPERR_S)
68462306a36Sopenharmony_ci#define MSIDATAPERR_F    MSIDATAPERR_V(1U)
68562306a36Sopenharmony_ci
68662306a36Sopenharmony_ci#define MSIADDRHPERR_S    1
68762306a36Sopenharmony_ci#define MSIADDRHPERR_V(x) ((x) << MSIADDRHPERR_S)
68862306a36Sopenharmony_ci#define MSIADDRHPERR_F    MSIADDRHPERR_V(1U)
68962306a36Sopenharmony_ci
69062306a36Sopenharmony_ci#define MSIADDRLPERR_S    0
69162306a36Sopenharmony_ci#define MSIADDRLPERR_V(x) ((x) << MSIADDRLPERR_S)
69262306a36Sopenharmony_ci#define MSIADDRLPERR_F    MSIADDRLPERR_V(1U)
69362306a36Sopenharmony_ci
69462306a36Sopenharmony_ci#define READRSPERR_S    29
69562306a36Sopenharmony_ci#define READRSPERR_V(x) ((x) << READRSPERR_S)
69662306a36Sopenharmony_ci#define READRSPERR_F    READRSPERR_V(1U)
69762306a36Sopenharmony_ci
69862306a36Sopenharmony_ci#define TRGT1GRPPERR_S    28
69962306a36Sopenharmony_ci#define TRGT1GRPPERR_V(x) ((x) << TRGT1GRPPERR_S)
70062306a36Sopenharmony_ci#define TRGT1GRPPERR_F    TRGT1GRPPERR_V(1U)
70162306a36Sopenharmony_ci
70262306a36Sopenharmony_ci#define IPSOTPERR_S    27
70362306a36Sopenharmony_ci#define IPSOTPERR_V(x) ((x) << IPSOTPERR_S)
70462306a36Sopenharmony_ci#define IPSOTPERR_F    IPSOTPERR_V(1U)
70562306a36Sopenharmony_ci
70662306a36Sopenharmony_ci#define IPRETRYPERR_S    26
70762306a36Sopenharmony_ci#define IPRETRYPERR_V(x) ((x) << IPRETRYPERR_S)
70862306a36Sopenharmony_ci#define IPRETRYPERR_F    IPRETRYPERR_V(1U)
70962306a36Sopenharmony_ci
71062306a36Sopenharmony_ci#define IPRXDATAGRPPERR_S    25
71162306a36Sopenharmony_ci#define IPRXDATAGRPPERR_V(x) ((x) << IPRXDATAGRPPERR_S)
71262306a36Sopenharmony_ci#define IPRXDATAGRPPERR_F    IPRXDATAGRPPERR_V(1U)
71362306a36Sopenharmony_ci
71462306a36Sopenharmony_ci#define IPRXHDRGRPPERR_S    24
71562306a36Sopenharmony_ci#define IPRXHDRGRPPERR_V(x) ((x) << IPRXHDRGRPPERR_S)
71662306a36Sopenharmony_ci#define IPRXHDRGRPPERR_F    IPRXHDRGRPPERR_V(1U)
71762306a36Sopenharmony_ci
71862306a36Sopenharmony_ci#define MAGRPPERR_S    22
71962306a36Sopenharmony_ci#define MAGRPPERR_V(x) ((x) << MAGRPPERR_S)
72062306a36Sopenharmony_ci#define MAGRPPERR_F    MAGRPPERR_V(1U)
72162306a36Sopenharmony_ci
72262306a36Sopenharmony_ci#define VFIDPERR_S    21
72362306a36Sopenharmony_ci#define VFIDPERR_V(x) ((x) << VFIDPERR_S)
72462306a36Sopenharmony_ci#define VFIDPERR_F    VFIDPERR_V(1U)
72562306a36Sopenharmony_ci
72662306a36Sopenharmony_ci#define HREQWRPERR_S    16
72762306a36Sopenharmony_ci#define HREQWRPERR_V(x) ((x) << HREQWRPERR_S)
72862306a36Sopenharmony_ci#define HREQWRPERR_F    HREQWRPERR_V(1U)
72962306a36Sopenharmony_ci
73062306a36Sopenharmony_ci#define DREQWRPERR_S    13
73162306a36Sopenharmony_ci#define DREQWRPERR_V(x) ((x) << DREQWRPERR_S)
73262306a36Sopenharmony_ci#define DREQWRPERR_F    DREQWRPERR_V(1U)
73362306a36Sopenharmony_ci
73462306a36Sopenharmony_ci#define CREQRDPERR_S    11
73562306a36Sopenharmony_ci#define CREQRDPERR_V(x) ((x) << CREQRDPERR_S)
73662306a36Sopenharmony_ci#define CREQRDPERR_F    CREQRDPERR_V(1U)
73762306a36Sopenharmony_ci
73862306a36Sopenharmony_ci#define MSTTAGQPERR_S    10
73962306a36Sopenharmony_ci#define MSTTAGQPERR_V(x) ((x) << MSTTAGQPERR_S)
74062306a36Sopenharmony_ci#define MSTTAGQPERR_F    MSTTAGQPERR_V(1U)
74162306a36Sopenharmony_ci
74262306a36Sopenharmony_ci#define PIOREQGRPPERR_S    8
74362306a36Sopenharmony_ci#define PIOREQGRPPERR_V(x) ((x) << PIOREQGRPPERR_S)
74462306a36Sopenharmony_ci#define PIOREQGRPPERR_F    PIOREQGRPPERR_V(1U)
74562306a36Sopenharmony_ci
74662306a36Sopenharmony_ci#define PIOCPLGRPPERR_S    7
74762306a36Sopenharmony_ci#define PIOCPLGRPPERR_V(x) ((x) << PIOCPLGRPPERR_S)
74862306a36Sopenharmony_ci#define PIOCPLGRPPERR_F    PIOCPLGRPPERR_V(1U)
74962306a36Sopenharmony_ci
75062306a36Sopenharmony_ci#define MSIXSTIPERR_S    2
75162306a36Sopenharmony_ci#define MSIXSTIPERR_V(x) ((x) << MSIXSTIPERR_S)
75262306a36Sopenharmony_ci#define MSIXSTIPERR_F    MSIXSTIPERR_V(1U)
75362306a36Sopenharmony_ci
75462306a36Sopenharmony_ci#define MSTTIMEOUTPERR_S    1
75562306a36Sopenharmony_ci#define MSTTIMEOUTPERR_V(x) ((x) << MSTTIMEOUTPERR_S)
75662306a36Sopenharmony_ci#define MSTTIMEOUTPERR_F    MSTTIMEOUTPERR_V(1U)
75762306a36Sopenharmony_ci
75862306a36Sopenharmony_ci#define MSTGRPPERR_S    0
75962306a36Sopenharmony_ci#define MSTGRPPERR_V(x) ((x) << MSTGRPPERR_S)
76062306a36Sopenharmony_ci#define MSTGRPPERR_F    MSTGRPPERR_V(1U)
76162306a36Sopenharmony_ci
76262306a36Sopenharmony_ci#define PCIE_NONFAT_ERR_A	0x3010
76362306a36Sopenharmony_ci#define PCIE_CFG_SPACE_REQ_A	0x3060
76462306a36Sopenharmony_ci#define PCIE_CFG_SPACE_DATA_A	0x3064
76562306a36Sopenharmony_ci#define PCIE_MEM_ACCESS_BASE_WIN_A 0x3068
76662306a36Sopenharmony_ci
76762306a36Sopenharmony_ci#define PCIEOFST_S    10
76862306a36Sopenharmony_ci#define PCIEOFST_M    0x3fffffU
76962306a36Sopenharmony_ci#define PCIEOFST_G(x) (((x) >> PCIEOFST_S) & PCIEOFST_M)
77062306a36Sopenharmony_ci
77162306a36Sopenharmony_ci#define BIR_S    8
77262306a36Sopenharmony_ci#define BIR_M    0x3U
77362306a36Sopenharmony_ci#define BIR_V(x) ((x) << BIR_S)
77462306a36Sopenharmony_ci#define BIR_G(x) (((x) >> BIR_S) & BIR_M)
77562306a36Sopenharmony_ci
77662306a36Sopenharmony_ci#define WINDOW_S    0
77762306a36Sopenharmony_ci#define WINDOW_M    0xffU
77862306a36Sopenharmony_ci#define WINDOW_V(x) ((x) << WINDOW_S)
77962306a36Sopenharmony_ci#define WINDOW_G(x) (((x) >> WINDOW_S) & WINDOW_M)
78062306a36Sopenharmony_ci
78162306a36Sopenharmony_ci#define PCIE_MEM_ACCESS_OFFSET_A 0x306c
78262306a36Sopenharmony_ci
78362306a36Sopenharmony_ci#define ENABLE_S    30
78462306a36Sopenharmony_ci#define ENABLE_V(x) ((x) << ENABLE_S)
78562306a36Sopenharmony_ci#define ENABLE_F    ENABLE_V(1U)
78662306a36Sopenharmony_ci
78762306a36Sopenharmony_ci#define LOCALCFG_S    28
78862306a36Sopenharmony_ci#define LOCALCFG_V(x) ((x) << LOCALCFG_S)
78962306a36Sopenharmony_ci#define LOCALCFG_F    LOCALCFG_V(1U)
79062306a36Sopenharmony_ci
79162306a36Sopenharmony_ci#define FUNCTION_S    12
79262306a36Sopenharmony_ci#define FUNCTION_V(x) ((x) << FUNCTION_S)
79362306a36Sopenharmony_ci
79462306a36Sopenharmony_ci#define REGISTER_S    0
79562306a36Sopenharmony_ci#define REGISTER_V(x) ((x) << REGISTER_S)
79662306a36Sopenharmony_ci
79762306a36Sopenharmony_ci#define T6_ENABLE_S    31
79862306a36Sopenharmony_ci#define T6_ENABLE_V(x) ((x) << T6_ENABLE_S)
79962306a36Sopenharmony_ci#define T6_ENABLE_F    T6_ENABLE_V(1U)
80062306a36Sopenharmony_ci
80162306a36Sopenharmony_ci#define PFNUM_S    0
80262306a36Sopenharmony_ci#define PFNUM_V(x) ((x) << PFNUM_S)
80362306a36Sopenharmony_ci
80462306a36Sopenharmony_ci#define PCIE_FW_A 0x30b8
80562306a36Sopenharmony_ci#define PCIE_FW_PF_A 0x30bc
80662306a36Sopenharmony_ci
80762306a36Sopenharmony_ci#define PCIE_CORE_UTL_SYSTEM_BUS_AGENT_STATUS_A 0x5908
80862306a36Sopenharmony_ci
80962306a36Sopenharmony_ci#define RNPP_S    31
81062306a36Sopenharmony_ci#define RNPP_V(x) ((x) << RNPP_S)
81162306a36Sopenharmony_ci#define RNPP_F    RNPP_V(1U)
81262306a36Sopenharmony_ci
81362306a36Sopenharmony_ci#define RPCP_S    29
81462306a36Sopenharmony_ci#define RPCP_V(x) ((x) << RPCP_S)
81562306a36Sopenharmony_ci#define RPCP_F    RPCP_V(1U)
81662306a36Sopenharmony_ci
81762306a36Sopenharmony_ci#define RCIP_S    27
81862306a36Sopenharmony_ci#define RCIP_V(x) ((x) << RCIP_S)
81962306a36Sopenharmony_ci#define RCIP_F    RCIP_V(1U)
82062306a36Sopenharmony_ci
82162306a36Sopenharmony_ci#define RCCP_S    26
82262306a36Sopenharmony_ci#define RCCP_V(x) ((x) << RCCP_S)
82362306a36Sopenharmony_ci#define RCCP_F    RCCP_V(1U)
82462306a36Sopenharmony_ci
82562306a36Sopenharmony_ci#define RFTP_S    23
82662306a36Sopenharmony_ci#define RFTP_V(x) ((x) << RFTP_S)
82762306a36Sopenharmony_ci#define RFTP_F    RFTP_V(1U)
82862306a36Sopenharmony_ci
82962306a36Sopenharmony_ci#define PTRP_S    20
83062306a36Sopenharmony_ci#define PTRP_V(x) ((x) << PTRP_S)
83162306a36Sopenharmony_ci#define PTRP_F    PTRP_V(1U)
83262306a36Sopenharmony_ci
83362306a36Sopenharmony_ci#define PCIE_CORE_UTL_PCI_EXPRESS_PORT_STATUS_A 0x59a4
83462306a36Sopenharmony_ci
83562306a36Sopenharmony_ci#define TPCP_S    30
83662306a36Sopenharmony_ci#define TPCP_V(x) ((x) << TPCP_S)
83762306a36Sopenharmony_ci#define TPCP_F    TPCP_V(1U)
83862306a36Sopenharmony_ci
83962306a36Sopenharmony_ci#define TNPP_S    29
84062306a36Sopenharmony_ci#define TNPP_V(x) ((x) << TNPP_S)
84162306a36Sopenharmony_ci#define TNPP_F    TNPP_V(1U)
84262306a36Sopenharmony_ci
84362306a36Sopenharmony_ci#define TFTP_S    28
84462306a36Sopenharmony_ci#define TFTP_V(x) ((x) << TFTP_S)
84562306a36Sopenharmony_ci#define TFTP_F    TFTP_V(1U)
84662306a36Sopenharmony_ci
84762306a36Sopenharmony_ci#define TCAP_S    27
84862306a36Sopenharmony_ci#define TCAP_V(x) ((x) << TCAP_S)
84962306a36Sopenharmony_ci#define TCAP_F    TCAP_V(1U)
85062306a36Sopenharmony_ci
85162306a36Sopenharmony_ci#define TCIP_S    26
85262306a36Sopenharmony_ci#define TCIP_V(x) ((x) << TCIP_S)
85362306a36Sopenharmony_ci#define TCIP_F    TCIP_V(1U)
85462306a36Sopenharmony_ci
85562306a36Sopenharmony_ci#define RCAP_S    25
85662306a36Sopenharmony_ci#define RCAP_V(x) ((x) << RCAP_S)
85762306a36Sopenharmony_ci#define RCAP_F    RCAP_V(1U)
85862306a36Sopenharmony_ci
85962306a36Sopenharmony_ci#define PLUP_S    23
86062306a36Sopenharmony_ci#define PLUP_V(x) ((x) << PLUP_S)
86162306a36Sopenharmony_ci#define PLUP_F    PLUP_V(1U)
86262306a36Sopenharmony_ci
86362306a36Sopenharmony_ci#define PLDN_S    22
86462306a36Sopenharmony_ci#define PLDN_V(x) ((x) << PLDN_S)
86562306a36Sopenharmony_ci#define PLDN_F    PLDN_V(1U)
86662306a36Sopenharmony_ci
86762306a36Sopenharmony_ci#define OTDD_S    21
86862306a36Sopenharmony_ci#define OTDD_V(x) ((x) << OTDD_S)
86962306a36Sopenharmony_ci#define OTDD_F    OTDD_V(1U)
87062306a36Sopenharmony_ci
87162306a36Sopenharmony_ci#define GTRP_S    20
87262306a36Sopenharmony_ci#define GTRP_V(x) ((x) << GTRP_S)
87362306a36Sopenharmony_ci#define GTRP_F    GTRP_V(1U)
87462306a36Sopenharmony_ci
87562306a36Sopenharmony_ci#define RDPE_S    18
87662306a36Sopenharmony_ci#define RDPE_V(x) ((x) << RDPE_S)
87762306a36Sopenharmony_ci#define RDPE_F    RDPE_V(1U)
87862306a36Sopenharmony_ci
87962306a36Sopenharmony_ci#define TDCE_S    17
88062306a36Sopenharmony_ci#define TDCE_V(x) ((x) << TDCE_S)
88162306a36Sopenharmony_ci#define TDCE_F    TDCE_V(1U)
88262306a36Sopenharmony_ci
88362306a36Sopenharmony_ci#define TDUE_S    16
88462306a36Sopenharmony_ci#define TDUE_V(x) ((x) << TDUE_S)
88562306a36Sopenharmony_ci#define TDUE_F    TDUE_V(1U)
88662306a36Sopenharmony_ci
88762306a36Sopenharmony_ci/* SPARE2 register contains 32-bit value at offset 0x6 in Serial INIT
88862306a36Sopenharmony_ci * Configuration flashed on EEPROM. This value corresponds to 32-bit
88962306a36Sopenharmony_ci * Serial Configuration Version information.
89062306a36Sopenharmony_ci */
89162306a36Sopenharmony_ci#define PCIE_STATIC_SPARE2_A	0x5bfc
89262306a36Sopenharmony_ci
89362306a36Sopenharmony_ci/* registers for module MC */
89462306a36Sopenharmony_ci#define MC_INT_CAUSE_A		0x7518
89562306a36Sopenharmony_ci#define MC_P_INT_CAUSE_A	0x41318
89662306a36Sopenharmony_ci
89762306a36Sopenharmony_ci#define ECC_UE_INT_CAUSE_S    2
89862306a36Sopenharmony_ci#define ECC_UE_INT_CAUSE_V(x) ((x) << ECC_UE_INT_CAUSE_S)
89962306a36Sopenharmony_ci#define ECC_UE_INT_CAUSE_F    ECC_UE_INT_CAUSE_V(1U)
90062306a36Sopenharmony_ci
90162306a36Sopenharmony_ci#define ECC_CE_INT_CAUSE_S    1
90262306a36Sopenharmony_ci#define ECC_CE_INT_CAUSE_V(x) ((x) << ECC_CE_INT_CAUSE_S)
90362306a36Sopenharmony_ci#define ECC_CE_INT_CAUSE_F    ECC_CE_INT_CAUSE_V(1U)
90462306a36Sopenharmony_ci
90562306a36Sopenharmony_ci#define PERR_INT_CAUSE_S    0
90662306a36Sopenharmony_ci#define PERR_INT_CAUSE_V(x) ((x) << PERR_INT_CAUSE_S)
90762306a36Sopenharmony_ci#define PERR_INT_CAUSE_F    PERR_INT_CAUSE_V(1U)
90862306a36Sopenharmony_ci
90962306a36Sopenharmony_ci#define DBG_GPIO_EN_A		0x6010
91062306a36Sopenharmony_ci#define XGMAC_PORT_CFG_A	0x1000
91162306a36Sopenharmony_ci#define MAC_PORT_CFG_A		0x800
91262306a36Sopenharmony_ci
91362306a36Sopenharmony_ci#define SIGNAL_DET_S    14
91462306a36Sopenharmony_ci#define SIGNAL_DET_V(x) ((x) << SIGNAL_DET_S)
91562306a36Sopenharmony_ci#define SIGNAL_DET_F    SIGNAL_DET_V(1U)
91662306a36Sopenharmony_ci
91762306a36Sopenharmony_ci#define MC_ECC_STATUS_A		0x751c
91862306a36Sopenharmony_ci#define MC_P_ECC_STATUS_A	0x4131c
91962306a36Sopenharmony_ci
92062306a36Sopenharmony_ci#define ECC_CECNT_S    16
92162306a36Sopenharmony_ci#define ECC_CECNT_M    0xffffU
92262306a36Sopenharmony_ci#define ECC_CECNT_V(x) ((x) << ECC_CECNT_S)
92362306a36Sopenharmony_ci#define ECC_CECNT_G(x) (((x) >> ECC_CECNT_S) & ECC_CECNT_M)
92462306a36Sopenharmony_ci
92562306a36Sopenharmony_ci#define ECC_UECNT_S    0
92662306a36Sopenharmony_ci#define ECC_UECNT_M    0xffffU
92762306a36Sopenharmony_ci#define ECC_UECNT_V(x) ((x) << ECC_UECNT_S)
92862306a36Sopenharmony_ci#define ECC_UECNT_G(x) (((x) >> ECC_UECNT_S) & ECC_UECNT_M)
92962306a36Sopenharmony_ci
93062306a36Sopenharmony_ci#define MC_BIST_CMD_A 0x7600
93162306a36Sopenharmony_ci
93262306a36Sopenharmony_ci#define START_BIST_S    31
93362306a36Sopenharmony_ci#define START_BIST_V(x) ((x) << START_BIST_S)
93462306a36Sopenharmony_ci#define START_BIST_F    START_BIST_V(1U)
93562306a36Sopenharmony_ci
93662306a36Sopenharmony_ci#define BIST_CMD_GAP_S    8
93762306a36Sopenharmony_ci#define BIST_CMD_GAP_V(x) ((x) << BIST_CMD_GAP_S)
93862306a36Sopenharmony_ci
93962306a36Sopenharmony_ci#define BIST_OPCODE_S    0
94062306a36Sopenharmony_ci#define BIST_OPCODE_V(x) ((x) << BIST_OPCODE_S)
94162306a36Sopenharmony_ci
94262306a36Sopenharmony_ci#define MC_BIST_CMD_ADDR_A 0x7604
94362306a36Sopenharmony_ci#define MC_BIST_CMD_LEN_A 0x7608
94462306a36Sopenharmony_ci#define MC_BIST_DATA_PATTERN_A 0x760c
94562306a36Sopenharmony_ci
94662306a36Sopenharmony_ci#define MC_BIST_STATUS_RDATA_A 0x7688
94762306a36Sopenharmony_ci
94862306a36Sopenharmony_ci/* registers for module MA */
94962306a36Sopenharmony_ci#define MA_EDRAM0_BAR_A 0x77c0
95062306a36Sopenharmony_ci
95162306a36Sopenharmony_ci#define EDRAM0_BASE_S    16
95262306a36Sopenharmony_ci#define EDRAM0_BASE_M    0xfffU
95362306a36Sopenharmony_ci#define EDRAM0_BASE_G(x) (((x) >> EDRAM0_BASE_S) & EDRAM0_BASE_M)
95462306a36Sopenharmony_ci
95562306a36Sopenharmony_ci#define EDRAM0_SIZE_S    0
95662306a36Sopenharmony_ci#define EDRAM0_SIZE_M    0xfffU
95762306a36Sopenharmony_ci#define EDRAM0_SIZE_V(x) ((x) << EDRAM0_SIZE_S)
95862306a36Sopenharmony_ci#define EDRAM0_SIZE_G(x) (((x) >> EDRAM0_SIZE_S) & EDRAM0_SIZE_M)
95962306a36Sopenharmony_ci
96062306a36Sopenharmony_ci#define MA_EDRAM1_BAR_A 0x77c4
96162306a36Sopenharmony_ci
96262306a36Sopenharmony_ci#define EDRAM1_BASE_S    16
96362306a36Sopenharmony_ci#define EDRAM1_BASE_M    0xfffU
96462306a36Sopenharmony_ci#define EDRAM1_BASE_G(x) (((x) >> EDRAM1_BASE_S) & EDRAM1_BASE_M)
96562306a36Sopenharmony_ci
96662306a36Sopenharmony_ci#define EDRAM1_SIZE_S    0
96762306a36Sopenharmony_ci#define EDRAM1_SIZE_M    0xfffU
96862306a36Sopenharmony_ci#define EDRAM1_SIZE_V(x) ((x) << EDRAM1_SIZE_S)
96962306a36Sopenharmony_ci#define EDRAM1_SIZE_G(x) (((x) >> EDRAM1_SIZE_S) & EDRAM1_SIZE_M)
97062306a36Sopenharmony_ci
97162306a36Sopenharmony_ci#define MA_EXT_MEMORY_BAR_A 0x77c8
97262306a36Sopenharmony_ci
97362306a36Sopenharmony_ci#define EXT_MEM_BASE_S    16
97462306a36Sopenharmony_ci#define EXT_MEM_BASE_M    0xfffU
97562306a36Sopenharmony_ci#define EXT_MEM_BASE_V(x) ((x) << EXT_MEM_BASE_S)
97662306a36Sopenharmony_ci#define EXT_MEM_BASE_G(x) (((x) >> EXT_MEM_BASE_S) & EXT_MEM_BASE_M)
97762306a36Sopenharmony_ci
97862306a36Sopenharmony_ci#define EXT_MEM_SIZE_S    0
97962306a36Sopenharmony_ci#define EXT_MEM_SIZE_M    0xfffU
98062306a36Sopenharmony_ci#define EXT_MEM_SIZE_V(x) ((x) << EXT_MEM_SIZE_S)
98162306a36Sopenharmony_ci#define EXT_MEM_SIZE_G(x) (((x) >> EXT_MEM_SIZE_S) & EXT_MEM_SIZE_M)
98262306a36Sopenharmony_ci
98362306a36Sopenharmony_ci#define MA_EXT_MEMORY1_BAR_A 0x7808
98462306a36Sopenharmony_ci
98562306a36Sopenharmony_ci#define HMA_MUX_S    5
98662306a36Sopenharmony_ci#define HMA_MUX_V(x) ((x) << HMA_MUX_S)
98762306a36Sopenharmony_ci#define HMA_MUX_F    HMA_MUX_V(1U)
98862306a36Sopenharmony_ci
98962306a36Sopenharmony_ci#define EXT_MEM1_BASE_S    16
99062306a36Sopenharmony_ci#define EXT_MEM1_BASE_M    0xfffU
99162306a36Sopenharmony_ci#define EXT_MEM1_BASE_G(x) (((x) >> EXT_MEM1_BASE_S) & EXT_MEM1_BASE_M)
99262306a36Sopenharmony_ci
99362306a36Sopenharmony_ci#define EXT_MEM1_SIZE_S    0
99462306a36Sopenharmony_ci#define EXT_MEM1_SIZE_M    0xfffU
99562306a36Sopenharmony_ci#define EXT_MEM1_SIZE_V(x) ((x) << EXT_MEM1_SIZE_S)
99662306a36Sopenharmony_ci#define EXT_MEM1_SIZE_G(x) (((x) >> EXT_MEM1_SIZE_S) & EXT_MEM1_SIZE_M)
99762306a36Sopenharmony_ci
99862306a36Sopenharmony_ci#define MA_EXT_MEMORY0_BAR_A 0x77c8
99962306a36Sopenharmony_ci
100062306a36Sopenharmony_ci#define EXT_MEM0_BASE_S    16
100162306a36Sopenharmony_ci#define EXT_MEM0_BASE_M    0xfffU
100262306a36Sopenharmony_ci#define EXT_MEM0_BASE_G(x) (((x) >> EXT_MEM0_BASE_S) & EXT_MEM0_BASE_M)
100362306a36Sopenharmony_ci
100462306a36Sopenharmony_ci#define EXT_MEM0_SIZE_S    0
100562306a36Sopenharmony_ci#define EXT_MEM0_SIZE_M    0xfffU
100662306a36Sopenharmony_ci#define EXT_MEM0_SIZE_V(x) ((x) << EXT_MEM0_SIZE_S)
100762306a36Sopenharmony_ci#define EXT_MEM0_SIZE_G(x) (((x) >> EXT_MEM0_SIZE_S) & EXT_MEM0_SIZE_M)
100862306a36Sopenharmony_ci
100962306a36Sopenharmony_ci#define MA_TARGET_MEM_ENABLE_A 0x77d8
101062306a36Sopenharmony_ci
101162306a36Sopenharmony_ci#define EXT_MEM_ENABLE_S    2
101262306a36Sopenharmony_ci#define EXT_MEM_ENABLE_V(x) ((x) << EXT_MEM_ENABLE_S)
101362306a36Sopenharmony_ci#define EXT_MEM_ENABLE_F    EXT_MEM_ENABLE_V(1U)
101462306a36Sopenharmony_ci
101562306a36Sopenharmony_ci#define EDRAM1_ENABLE_S    1
101662306a36Sopenharmony_ci#define EDRAM1_ENABLE_V(x) ((x) << EDRAM1_ENABLE_S)
101762306a36Sopenharmony_ci#define EDRAM1_ENABLE_F    EDRAM1_ENABLE_V(1U)
101862306a36Sopenharmony_ci
101962306a36Sopenharmony_ci#define EDRAM0_ENABLE_S    0
102062306a36Sopenharmony_ci#define EDRAM0_ENABLE_V(x) ((x) << EDRAM0_ENABLE_S)
102162306a36Sopenharmony_ci#define EDRAM0_ENABLE_F    EDRAM0_ENABLE_V(1U)
102262306a36Sopenharmony_ci
102362306a36Sopenharmony_ci#define EXT_MEM1_ENABLE_S    4
102462306a36Sopenharmony_ci#define EXT_MEM1_ENABLE_V(x) ((x) << EXT_MEM1_ENABLE_S)
102562306a36Sopenharmony_ci#define EXT_MEM1_ENABLE_F    EXT_MEM1_ENABLE_V(1U)
102662306a36Sopenharmony_ci
102762306a36Sopenharmony_ci#define EXT_MEM0_ENABLE_S    2
102862306a36Sopenharmony_ci#define EXT_MEM0_ENABLE_V(x) ((x) << EXT_MEM0_ENABLE_S)
102962306a36Sopenharmony_ci#define EXT_MEM0_ENABLE_F    EXT_MEM0_ENABLE_V(1U)
103062306a36Sopenharmony_ci
103162306a36Sopenharmony_ci#define MA_INT_CAUSE_A	0x77e0
103262306a36Sopenharmony_ci
103362306a36Sopenharmony_ci#define MEM_PERR_INT_CAUSE_S    1
103462306a36Sopenharmony_ci#define MEM_PERR_INT_CAUSE_V(x) ((x) << MEM_PERR_INT_CAUSE_S)
103562306a36Sopenharmony_ci#define MEM_PERR_INT_CAUSE_F    MEM_PERR_INT_CAUSE_V(1U)
103662306a36Sopenharmony_ci
103762306a36Sopenharmony_ci#define MEM_WRAP_INT_CAUSE_S    0
103862306a36Sopenharmony_ci#define MEM_WRAP_INT_CAUSE_V(x) ((x) << MEM_WRAP_INT_CAUSE_S)
103962306a36Sopenharmony_ci#define MEM_WRAP_INT_CAUSE_F    MEM_WRAP_INT_CAUSE_V(1U)
104062306a36Sopenharmony_ci
104162306a36Sopenharmony_ci#define MA_INT_WRAP_STATUS_A	0x77e4
104262306a36Sopenharmony_ci
104362306a36Sopenharmony_ci#define MEM_WRAP_ADDRESS_S    4
104462306a36Sopenharmony_ci#define MEM_WRAP_ADDRESS_M    0xfffffffU
104562306a36Sopenharmony_ci#define MEM_WRAP_ADDRESS_G(x) (((x) >> MEM_WRAP_ADDRESS_S) & MEM_WRAP_ADDRESS_M)
104662306a36Sopenharmony_ci
104762306a36Sopenharmony_ci#define MEM_WRAP_CLIENT_NUM_S    0
104862306a36Sopenharmony_ci#define MEM_WRAP_CLIENT_NUM_M    0xfU
104962306a36Sopenharmony_ci#define MEM_WRAP_CLIENT_NUM_G(x) \
105062306a36Sopenharmony_ci	(((x) >> MEM_WRAP_CLIENT_NUM_S) & MEM_WRAP_CLIENT_NUM_M)
105162306a36Sopenharmony_ci
105262306a36Sopenharmony_ci#define MA_PARITY_ERROR_STATUS_A	0x77f4
105362306a36Sopenharmony_ci#define MA_PARITY_ERROR_STATUS1_A	0x77f4
105462306a36Sopenharmony_ci#define MA_PARITY_ERROR_STATUS2_A	0x7804
105562306a36Sopenharmony_ci
105662306a36Sopenharmony_ci/* registers for module EDC_0 */
105762306a36Sopenharmony_ci#define EDC_0_BASE_ADDR		0x7900
105862306a36Sopenharmony_ci
105962306a36Sopenharmony_ci#define EDC_BIST_CMD_A		0x7904
106062306a36Sopenharmony_ci#define EDC_BIST_CMD_ADDR_A	0x7908
106162306a36Sopenharmony_ci#define EDC_BIST_CMD_LEN_A	0x790c
106262306a36Sopenharmony_ci#define EDC_BIST_DATA_PATTERN_A 0x7910
106362306a36Sopenharmony_ci#define EDC_BIST_STATUS_RDATA_A	0x7928
106462306a36Sopenharmony_ci#define EDC_INT_CAUSE_A		0x7978
106562306a36Sopenharmony_ci
106662306a36Sopenharmony_ci#define ECC_UE_PAR_S    5
106762306a36Sopenharmony_ci#define ECC_UE_PAR_V(x) ((x) << ECC_UE_PAR_S)
106862306a36Sopenharmony_ci#define ECC_UE_PAR_F    ECC_UE_PAR_V(1U)
106962306a36Sopenharmony_ci
107062306a36Sopenharmony_ci#define ECC_CE_PAR_S    4
107162306a36Sopenharmony_ci#define ECC_CE_PAR_V(x) ((x) << ECC_CE_PAR_S)
107262306a36Sopenharmony_ci#define ECC_CE_PAR_F    ECC_CE_PAR_V(1U)
107362306a36Sopenharmony_ci
107462306a36Sopenharmony_ci#define PERR_PAR_CAUSE_S    3
107562306a36Sopenharmony_ci#define PERR_PAR_CAUSE_V(x) ((x) << PERR_PAR_CAUSE_S)
107662306a36Sopenharmony_ci#define PERR_PAR_CAUSE_F    PERR_PAR_CAUSE_V(1U)
107762306a36Sopenharmony_ci
107862306a36Sopenharmony_ci#define EDC_ECC_STATUS_A	0x797c
107962306a36Sopenharmony_ci
108062306a36Sopenharmony_ci/* registers for module EDC_1 */
108162306a36Sopenharmony_ci#define EDC_1_BASE_ADDR	0x7980
108262306a36Sopenharmony_ci
108362306a36Sopenharmony_ci/* registers for module CIM */
108462306a36Sopenharmony_ci#define CIM_BOOT_CFG_A 0x7b00
108562306a36Sopenharmony_ci#define CIM_SDRAM_BASE_ADDR_A 0x7b14
108662306a36Sopenharmony_ci#define CIM_SDRAM_ADDR_SIZE_A 0x7b18
108762306a36Sopenharmony_ci#define CIM_EXTMEM2_BASE_ADDR_A 0x7b1c
108862306a36Sopenharmony_ci#define CIM_EXTMEM2_ADDR_SIZE_A 0x7b20
108962306a36Sopenharmony_ci#define CIM_PF_MAILBOX_CTRL_SHADOW_COPY_A 0x290
109062306a36Sopenharmony_ci
109162306a36Sopenharmony_ci#define  BOOTADDR_M	0xffffff00U
109262306a36Sopenharmony_ci
109362306a36Sopenharmony_ci#define UPCRST_S    0
109462306a36Sopenharmony_ci#define UPCRST_V(x) ((x) << UPCRST_S)
109562306a36Sopenharmony_ci#define UPCRST_F    UPCRST_V(1U)
109662306a36Sopenharmony_ci
109762306a36Sopenharmony_ci#define CIM_PF_MAILBOX_DATA_A 0x240
109862306a36Sopenharmony_ci#define CIM_PF_MAILBOX_CTRL_A 0x280
109962306a36Sopenharmony_ci
110062306a36Sopenharmony_ci#define MBMSGVALID_S    3
110162306a36Sopenharmony_ci#define MBMSGVALID_V(x) ((x) << MBMSGVALID_S)
110262306a36Sopenharmony_ci#define MBMSGVALID_F    MBMSGVALID_V(1U)
110362306a36Sopenharmony_ci
110462306a36Sopenharmony_ci#define MBINTREQ_S    2
110562306a36Sopenharmony_ci#define MBINTREQ_V(x) ((x) << MBINTREQ_S)
110662306a36Sopenharmony_ci#define MBINTREQ_F    MBINTREQ_V(1U)
110762306a36Sopenharmony_ci
110862306a36Sopenharmony_ci#define MBOWNER_S    0
110962306a36Sopenharmony_ci#define MBOWNER_M    0x3U
111062306a36Sopenharmony_ci#define MBOWNER_V(x) ((x) << MBOWNER_S)
111162306a36Sopenharmony_ci#define MBOWNER_G(x) (((x) >> MBOWNER_S) & MBOWNER_M)
111262306a36Sopenharmony_ci
111362306a36Sopenharmony_ci#define CIM_PF_HOST_INT_ENABLE_A 0x288
111462306a36Sopenharmony_ci
111562306a36Sopenharmony_ci#define MBMSGRDYINTEN_S    19
111662306a36Sopenharmony_ci#define MBMSGRDYINTEN_V(x) ((x) << MBMSGRDYINTEN_S)
111762306a36Sopenharmony_ci#define MBMSGRDYINTEN_F    MBMSGRDYINTEN_V(1U)
111862306a36Sopenharmony_ci
111962306a36Sopenharmony_ci#define CIM_PF_HOST_INT_CAUSE_A 0x28c
112062306a36Sopenharmony_ci
112162306a36Sopenharmony_ci#define MBMSGRDYINT_S    19
112262306a36Sopenharmony_ci#define MBMSGRDYINT_V(x) ((x) << MBMSGRDYINT_S)
112362306a36Sopenharmony_ci#define MBMSGRDYINT_F    MBMSGRDYINT_V(1U)
112462306a36Sopenharmony_ci
112562306a36Sopenharmony_ci#define CIM_HOST_INT_CAUSE_A 0x7b2c
112662306a36Sopenharmony_ci
112762306a36Sopenharmony_ci#define TIEQOUTPARERRINT_S    20
112862306a36Sopenharmony_ci#define TIEQOUTPARERRINT_V(x) ((x) << TIEQOUTPARERRINT_S)
112962306a36Sopenharmony_ci#define TIEQOUTPARERRINT_F    TIEQOUTPARERRINT_V(1U)
113062306a36Sopenharmony_ci
113162306a36Sopenharmony_ci#define TIEQINPARERRINT_S    19
113262306a36Sopenharmony_ci#define TIEQINPARERRINT_V(x) ((x) << TIEQINPARERRINT_S)
113362306a36Sopenharmony_ci#define TIEQINPARERRINT_F    TIEQINPARERRINT_V(1U)
113462306a36Sopenharmony_ci
113562306a36Sopenharmony_ci#define TIMER0INT_S    2
113662306a36Sopenharmony_ci#define TIMER0INT_V(x) ((x) << TIMER0INT_S)
113762306a36Sopenharmony_ci#define TIMER0INT_F    TIMER0INT_V(1U)
113862306a36Sopenharmony_ci
113962306a36Sopenharmony_ci#define PREFDROPINT_S    1
114062306a36Sopenharmony_ci#define PREFDROPINT_V(x) ((x) << PREFDROPINT_S)
114162306a36Sopenharmony_ci#define PREFDROPINT_F    PREFDROPINT_V(1U)
114262306a36Sopenharmony_ci
114362306a36Sopenharmony_ci#define UPACCNONZERO_S    0
114462306a36Sopenharmony_ci#define UPACCNONZERO_V(x) ((x) << UPACCNONZERO_S)
114562306a36Sopenharmony_ci#define UPACCNONZERO_F    UPACCNONZERO_V(1U)
114662306a36Sopenharmony_ci
114762306a36Sopenharmony_ci#define MBHOSTPARERR_S    18
114862306a36Sopenharmony_ci#define MBHOSTPARERR_V(x) ((x) << MBHOSTPARERR_S)
114962306a36Sopenharmony_ci#define MBHOSTPARERR_F    MBHOSTPARERR_V(1U)
115062306a36Sopenharmony_ci
115162306a36Sopenharmony_ci#define MBUPPARERR_S    17
115262306a36Sopenharmony_ci#define MBUPPARERR_V(x) ((x) << MBUPPARERR_S)
115362306a36Sopenharmony_ci#define MBUPPARERR_F    MBUPPARERR_V(1U)
115462306a36Sopenharmony_ci
115562306a36Sopenharmony_ci#define IBQTP0PARERR_S    16
115662306a36Sopenharmony_ci#define IBQTP0PARERR_V(x) ((x) << IBQTP0PARERR_S)
115762306a36Sopenharmony_ci#define IBQTP0PARERR_F    IBQTP0PARERR_V(1U)
115862306a36Sopenharmony_ci
115962306a36Sopenharmony_ci#define IBQTP1PARERR_S    15
116062306a36Sopenharmony_ci#define IBQTP1PARERR_V(x) ((x) << IBQTP1PARERR_S)
116162306a36Sopenharmony_ci#define IBQTP1PARERR_F    IBQTP1PARERR_V(1U)
116262306a36Sopenharmony_ci
116362306a36Sopenharmony_ci#define IBQULPPARERR_S    14
116462306a36Sopenharmony_ci#define IBQULPPARERR_V(x) ((x) << IBQULPPARERR_S)
116562306a36Sopenharmony_ci#define IBQULPPARERR_F    IBQULPPARERR_V(1U)
116662306a36Sopenharmony_ci
116762306a36Sopenharmony_ci#define IBQSGELOPARERR_S    13
116862306a36Sopenharmony_ci#define IBQSGELOPARERR_V(x) ((x) << IBQSGELOPARERR_S)
116962306a36Sopenharmony_ci#define IBQSGELOPARERR_F    IBQSGELOPARERR_V(1U)
117062306a36Sopenharmony_ci
117162306a36Sopenharmony_ci#define IBQSGEHIPARERR_S    12
117262306a36Sopenharmony_ci#define IBQSGEHIPARERR_V(x) ((x) << IBQSGEHIPARERR_S)
117362306a36Sopenharmony_ci#define IBQSGEHIPARERR_F    IBQSGEHIPARERR_V(1U)
117462306a36Sopenharmony_ci
117562306a36Sopenharmony_ci#define IBQNCSIPARERR_S    11
117662306a36Sopenharmony_ci#define IBQNCSIPARERR_V(x) ((x) << IBQNCSIPARERR_S)
117762306a36Sopenharmony_ci#define IBQNCSIPARERR_F    IBQNCSIPARERR_V(1U)
117862306a36Sopenharmony_ci
117962306a36Sopenharmony_ci#define OBQULP0PARERR_S    10
118062306a36Sopenharmony_ci#define OBQULP0PARERR_V(x) ((x) << OBQULP0PARERR_S)
118162306a36Sopenharmony_ci#define OBQULP0PARERR_F    OBQULP0PARERR_V(1U)
118262306a36Sopenharmony_ci
118362306a36Sopenharmony_ci#define OBQULP1PARERR_S    9
118462306a36Sopenharmony_ci#define OBQULP1PARERR_V(x) ((x) << OBQULP1PARERR_S)
118562306a36Sopenharmony_ci#define OBQULP1PARERR_F    OBQULP1PARERR_V(1U)
118662306a36Sopenharmony_ci
118762306a36Sopenharmony_ci#define OBQULP2PARERR_S    8
118862306a36Sopenharmony_ci#define OBQULP2PARERR_V(x) ((x) << OBQULP2PARERR_S)
118962306a36Sopenharmony_ci#define OBQULP2PARERR_F    OBQULP2PARERR_V(1U)
119062306a36Sopenharmony_ci
119162306a36Sopenharmony_ci#define OBQULP3PARERR_S    7
119262306a36Sopenharmony_ci#define OBQULP3PARERR_V(x) ((x) << OBQULP3PARERR_S)
119362306a36Sopenharmony_ci#define OBQULP3PARERR_F    OBQULP3PARERR_V(1U)
119462306a36Sopenharmony_ci
119562306a36Sopenharmony_ci#define OBQSGEPARERR_S    6
119662306a36Sopenharmony_ci#define OBQSGEPARERR_V(x) ((x) << OBQSGEPARERR_S)
119762306a36Sopenharmony_ci#define OBQSGEPARERR_F    OBQSGEPARERR_V(1U)
119862306a36Sopenharmony_ci
119962306a36Sopenharmony_ci#define OBQNCSIPARERR_S    5
120062306a36Sopenharmony_ci#define OBQNCSIPARERR_V(x) ((x) << OBQNCSIPARERR_S)
120162306a36Sopenharmony_ci#define OBQNCSIPARERR_F    OBQNCSIPARERR_V(1U)
120262306a36Sopenharmony_ci
120362306a36Sopenharmony_ci#define CIM_HOST_UPACC_INT_CAUSE_A 0x7b34
120462306a36Sopenharmony_ci
120562306a36Sopenharmony_ci#define EEPROMWRINT_S    30
120662306a36Sopenharmony_ci#define EEPROMWRINT_V(x) ((x) << EEPROMWRINT_S)
120762306a36Sopenharmony_ci#define EEPROMWRINT_F    EEPROMWRINT_V(1U)
120862306a36Sopenharmony_ci
120962306a36Sopenharmony_ci#define TIMEOUTMAINT_S    29
121062306a36Sopenharmony_ci#define TIMEOUTMAINT_V(x) ((x) << TIMEOUTMAINT_S)
121162306a36Sopenharmony_ci#define TIMEOUTMAINT_F    TIMEOUTMAINT_V(1U)
121262306a36Sopenharmony_ci
121362306a36Sopenharmony_ci#define TIMEOUTINT_S    28
121462306a36Sopenharmony_ci#define TIMEOUTINT_V(x) ((x) << TIMEOUTINT_S)
121562306a36Sopenharmony_ci#define TIMEOUTINT_F    TIMEOUTINT_V(1U)
121662306a36Sopenharmony_ci
121762306a36Sopenharmony_ci#define RSPOVRLOOKUPINT_S    27
121862306a36Sopenharmony_ci#define RSPOVRLOOKUPINT_V(x) ((x) << RSPOVRLOOKUPINT_S)
121962306a36Sopenharmony_ci#define RSPOVRLOOKUPINT_F    RSPOVRLOOKUPINT_V(1U)
122062306a36Sopenharmony_ci
122162306a36Sopenharmony_ci#define REQOVRLOOKUPINT_S    26
122262306a36Sopenharmony_ci#define REQOVRLOOKUPINT_V(x) ((x) << REQOVRLOOKUPINT_S)
122362306a36Sopenharmony_ci#define REQOVRLOOKUPINT_F    REQOVRLOOKUPINT_V(1U)
122462306a36Sopenharmony_ci
122562306a36Sopenharmony_ci#define BLKWRPLINT_S    25
122662306a36Sopenharmony_ci#define BLKWRPLINT_V(x) ((x) << BLKWRPLINT_S)
122762306a36Sopenharmony_ci#define BLKWRPLINT_F    BLKWRPLINT_V(1U)
122862306a36Sopenharmony_ci
122962306a36Sopenharmony_ci#define BLKRDPLINT_S    24
123062306a36Sopenharmony_ci#define BLKRDPLINT_V(x) ((x) << BLKRDPLINT_S)
123162306a36Sopenharmony_ci#define BLKRDPLINT_F    BLKRDPLINT_V(1U)
123262306a36Sopenharmony_ci
123362306a36Sopenharmony_ci#define SGLWRPLINT_S    23
123462306a36Sopenharmony_ci#define SGLWRPLINT_V(x) ((x) << SGLWRPLINT_S)
123562306a36Sopenharmony_ci#define SGLWRPLINT_F    SGLWRPLINT_V(1U)
123662306a36Sopenharmony_ci
123762306a36Sopenharmony_ci#define SGLRDPLINT_S    22
123862306a36Sopenharmony_ci#define SGLRDPLINT_V(x) ((x) << SGLRDPLINT_S)
123962306a36Sopenharmony_ci#define SGLRDPLINT_F    SGLRDPLINT_V(1U)
124062306a36Sopenharmony_ci
124162306a36Sopenharmony_ci#define BLKWRCTLINT_S    21
124262306a36Sopenharmony_ci#define BLKWRCTLINT_V(x) ((x) << BLKWRCTLINT_S)
124362306a36Sopenharmony_ci#define BLKWRCTLINT_F    BLKWRCTLINT_V(1U)
124462306a36Sopenharmony_ci
124562306a36Sopenharmony_ci#define BLKRDCTLINT_S    20
124662306a36Sopenharmony_ci#define BLKRDCTLINT_V(x) ((x) << BLKRDCTLINT_S)
124762306a36Sopenharmony_ci#define BLKRDCTLINT_F    BLKRDCTLINT_V(1U)
124862306a36Sopenharmony_ci
124962306a36Sopenharmony_ci#define SGLWRCTLINT_S    19
125062306a36Sopenharmony_ci#define SGLWRCTLINT_V(x) ((x) << SGLWRCTLINT_S)
125162306a36Sopenharmony_ci#define SGLWRCTLINT_F    SGLWRCTLINT_V(1U)
125262306a36Sopenharmony_ci
125362306a36Sopenharmony_ci#define SGLRDCTLINT_S    18
125462306a36Sopenharmony_ci#define SGLRDCTLINT_V(x) ((x) << SGLRDCTLINT_S)
125562306a36Sopenharmony_ci#define SGLRDCTLINT_F    SGLRDCTLINT_V(1U)
125662306a36Sopenharmony_ci
125762306a36Sopenharmony_ci#define BLKWREEPROMINT_S    17
125862306a36Sopenharmony_ci#define BLKWREEPROMINT_V(x) ((x) << BLKWREEPROMINT_S)
125962306a36Sopenharmony_ci#define BLKWREEPROMINT_F    BLKWREEPROMINT_V(1U)
126062306a36Sopenharmony_ci
126162306a36Sopenharmony_ci#define BLKRDEEPROMINT_S    16
126262306a36Sopenharmony_ci#define BLKRDEEPROMINT_V(x) ((x) << BLKRDEEPROMINT_S)
126362306a36Sopenharmony_ci#define BLKRDEEPROMINT_F    BLKRDEEPROMINT_V(1U)
126462306a36Sopenharmony_ci
126562306a36Sopenharmony_ci#define SGLWREEPROMINT_S    15
126662306a36Sopenharmony_ci#define SGLWREEPROMINT_V(x) ((x) << SGLWREEPROMINT_S)
126762306a36Sopenharmony_ci#define SGLWREEPROMINT_F    SGLWREEPROMINT_V(1U)
126862306a36Sopenharmony_ci
126962306a36Sopenharmony_ci#define SGLRDEEPROMINT_S    14
127062306a36Sopenharmony_ci#define SGLRDEEPROMINT_V(x) ((x) << SGLRDEEPROMINT_S)
127162306a36Sopenharmony_ci#define SGLRDEEPROMINT_F    SGLRDEEPROMINT_V(1U)
127262306a36Sopenharmony_ci
127362306a36Sopenharmony_ci#define BLKWRFLASHINT_S    13
127462306a36Sopenharmony_ci#define BLKWRFLASHINT_V(x) ((x) << BLKWRFLASHINT_S)
127562306a36Sopenharmony_ci#define BLKWRFLASHINT_F    BLKWRFLASHINT_V(1U)
127662306a36Sopenharmony_ci
127762306a36Sopenharmony_ci#define BLKRDFLASHINT_S    12
127862306a36Sopenharmony_ci#define BLKRDFLASHINT_V(x) ((x) << BLKRDFLASHINT_S)
127962306a36Sopenharmony_ci#define BLKRDFLASHINT_F    BLKRDFLASHINT_V(1U)
128062306a36Sopenharmony_ci
128162306a36Sopenharmony_ci#define SGLWRFLASHINT_S    11
128262306a36Sopenharmony_ci#define SGLWRFLASHINT_V(x) ((x) << SGLWRFLASHINT_S)
128362306a36Sopenharmony_ci#define SGLWRFLASHINT_F    SGLWRFLASHINT_V(1U)
128462306a36Sopenharmony_ci
128562306a36Sopenharmony_ci#define SGLRDFLASHINT_S    10
128662306a36Sopenharmony_ci#define SGLRDFLASHINT_V(x) ((x) << SGLRDFLASHINT_S)
128762306a36Sopenharmony_ci#define SGLRDFLASHINT_F    SGLRDFLASHINT_V(1U)
128862306a36Sopenharmony_ci
128962306a36Sopenharmony_ci#define BLKWRBOOTINT_S    9
129062306a36Sopenharmony_ci#define BLKWRBOOTINT_V(x) ((x) << BLKWRBOOTINT_S)
129162306a36Sopenharmony_ci#define BLKWRBOOTINT_F    BLKWRBOOTINT_V(1U)
129262306a36Sopenharmony_ci
129362306a36Sopenharmony_ci#define BLKRDBOOTINT_S    8
129462306a36Sopenharmony_ci#define BLKRDBOOTINT_V(x) ((x) << BLKRDBOOTINT_S)
129562306a36Sopenharmony_ci#define BLKRDBOOTINT_F    BLKRDBOOTINT_V(1U)
129662306a36Sopenharmony_ci
129762306a36Sopenharmony_ci#define SGLWRBOOTINT_S    7
129862306a36Sopenharmony_ci#define SGLWRBOOTINT_V(x) ((x) << SGLWRBOOTINT_S)
129962306a36Sopenharmony_ci#define SGLWRBOOTINT_F    SGLWRBOOTINT_V(1U)
130062306a36Sopenharmony_ci
130162306a36Sopenharmony_ci#define SGLRDBOOTINT_S    6
130262306a36Sopenharmony_ci#define SGLRDBOOTINT_V(x) ((x) << SGLRDBOOTINT_S)
130362306a36Sopenharmony_ci#define SGLRDBOOTINT_F    SGLRDBOOTINT_V(1U)
130462306a36Sopenharmony_ci
130562306a36Sopenharmony_ci#define ILLWRBEINT_S    5
130662306a36Sopenharmony_ci#define ILLWRBEINT_V(x) ((x) << ILLWRBEINT_S)
130762306a36Sopenharmony_ci#define ILLWRBEINT_F    ILLWRBEINT_V(1U)
130862306a36Sopenharmony_ci
130962306a36Sopenharmony_ci#define ILLRDBEINT_S    4
131062306a36Sopenharmony_ci#define ILLRDBEINT_V(x) ((x) << ILLRDBEINT_S)
131162306a36Sopenharmony_ci#define ILLRDBEINT_F    ILLRDBEINT_V(1U)
131262306a36Sopenharmony_ci
131362306a36Sopenharmony_ci#define ILLRDINT_S    3
131462306a36Sopenharmony_ci#define ILLRDINT_V(x) ((x) << ILLRDINT_S)
131562306a36Sopenharmony_ci#define ILLRDINT_F    ILLRDINT_V(1U)
131662306a36Sopenharmony_ci
131762306a36Sopenharmony_ci#define ILLWRINT_S    2
131862306a36Sopenharmony_ci#define ILLWRINT_V(x) ((x) << ILLWRINT_S)
131962306a36Sopenharmony_ci#define ILLWRINT_F    ILLWRINT_V(1U)
132062306a36Sopenharmony_ci
132162306a36Sopenharmony_ci#define ILLTRANSINT_S    1
132262306a36Sopenharmony_ci#define ILLTRANSINT_V(x) ((x) << ILLTRANSINT_S)
132362306a36Sopenharmony_ci#define ILLTRANSINT_F    ILLTRANSINT_V(1U)
132462306a36Sopenharmony_ci
132562306a36Sopenharmony_ci#define RSVDSPACEINT_S    0
132662306a36Sopenharmony_ci#define RSVDSPACEINT_V(x) ((x) << RSVDSPACEINT_S)
132762306a36Sopenharmony_ci#define RSVDSPACEINT_F    RSVDSPACEINT_V(1U)
132862306a36Sopenharmony_ci
132962306a36Sopenharmony_ci/* registers for module TP */
133062306a36Sopenharmony_ci#define DBGLAWHLF_S    23
133162306a36Sopenharmony_ci#define DBGLAWHLF_V(x) ((x) << DBGLAWHLF_S)
133262306a36Sopenharmony_ci#define DBGLAWHLF_F    DBGLAWHLF_V(1U)
133362306a36Sopenharmony_ci
133462306a36Sopenharmony_ci#define DBGLAWPTR_S    16
133562306a36Sopenharmony_ci#define DBGLAWPTR_M    0x7fU
133662306a36Sopenharmony_ci#define DBGLAWPTR_G(x) (((x) >> DBGLAWPTR_S) & DBGLAWPTR_M)
133762306a36Sopenharmony_ci
133862306a36Sopenharmony_ci#define DBGLAENABLE_S    12
133962306a36Sopenharmony_ci#define DBGLAENABLE_V(x) ((x) << DBGLAENABLE_S)
134062306a36Sopenharmony_ci#define DBGLAENABLE_F    DBGLAENABLE_V(1U)
134162306a36Sopenharmony_ci
134262306a36Sopenharmony_ci#define DBGLARPTR_S    0
134362306a36Sopenharmony_ci#define DBGLARPTR_M    0x7fU
134462306a36Sopenharmony_ci#define DBGLARPTR_V(x) ((x) << DBGLARPTR_S)
134562306a36Sopenharmony_ci
134662306a36Sopenharmony_ci#define CRXPKTENC_S    3
134762306a36Sopenharmony_ci#define CRXPKTENC_V(x) ((x) << CRXPKTENC_S)
134862306a36Sopenharmony_ci#define CRXPKTENC_F    CRXPKTENC_V(1U)
134962306a36Sopenharmony_ci
135062306a36Sopenharmony_ci#define TP_DBG_LA_DATAL_A	0x7ed8
135162306a36Sopenharmony_ci#define TP_DBG_LA_CONFIG_A	0x7ed4
135262306a36Sopenharmony_ci#define TP_OUT_CONFIG_A		0x7d04
135362306a36Sopenharmony_ci#define TP_GLOBAL_CONFIG_A	0x7d08
135462306a36Sopenharmony_ci
135562306a36Sopenharmony_ci#define ACTIVEFILTERCOUNTS_S    22
135662306a36Sopenharmony_ci#define ACTIVEFILTERCOUNTS_V(x) ((x) << ACTIVEFILTERCOUNTS_S)
135762306a36Sopenharmony_ci#define ACTIVEFILTERCOUNTS_F    ACTIVEFILTERCOUNTS_V(1U)
135862306a36Sopenharmony_ci
135962306a36Sopenharmony_ci#define TP_CMM_TCB_BASE_A 0x7d10
136062306a36Sopenharmony_ci#define TP_CMM_MM_BASE_A 0x7d14
136162306a36Sopenharmony_ci#define TP_CMM_TIMER_BASE_A 0x7d18
136262306a36Sopenharmony_ci#define TP_PMM_TX_BASE_A 0x7d20
136362306a36Sopenharmony_ci#define TP_PMM_RX_BASE_A 0x7d28
136462306a36Sopenharmony_ci#define TP_PMM_RX_PAGE_SIZE_A 0x7d2c
136562306a36Sopenharmony_ci#define TP_PMM_RX_MAX_PAGE_A 0x7d30
136662306a36Sopenharmony_ci#define TP_PMM_TX_PAGE_SIZE_A 0x7d34
136762306a36Sopenharmony_ci#define TP_PMM_TX_MAX_PAGE_A 0x7d38
136862306a36Sopenharmony_ci#define TP_CMM_MM_MAX_PSTRUCT_A 0x7e6c
136962306a36Sopenharmony_ci
137062306a36Sopenharmony_ci#define PMRXNUMCHN_S    31
137162306a36Sopenharmony_ci#define PMRXNUMCHN_V(x) ((x) << PMRXNUMCHN_S)
137262306a36Sopenharmony_ci#define PMRXNUMCHN_F    PMRXNUMCHN_V(1U)
137362306a36Sopenharmony_ci
137462306a36Sopenharmony_ci#define PMTXNUMCHN_S    30
137562306a36Sopenharmony_ci#define PMTXNUMCHN_M    0x3U
137662306a36Sopenharmony_ci#define PMTXNUMCHN_G(x) (((x) >> PMTXNUMCHN_S) & PMTXNUMCHN_M)
137762306a36Sopenharmony_ci
137862306a36Sopenharmony_ci#define PMTXMAXPAGE_S    0
137962306a36Sopenharmony_ci#define PMTXMAXPAGE_M    0x1fffffU
138062306a36Sopenharmony_ci#define PMTXMAXPAGE_G(x) (((x) >> PMTXMAXPAGE_S) & PMTXMAXPAGE_M)
138162306a36Sopenharmony_ci
138262306a36Sopenharmony_ci#define PMRXMAXPAGE_S    0
138362306a36Sopenharmony_ci#define PMRXMAXPAGE_M    0x1fffffU
138462306a36Sopenharmony_ci#define PMRXMAXPAGE_G(x) (((x) >> PMRXMAXPAGE_S) & PMRXMAXPAGE_M)
138562306a36Sopenharmony_ci
138662306a36Sopenharmony_ci#define DBGLAMODE_S	14
138762306a36Sopenharmony_ci#define DBGLAMODE_M	0x3U
138862306a36Sopenharmony_ci#define DBGLAMODE_G(x)	(((x) >> DBGLAMODE_S) & DBGLAMODE_M)
138962306a36Sopenharmony_ci
139062306a36Sopenharmony_ci#define FIVETUPLELOOKUP_S    17
139162306a36Sopenharmony_ci#define FIVETUPLELOOKUP_M    0x3U
139262306a36Sopenharmony_ci#define FIVETUPLELOOKUP_V(x) ((x) << FIVETUPLELOOKUP_S)
139362306a36Sopenharmony_ci#define FIVETUPLELOOKUP_G(x) (((x) >> FIVETUPLELOOKUP_S) & FIVETUPLELOOKUP_M)
139462306a36Sopenharmony_ci
139562306a36Sopenharmony_ci#define TP_PARA_REG2_A 0x7d68
139662306a36Sopenharmony_ci
139762306a36Sopenharmony_ci#define MAXRXDATA_S    16
139862306a36Sopenharmony_ci#define MAXRXDATA_M    0xffffU
139962306a36Sopenharmony_ci#define MAXRXDATA_G(x) (((x) >> MAXRXDATA_S) & MAXRXDATA_M)
140062306a36Sopenharmony_ci
140162306a36Sopenharmony_ci#define TP_TIMER_RESOLUTION_A 0x7d90
140262306a36Sopenharmony_ci
140362306a36Sopenharmony_ci#define TIMERRESOLUTION_S    16
140462306a36Sopenharmony_ci#define TIMERRESOLUTION_M    0xffU
140562306a36Sopenharmony_ci#define TIMERRESOLUTION_G(x) (((x) >> TIMERRESOLUTION_S) & TIMERRESOLUTION_M)
140662306a36Sopenharmony_ci
140762306a36Sopenharmony_ci#define TIMESTAMPRESOLUTION_S    8
140862306a36Sopenharmony_ci#define TIMESTAMPRESOLUTION_M    0xffU
140962306a36Sopenharmony_ci#define TIMESTAMPRESOLUTION_G(x) \
141062306a36Sopenharmony_ci	(((x) >> TIMESTAMPRESOLUTION_S) & TIMESTAMPRESOLUTION_M)
141162306a36Sopenharmony_ci
141262306a36Sopenharmony_ci#define DELAYEDACKRESOLUTION_S    0
141362306a36Sopenharmony_ci#define DELAYEDACKRESOLUTION_M    0xffU
141462306a36Sopenharmony_ci#define DELAYEDACKRESOLUTION_G(x) \
141562306a36Sopenharmony_ci	(((x) >> DELAYEDACKRESOLUTION_S) & DELAYEDACKRESOLUTION_M)
141662306a36Sopenharmony_ci
141762306a36Sopenharmony_ci#define TP_SHIFT_CNT_A 0x7dc0
141862306a36Sopenharmony_ci#define TP_RXT_MIN_A 0x7d98
141962306a36Sopenharmony_ci#define TP_RXT_MAX_A 0x7d9c
142062306a36Sopenharmony_ci#define TP_PERS_MIN_A 0x7da0
142162306a36Sopenharmony_ci#define TP_PERS_MAX_A 0x7da4
142262306a36Sopenharmony_ci#define TP_KEEP_IDLE_A 0x7da8
142362306a36Sopenharmony_ci#define TP_KEEP_INTVL_A 0x7dac
142462306a36Sopenharmony_ci#define TP_INIT_SRTT_A 0x7db0
142562306a36Sopenharmony_ci#define TP_DACK_TIMER_A 0x7db4
142662306a36Sopenharmony_ci#define TP_FINWAIT2_TIMER_A 0x7db8
142762306a36Sopenharmony_ci
142862306a36Sopenharmony_ci#define INITSRTT_S    0
142962306a36Sopenharmony_ci#define INITSRTT_M    0xffffU
143062306a36Sopenharmony_ci#define INITSRTT_G(x) (((x) >> INITSRTT_S) & INITSRTT_M)
143162306a36Sopenharmony_ci
143262306a36Sopenharmony_ci#define PERSMAX_S    0
143362306a36Sopenharmony_ci#define PERSMAX_M    0x3fffffffU
143462306a36Sopenharmony_ci#define PERSMAX_V(x) ((x) << PERSMAX_S)
143562306a36Sopenharmony_ci#define PERSMAX_G(x) (((x) >> PERSMAX_S) & PERSMAX_M)
143662306a36Sopenharmony_ci
143762306a36Sopenharmony_ci#define SYNSHIFTMAX_S    24
143862306a36Sopenharmony_ci#define SYNSHIFTMAX_M    0xffU
143962306a36Sopenharmony_ci#define SYNSHIFTMAX_V(x) ((x) << SYNSHIFTMAX_S)
144062306a36Sopenharmony_ci#define SYNSHIFTMAX_G(x) (((x) >> SYNSHIFTMAX_S) & SYNSHIFTMAX_M)
144162306a36Sopenharmony_ci
144262306a36Sopenharmony_ci#define RXTSHIFTMAXR1_S    20
144362306a36Sopenharmony_ci#define RXTSHIFTMAXR1_M    0xfU
144462306a36Sopenharmony_ci#define RXTSHIFTMAXR1_V(x) ((x) << RXTSHIFTMAXR1_S)
144562306a36Sopenharmony_ci#define RXTSHIFTMAXR1_G(x) (((x) >> RXTSHIFTMAXR1_S) & RXTSHIFTMAXR1_M)
144662306a36Sopenharmony_ci
144762306a36Sopenharmony_ci#define RXTSHIFTMAXR2_S    16
144862306a36Sopenharmony_ci#define RXTSHIFTMAXR2_M    0xfU
144962306a36Sopenharmony_ci#define RXTSHIFTMAXR2_V(x) ((x) << RXTSHIFTMAXR2_S)
145062306a36Sopenharmony_ci#define RXTSHIFTMAXR2_G(x) (((x) >> RXTSHIFTMAXR2_S) & RXTSHIFTMAXR2_M)
145162306a36Sopenharmony_ci
145262306a36Sopenharmony_ci#define PERSHIFTBACKOFFMAX_S    12
145362306a36Sopenharmony_ci#define PERSHIFTBACKOFFMAX_M    0xfU
145462306a36Sopenharmony_ci#define PERSHIFTBACKOFFMAX_V(x) ((x) << PERSHIFTBACKOFFMAX_S)
145562306a36Sopenharmony_ci#define PERSHIFTBACKOFFMAX_G(x) \
145662306a36Sopenharmony_ci	(((x) >> PERSHIFTBACKOFFMAX_S) & PERSHIFTBACKOFFMAX_M)
145762306a36Sopenharmony_ci
145862306a36Sopenharmony_ci#define PERSHIFTMAX_S    8
145962306a36Sopenharmony_ci#define PERSHIFTMAX_M    0xfU
146062306a36Sopenharmony_ci#define PERSHIFTMAX_V(x) ((x) << PERSHIFTMAX_S)
146162306a36Sopenharmony_ci#define PERSHIFTMAX_G(x) (((x) >> PERSHIFTMAX_S) & PERSHIFTMAX_M)
146262306a36Sopenharmony_ci
146362306a36Sopenharmony_ci#define KEEPALIVEMAXR1_S    4
146462306a36Sopenharmony_ci#define KEEPALIVEMAXR1_M    0xfU
146562306a36Sopenharmony_ci#define KEEPALIVEMAXR1_V(x) ((x) << KEEPALIVEMAXR1_S)
146662306a36Sopenharmony_ci#define KEEPALIVEMAXR1_G(x) (((x) >> KEEPALIVEMAXR1_S) & KEEPALIVEMAXR1_M)
146762306a36Sopenharmony_ci
146862306a36Sopenharmony_ci#define KEEPALIVEMAXR2_S    0
146962306a36Sopenharmony_ci#define KEEPALIVEMAXR2_M    0xfU
147062306a36Sopenharmony_ci#define KEEPALIVEMAXR2_V(x) ((x) << KEEPALIVEMAXR2_S)
147162306a36Sopenharmony_ci#define KEEPALIVEMAXR2_G(x) (((x) >> KEEPALIVEMAXR2_S) & KEEPALIVEMAXR2_M)
147262306a36Sopenharmony_ci
147362306a36Sopenharmony_ci#define ROWINDEX_S    16
147462306a36Sopenharmony_ci#define ROWINDEX_V(x) ((x) << ROWINDEX_S)
147562306a36Sopenharmony_ci
147662306a36Sopenharmony_ci#define TP_CCTRL_TABLE_A	0x7ddc
147762306a36Sopenharmony_ci#define TP_PACE_TABLE_A 0x7dd8
147862306a36Sopenharmony_ci#define TP_MTU_TABLE_A		0x7de4
147962306a36Sopenharmony_ci
148062306a36Sopenharmony_ci#define MTUINDEX_S    24
148162306a36Sopenharmony_ci#define MTUINDEX_V(x) ((x) << MTUINDEX_S)
148262306a36Sopenharmony_ci
148362306a36Sopenharmony_ci#define MTUWIDTH_S    16
148462306a36Sopenharmony_ci#define MTUWIDTH_M    0xfU
148562306a36Sopenharmony_ci#define MTUWIDTH_V(x) ((x) << MTUWIDTH_S)
148662306a36Sopenharmony_ci#define MTUWIDTH_G(x) (((x) >> MTUWIDTH_S) & MTUWIDTH_M)
148762306a36Sopenharmony_ci
148862306a36Sopenharmony_ci#define MTUVALUE_S    0
148962306a36Sopenharmony_ci#define MTUVALUE_M    0x3fffU
149062306a36Sopenharmony_ci#define MTUVALUE_V(x) ((x) << MTUVALUE_S)
149162306a36Sopenharmony_ci#define MTUVALUE_G(x) (((x) >> MTUVALUE_S) & MTUVALUE_M)
149262306a36Sopenharmony_ci
149362306a36Sopenharmony_ci#define TP_RSS_LKP_TABLE_A	0x7dec
149462306a36Sopenharmony_ci#define TP_CMM_MM_RX_FLST_BASE_A 0x7e60
149562306a36Sopenharmony_ci#define TP_CMM_MM_TX_FLST_BASE_A 0x7e64
149662306a36Sopenharmony_ci#define TP_CMM_MM_PS_FLST_BASE_A 0x7e68
149762306a36Sopenharmony_ci
149862306a36Sopenharmony_ci#define LKPTBLROWVLD_S    31
149962306a36Sopenharmony_ci#define LKPTBLROWVLD_V(x) ((x) << LKPTBLROWVLD_S)
150062306a36Sopenharmony_ci#define LKPTBLROWVLD_F    LKPTBLROWVLD_V(1U)
150162306a36Sopenharmony_ci
150262306a36Sopenharmony_ci#define LKPTBLQUEUE1_S    10
150362306a36Sopenharmony_ci#define LKPTBLQUEUE1_M    0x3ffU
150462306a36Sopenharmony_ci#define LKPTBLQUEUE1_G(x) (((x) >> LKPTBLQUEUE1_S) & LKPTBLQUEUE1_M)
150562306a36Sopenharmony_ci
150662306a36Sopenharmony_ci#define LKPTBLQUEUE0_S    0
150762306a36Sopenharmony_ci#define LKPTBLQUEUE0_M    0x3ffU
150862306a36Sopenharmony_ci#define LKPTBLQUEUE0_G(x) (((x) >> LKPTBLQUEUE0_S) & LKPTBLQUEUE0_M)
150962306a36Sopenharmony_ci
151062306a36Sopenharmony_ci#define TP_TM_PIO_ADDR_A 0x7e18
151162306a36Sopenharmony_ci#define TP_TM_PIO_DATA_A 0x7e1c
151262306a36Sopenharmony_ci#define TP_MOD_CONFIG_A 0x7e24
151362306a36Sopenharmony_ci
151462306a36Sopenharmony_ci#define TIMERMODE_S    8
151562306a36Sopenharmony_ci#define TIMERMODE_M    0xffU
151662306a36Sopenharmony_ci#define TIMERMODE_G(x) (((x) >> TIMERMODE_S) & TIMERMODE_M)
151762306a36Sopenharmony_ci
151862306a36Sopenharmony_ci#define TP_TX_MOD_Q1_Q0_TIMER_SEPARATOR_A 0x3
151962306a36Sopenharmony_ci#define TP_TX_MOD_Q1_Q0_RATE_LIMIT_A 0x8
152062306a36Sopenharmony_ci
152162306a36Sopenharmony_ci#define TP_PIO_ADDR_A	0x7e40
152262306a36Sopenharmony_ci#define TP_PIO_DATA_A	0x7e44
152362306a36Sopenharmony_ci#define TP_MIB_INDEX_A	0x7e50
152462306a36Sopenharmony_ci#define TP_MIB_DATA_A	0x7e54
152562306a36Sopenharmony_ci#define TP_INT_CAUSE_A	0x7e74
152662306a36Sopenharmony_ci
152762306a36Sopenharmony_ci#define TP_FLM_FREE_PS_CNT_A 0x7e80
152862306a36Sopenharmony_ci#define TP_FLM_FREE_RX_CNT_A 0x7e84
152962306a36Sopenharmony_ci
153062306a36Sopenharmony_ci#define FREEPSTRUCTCOUNT_S    0
153162306a36Sopenharmony_ci#define FREEPSTRUCTCOUNT_M    0x1fffffU
153262306a36Sopenharmony_ci#define FREEPSTRUCTCOUNT_G(x) (((x) >> FREEPSTRUCTCOUNT_S) & FREEPSTRUCTCOUNT_M)
153362306a36Sopenharmony_ci
153462306a36Sopenharmony_ci#define FREERXPAGECOUNT_S    0
153562306a36Sopenharmony_ci#define FREERXPAGECOUNT_M    0x1fffffU
153662306a36Sopenharmony_ci#define FREERXPAGECOUNT_V(x) ((x) << FREERXPAGECOUNT_S)
153762306a36Sopenharmony_ci#define FREERXPAGECOUNT_G(x) (((x) >> FREERXPAGECOUNT_S) & FREERXPAGECOUNT_M)
153862306a36Sopenharmony_ci
153962306a36Sopenharmony_ci#define TP_FLM_FREE_TX_CNT_A 0x7e88
154062306a36Sopenharmony_ci
154162306a36Sopenharmony_ci#define FREETXPAGECOUNT_S    0
154262306a36Sopenharmony_ci#define FREETXPAGECOUNT_M    0x1fffffU
154362306a36Sopenharmony_ci#define FREETXPAGECOUNT_V(x) ((x) << FREETXPAGECOUNT_S)
154462306a36Sopenharmony_ci#define FREETXPAGECOUNT_G(x) (((x) >> FREETXPAGECOUNT_S) & FREETXPAGECOUNT_M)
154562306a36Sopenharmony_ci
154662306a36Sopenharmony_ci#define FLMTXFLSTEMPTY_S    30
154762306a36Sopenharmony_ci#define FLMTXFLSTEMPTY_V(x) ((x) << FLMTXFLSTEMPTY_S)
154862306a36Sopenharmony_ci#define FLMTXFLSTEMPTY_F    FLMTXFLSTEMPTY_V(1U)
154962306a36Sopenharmony_ci
155062306a36Sopenharmony_ci#define TP_TX_ORATE_A 0x7ebc
155162306a36Sopenharmony_ci
155262306a36Sopenharmony_ci#define OFDRATE3_S    24
155362306a36Sopenharmony_ci#define OFDRATE3_M    0xffU
155462306a36Sopenharmony_ci#define OFDRATE3_G(x) (((x) >> OFDRATE3_S) & OFDRATE3_M)
155562306a36Sopenharmony_ci
155662306a36Sopenharmony_ci#define OFDRATE2_S    16
155762306a36Sopenharmony_ci#define OFDRATE2_M    0xffU
155862306a36Sopenharmony_ci#define OFDRATE2_G(x) (((x) >> OFDRATE2_S) & OFDRATE2_M)
155962306a36Sopenharmony_ci
156062306a36Sopenharmony_ci#define OFDRATE1_S    8
156162306a36Sopenharmony_ci#define OFDRATE1_M    0xffU
156262306a36Sopenharmony_ci#define OFDRATE1_G(x) (((x) >> OFDRATE1_S) & OFDRATE1_M)
156362306a36Sopenharmony_ci
156462306a36Sopenharmony_ci#define OFDRATE0_S    0
156562306a36Sopenharmony_ci#define OFDRATE0_M    0xffU
156662306a36Sopenharmony_ci#define OFDRATE0_G(x) (((x) >> OFDRATE0_S) & OFDRATE0_M)
156762306a36Sopenharmony_ci
156862306a36Sopenharmony_ci#define TP_TX_TRATE_A 0x7ed0
156962306a36Sopenharmony_ci
157062306a36Sopenharmony_ci#define TNLRATE3_S    24
157162306a36Sopenharmony_ci#define TNLRATE3_M    0xffU
157262306a36Sopenharmony_ci#define TNLRATE3_G(x) (((x) >> TNLRATE3_S) & TNLRATE3_M)
157362306a36Sopenharmony_ci
157462306a36Sopenharmony_ci#define TNLRATE2_S    16
157562306a36Sopenharmony_ci#define TNLRATE2_M    0xffU
157662306a36Sopenharmony_ci#define TNLRATE2_G(x) (((x) >> TNLRATE2_S) & TNLRATE2_M)
157762306a36Sopenharmony_ci
157862306a36Sopenharmony_ci#define TNLRATE1_S    8
157962306a36Sopenharmony_ci#define TNLRATE1_M    0xffU
158062306a36Sopenharmony_ci#define TNLRATE1_G(x) (((x) >> TNLRATE1_S) & TNLRATE1_M)
158162306a36Sopenharmony_ci
158262306a36Sopenharmony_ci#define TNLRATE0_S    0
158362306a36Sopenharmony_ci#define TNLRATE0_M    0xffU
158462306a36Sopenharmony_ci#define TNLRATE0_G(x) (((x) >> TNLRATE0_S) & TNLRATE0_M)
158562306a36Sopenharmony_ci
158662306a36Sopenharmony_ci#define TP_VLAN_PRI_MAP_A 0x140
158762306a36Sopenharmony_ci
158862306a36Sopenharmony_ci#define FRAGMENTATION_S    9
158962306a36Sopenharmony_ci#define FRAGMENTATION_V(x) ((x) << FRAGMENTATION_S)
159062306a36Sopenharmony_ci#define FRAGMENTATION_F    FRAGMENTATION_V(1U)
159162306a36Sopenharmony_ci
159262306a36Sopenharmony_ci#define MPSHITTYPE_S    8
159362306a36Sopenharmony_ci#define MPSHITTYPE_V(x) ((x) << MPSHITTYPE_S)
159462306a36Sopenharmony_ci#define MPSHITTYPE_F    MPSHITTYPE_V(1U)
159562306a36Sopenharmony_ci
159662306a36Sopenharmony_ci#define MACMATCH_S    7
159762306a36Sopenharmony_ci#define MACMATCH_V(x) ((x) << MACMATCH_S)
159862306a36Sopenharmony_ci#define MACMATCH_F    MACMATCH_V(1U)
159962306a36Sopenharmony_ci
160062306a36Sopenharmony_ci#define ETHERTYPE_S    6
160162306a36Sopenharmony_ci#define ETHERTYPE_V(x) ((x) << ETHERTYPE_S)
160262306a36Sopenharmony_ci#define ETHERTYPE_F    ETHERTYPE_V(1U)
160362306a36Sopenharmony_ci
160462306a36Sopenharmony_ci#define PROTOCOL_S    5
160562306a36Sopenharmony_ci#define PROTOCOL_V(x) ((x) << PROTOCOL_S)
160662306a36Sopenharmony_ci#define PROTOCOL_F    PROTOCOL_V(1U)
160762306a36Sopenharmony_ci
160862306a36Sopenharmony_ci#define TOS_S    4
160962306a36Sopenharmony_ci#define TOS_V(x) ((x) << TOS_S)
161062306a36Sopenharmony_ci#define TOS_F    TOS_V(1U)
161162306a36Sopenharmony_ci
161262306a36Sopenharmony_ci#define VLAN_S    3
161362306a36Sopenharmony_ci#define VLAN_V(x) ((x) << VLAN_S)
161462306a36Sopenharmony_ci#define VLAN_F    VLAN_V(1U)
161562306a36Sopenharmony_ci
161662306a36Sopenharmony_ci#define VNIC_ID_S    2
161762306a36Sopenharmony_ci#define VNIC_ID_V(x) ((x) << VNIC_ID_S)
161862306a36Sopenharmony_ci#define VNIC_ID_F    VNIC_ID_V(1U)
161962306a36Sopenharmony_ci
162062306a36Sopenharmony_ci#define PORT_S    1
162162306a36Sopenharmony_ci#define PORT_V(x) ((x) << PORT_S)
162262306a36Sopenharmony_ci#define PORT_F    PORT_V(1U)
162362306a36Sopenharmony_ci
162462306a36Sopenharmony_ci#define FCOE_S    0
162562306a36Sopenharmony_ci#define FCOE_V(x) ((x) << FCOE_S)
162662306a36Sopenharmony_ci#define FCOE_F    FCOE_V(1U)
162762306a36Sopenharmony_ci
162862306a36Sopenharmony_ci#define FILTERMODE_S    15
162962306a36Sopenharmony_ci#define FILTERMODE_V(x) ((x) << FILTERMODE_S)
163062306a36Sopenharmony_ci#define FILTERMODE_F    FILTERMODE_V(1U)
163162306a36Sopenharmony_ci
163262306a36Sopenharmony_ci#define FCOEMASK_S    14
163362306a36Sopenharmony_ci#define FCOEMASK_V(x) ((x) << FCOEMASK_S)
163462306a36Sopenharmony_ci#define FCOEMASK_F    FCOEMASK_V(1U)
163562306a36Sopenharmony_ci
163662306a36Sopenharmony_ci#define TP_INGRESS_CONFIG_A	0x141
163762306a36Sopenharmony_ci
163862306a36Sopenharmony_ci#define VNIC_S    11
163962306a36Sopenharmony_ci#define VNIC_V(x) ((x) << VNIC_S)
164062306a36Sopenharmony_ci#define VNIC_F    VNIC_V(1U)
164162306a36Sopenharmony_ci
164262306a36Sopenharmony_ci#define USE_ENC_IDX_S		13
164362306a36Sopenharmony_ci#define USE_ENC_IDX_V(x)	((x) << USE_ENC_IDX_S)
164462306a36Sopenharmony_ci#define USE_ENC_IDX_F		USE_ENC_IDX_V(1U)
164562306a36Sopenharmony_ci
164662306a36Sopenharmony_ci#define CSUM_HAS_PSEUDO_HDR_S    10
164762306a36Sopenharmony_ci#define CSUM_HAS_PSEUDO_HDR_V(x) ((x) << CSUM_HAS_PSEUDO_HDR_S)
164862306a36Sopenharmony_ci#define CSUM_HAS_PSEUDO_HDR_F    CSUM_HAS_PSEUDO_HDR_V(1U)
164962306a36Sopenharmony_ci
165062306a36Sopenharmony_ci#define TP_MIB_MAC_IN_ERR_0_A	0x0
165162306a36Sopenharmony_ci#define TP_MIB_HDR_IN_ERR_0_A	0x4
165262306a36Sopenharmony_ci#define TP_MIB_TCP_IN_ERR_0_A	0x8
165362306a36Sopenharmony_ci#define TP_MIB_TCP_OUT_RST_A	0xc
165462306a36Sopenharmony_ci#define TP_MIB_TCP_IN_SEG_HI_A	0x10
165562306a36Sopenharmony_ci#define TP_MIB_TCP_IN_SEG_LO_A	0x11
165662306a36Sopenharmony_ci#define TP_MIB_TCP_OUT_SEG_HI_A	0x12
165762306a36Sopenharmony_ci#define TP_MIB_TCP_OUT_SEG_LO_A 0x13
165862306a36Sopenharmony_ci#define TP_MIB_TCP_RXT_SEG_HI_A	0x14
165962306a36Sopenharmony_ci#define TP_MIB_TCP_RXT_SEG_LO_A	0x15
166062306a36Sopenharmony_ci#define TP_MIB_TNL_CNG_DROP_0_A 0x18
166162306a36Sopenharmony_ci#define TP_MIB_OFD_CHN_DROP_0_A 0x1c
166262306a36Sopenharmony_ci#define TP_MIB_TCP_V6IN_ERR_0_A 0x28
166362306a36Sopenharmony_ci#define TP_MIB_TCP_V6OUT_RST_A	0x2c
166462306a36Sopenharmony_ci#define TP_MIB_OFD_ARP_DROP_A	0x36
166562306a36Sopenharmony_ci#define TP_MIB_CPL_IN_REQ_0_A	0x38
166662306a36Sopenharmony_ci#define TP_MIB_CPL_OUT_RSP_0_A	0x3c
166762306a36Sopenharmony_ci#define TP_MIB_TNL_DROP_0_A	0x44
166862306a36Sopenharmony_ci#define TP_MIB_FCOE_DDP_0_A	0x48
166962306a36Sopenharmony_ci#define TP_MIB_FCOE_DROP_0_A	0x4c
167062306a36Sopenharmony_ci#define TP_MIB_FCOE_BYTE_0_HI_A	0x50
167162306a36Sopenharmony_ci#define TP_MIB_OFD_VLN_DROP_0_A	0x58
167262306a36Sopenharmony_ci#define TP_MIB_USM_PKTS_A	0x5c
167362306a36Sopenharmony_ci#define TP_MIB_RQE_DFR_PKT_A	0x64
167462306a36Sopenharmony_ci
167562306a36Sopenharmony_ci#define ULP_TX_INT_CAUSE_A	0x8dcc
167662306a36Sopenharmony_ci#define ULP_TX_TPT_LLIMIT_A	0x8dd4
167762306a36Sopenharmony_ci#define ULP_TX_TPT_ULIMIT_A	0x8dd8
167862306a36Sopenharmony_ci#define ULP_TX_PBL_LLIMIT_A	0x8ddc
167962306a36Sopenharmony_ci#define ULP_TX_PBL_ULIMIT_A	0x8de0
168062306a36Sopenharmony_ci#define ULP_TX_ERR_TABLE_BASE_A 0x8e04
168162306a36Sopenharmony_ci
168262306a36Sopenharmony_ci#define PBL_BOUND_ERR_CH3_S    31
168362306a36Sopenharmony_ci#define PBL_BOUND_ERR_CH3_V(x) ((x) << PBL_BOUND_ERR_CH3_S)
168462306a36Sopenharmony_ci#define PBL_BOUND_ERR_CH3_F    PBL_BOUND_ERR_CH3_V(1U)
168562306a36Sopenharmony_ci
168662306a36Sopenharmony_ci#define PBL_BOUND_ERR_CH2_S    30
168762306a36Sopenharmony_ci#define PBL_BOUND_ERR_CH2_V(x) ((x) << PBL_BOUND_ERR_CH2_S)
168862306a36Sopenharmony_ci#define PBL_BOUND_ERR_CH2_F    PBL_BOUND_ERR_CH2_V(1U)
168962306a36Sopenharmony_ci
169062306a36Sopenharmony_ci#define PBL_BOUND_ERR_CH1_S    29
169162306a36Sopenharmony_ci#define PBL_BOUND_ERR_CH1_V(x) ((x) << PBL_BOUND_ERR_CH1_S)
169262306a36Sopenharmony_ci#define PBL_BOUND_ERR_CH1_F    PBL_BOUND_ERR_CH1_V(1U)
169362306a36Sopenharmony_ci
169462306a36Sopenharmony_ci#define PBL_BOUND_ERR_CH0_S    28
169562306a36Sopenharmony_ci#define PBL_BOUND_ERR_CH0_V(x) ((x) << PBL_BOUND_ERR_CH0_S)
169662306a36Sopenharmony_ci#define PBL_BOUND_ERR_CH0_F    PBL_BOUND_ERR_CH0_V(1U)
169762306a36Sopenharmony_ci
169862306a36Sopenharmony_ci#define PM_RX_INT_CAUSE_A	0x8fdc
169962306a36Sopenharmony_ci#define PM_RX_STAT_CONFIG_A 0x8fc8
170062306a36Sopenharmony_ci#define PM_RX_STAT_COUNT_A 0x8fcc
170162306a36Sopenharmony_ci#define PM_RX_STAT_LSB_A 0x8fd0
170262306a36Sopenharmony_ci#define PM_RX_DBG_CTRL_A 0x8fd0
170362306a36Sopenharmony_ci#define PM_RX_DBG_DATA_A 0x8fd4
170462306a36Sopenharmony_ci#define PM_RX_DBG_STAT_MSB_A 0x10013
170562306a36Sopenharmony_ci
170662306a36Sopenharmony_ci#define PMRX_FRAMING_ERROR_F	0x003ffff0U
170762306a36Sopenharmony_ci
170862306a36Sopenharmony_ci#define ZERO_E_CMD_ERROR_S    22
170962306a36Sopenharmony_ci#define ZERO_E_CMD_ERROR_V(x) ((x) << ZERO_E_CMD_ERROR_S)
171062306a36Sopenharmony_ci#define ZERO_E_CMD_ERROR_F    ZERO_E_CMD_ERROR_V(1U)
171162306a36Sopenharmony_ci
171262306a36Sopenharmony_ci#define OCSPI_PAR_ERROR_S    3
171362306a36Sopenharmony_ci#define OCSPI_PAR_ERROR_V(x) ((x) << OCSPI_PAR_ERROR_S)
171462306a36Sopenharmony_ci#define OCSPI_PAR_ERROR_F    OCSPI_PAR_ERROR_V(1U)
171562306a36Sopenharmony_ci
171662306a36Sopenharmony_ci#define DB_OPTIONS_PAR_ERROR_S    2
171762306a36Sopenharmony_ci#define DB_OPTIONS_PAR_ERROR_V(x) ((x) << DB_OPTIONS_PAR_ERROR_S)
171862306a36Sopenharmony_ci#define DB_OPTIONS_PAR_ERROR_F    DB_OPTIONS_PAR_ERROR_V(1U)
171962306a36Sopenharmony_ci
172062306a36Sopenharmony_ci#define IESPI_PAR_ERROR_S    1
172162306a36Sopenharmony_ci#define IESPI_PAR_ERROR_V(x) ((x) << IESPI_PAR_ERROR_S)
172262306a36Sopenharmony_ci#define IESPI_PAR_ERROR_F    IESPI_PAR_ERROR_V(1U)
172362306a36Sopenharmony_ci
172462306a36Sopenharmony_ci#define ULP_TX_LA_RDPTR_0_A 0x8ec0
172562306a36Sopenharmony_ci#define ULP_TX_LA_RDDATA_0_A 0x8ec4
172662306a36Sopenharmony_ci#define ULP_TX_LA_WRPTR_0_A 0x8ec8
172762306a36Sopenharmony_ci#define ULP_TX_ASIC_DEBUG_CTRL_A 0x8f70
172862306a36Sopenharmony_ci
172962306a36Sopenharmony_ci#define ULP_TX_ASIC_DEBUG_0_A 0x8f74
173062306a36Sopenharmony_ci#define ULP_TX_ASIC_DEBUG_1_A 0x8f78
173162306a36Sopenharmony_ci#define ULP_TX_ASIC_DEBUG_2_A 0x8f7c
173262306a36Sopenharmony_ci#define ULP_TX_ASIC_DEBUG_3_A 0x8f80
173362306a36Sopenharmony_ci#define ULP_TX_ASIC_DEBUG_4_A 0x8f84
173462306a36Sopenharmony_ci
173562306a36Sopenharmony_ci/* registers for module PM_RX */
173662306a36Sopenharmony_ci#define PM_RX_BASE_ADDR 0x8fc0
173762306a36Sopenharmony_ci
173862306a36Sopenharmony_ci#define PMRX_E_PCMD_PAR_ERROR_S    0
173962306a36Sopenharmony_ci#define PMRX_E_PCMD_PAR_ERROR_V(x) ((x) << PMRX_E_PCMD_PAR_ERROR_S)
174062306a36Sopenharmony_ci#define PMRX_E_PCMD_PAR_ERROR_F    PMRX_E_PCMD_PAR_ERROR_V(1U)
174162306a36Sopenharmony_ci
174262306a36Sopenharmony_ci#define PM_TX_INT_CAUSE_A	0x8ffc
174362306a36Sopenharmony_ci#define PM_TX_STAT_CONFIG_A 0x8fe8
174462306a36Sopenharmony_ci#define PM_TX_STAT_COUNT_A 0x8fec
174562306a36Sopenharmony_ci#define PM_TX_STAT_LSB_A 0x8ff0
174662306a36Sopenharmony_ci#define PM_TX_DBG_CTRL_A 0x8ff0
174762306a36Sopenharmony_ci#define PM_TX_DBG_DATA_A 0x8ff4
174862306a36Sopenharmony_ci#define PM_TX_DBG_STAT_MSB_A 0x1001a
174962306a36Sopenharmony_ci
175062306a36Sopenharmony_ci#define PCMD_LEN_OVFL0_S    31
175162306a36Sopenharmony_ci#define PCMD_LEN_OVFL0_V(x) ((x) << PCMD_LEN_OVFL0_S)
175262306a36Sopenharmony_ci#define PCMD_LEN_OVFL0_F    PCMD_LEN_OVFL0_V(1U)
175362306a36Sopenharmony_ci
175462306a36Sopenharmony_ci#define PCMD_LEN_OVFL1_S    30
175562306a36Sopenharmony_ci#define PCMD_LEN_OVFL1_V(x) ((x) << PCMD_LEN_OVFL1_S)
175662306a36Sopenharmony_ci#define PCMD_LEN_OVFL1_F    PCMD_LEN_OVFL1_V(1U)
175762306a36Sopenharmony_ci
175862306a36Sopenharmony_ci#define PCMD_LEN_OVFL2_S    29
175962306a36Sopenharmony_ci#define PCMD_LEN_OVFL2_V(x) ((x) << PCMD_LEN_OVFL2_S)
176062306a36Sopenharmony_ci#define PCMD_LEN_OVFL2_F    PCMD_LEN_OVFL2_V(1U)
176162306a36Sopenharmony_ci
176262306a36Sopenharmony_ci#define ZERO_C_CMD_ERROR_S    28
176362306a36Sopenharmony_ci#define ZERO_C_CMD_ERROR_V(x) ((x) << ZERO_C_CMD_ERROR_S)
176462306a36Sopenharmony_ci#define ZERO_C_CMD_ERROR_F    ZERO_C_CMD_ERROR_V(1U)
176562306a36Sopenharmony_ci
176662306a36Sopenharmony_ci#define  PMTX_FRAMING_ERROR_F 0x0ffffff0U
176762306a36Sopenharmony_ci
176862306a36Sopenharmony_ci#define OESPI_PAR_ERROR_S    3
176962306a36Sopenharmony_ci#define OESPI_PAR_ERROR_V(x) ((x) << OESPI_PAR_ERROR_S)
177062306a36Sopenharmony_ci#define OESPI_PAR_ERROR_F    OESPI_PAR_ERROR_V(1U)
177162306a36Sopenharmony_ci
177262306a36Sopenharmony_ci#define ICSPI_PAR_ERROR_S    1
177362306a36Sopenharmony_ci#define ICSPI_PAR_ERROR_V(x) ((x) << ICSPI_PAR_ERROR_S)
177462306a36Sopenharmony_ci#define ICSPI_PAR_ERROR_F    ICSPI_PAR_ERROR_V(1U)
177562306a36Sopenharmony_ci
177662306a36Sopenharmony_ci#define PMTX_C_PCMD_PAR_ERROR_S    0
177762306a36Sopenharmony_ci#define PMTX_C_PCMD_PAR_ERROR_V(x) ((x) << PMTX_C_PCMD_PAR_ERROR_S)
177862306a36Sopenharmony_ci#define PMTX_C_PCMD_PAR_ERROR_F    PMTX_C_PCMD_PAR_ERROR_V(1U)
177962306a36Sopenharmony_ci
178062306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_BYTES_L 0x400
178162306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_BYTES_H 0x404
178262306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_FRAMES_L 0x408
178362306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_FRAMES_H 0x40c
178462306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_BCAST_L 0x410
178562306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_BCAST_H 0x414
178662306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_MCAST_L 0x418
178762306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_MCAST_H 0x41c
178862306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_UCAST_L 0x420
178962306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_UCAST_H 0x424
179062306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_ERROR_L 0x428
179162306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_ERROR_H 0x42c
179262306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_64B_L 0x430
179362306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_64B_H 0x434
179462306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_65B_127B_L 0x438
179562306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_65B_127B_H 0x43c
179662306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_128B_255B_L 0x440
179762306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_128B_255B_H 0x444
179862306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_256B_511B_L 0x448
179962306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_256B_511B_H 0x44c
180062306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_512B_1023B_L 0x450
180162306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_512B_1023B_H 0x454
180262306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_1024B_1518B_L 0x458
180362306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_1024B_1518B_H 0x45c
180462306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_1519B_MAX_L 0x460
180562306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_1519B_MAX_H 0x464
180662306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_DROP_L 0x468
180762306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_DROP_H 0x46c
180862306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_PAUSE_L 0x470
180962306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_PAUSE_H 0x474
181062306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_PPP0_L 0x478
181162306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_PPP0_H 0x47c
181262306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_PPP1_L 0x480
181362306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_PPP1_H 0x484
181462306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_PPP2_L 0x488
181562306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_PPP2_H 0x48c
181662306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_PPP3_L 0x490
181762306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_PPP3_H 0x494
181862306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_PPP4_L 0x498
181962306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_PPP4_H 0x49c
182062306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_PPP5_L 0x4a0
182162306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_PPP5_H 0x4a4
182262306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_PPP6_L 0x4a8
182362306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_PPP6_H 0x4ac
182462306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_PPP7_L 0x4b0
182562306a36Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_PPP7_H 0x4b4
182662306a36Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_BYTES_L 0x4c0
182762306a36Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_BYTES_H 0x4c4
182862306a36Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_FRAMES_L 0x4c8
182962306a36Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_FRAMES_H 0x4cc
183062306a36Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_BCAST_L 0x4d0
183162306a36Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_BCAST_H 0x4d4
183262306a36Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_MCAST_L 0x4d8
183362306a36Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_MCAST_H 0x4dc
183462306a36Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_UCAST_L 0x4e0
183562306a36Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_UCAST_H 0x4e4
183662306a36Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_ERROR_L 0x4e8
183762306a36Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_ERROR_H 0x4ec
183862306a36Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_64B_L 0x4f0
183962306a36Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_64B_H 0x4f4
184062306a36Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_65B_127B_L 0x4f8
184162306a36Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_65B_127B_H 0x4fc
184262306a36Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_128B_255B_L 0x500
184362306a36Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_128B_255B_H 0x504
184462306a36Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_256B_511B_L 0x508
184562306a36Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_256B_511B_H 0x50c
184662306a36Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_512B_1023B_L 0x510
184762306a36Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_512B_1023B_H 0x514
184862306a36Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_1024B_1518B_L 0x518
184962306a36Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_1024B_1518B_H 0x51c
185062306a36Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_1519B_MAX_L 0x520
185162306a36Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_1519B_MAX_H 0x524
185262306a36Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_DROP_FRAMES 0x528
185362306a36Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_DROP_FRAMES_L 0x528
185462306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_BYTES_L 0x540
185562306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_BYTES_H 0x544
185662306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_FRAMES_L 0x548
185762306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_FRAMES_H 0x54c
185862306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_BCAST_L 0x550
185962306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_BCAST_H 0x554
186062306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_MCAST_L 0x558
186162306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_MCAST_H 0x55c
186262306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_UCAST_L 0x560
186362306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_UCAST_H 0x564
186462306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_MTU_ERROR_L 0x568
186562306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_MTU_ERROR_H 0x56c
186662306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_MTU_CRC_ERROR_L 0x570
186762306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_MTU_CRC_ERROR_H 0x574
186862306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_CRC_ERROR_L 0x578
186962306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_CRC_ERROR_H 0x57c
187062306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_LEN_ERROR_L 0x580
187162306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_LEN_ERROR_H 0x584
187262306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_SYM_ERROR_L 0x588
187362306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_SYM_ERROR_H 0x58c
187462306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_64B_L 0x590
187562306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_64B_H 0x594
187662306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_65B_127B_L 0x598
187762306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_65B_127B_H 0x59c
187862306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_128B_255B_L 0x5a0
187962306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_128B_255B_H 0x5a4
188062306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_256B_511B_L 0x5a8
188162306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_256B_511B_H 0x5ac
188262306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_512B_1023B_L 0x5b0
188362306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_512B_1023B_H 0x5b4
188462306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_1024B_1518B_L 0x5b8
188562306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_1024B_1518B_H 0x5bc
188662306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_1519B_MAX_L 0x5c0
188762306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_1519B_MAX_H 0x5c4
188862306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_PAUSE_L 0x5c8
188962306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_PAUSE_H 0x5cc
189062306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_PPP0_L 0x5d0
189162306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_PPP0_H 0x5d4
189262306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_PPP1_L 0x5d8
189362306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_PPP1_H 0x5dc
189462306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_PPP2_L 0x5e0
189562306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_PPP2_H 0x5e4
189662306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_PPP3_L 0x5e8
189762306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_PPP3_H 0x5ec
189862306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_PPP4_L 0x5f0
189962306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_PPP4_H 0x5f4
190062306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_PPP5_L 0x5f8
190162306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_PPP5_H 0x5fc
190262306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_PPP6_L 0x600
190362306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_PPP6_H 0x604
190462306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_PPP7_L 0x608
190562306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_PPP7_H 0x60c
190662306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_LESS_64B_L 0x610
190762306a36Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_LESS_64B_H 0x614
190862306a36Sopenharmony_ci#define MAC_PORT_MAGIC_MACID_LO 0x824
190962306a36Sopenharmony_ci#define MAC_PORT_MAGIC_MACID_HI 0x828
191062306a36Sopenharmony_ci#define MAC_PORT_TX_TS_VAL_LO   0x928
191162306a36Sopenharmony_ci#define MAC_PORT_TX_TS_VAL_HI   0x92c
191262306a36Sopenharmony_ci
191362306a36Sopenharmony_ci#define MAC_PORT_EPIO_DATA0_A 0x8c0
191462306a36Sopenharmony_ci#define MAC_PORT_EPIO_DATA1_A 0x8c4
191562306a36Sopenharmony_ci#define MAC_PORT_EPIO_DATA2_A 0x8c8
191662306a36Sopenharmony_ci#define MAC_PORT_EPIO_DATA3_A 0x8cc
191762306a36Sopenharmony_ci#define MAC_PORT_EPIO_OP_A 0x8d0
191862306a36Sopenharmony_ci
191962306a36Sopenharmony_ci#define MAC_PORT_CFG2_A 0x818
192062306a36Sopenharmony_ci
192162306a36Sopenharmony_ci#define MAC_PORT_PTP_SUM_LO_A 0x990
192262306a36Sopenharmony_ci#define MAC_PORT_PTP_SUM_HI_A 0x994
192362306a36Sopenharmony_ci
192462306a36Sopenharmony_ci#define MPS_CMN_CTL_A	0x9000
192562306a36Sopenharmony_ci
192662306a36Sopenharmony_ci#define COUNTPAUSEMCRX_S    5
192762306a36Sopenharmony_ci#define COUNTPAUSEMCRX_V(x) ((x) << COUNTPAUSEMCRX_S)
192862306a36Sopenharmony_ci#define COUNTPAUSEMCRX_F    COUNTPAUSEMCRX_V(1U)
192962306a36Sopenharmony_ci
193062306a36Sopenharmony_ci#define COUNTPAUSESTATRX_S    4
193162306a36Sopenharmony_ci#define COUNTPAUSESTATRX_V(x) ((x) << COUNTPAUSESTATRX_S)
193262306a36Sopenharmony_ci#define COUNTPAUSESTATRX_F    COUNTPAUSESTATRX_V(1U)
193362306a36Sopenharmony_ci
193462306a36Sopenharmony_ci#define COUNTPAUSEMCTX_S    3
193562306a36Sopenharmony_ci#define COUNTPAUSEMCTX_V(x) ((x) << COUNTPAUSEMCTX_S)
193662306a36Sopenharmony_ci#define COUNTPAUSEMCTX_F    COUNTPAUSEMCTX_V(1U)
193762306a36Sopenharmony_ci
193862306a36Sopenharmony_ci#define COUNTPAUSESTATTX_S    2
193962306a36Sopenharmony_ci#define COUNTPAUSESTATTX_V(x) ((x) << COUNTPAUSESTATTX_S)
194062306a36Sopenharmony_ci#define COUNTPAUSESTATTX_F    COUNTPAUSESTATTX_V(1U)
194162306a36Sopenharmony_ci
194262306a36Sopenharmony_ci#define NUMPORTS_S    0
194362306a36Sopenharmony_ci#define NUMPORTS_M    0x3U
194462306a36Sopenharmony_ci#define NUMPORTS_G(x) (((x) >> NUMPORTS_S) & NUMPORTS_M)
194562306a36Sopenharmony_ci
194662306a36Sopenharmony_ci#define MPS_INT_CAUSE_A 0x9008
194762306a36Sopenharmony_ci#define MPS_TX_INT_CAUSE_A 0x9408
194862306a36Sopenharmony_ci#define MPS_STAT_CTL_A 0x9600
194962306a36Sopenharmony_ci
195062306a36Sopenharmony_ci#define FRMERR_S    15
195162306a36Sopenharmony_ci#define FRMERR_V(x) ((x) << FRMERR_S)
195262306a36Sopenharmony_ci#define FRMERR_F    FRMERR_V(1U)
195362306a36Sopenharmony_ci
195462306a36Sopenharmony_ci#define SECNTERR_S    14
195562306a36Sopenharmony_ci#define SECNTERR_V(x) ((x) << SECNTERR_S)
195662306a36Sopenharmony_ci#define SECNTERR_F    SECNTERR_V(1U)
195762306a36Sopenharmony_ci
195862306a36Sopenharmony_ci#define BUBBLE_S    13
195962306a36Sopenharmony_ci#define BUBBLE_V(x) ((x) << BUBBLE_S)
196062306a36Sopenharmony_ci#define BUBBLE_F    BUBBLE_V(1U)
196162306a36Sopenharmony_ci
196262306a36Sopenharmony_ci#define TXDESCFIFO_S    9
196362306a36Sopenharmony_ci#define TXDESCFIFO_M    0xfU
196462306a36Sopenharmony_ci#define TXDESCFIFO_V(x) ((x) << TXDESCFIFO_S)
196562306a36Sopenharmony_ci
196662306a36Sopenharmony_ci#define TXDATAFIFO_S    5
196762306a36Sopenharmony_ci#define TXDATAFIFO_M    0xfU
196862306a36Sopenharmony_ci#define TXDATAFIFO_V(x) ((x) << TXDATAFIFO_S)
196962306a36Sopenharmony_ci
197062306a36Sopenharmony_ci#define NCSIFIFO_S    4
197162306a36Sopenharmony_ci#define NCSIFIFO_V(x) ((x) << NCSIFIFO_S)
197262306a36Sopenharmony_ci#define NCSIFIFO_F    NCSIFIFO_V(1U)
197362306a36Sopenharmony_ci
197462306a36Sopenharmony_ci#define TPFIFO_S    0
197562306a36Sopenharmony_ci#define TPFIFO_M    0xfU
197662306a36Sopenharmony_ci#define TPFIFO_V(x) ((x) << TPFIFO_S)
197762306a36Sopenharmony_ci
197862306a36Sopenharmony_ci#define MPS_STAT_PERR_INT_CAUSE_SRAM_A		0x9614
197962306a36Sopenharmony_ci#define MPS_STAT_PERR_INT_CAUSE_TX_FIFO_A	0x9620
198062306a36Sopenharmony_ci#define MPS_STAT_PERR_INT_CAUSE_RX_FIFO_A	0x962c
198162306a36Sopenharmony_ci
198262306a36Sopenharmony_ci#define MPS_STAT_RX_BG_0_MAC_DROP_FRAME_L 0x9640
198362306a36Sopenharmony_ci#define MPS_STAT_RX_BG_0_MAC_DROP_FRAME_H 0x9644
198462306a36Sopenharmony_ci#define MPS_STAT_RX_BG_1_MAC_DROP_FRAME_L 0x9648
198562306a36Sopenharmony_ci#define MPS_STAT_RX_BG_1_MAC_DROP_FRAME_H 0x964c
198662306a36Sopenharmony_ci#define MPS_STAT_RX_BG_2_MAC_DROP_FRAME_L 0x9650
198762306a36Sopenharmony_ci#define MPS_STAT_RX_BG_2_MAC_DROP_FRAME_H 0x9654
198862306a36Sopenharmony_ci#define MPS_STAT_RX_BG_3_MAC_DROP_FRAME_L 0x9658
198962306a36Sopenharmony_ci#define MPS_STAT_RX_BG_3_MAC_DROP_FRAME_H 0x965c
199062306a36Sopenharmony_ci#define MPS_STAT_RX_BG_0_LB_DROP_FRAME_L 0x9660
199162306a36Sopenharmony_ci#define MPS_STAT_RX_BG_0_LB_DROP_FRAME_H 0x9664
199262306a36Sopenharmony_ci#define MPS_STAT_RX_BG_1_LB_DROP_FRAME_L 0x9668
199362306a36Sopenharmony_ci#define MPS_STAT_RX_BG_1_LB_DROP_FRAME_H 0x966c
199462306a36Sopenharmony_ci#define MPS_STAT_RX_BG_2_LB_DROP_FRAME_L 0x9670
199562306a36Sopenharmony_ci#define MPS_STAT_RX_BG_2_LB_DROP_FRAME_H 0x9674
199662306a36Sopenharmony_ci#define MPS_STAT_RX_BG_3_LB_DROP_FRAME_L 0x9678
199762306a36Sopenharmony_ci#define MPS_STAT_RX_BG_3_LB_DROP_FRAME_H 0x967c
199862306a36Sopenharmony_ci#define MPS_STAT_RX_BG_0_MAC_TRUNC_FRAME_L 0x9680
199962306a36Sopenharmony_ci#define MPS_STAT_RX_BG_0_MAC_TRUNC_FRAME_H 0x9684
200062306a36Sopenharmony_ci#define MPS_STAT_RX_BG_1_MAC_TRUNC_FRAME_L 0x9688
200162306a36Sopenharmony_ci#define MPS_STAT_RX_BG_1_MAC_TRUNC_FRAME_H 0x968c
200262306a36Sopenharmony_ci#define MPS_STAT_RX_BG_2_MAC_TRUNC_FRAME_L 0x9690
200362306a36Sopenharmony_ci#define MPS_STAT_RX_BG_2_MAC_TRUNC_FRAME_H 0x9694
200462306a36Sopenharmony_ci#define MPS_STAT_RX_BG_3_MAC_TRUNC_FRAME_L 0x9698
200562306a36Sopenharmony_ci#define MPS_STAT_RX_BG_3_MAC_TRUNC_FRAME_H 0x969c
200662306a36Sopenharmony_ci#define MPS_STAT_RX_BG_0_LB_TRUNC_FRAME_L 0x96a0
200762306a36Sopenharmony_ci#define MPS_STAT_RX_BG_0_LB_TRUNC_FRAME_H 0x96a4
200862306a36Sopenharmony_ci#define MPS_STAT_RX_BG_1_LB_TRUNC_FRAME_L 0x96a8
200962306a36Sopenharmony_ci#define MPS_STAT_RX_BG_1_LB_TRUNC_FRAME_H 0x96ac
201062306a36Sopenharmony_ci#define MPS_STAT_RX_BG_2_LB_TRUNC_FRAME_L 0x96b0
201162306a36Sopenharmony_ci#define MPS_STAT_RX_BG_2_LB_TRUNC_FRAME_H 0x96b4
201262306a36Sopenharmony_ci#define MPS_STAT_RX_BG_3_LB_TRUNC_FRAME_L 0x96b8
201362306a36Sopenharmony_ci#define MPS_STAT_RX_BG_3_LB_TRUNC_FRAME_H 0x96bc
201462306a36Sopenharmony_ci
201562306a36Sopenharmony_ci#define MPS_TRC_CFG_A 0x9800
201662306a36Sopenharmony_ci
201762306a36Sopenharmony_ci#define TRCFIFOEMPTY_S    4
201862306a36Sopenharmony_ci#define TRCFIFOEMPTY_V(x) ((x) << TRCFIFOEMPTY_S)
201962306a36Sopenharmony_ci#define TRCFIFOEMPTY_F    TRCFIFOEMPTY_V(1U)
202062306a36Sopenharmony_ci
202162306a36Sopenharmony_ci#define TRCIGNOREDROPINPUT_S    3
202262306a36Sopenharmony_ci#define TRCIGNOREDROPINPUT_V(x) ((x) << TRCIGNOREDROPINPUT_S)
202362306a36Sopenharmony_ci#define TRCIGNOREDROPINPUT_F    TRCIGNOREDROPINPUT_V(1U)
202462306a36Sopenharmony_ci
202562306a36Sopenharmony_ci#define TRCKEEPDUPLICATES_S    2
202662306a36Sopenharmony_ci#define TRCKEEPDUPLICATES_V(x) ((x) << TRCKEEPDUPLICATES_S)
202762306a36Sopenharmony_ci#define TRCKEEPDUPLICATES_F    TRCKEEPDUPLICATES_V(1U)
202862306a36Sopenharmony_ci
202962306a36Sopenharmony_ci#define TRCEN_S    1
203062306a36Sopenharmony_ci#define TRCEN_V(x) ((x) << TRCEN_S)
203162306a36Sopenharmony_ci#define TRCEN_F    TRCEN_V(1U)
203262306a36Sopenharmony_ci
203362306a36Sopenharmony_ci#define TRCMULTIFILTER_S    0
203462306a36Sopenharmony_ci#define TRCMULTIFILTER_V(x) ((x) << TRCMULTIFILTER_S)
203562306a36Sopenharmony_ci#define TRCMULTIFILTER_F    TRCMULTIFILTER_V(1U)
203662306a36Sopenharmony_ci
203762306a36Sopenharmony_ci#define MPS_TRC_RSS_CONTROL_A		0x9808
203862306a36Sopenharmony_ci#define MPS_TRC_FILTER1_RSS_CONTROL_A	0x9ff4
203962306a36Sopenharmony_ci#define MPS_TRC_FILTER2_RSS_CONTROL_A	0x9ffc
204062306a36Sopenharmony_ci#define MPS_TRC_FILTER3_RSS_CONTROL_A	0xa004
204162306a36Sopenharmony_ci#define MPS_T5_TRC_RSS_CONTROL_A	0xa00c
204262306a36Sopenharmony_ci
204362306a36Sopenharmony_ci#define RSSCONTROL_S    16
204462306a36Sopenharmony_ci#define RSSCONTROL_V(x) ((x) << RSSCONTROL_S)
204562306a36Sopenharmony_ci
204662306a36Sopenharmony_ci#define QUEUENUMBER_S    0
204762306a36Sopenharmony_ci#define QUEUENUMBER_V(x) ((x) << QUEUENUMBER_S)
204862306a36Sopenharmony_ci
204962306a36Sopenharmony_ci#define TFINVERTMATCH_S    24
205062306a36Sopenharmony_ci#define TFINVERTMATCH_V(x) ((x) << TFINVERTMATCH_S)
205162306a36Sopenharmony_ci#define TFINVERTMATCH_F    TFINVERTMATCH_V(1U)
205262306a36Sopenharmony_ci
205362306a36Sopenharmony_ci#define TFEN_S    22
205462306a36Sopenharmony_ci#define TFEN_V(x) ((x) << TFEN_S)
205562306a36Sopenharmony_ci#define TFEN_F    TFEN_V(1U)
205662306a36Sopenharmony_ci
205762306a36Sopenharmony_ci#define TFPORT_S    18
205862306a36Sopenharmony_ci#define TFPORT_M    0xfU
205962306a36Sopenharmony_ci#define TFPORT_V(x) ((x) << TFPORT_S)
206062306a36Sopenharmony_ci#define TFPORT_G(x) (((x) >> TFPORT_S) & TFPORT_M)
206162306a36Sopenharmony_ci
206262306a36Sopenharmony_ci#define TFLENGTH_S    8
206362306a36Sopenharmony_ci#define TFLENGTH_M    0x1fU
206462306a36Sopenharmony_ci#define TFLENGTH_V(x) ((x) << TFLENGTH_S)
206562306a36Sopenharmony_ci#define TFLENGTH_G(x) (((x) >> TFLENGTH_S) & TFLENGTH_M)
206662306a36Sopenharmony_ci
206762306a36Sopenharmony_ci#define TFOFFSET_S    0
206862306a36Sopenharmony_ci#define TFOFFSET_M    0x1fU
206962306a36Sopenharmony_ci#define TFOFFSET_V(x) ((x) << TFOFFSET_S)
207062306a36Sopenharmony_ci#define TFOFFSET_G(x) (((x) >> TFOFFSET_S) & TFOFFSET_M)
207162306a36Sopenharmony_ci
207262306a36Sopenharmony_ci#define T5_TFINVERTMATCH_S    25
207362306a36Sopenharmony_ci#define T5_TFINVERTMATCH_V(x) ((x) << T5_TFINVERTMATCH_S)
207462306a36Sopenharmony_ci#define T5_TFINVERTMATCH_F    T5_TFINVERTMATCH_V(1U)
207562306a36Sopenharmony_ci
207662306a36Sopenharmony_ci#define T5_TFEN_S    23
207762306a36Sopenharmony_ci#define T5_TFEN_V(x) ((x) << T5_TFEN_S)
207862306a36Sopenharmony_ci#define T5_TFEN_F    T5_TFEN_V(1U)
207962306a36Sopenharmony_ci
208062306a36Sopenharmony_ci#define T5_TFPORT_S    18
208162306a36Sopenharmony_ci#define T5_TFPORT_M    0x1fU
208262306a36Sopenharmony_ci#define T5_TFPORT_V(x) ((x) << T5_TFPORT_S)
208362306a36Sopenharmony_ci#define T5_TFPORT_G(x) (((x) >> T5_TFPORT_S) & T5_TFPORT_M)
208462306a36Sopenharmony_ci
208562306a36Sopenharmony_ci#define MPS_TRC_FILTER_MATCH_CTL_A_A 0x9810
208662306a36Sopenharmony_ci#define MPS_TRC_FILTER_MATCH_CTL_B_A 0x9820
208762306a36Sopenharmony_ci
208862306a36Sopenharmony_ci#define TFMINPKTSIZE_S    16
208962306a36Sopenharmony_ci#define TFMINPKTSIZE_M    0x1ffU
209062306a36Sopenharmony_ci#define TFMINPKTSIZE_V(x) ((x) << TFMINPKTSIZE_S)
209162306a36Sopenharmony_ci#define TFMINPKTSIZE_G(x) (((x) >> TFMINPKTSIZE_S) & TFMINPKTSIZE_M)
209262306a36Sopenharmony_ci
209362306a36Sopenharmony_ci#define TFCAPTUREMAX_S    0
209462306a36Sopenharmony_ci#define TFCAPTUREMAX_M    0x3fffU
209562306a36Sopenharmony_ci#define TFCAPTUREMAX_V(x) ((x) << TFCAPTUREMAX_S)
209662306a36Sopenharmony_ci#define TFCAPTUREMAX_G(x) (((x) >> TFCAPTUREMAX_S) & TFCAPTUREMAX_M)
209762306a36Sopenharmony_ci
209862306a36Sopenharmony_ci#define MPS_TRC_FILTER0_MATCH_A 0x9c00
209962306a36Sopenharmony_ci#define MPS_TRC_FILTER0_DONT_CARE_A 0x9c80
210062306a36Sopenharmony_ci#define MPS_TRC_FILTER1_MATCH_A 0x9d00
210162306a36Sopenharmony_ci
210262306a36Sopenharmony_ci#define TP_RSS_CONFIG_A 0x7df0
210362306a36Sopenharmony_ci
210462306a36Sopenharmony_ci#define TNL4TUPENIPV6_S    31
210562306a36Sopenharmony_ci#define TNL4TUPENIPV6_V(x) ((x) << TNL4TUPENIPV6_S)
210662306a36Sopenharmony_ci#define TNL4TUPENIPV6_F    TNL4TUPENIPV6_V(1U)
210762306a36Sopenharmony_ci
210862306a36Sopenharmony_ci#define TNL2TUPENIPV6_S    30
210962306a36Sopenharmony_ci#define TNL2TUPENIPV6_V(x) ((x) << TNL2TUPENIPV6_S)
211062306a36Sopenharmony_ci#define TNL2TUPENIPV6_F    TNL2TUPENIPV6_V(1U)
211162306a36Sopenharmony_ci
211262306a36Sopenharmony_ci#define TNL4TUPENIPV4_S    29
211362306a36Sopenharmony_ci#define TNL4TUPENIPV4_V(x) ((x) << TNL4TUPENIPV4_S)
211462306a36Sopenharmony_ci#define TNL4TUPENIPV4_F    TNL4TUPENIPV4_V(1U)
211562306a36Sopenharmony_ci
211662306a36Sopenharmony_ci#define TNL2TUPENIPV4_S    28
211762306a36Sopenharmony_ci#define TNL2TUPENIPV4_V(x) ((x) << TNL2TUPENIPV4_S)
211862306a36Sopenharmony_ci#define TNL2TUPENIPV4_F    TNL2TUPENIPV4_V(1U)
211962306a36Sopenharmony_ci
212062306a36Sopenharmony_ci#define TNLTCPSEL_S    27
212162306a36Sopenharmony_ci#define TNLTCPSEL_V(x) ((x) << TNLTCPSEL_S)
212262306a36Sopenharmony_ci#define TNLTCPSEL_F    TNLTCPSEL_V(1U)
212362306a36Sopenharmony_ci
212462306a36Sopenharmony_ci#define TNLIP6SEL_S    26
212562306a36Sopenharmony_ci#define TNLIP6SEL_V(x) ((x) << TNLIP6SEL_S)
212662306a36Sopenharmony_ci#define TNLIP6SEL_F    TNLIP6SEL_V(1U)
212762306a36Sopenharmony_ci
212862306a36Sopenharmony_ci#define TNLVRTSEL_S    25
212962306a36Sopenharmony_ci#define TNLVRTSEL_V(x) ((x) << TNLVRTSEL_S)
213062306a36Sopenharmony_ci#define TNLVRTSEL_F    TNLVRTSEL_V(1U)
213162306a36Sopenharmony_ci
213262306a36Sopenharmony_ci#define TNLMAPEN_S    24
213362306a36Sopenharmony_ci#define TNLMAPEN_V(x) ((x) << TNLMAPEN_S)
213462306a36Sopenharmony_ci#define TNLMAPEN_F    TNLMAPEN_V(1U)
213562306a36Sopenharmony_ci
213662306a36Sopenharmony_ci#define OFDHASHSAVE_S    19
213762306a36Sopenharmony_ci#define OFDHASHSAVE_V(x) ((x) << OFDHASHSAVE_S)
213862306a36Sopenharmony_ci#define OFDHASHSAVE_F    OFDHASHSAVE_V(1U)
213962306a36Sopenharmony_ci
214062306a36Sopenharmony_ci#define OFDVRTSEL_S    18
214162306a36Sopenharmony_ci#define OFDVRTSEL_V(x) ((x) << OFDVRTSEL_S)
214262306a36Sopenharmony_ci#define OFDVRTSEL_F    OFDVRTSEL_V(1U)
214362306a36Sopenharmony_ci
214462306a36Sopenharmony_ci#define OFDMAPEN_S    17
214562306a36Sopenharmony_ci#define OFDMAPEN_V(x) ((x) << OFDMAPEN_S)
214662306a36Sopenharmony_ci#define OFDMAPEN_F    OFDMAPEN_V(1U)
214762306a36Sopenharmony_ci
214862306a36Sopenharmony_ci#define OFDLKPEN_S    16
214962306a36Sopenharmony_ci#define OFDLKPEN_V(x) ((x) << OFDLKPEN_S)
215062306a36Sopenharmony_ci#define OFDLKPEN_F    OFDLKPEN_V(1U)
215162306a36Sopenharmony_ci
215262306a36Sopenharmony_ci#define SYN4TUPENIPV6_S    15
215362306a36Sopenharmony_ci#define SYN4TUPENIPV6_V(x) ((x) << SYN4TUPENIPV6_S)
215462306a36Sopenharmony_ci#define SYN4TUPENIPV6_F    SYN4TUPENIPV6_V(1U)
215562306a36Sopenharmony_ci
215662306a36Sopenharmony_ci#define SYN2TUPENIPV6_S    14
215762306a36Sopenharmony_ci#define SYN2TUPENIPV6_V(x) ((x) << SYN2TUPENIPV6_S)
215862306a36Sopenharmony_ci#define SYN2TUPENIPV6_F    SYN2TUPENIPV6_V(1U)
215962306a36Sopenharmony_ci
216062306a36Sopenharmony_ci#define SYN4TUPENIPV4_S    13
216162306a36Sopenharmony_ci#define SYN4TUPENIPV4_V(x) ((x) << SYN4TUPENIPV4_S)
216262306a36Sopenharmony_ci#define SYN4TUPENIPV4_F    SYN4TUPENIPV4_V(1U)
216362306a36Sopenharmony_ci
216462306a36Sopenharmony_ci#define SYN2TUPENIPV4_S    12
216562306a36Sopenharmony_ci#define SYN2TUPENIPV4_V(x) ((x) << SYN2TUPENIPV4_S)
216662306a36Sopenharmony_ci#define SYN2TUPENIPV4_F    SYN2TUPENIPV4_V(1U)
216762306a36Sopenharmony_ci
216862306a36Sopenharmony_ci#define SYNIP6SEL_S    11
216962306a36Sopenharmony_ci#define SYNIP6SEL_V(x) ((x) << SYNIP6SEL_S)
217062306a36Sopenharmony_ci#define SYNIP6SEL_F    SYNIP6SEL_V(1U)
217162306a36Sopenharmony_ci
217262306a36Sopenharmony_ci#define SYNVRTSEL_S    10
217362306a36Sopenharmony_ci#define SYNVRTSEL_V(x) ((x) << SYNVRTSEL_S)
217462306a36Sopenharmony_ci#define SYNVRTSEL_F    SYNVRTSEL_V(1U)
217562306a36Sopenharmony_ci
217662306a36Sopenharmony_ci#define SYNMAPEN_S    9
217762306a36Sopenharmony_ci#define SYNMAPEN_V(x) ((x) << SYNMAPEN_S)
217862306a36Sopenharmony_ci#define SYNMAPEN_F    SYNMAPEN_V(1U)
217962306a36Sopenharmony_ci
218062306a36Sopenharmony_ci#define SYNLKPEN_S    8
218162306a36Sopenharmony_ci#define SYNLKPEN_V(x) ((x) << SYNLKPEN_S)
218262306a36Sopenharmony_ci#define SYNLKPEN_F    SYNLKPEN_V(1U)
218362306a36Sopenharmony_ci
218462306a36Sopenharmony_ci#define CHANNELENABLE_S    7
218562306a36Sopenharmony_ci#define CHANNELENABLE_V(x) ((x) << CHANNELENABLE_S)
218662306a36Sopenharmony_ci#define CHANNELENABLE_F    CHANNELENABLE_V(1U)
218762306a36Sopenharmony_ci
218862306a36Sopenharmony_ci#define PORTENABLE_S    6
218962306a36Sopenharmony_ci#define PORTENABLE_V(x) ((x) << PORTENABLE_S)
219062306a36Sopenharmony_ci#define PORTENABLE_F    PORTENABLE_V(1U)
219162306a36Sopenharmony_ci
219262306a36Sopenharmony_ci#define TNLALLLOOKUP_S    5
219362306a36Sopenharmony_ci#define TNLALLLOOKUP_V(x) ((x) << TNLALLLOOKUP_S)
219462306a36Sopenharmony_ci#define TNLALLLOOKUP_F    TNLALLLOOKUP_V(1U)
219562306a36Sopenharmony_ci
219662306a36Sopenharmony_ci#define VIRTENABLE_S    4
219762306a36Sopenharmony_ci#define VIRTENABLE_V(x) ((x) << VIRTENABLE_S)
219862306a36Sopenharmony_ci#define VIRTENABLE_F    VIRTENABLE_V(1U)
219962306a36Sopenharmony_ci
220062306a36Sopenharmony_ci#define CONGESTIONENABLE_S    3
220162306a36Sopenharmony_ci#define CONGESTIONENABLE_V(x) ((x) << CONGESTIONENABLE_S)
220262306a36Sopenharmony_ci#define CONGESTIONENABLE_F    CONGESTIONENABLE_V(1U)
220362306a36Sopenharmony_ci
220462306a36Sopenharmony_ci#define HASHTOEPLITZ_S    2
220562306a36Sopenharmony_ci#define HASHTOEPLITZ_V(x) ((x) << HASHTOEPLITZ_S)
220662306a36Sopenharmony_ci#define HASHTOEPLITZ_F    HASHTOEPLITZ_V(1U)
220762306a36Sopenharmony_ci
220862306a36Sopenharmony_ci#define UDPENABLE_S    1
220962306a36Sopenharmony_ci#define UDPENABLE_V(x) ((x) << UDPENABLE_S)
221062306a36Sopenharmony_ci#define UDPENABLE_F    UDPENABLE_V(1U)
221162306a36Sopenharmony_ci
221262306a36Sopenharmony_ci#define DISABLE_S    0
221362306a36Sopenharmony_ci#define DISABLE_V(x) ((x) << DISABLE_S)
221462306a36Sopenharmony_ci#define DISABLE_F    DISABLE_V(1U)
221562306a36Sopenharmony_ci
221662306a36Sopenharmony_ci#define TP_RSS_CONFIG_TNL_A 0x7df4
221762306a36Sopenharmony_ci
221862306a36Sopenharmony_ci#define MASKSIZE_S    28
221962306a36Sopenharmony_ci#define MASKSIZE_M    0xfU
222062306a36Sopenharmony_ci#define MASKSIZE_V(x) ((x) << MASKSIZE_S)
222162306a36Sopenharmony_ci#define MASKSIZE_G(x) (((x) >> MASKSIZE_S) & MASKSIZE_M)
222262306a36Sopenharmony_ci
222362306a36Sopenharmony_ci#define MASKFILTER_S    16
222462306a36Sopenharmony_ci#define MASKFILTER_M    0x7ffU
222562306a36Sopenharmony_ci#define MASKFILTER_V(x) ((x) << MASKFILTER_S)
222662306a36Sopenharmony_ci#define MASKFILTER_G(x) (((x) >> MASKFILTER_S) & MASKFILTER_M)
222762306a36Sopenharmony_ci
222862306a36Sopenharmony_ci#define USEWIRECH_S    0
222962306a36Sopenharmony_ci#define USEWIRECH_V(x) ((x) << USEWIRECH_S)
223062306a36Sopenharmony_ci#define USEWIRECH_F    USEWIRECH_V(1U)
223162306a36Sopenharmony_ci
223262306a36Sopenharmony_ci#define HASHALL_S    2
223362306a36Sopenharmony_ci#define HASHALL_V(x) ((x) << HASHALL_S)
223462306a36Sopenharmony_ci#define HASHALL_F    HASHALL_V(1U)
223562306a36Sopenharmony_ci
223662306a36Sopenharmony_ci#define HASHETH_S    1
223762306a36Sopenharmony_ci#define HASHETH_V(x) ((x) << HASHETH_S)
223862306a36Sopenharmony_ci#define HASHETH_F    HASHETH_V(1U)
223962306a36Sopenharmony_ci
224062306a36Sopenharmony_ci#define TP_RSS_CONFIG_OFD_A 0x7df8
224162306a36Sopenharmony_ci
224262306a36Sopenharmony_ci#define RRCPLMAPEN_S    20
224362306a36Sopenharmony_ci#define RRCPLMAPEN_V(x) ((x) << RRCPLMAPEN_S)
224462306a36Sopenharmony_ci#define RRCPLMAPEN_F    RRCPLMAPEN_V(1U)
224562306a36Sopenharmony_ci
224662306a36Sopenharmony_ci#define RRCPLQUEWIDTH_S    16
224762306a36Sopenharmony_ci#define RRCPLQUEWIDTH_M    0xfU
224862306a36Sopenharmony_ci#define RRCPLQUEWIDTH_V(x) ((x) << RRCPLQUEWIDTH_S)
224962306a36Sopenharmony_ci#define RRCPLQUEWIDTH_G(x) (((x) >> RRCPLQUEWIDTH_S) & RRCPLQUEWIDTH_M)
225062306a36Sopenharmony_ci
225162306a36Sopenharmony_ci#define TP_RSS_CONFIG_SYN_A 0x7dfc
225262306a36Sopenharmony_ci#define TP_RSS_CONFIG_VRT_A 0x7e00
225362306a36Sopenharmony_ci
225462306a36Sopenharmony_ci#define VFRDRG_S    25
225562306a36Sopenharmony_ci#define VFRDRG_V(x) ((x) << VFRDRG_S)
225662306a36Sopenharmony_ci#define VFRDRG_F    VFRDRG_V(1U)
225762306a36Sopenharmony_ci
225862306a36Sopenharmony_ci#define VFRDEN_S    24
225962306a36Sopenharmony_ci#define VFRDEN_V(x) ((x) << VFRDEN_S)
226062306a36Sopenharmony_ci#define VFRDEN_F    VFRDEN_V(1U)
226162306a36Sopenharmony_ci
226262306a36Sopenharmony_ci#define VFPERREN_S    23
226362306a36Sopenharmony_ci#define VFPERREN_V(x) ((x) << VFPERREN_S)
226462306a36Sopenharmony_ci#define VFPERREN_F    VFPERREN_V(1U)
226562306a36Sopenharmony_ci
226662306a36Sopenharmony_ci#define KEYPERREN_S    22
226762306a36Sopenharmony_ci#define KEYPERREN_V(x) ((x) << KEYPERREN_S)
226862306a36Sopenharmony_ci#define KEYPERREN_F    KEYPERREN_V(1U)
226962306a36Sopenharmony_ci
227062306a36Sopenharmony_ci#define DISABLEVLAN_S    21
227162306a36Sopenharmony_ci#define DISABLEVLAN_V(x) ((x) << DISABLEVLAN_S)
227262306a36Sopenharmony_ci#define DISABLEVLAN_F    DISABLEVLAN_V(1U)
227362306a36Sopenharmony_ci
227462306a36Sopenharmony_ci#define ENABLEUP0_S    20
227562306a36Sopenharmony_ci#define ENABLEUP0_V(x) ((x) << ENABLEUP0_S)
227662306a36Sopenharmony_ci#define ENABLEUP0_F    ENABLEUP0_V(1U)
227762306a36Sopenharmony_ci
227862306a36Sopenharmony_ci#define HASHDELAY_S    16
227962306a36Sopenharmony_ci#define HASHDELAY_M    0xfU
228062306a36Sopenharmony_ci#define HASHDELAY_V(x) ((x) << HASHDELAY_S)
228162306a36Sopenharmony_ci#define HASHDELAY_G(x) (((x) >> HASHDELAY_S) & HASHDELAY_M)
228262306a36Sopenharmony_ci
228362306a36Sopenharmony_ci#define VFWRADDR_S    8
228462306a36Sopenharmony_ci#define VFWRADDR_M    0x7fU
228562306a36Sopenharmony_ci#define VFWRADDR_V(x) ((x) << VFWRADDR_S)
228662306a36Sopenharmony_ci#define VFWRADDR_G(x) (((x) >> VFWRADDR_S) & VFWRADDR_M)
228762306a36Sopenharmony_ci
228862306a36Sopenharmony_ci#define KEYMODE_S    6
228962306a36Sopenharmony_ci#define KEYMODE_M    0x3U
229062306a36Sopenharmony_ci#define KEYMODE_V(x) ((x) << KEYMODE_S)
229162306a36Sopenharmony_ci#define KEYMODE_G(x) (((x) >> KEYMODE_S) & KEYMODE_M)
229262306a36Sopenharmony_ci
229362306a36Sopenharmony_ci#define VFWREN_S    5
229462306a36Sopenharmony_ci#define VFWREN_V(x) ((x) << VFWREN_S)
229562306a36Sopenharmony_ci#define VFWREN_F    VFWREN_V(1U)
229662306a36Sopenharmony_ci
229762306a36Sopenharmony_ci#define KEYWREN_S    4
229862306a36Sopenharmony_ci#define KEYWREN_V(x) ((x) << KEYWREN_S)
229962306a36Sopenharmony_ci#define KEYWREN_F    KEYWREN_V(1U)
230062306a36Sopenharmony_ci
230162306a36Sopenharmony_ci#define KEYWRADDR_S    0
230262306a36Sopenharmony_ci#define KEYWRADDR_M    0xfU
230362306a36Sopenharmony_ci#define KEYWRADDR_V(x) ((x) << KEYWRADDR_S)
230462306a36Sopenharmony_ci#define KEYWRADDR_G(x) (((x) >> KEYWRADDR_S) & KEYWRADDR_M)
230562306a36Sopenharmony_ci
230662306a36Sopenharmony_ci#define KEYWRADDRX_S    30
230762306a36Sopenharmony_ci#define KEYWRADDRX_M    0x3U
230862306a36Sopenharmony_ci#define KEYWRADDRX_V(x) ((x) << KEYWRADDRX_S)
230962306a36Sopenharmony_ci#define KEYWRADDRX_G(x) (((x) >> KEYWRADDRX_S) & KEYWRADDRX_M)
231062306a36Sopenharmony_ci
231162306a36Sopenharmony_ci#define KEYEXTEND_S    26
231262306a36Sopenharmony_ci#define KEYEXTEND_V(x) ((x) << KEYEXTEND_S)
231362306a36Sopenharmony_ci#define KEYEXTEND_F    KEYEXTEND_V(1U)
231462306a36Sopenharmony_ci
231562306a36Sopenharmony_ci#define LKPIDXSIZE_S    24
231662306a36Sopenharmony_ci#define LKPIDXSIZE_M    0x3U
231762306a36Sopenharmony_ci#define LKPIDXSIZE_V(x) ((x) << LKPIDXSIZE_S)
231862306a36Sopenharmony_ci#define LKPIDXSIZE_G(x) (((x) >> LKPIDXSIZE_S) & LKPIDXSIZE_M)
231962306a36Sopenharmony_ci
232062306a36Sopenharmony_ci#define TP_RSS_VFL_CONFIG_A 0x3a
232162306a36Sopenharmony_ci#define TP_RSS_VFH_CONFIG_A 0x3b
232262306a36Sopenharmony_ci
232362306a36Sopenharmony_ci#define ENABLEUDPHASH_S    31
232462306a36Sopenharmony_ci#define ENABLEUDPHASH_V(x) ((x) << ENABLEUDPHASH_S)
232562306a36Sopenharmony_ci#define ENABLEUDPHASH_F    ENABLEUDPHASH_V(1U)
232662306a36Sopenharmony_ci
232762306a36Sopenharmony_ci#define VFUPEN_S    30
232862306a36Sopenharmony_ci#define VFUPEN_V(x) ((x) << VFUPEN_S)
232962306a36Sopenharmony_ci#define VFUPEN_F    VFUPEN_V(1U)
233062306a36Sopenharmony_ci
233162306a36Sopenharmony_ci#define VFVLNEX_S    28
233262306a36Sopenharmony_ci#define VFVLNEX_V(x) ((x) << VFVLNEX_S)
233362306a36Sopenharmony_ci#define VFVLNEX_F    VFVLNEX_V(1U)
233462306a36Sopenharmony_ci
233562306a36Sopenharmony_ci#define VFPRTEN_S    27
233662306a36Sopenharmony_ci#define VFPRTEN_V(x) ((x) << VFPRTEN_S)
233762306a36Sopenharmony_ci#define VFPRTEN_F    VFPRTEN_V(1U)
233862306a36Sopenharmony_ci
233962306a36Sopenharmony_ci#define VFCHNEN_S    26
234062306a36Sopenharmony_ci#define VFCHNEN_V(x) ((x) << VFCHNEN_S)
234162306a36Sopenharmony_ci#define VFCHNEN_F    VFCHNEN_V(1U)
234262306a36Sopenharmony_ci
234362306a36Sopenharmony_ci#define DEFAULTQUEUE_S    16
234462306a36Sopenharmony_ci#define DEFAULTQUEUE_M    0x3ffU
234562306a36Sopenharmony_ci#define DEFAULTQUEUE_G(x) (((x) >> DEFAULTQUEUE_S) & DEFAULTQUEUE_M)
234662306a36Sopenharmony_ci
234762306a36Sopenharmony_ci#define VFIP6TWOTUPEN_S    6
234862306a36Sopenharmony_ci#define VFIP6TWOTUPEN_V(x) ((x) << VFIP6TWOTUPEN_S)
234962306a36Sopenharmony_ci#define VFIP6TWOTUPEN_F    VFIP6TWOTUPEN_V(1U)
235062306a36Sopenharmony_ci
235162306a36Sopenharmony_ci#define VFIP4FOURTUPEN_S    5
235262306a36Sopenharmony_ci#define VFIP4FOURTUPEN_V(x) ((x) << VFIP4FOURTUPEN_S)
235362306a36Sopenharmony_ci#define VFIP4FOURTUPEN_F    VFIP4FOURTUPEN_V(1U)
235462306a36Sopenharmony_ci
235562306a36Sopenharmony_ci#define VFIP4TWOTUPEN_S    4
235662306a36Sopenharmony_ci#define VFIP4TWOTUPEN_V(x) ((x) << VFIP4TWOTUPEN_S)
235762306a36Sopenharmony_ci#define VFIP4TWOTUPEN_F    VFIP4TWOTUPEN_V(1U)
235862306a36Sopenharmony_ci
235962306a36Sopenharmony_ci#define KEYINDEX_S    0
236062306a36Sopenharmony_ci#define KEYINDEX_M    0xfU
236162306a36Sopenharmony_ci#define KEYINDEX_G(x) (((x) >> KEYINDEX_S) & KEYINDEX_M)
236262306a36Sopenharmony_ci
236362306a36Sopenharmony_ci#define MAPENABLE_S    31
236462306a36Sopenharmony_ci#define MAPENABLE_V(x) ((x) << MAPENABLE_S)
236562306a36Sopenharmony_ci#define MAPENABLE_F    MAPENABLE_V(1U)
236662306a36Sopenharmony_ci
236762306a36Sopenharmony_ci#define CHNENABLE_S    30
236862306a36Sopenharmony_ci#define CHNENABLE_V(x) ((x) << CHNENABLE_S)
236962306a36Sopenharmony_ci#define CHNENABLE_F    CHNENABLE_V(1U)
237062306a36Sopenharmony_ci
237162306a36Sopenharmony_ci#define LE_DB_DBGI_CONFIG_A 0x19cf0
237262306a36Sopenharmony_ci
237362306a36Sopenharmony_ci#define DBGICMDBUSY_S    3
237462306a36Sopenharmony_ci#define DBGICMDBUSY_V(x) ((x) << DBGICMDBUSY_S)
237562306a36Sopenharmony_ci#define DBGICMDBUSY_F    DBGICMDBUSY_V(1U)
237662306a36Sopenharmony_ci
237762306a36Sopenharmony_ci#define DBGICMDSTRT_S    2
237862306a36Sopenharmony_ci#define DBGICMDSTRT_V(x) ((x) << DBGICMDSTRT_S)
237962306a36Sopenharmony_ci#define DBGICMDSTRT_F    DBGICMDSTRT_V(1U)
238062306a36Sopenharmony_ci
238162306a36Sopenharmony_ci#define DBGICMDMODE_S    0
238262306a36Sopenharmony_ci#define DBGICMDMODE_M    0x3U
238362306a36Sopenharmony_ci#define DBGICMDMODE_V(x) ((x) << DBGICMDMODE_S)
238462306a36Sopenharmony_ci
238562306a36Sopenharmony_ci#define LE_DB_DBGI_REQ_TCAM_CMD_A 0x19cf4
238662306a36Sopenharmony_ci
238762306a36Sopenharmony_ci#define DBGICMD_S    20
238862306a36Sopenharmony_ci#define DBGICMD_M    0xfU
238962306a36Sopenharmony_ci#define DBGICMD_V(x) ((x) << DBGICMD_S)
239062306a36Sopenharmony_ci
239162306a36Sopenharmony_ci#define DBGITID_S    0
239262306a36Sopenharmony_ci#define DBGITID_M    0xfffffU
239362306a36Sopenharmony_ci#define DBGITID_V(x) ((x) << DBGITID_S)
239462306a36Sopenharmony_ci
239562306a36Sopenharmony_ci#define LE_DB_DBGI_REQ_DATA_A 0x19d00
239662306a36Sopenharmony_ci#define LE_DB_DBGI_RSP_STATUS_A 0x19d94
239762306a36Sopenharmony_ci
239862306a36Sopenharmony_ci#define LE_DB_DBGI_RSP_DATA_A 0x19da0
239962306a36Sopenharmony_ci
240062306a36Sopenharmony_ci#define PRTENABLE_S    29
240162306a36Sopenharmony_ci#define PRTENABLE_V(x) ((x) << PRTENABLE_S)
240262306a36Sopenharmony_ci#define PRTENABLE_F    PRTENABLE_V(1U)
240362306a36Sopenharmony_ci
240462306a36Sopenharmony_ci#define UDPFOURTUPEN_S    28
240562306a36Sopenharmony_ci#define UDPFOURTUPEN_V(x) ((x) << UDPFOURTUPEN_S)
240662306a36Sopenharmony_ci#define UDPFOURTUPEN_F    UDPFOURTUPEN_V(1U)
240762306a36Sopenharmony_ci
240862306a36Sopenharmony_ci#define IP6FOURTUPEN_S    27
240962306a36Sopenharmony_ci#define IP6FOURTUPEN_V(x) ((x) << IP6FOURTUPEN_S)
241062306a36Sopenharmony_ci#define IP6FOURTUPEN_F    IP6FOURTUPEN_V(1U)
241162306a36Sopenharmony_ci
241262306a36Sopenharmony_ci#define IP6TWOTUPEN_S    26
241362306a36Sopenharmony_ci#define IP6TWOTUPEN_V(x) ((x) << IP6TWOTUPEN_S)
241462306a36Sopenharmony_ci#define IP6TWOTUPEN_F    IP6TWOTUPEN_V(1U)
241562306a36Sopenharmony_ci
241662306a36Sopenharmony_ci#define IP4FOURTUPEN_S    25
241762306a36Sopenharmony_ci#define IP4FOURTUPEN_V(x) ((x) << IP4FOURTUPEN_S)
241862306a36Sopenharmony_ci#define IP4FOURTUPEN_F    IP4FOURTUPEN_V(1U)
241962306a36Sopenharmony_ci
242062306a36Sopenharmony_ci#define IP4TWOTUPEN_S    24
242162306a36Sopenharmony_ci#define IP4TWOTUPEN_V(x) ((x) << IP4TWOTUPEN_S)
242262306a36Sopenharmony_ci#define IP4TWOTUPEN_F    IP4TWOTUPEN_V(1U)
242362306a36Sopenharmony_ci
242462306a36Sopenharmony_ci#define IVFWIDTH_S    20
242562306a36Sopenharmony_ci#define IVFWIDTH_M    0xfU
242662306a36Sopenharmony_ci#define IVFWIDTH_V(x) ((x) << IVFWIDTH_S)
242762306a36Sopenharmony_ci#define IVFWIDTH_G(x) (((x) >> IVFWIDTH_S) & IVFWIDTH_M)
242862306a36Sopenharmony_ci
242962306a36Sopenharmony_ci#define CH1DEFAULTQUEUE_S    10
243062306a36Sopenharmony_ci#define CH1DEFAULTQUEUE_M    0x3ffU
243162306a36Sopenharmony_ci#define CH1DEFAULTQUEUE_V(x) ((x) << CH1DEFAULTQUEUE_S)
243262306a36Sopenharmony_ci#define CH1DEFAULTQUEUE_G(x) (((x) >> CH1DEFAULTQUEUE_S) & CH1DEFAULTQUEUE_M)
243362306a36Sopenharmony_ci
243462306a36Sopenharmony_ci#define CH0DEFAULTQUEUE_S    0
243562306a36Sopenharmony_ci#define CH0DEFAULTQUEUE_M    0x3ffU
243662306a36Sopenharmony_ci#define CH0DEFAULTQUEUE_V(x) ((x) << CH0DEFAULTQUEUE_S)
243762306a36Sopenharmony_ci#define CH0DEFAULTQUEUE_G(x) (((x) >> CH0DEFAULTQUEUE_S) & CH0DEFAULTQUEUE_M)
243862306a36Sopenharmony_ci
243962306a36Sopenharmony_ci#define VFLKPIDX_S    8
244062306a36Sopenharmony_ci#define VFLKPIDX_M    0xffU
244162306a36Sopenharmony_ci#define VFLKPIDX_G(x) (((x) >> VFLKPIDX_S) & VFLKPIDX_M)
244262306a36Sopenharmony_ci
244362306a36Sopenharmony_ci#define T6_VFWRADDR_S    8
244462306a36Sopenharmony_ci#define T6_VFWRADDR_M    0xffU
244562306a36Sopenharmony_ci#define T6_VFWRADDR_V(x) ((x) << T6_VFWRADDR_S)
244662306a36Sopenharmony_ci#define T6_VFWRADDR_G(x) (((x) >> T6_VFWRADDR_S) & T6_VFWRADDR_M)
244762306a36Sopenharmony_ci
244862306a36Sopenharmony_ci#define TP_RSS_CONFIG_CNG_A 0x7e04
244962306a36Sopenharmony_ci#define TP_RSS_SECRET_KEY0_A 0x40
245062306a36Sopenharmony_ci#define TP_RSS_PF0_CONFIG_A 0x30
245162306a36Sopenharmony_ci#define TP_RSS_PF_MAP_A 0x38
245262306a36Sopenharmony_ci#define TP_RSS_PF_MSK_A 0x39
245362306a36Sopenharmony_ci
245462306a36Sopenharmony_ci#define PF1LKPIDX_S    3
245562306a36Sopenharmony_ci
245662306a36Sopenharmony_ci#define PF0LKPIDX_M    0x7U
245762306a36Sopenharmony_ci
245862306a36Sopenharmony_ci#define PF1MSKSIZE_S    4
245962306a36Sopenharmony_ci#define PF1MSKSIZE_M    0xfU
246062306a36Sopenharmony_ci
246162306a36Sopenharmony_ci#define CHNCOUNT3_S    31
246262306a36Sopenharmony_ci#define CHNCOUNT3_V(x) ((x) << CHNCOUNT3_S)
246362306a36Sopenharmony_ci#define CHNCOUNT3_F    CHNCOUNT3_V(1U)
246462306a36Sopenharmony_ci
246562306a36Sopenharmony_ci#define CHNCOUNT2_S    30
246662306a36Sopenharmony_ci#define CHNCOUNT2_V(x) ((x) << CHNCOUNT2_S)
246762306a36Sopenharmony_ci#define CHNCOUNT2_F    CHNCOUNT2_V(1U)
246862306a36Sopenharmony_ci
246962306a36Sopenharmony_ci#define CHNCOUNT1_S    29
247062306a36Sopenharmony_ci#define CHNCOUNT1_V(x) ((x) << CHNCOUNT1_S)
247162306a36Sopenharmony_ci#define CHNCOUNT1_F    CHNCOUNT1_V(1U)
247262306a36Sopenharmony_ci
247362306a36Sopenharmony_ci#define CHNCOUNT0_S    28
247462306a36Sopenharmony_ci#define CHNCOUNT0_V(x) ((x) << CHNCOUNT0_S)
247562306a36Sopenharmony_ci#define CHNCOUNT0_F    CHNCOUNT0_V(1U)
247662306a36Sopenharmony_ci
247762306a36Sopenharmony_ci#define CHNUNDFLOW3_S    27
247862306a36Sopenharmony_ci#define CHNUNDFLOW3_V(x) ((x) << CHNUNDFLOW3_S)
247962306a36Sopenharmony_ci#define CHNUNDFLOW3_F    CHNUNDFLOW3_V(1U)
248062306a36Sopenharmony_ci
248162306a36Sopenharmony_ci#define CHNUNDFLOW2_S    26
248262306a36Sopenharmony_ci#define CHNUNDFLOW2_V(x) ((x) << CHNUNDFLOW2_S)
248362306a36Sopenharmony_ci#define CHNUNDFLOW2_F    CHNUNDFLOW2_V(1U)
248462306a36Sopenharmony_ci
248562306a36Sopenharmony_ci#define CHNUNDFLOW1_S    25
248662306a36Sopenharmony_ci#define CHNUNDFLOW1_V(x) ((x) << CHNUNDFLOW1_S)
248762306a36Sopenharmony_ci#define CHNUNDFLOW1_F    CHNUNDFLOW1_V(1U)
248862306a36Sopenharmony_ci
248962306a36Sopenharmony_ci#define CHNUNDFLOW0_S    24
249062306a36Sopenharmony_ci#define CHNUNDFLOW0_V(x) ((x) << CHNUNDFLOW0_S)
249162306a36Sopenharmony_ci#define CHNUNDFLOW0_F    CHNUNDFLOW0_V(1U)
249262306a36Sopenharmony_ci
249362306a36Sopenharmony_ci#define RSTCHN3_S    19
249462306a36Sopenharmony_ci#define RSTCHN3_V(x) ((x) << RSTCHN3_S)
249562306a36Sopenharmony_ci#define RSTCHN3_F    RSTCHN3_V(1U)
249662306a36Sopenharmony_ci
249762306a36Sopenharmony_ci#define RSTCHN2_S    18
249862306a36Sopenharmony_ci#define RSTCHN2_V(x) ((x) << RSTCHN2_S)
249962306a36Sopenharmony_ci#define RSTCHN2_F    RSTCHN2_V(1U)
250062306a36Sopenharmony_ci
250162306a36Sopenharmony_ci#define RSTCHN1_S    17
250262306a36Sopenharmony_ci#define RSTCHN1_V(x) ((x) << RSTCHN1_S)
250362306a36Sopenharmony_ci#define RSTCHN1_F    RSTCHN1_V(1U)
250462306a36Sopenharmony_ci
250562306a36Sopenharmony_ci#define RSTCHN0_S    16
250662306a36Sopenharmony_ci#define RSTCHN0_V(x) ((x) << RSTCHN0_S)
250762306a36Sopenharmony_ci#define RSTCHN0_F    RSTCHN0_V(1U)
250862306a36Sopenharmony_ci
250962306a36Sopenharmony_ci#define UPDVLD_S    15
251062306a36Sopenharmony_ci#define UPDVLD_V(x) ((x) << UPDVLD_S)
251162306a36Sopenharmony_ci#define UPDVLD_F    UPDVLD_V(1U)
251262306a36Sopenharmony_ci
251362306a36Sopenharmony_ci#define XOFF_S    14
251462306a36Sopenharmony_ci#define XOFF_V(x) ((x) << XOFF_S)
251562306a36Sopenharmony_ci#define XOFF_F    XOFF_V(1U)
251662306a36Sopenharmony_ci
251762306a36Sopenharmony_ci#define UPDCHN3_S    13
251862306a36Sopenharmony_ci#define UPDCHN3_V(x) ((x) << UPDCHN3_S)
251962306a36Sopenharmony_ci#define UPDCHN3_F    UPDCHN3_V(1U)
252062306a36Sopenharmony_ci
252162306a36Sopenharmony_ci#define UPDCHN2_S    12
252262306a36Sopenharmony_ci#define UPDCHN2_V(x) ((x) << UPDCHN2_S)
252362306a36Sopenharmony_ci#define UPDCHN2_F    UPDCHN2_V(1U)
252462306a36Sopenharmony_ci
252562306a36Sopenharmony_ci#define UPDCHN1_S    11
252662306a36Sopenharmony_ci#define UPDCHN1_V(x) ((x) << UPDCHN1_S)
252762306a36Sopenharmony_ci#define UPDCHN1_F    UPDCHN1_V(1U)
252862306a36Sopenharmony_ci
252962306a36Sopenharmony_ci#define UPDCHN0_S    10
253062306a36Sopenharmony_ci#define UPDCHN0_V(x) ((x) << UPDCHN0_S)
253162306a36Sopenharmony_ci#define UPDCHN0_F    UPDCHN0_V(1U)
253262306a36Sopenharmony_ci
253362306a36Sopenharmony_ci#define QUEUE_S    0
253462306a36Sopenharmony_ci#define QUEUE_M    0x3ffU
253562306a36Sopenharmony_ci#define QUEUE_V(x) ((x) << QUEUE_S)
253662306a36Sopenharmony_ci#define QUEUE_G(x) (((x) >> QUEUE_S) & QUEUE_M)
253762306a36Sopenharmony_ci
253862306a36Sopenharmony_ci#define MPS_TRC_INT_CAUSE_A	0x985c
253962306a36Sopenharmony_ci
254062306a36Sopenharmony_ci#define MISCPERR_S    8
254162306a36Sopenharmony_ci#define MISCPERR_V(x) ((x) << MISCPERR_S)
254262306a36Sopenharmony_ci#define MISCPERR_F    MISCPERR_V(1U)
254362306a36Sopenharmony_ci
254462306a36Sopenharmony_ci#define PKTFIFO_S    4
254562306a36Sopenharmony_ci#define PKTFIFO_M    0xfU
254662306a36Sopenharmony_ci#define PKTFIFO_V(x) ((x) << PKTFIFO_S)
254762306a36Sopenharmony_ci
254862306a36Sopenharmony_ci#define FILTMEM_S    0
254962306a36Sopenharmony_ci#define FILTMEM_M    0xfU
255062306a36Sopenharmony_ci#define FILTMEM_V(x) ((x) << FILTMEM_S)
255162306a36Sopenharmony_ci
255262306a36Sopenharmony_ci#define MPS_CLS_INT_CAUSE_A 0xd028
255362306a36Sopenharmony_ci
255462306a36Sopenharmony_ci#define HASHSRAM_S    2
255562306a36Sopenharmony_ci#define HASHSRAM_V(x) ((x) << HASHSRAM_S)
255662306a36Sopenharmony_ci#define HASHSRAM_F    HASHSRAM_V(1U)
255762306a36Sopenharmony_ci
255862306a36Sopenharmony_ci#define MATCHTCAM_S    1
255962306a36Sopenharmony_ci#define MATCHTCAM_V(x) ((x) << MATCHTCAM_S)
256062306a36Sopenharmony_ci#define MATCHTCAM_F    MATCHTCAM_V(1U)
256162306a36Sopenharmony_ci
256262306a36Sopenharmony_ci#define MATCHSRAM_S    0
256362306a36Sopenharmony_ci#define MATCHSRAM_V(x) ((x) << MATCHSRAM_S)
256462306a36Sopenharmony_ci#define MATCHSRAM_F    MATCHSRAM_V(1U)
256562306a36Sopenharmony_ci
256662306a36Sopenharmony_ci#define MPS_RX_PG_RSV0_A 0x11010
256762306a36Sopenharmony_ci#define MPS_RX_PG_RSV4_A 0x11020
256862306a36Sopenharmony_ci#define MPS_RX_PERR_INT_CAUSE_A 0x11074
256962306a36Sopenharmony_ci#define MPS_RX_MAC_BG_PG_CNT0_A 0x11208
257062306a36Sopenharmony_ci#define MPS_RX_LPBK_BG_PG_CNT0_A 0x11218
257162306a36Sopenharmony_ci
257262306a36Sopenharmony_ci#define MPS_RX_VXLAN_TYPE_A 0x11234
257362306a36Sopenharmony_ci
257462306a36Sopenharmony_ci#define VXLAN_EN_S    16
257562306a36Sopenharmony_ci#define VXLAN_EN_V(x) ((x) << VXLAN_EN_S)
257662306a36Sopenharmony_ci#define VXLAN_EN_F    VXLAN_EN_V(1U)
257762306a36Sopenharmony_ci
257862306a36Sopenharmony_ci#define VXLAN_S    0
257962306a36Sopenharmony_ci#define VXLAN_M    0xffffU
258062306a36Sopenharmony_ci#define VXLAN_V(x) ((x) << VXLAN_S)
258162306a36Sopenharmony_ci#define VXLAN_G(x) (((x) >> VXLAN_S) & VXLAN_M)
258262306a36Sopenharmony_ci
258362306a36Sopenharmony_ci#define MPS_RX_GENEVE_TYPE_A 0x11238
258462306a36Sopenharmony_ci
258562306a36Sopenharmony_ci#define GENEVE_EN_S    16
258662306a36Sopenharmony_ci#define GENEVE_EN_V(x) ((x) << GENEVE_EN_S)
258762306a36Sopenharmony_ci#define GENEVE_EN_F    GENEVE_EN_V(1U)
258862306a36Sopenharmony_ci
258962306a36Sopenharmony_ci#define GENEVE_S    0
259062306a36Sopenharmony_ci#define GENEVE_M    0xffffU
259162306a36Sopenharmony_ci#define GENEVE_V(x) ((x) << GENEVE_S)
259262306a36Sopenharmony_ci#define GENEVE_G(x) (((x) >> GENEVE_S) & GENEVE_M)
259362306a36Sopenharmony_ci
259462306a36Sopenharmony_ci#define MPS_CLS_TCAM_Y_L_A 0xf000
259562306a36Sopenharmony_ci#define MPS_CLS_TCAM_DATA0_A 0xf000
259662306a36Sopenharmony_ci#define MPS_CLS_TCAM_DATA1_A 0xf004
259762306a36Sopenharmony_ci
259862306a36Sopenharmony_ci#define CTLREQID_S    30
259962306a36Sopenharmony_ci#define CTLREQID_V(x) ((x) << CTLREQID_S)
260062306a36Sopenharmony_ci
260162306a36Sopenharmony_ci#define MPS_VF_RPLCT_MAP0_A 0x1111c
260262306a36Sopenharmony_ci#define MPS_VF_RPLCT_MAP1_A 0x11120
260362306a36Sopenharmony_ci#define MPS_VF_RPLCT_MAP2_A 0x11124
260462306a36Sopenharmony_ci#define MPS_VF_RPLCT_MAP3_A 0x11128
260562306a36Sopenharmony_ci#define MPS_VF_RPLCT_MAP4_A 0x11300
260662306a36Sopenharmony_ci#define MPS_VF_RPLCT_MAP5_A 0x11304
260762306a36Sopenharmony_ci#define MPS_VF_RPLCT_MAP6_A 0x11308
260862306a36Sopenharmony_ci#define MPS_VF_RPLCT_MAP7_A 0x1130c
260962306a36Sopenharmony_ci
261062306a36Sopenharmony_ci#define VIDL_S    16
261162306a36Sopenharmony_ci#define VIDL_M    0xffffU
261262306a36Sopenharmony_ci#define VIDL_G(x) (((x) >> VIDL_S) & VIDL_M)
261362306a36Sopenharmony_ci
261462306a36Sopenharmony_ci#define DATALKPTYPE_S    10
261562306a36Sopenharmony_ci#define DATALKPTYPE_M    0x3U
261662306a36Sopenharmony_ci#define DATALKPTYPE_G(x) (((x) >> DATALKPTYPE_S) & DATALKPTYPE_M)
261762306a36Sopenharmony_ci
261862306a36Sopenharmony_ci#define DATAPORTNUM_S    12
261962306a36Sopenharmony_ci#define DATAPORTNUM_M    0xfU
262062306a36Sopenharmony_ci#define DATAPORTNUM_V(x) ((x) << DATAPORTNUM_S)
262162306a36Sopenharmony_ci#define DATAPORTNUM_G(x) (((x) >> DATAPORTNUM_S) & DATAPORTNUM_M)
262262306a36Sopenharmony_ci
262362306a36Sopenharmony_ci#define DATALKPTYPE_S    10
262462306a36Sopenharmony_ci#define DATALKPTYPE_M    0x3U
262562306a36Sopenharmony_ci#define DATALKPTYPE_V(x) ((x) << DATALKPTYPE_S)
262662306a36Sopenharmony_ci#define DATALKPTYPE_G(x) (((x) >> DATALKPTYPE_S) & DATALKPTYPE_M)
262762306a36Sopenharmony_ci
262862306a36Sopenharmony_ci#define DATADIPHIT_S    8
262962306a36Sopenharmony_ci#define DATADIPHIT_V(x) ((x) << DATADIPHIT_S)
263062306a36Sopenharmony_ci#define DATADIPHIT_F    DATADIPHIT_V(1U)
263162306a36Sopenharmony_ci
263262306a36Sopenharmony_ci#define DATAVIDH2_S    7
263362306a36Sopenharmony_ci#define DATAVIDH2_V(x) ((x) << DATAVIDH2_S)
263462306a36Sopenharmony_ci#define DATAVIDH2_F    DATAVIDH2_V(1U)
263562306a36Sopenharmony_ci
263662306a36Sopenharmony_ci#define DATAVIDH1_S    0
263762306a36Sopenharmony_ci#define DATAVIDH1_M    0x7fU
263862306a36Sopenharmony_ci#define DATAVIDH1_G(x) (((x) >> DATAVIDH1_S) & DATAVIDH1_M)
263962306a36Sopenharmony_ci
264062306a36Sopenharmony_ci#define MPS_CLS_TCAM_RDATA0_REQ_ID1_A 0xf020
264162306a36Sopenharmony_ci#define MPS_CLS_TCAM_RDATA1_REQ_ID1_A 0xf024
264262306a36Sopenharmony_ci#define MPS_CLS_TCAM_RDATA2_REQ_ID1_A 0xf028
264362306a36Sopenharmony_ci
264462306a36Sopenharmony_ci#define USED_S    16
264562306a36Sopenharmony_ci#define USED_M    0x7ffU
264662306a36Sopenharmony_ci#define USED_G(x) (((x) >> USED_S) & USED_M)
264762306a36Sopenharmony_ci
264862306a36Sopenharmony_ci#define ALLOC_S    0
264962306a36Sopenharmony_ci#define ALLOC_M    0x7ffU
265062306a36Sopenharmony_ci#define ALLOC_G(x) (((x) >> ALLOC_S) & ALLOC_M)
265162306a36Sopenharmony_ci
265262306a36Sopenharmony_ci#define T5_USED_S    16
265362306a36Sopenharmony_ci#define T5_USED_M    0xfffU
265462306a36Sopenharmony_ci#define T5_USED_G(x) (((x) >> T5_USED_S) & T5_USED_M)
265562306a36Sopenharmony_ci
265662306a36Sopenharmony_ci#define T5_ALLOC_S    0
265762306a36Sopenharmony_ci#define T5_ALLOC_M    0xfffU
265862306a36Sopenharmony_ci#define T5_ALLOC_G(x) (((x) >> T5_ALLOC_S) & T5_ALLOC_M)
265962306a36Sopenharmony_ci
266062306a36Sopenharmony_ci#define DMACH_S    0
266162306a36Sopenharmony_ci#define DMACH_M    0xffffU
266262306a36Sopenharmony_ci#define DMACH_G(x) (((x) >> DMACH_S) & DMACH_M)
266362306a36Sopenharmony_ci
266462306a36Sopenharmony_ci#define MPS_CLS_TCAM_X_L_A 0xf008
266562306a36Sopenharmony_ci#define MPS_CLS_TCAM_DATA2_CTL_A 0xf008
266662306a36Sopenharmony_ci
266762306a36Sopenharmony_ci#define CTLCMDTYPE_S    31
266862306a36Sopenharmony_ci#define CTLCMDTYPE_V(x) ((x) << CTLCMDTYPE_S)
266962306a36Sopenharmony_ci#define CTLCMDTYPE_F    CTLCMDTYPE_V(1U)
267062306a36Sopenharmony_ci
267162306a36Sopenharmony_ci#define CTLTCAMSEL_S    25
267262306a36Sopenharmony_ci#define CTLTCAMSEL_V(x) ((x) << CTLTCAMSEL_S)
267362306a36Sopenharmony_ci
267462306a36Sopenharmony_ci#define CTLTCAMINDEX_S    17
267562306a36Sopenharmony_ci#define CTLTCAMINDEX_V(x) ((x) << CTLTCAMINDEX_S)
267662306a36Sopenharmony_ci
267762306a36Sopenharmony_ci#define CTLXYBITSEL_S    16
267862306a36Sopenharmony_ci#define CTLXYBITSEL_V(x) ((x) << CTLXYBITSEL_S)
267962306a36Sopenharmony_ci
268062306a36Sopenharmony_ci#define MPS_CLS_TCAM_Y_L(idx) (MPS_CLS_TCAM_Y_L_A + (idx) * 16)
268162306a36Sopenharmony_ci#define NUM_MPS_CLS_TCAM_Y_L_INSTANCES 512
268262306a36Sopenharmony_ci
268362306a36Sopenharmony_ci#define MPS_CLS_TCAM_X_L(idx) (MPS_CLS_TCAM_X_L_A + (idx) * 16)
268462306a36Sopenharmony_ci#define NUM_MPS_CLS_TCAM_X_L_INSTANCES 512
268562306a36Sopenharmony_ci
268662306a36Sopenharmony_ci#define MPS_CLS_SRAM_L_A 0xe000
268762306a36Sopenharmony_ci
268862306a36Sopenharmony_ci#define T6_MULTILISTEN0_S    26
268962306a36Sopenharmony_ci
269062306a36Sopenharmony_ci#define T6_SRAM_PRIO3_S    23
269162306a36Sopenharmony_ci#define T6_SRAM_PRIO3_M    0x7U
269262306a36Sopenharmony_ci#define T6_SRAM_PRIO3_G(x) (((x) >> T6_SRAM_PRIO3_S) & T6_SRAM_PRIO3_M)
269362306a36Sopenharmony_ci
269462306a36Sopenharmony_ci#define T6_SRAM_PRIO2_S    20
269562306a36Sopenharmony_ci#define T6_SRAM_PRIO2_M    0x7U
269662306a36Sopenharmony_ci#define T6_SRAM_PRIO2_G(x) (((x) >> T6_SRAM_PRIO2_S) & T6_SRAM_PRIO2_M)
269762306a36Sopenharmony_ci
269862306a36Sopenharmony_ci#define T6_SRAM_PRIO1_S    17
269962306a36Sopenharmony_ci#define T6_SRAM_PRIO1_M    0x7U
270062306a36Sopenharmony_ci#define T6_SRAM_PRIO1_G(x) (((x) >> T6_SRAM_PRIO1_S) & T6_SRAM_PRIO1_M)
270162306a36Sopenharmony_ci
270262306a36Sopenharmony_ci#define T6_SRAM_PRIO0_S    14
270362306a36Sopenharmony_ci#define T6_SRAM_PRIO0_M    0x7U
270462306a36Sopenharmony_ci#define T6_SRAM_PRIO0_G(x) (((x) >> T6_SRAM_PRIO0_S) & T6_SRAM_PRIO0_M)
270562306a36Sopenharmony_ci
270662306a36Sopenharmony_ci#define T6_SRAM_VLD_S    13
270762306a36Sopenharmony_ci#define T6_SRAM_VLD_V(x) ((x) << T6_SRAM_VLD_S)
270862306a36Sopenharmony_ci#define T6_SRAM_VLD_F    T6_SRAM_VLD_V(1U)
270962306a36Sopenharmony_ci
271062306a36Sopenharmony_ci#define T6_REPLICATE_S    12
271162306a36Sopenharmony_ci#define T6_REPLICATE_V(x) ((x) << T6_REPLICATE_S)
271262306a36Sopenharmony_ci#define T6_REPLICATE_F    T6_REPLICATE_V(1U)
271362306a36Sopenharmony_ci
271462306a36Sopenharmony_ci#define T6_PF_S    9
271562306a36Sopenharmony_ci#define T6_PF_M    0x7U
271662306a36Sopenharmony_ci#define T6_PF_G(x) (((x) >> T6_PF_S) & T6_PF_M)
271762306a36Sopenharmony_ci
271862306a36Sopenharmony_ci#define T6_VF_VALID_S    8
271962306a36Sopenharmony_ci#define T6_VF_VALID_V(x) ((x) << T6_VF_VALID_S)
272062306a36Sopenharmony_ci#define T6_VF_VALID_F    T6_VF_VALID_V(1U)
272162306a36Sopenharmony_ci
272262306a36Sopenharmony_ci#define T6_VF_S    0
272362306a36Sopenharmony_ci#define T6_VF_M    0xffU
272462306a36Sopenharmony_ci#define T6_VF_G(x) (((x) >> T6_VF_S) & T6_VF_M)
272562306a36Sopenharmony_ci
272662306a36Sopenharmony_ci#define MPS_CLS_SRAM_H_A 0xe004
272762306a36Sopenharmony_ci
272862306a36Sopenharmony_ci#define MPS_CLS_SRAM_L(idx) (MPS_CLS_SRAM_L_A + (idx) * 8)
272962306a36Sopenharmony_ci#define NUM_MPS_CLS_SRAM_L_INSTANCES 336
273062306a36Sopenharmony_ci
273162306a36Sopenharmony_ci#define MPS_CLS_SRAM_H(idx) (MPS_CLS_SRAM_H_A + (idx) * 8)
273262306a36Sopenharmony_ci#define NUM_MPS_CLS_SRAM_H_INSTANCES 336
273362306a36Sopenharmony_ci
273462306a36Sopenharmony_ci#define MULTILISTEN0_S    25
273562306a36Sopenharmony_ci
273662306a36Sopenharmony_ci#define REPLICATE_S    11
273762306a36Sopenharmony_ci#define REPLICATE_V(x) ((x) << REPLICATE_S)
273862306a36Sopenharmony_ci#define REPLICATE_F    REPLICATE_V(1U)
273962306a36Sopenharmony_ci
274062306a36Sopenharmony_ci#define PF_S    8
274162306a36Sopenharmony_ci#define PF_M    0x7U
274262306a36Sopenharmony_ci#define PF_G(x) (((x) >> PF_S) & PF_M)
274362306a36Sopenharmony_ci
274462306a36Sopenharmony_ci#define VF_VALID_S    7
274562306a36Sopenharmony_ci#define VF_VALID_V(x) ((x) << VF_VALID_S)
274662306a36Sopenharmony_ci#define VF_VALID_F    VF_VALID_V(1U)
274762306a36Sopenharmony_ci
274862306a36Sopenharmony_ci#define VF_S    0
274962306a36Sopenharmony_ci#define VF_M    0x7fU
275062306a36Sopenharmony_ci#define VF_G(x) (((x) >> VF_S) & VF_M)
275162306a36Sopenharmony_ci
275262306a36Sopenharmony_ci#define SRAM_PRIO3_S    22
275362306a36Sopenharmony_ci#define SRAM_PRIO3_M    0x7U
275462306a36Sopenharmony_ci#define SRAM_PRIO3_G(x) (((x) >> SRAM_PRIO3_S) & SRAM_PRIO3_M)
275562306a36Sopenharmony_ci
275662306a36Sopenharmony_ci#define SRAM_PRIO2_S    19
275762306a36Sopenharmony_ci#define SRAM_PRIO2_M    0x7U
275862306a36Sopenharmony_ci#define SRAM_PRIO2_G(x) (((x) >> SRAM_PRIO2_S) & SRAM_PRIO2_M)
275962306a36Sopenharmony_ci
276062306a36Sopenharmony_ci#define SRAM_PRIO1_S    16
276162306a36Sopenharmony_ci#define SRAM_PRIO1_M    0x7U
276262306a36Sopenharmony_ci#define SRAM_PRIO1_G(x) (((x) >> SRAM_PRIO1_S) & SRAM_PRIO1_M)
276362306a36Sopenharmony_ci
276462306a36Sopenharmony_ci#define SRAM_PRIO0_S    13
276562306a36Sopenharmony_ci#define SRAM_PRIO0_M    0x7U
276662306a36Sopenharmony_ci#define SRAM_PRIO0_G(x) (((x) >> SRAM_PRIO0_S) & SRAM_PRIO0_M)
276762306a36Sopenharmony_ci
276862306a36Sopenharmony_ci#define SRAM_VLD_S    12
276962306a36Sopenharmony_ci#define SRAM_VLD_V(x) ((x) << SRAM_VLD_S)
277062306a36Sopenharmony_ci#define SRAM_VLD_F    SRAM_VLD_V(1U)
277162306a36Sopenharmony_ci
277262306a36Sopenharmony_ci#define PORTMAP_S    0
277362306a36Sopenharmony_ci#define PORTMAP_M    0xfU
277462306a36Sopenharmony_ci#define PORTMAP_G(x) (((x) >> PORTMAP_S) & PORTMAP_M)
277562306a36Sopenharmony_ci
277662306a36Sopenharmony_ci#define CPL_INTR_CAUSE_A 0x19054
277762306a36Sopenharmony_ci
277862306a36Sopenharmony_ci#define CIM_OP_MAP_PERR_S    5
277962306a36Sopenharmony_ci#define CIM_OP_MAP_PERR_V(x) ((x) << CIM_OP_MAP_PERR_S)
278062306a36Sopenharmony_ci#define CIM_OP_MAP_PERR_F    CIM_OP_MAP_PERR_V(1U)
278162306a36Sopenharmony_ci
278262306a36Sopenharmony_ci#define CIM_OVFL_ERROR_S    4
278362306a36Sopenharmony_ci#define CIM_OVFL_ERROR_V(x) ((x) << CIM_OVFL_ERROR_S)
278462306a36Sopenharmony_ci#define CIM_OVFL_ERROR_F    CIM_OVFL_ERROR_V(1U)
278562306a36Sopenharmony_ci
278662306a36Sopenharmony_ci#define TP_FRAMING_ERROR_S    3
278762306a36Sopenharmony_ci#define TP_FRAMING_ERROR_V(x) ((x) << TP_FRAMING_ERROR_S)
278862306a36Sopenharmony_ci#define TP_FRAMING_ERROR_F    TP_FRAMING_ERROR_V(1U)
278962306a36Sopenharmony_ci
279062306a36Sopenharmony_ci#define SGE_FRAMING_ERROR_S    2
279162306a36Sopenharmony_ci#define SGE_FRAMING_ERROR_V(x) ((x) << SGE_FRAMING_ERROR_S)
279262306a36Sopenharmony_ci#define SGE_FRAMING_ERROR_F    SGE_FRAMING_ERROR_V(1U)
279362306a36Sopenharmony_ci
279462306a36Sopenharmony_ci#define CIM_FRAMING_ERROR_S    1
279562306a36Sopenharmony_ci#define CIM_FRAMING_ERROR_V(x) ((x) << CIM_FRAMING_ERROR_S)
279662306a36Sopenharmony_ci#define CIM_FRAMING_ERROR_F    CIM_FRAMING_ERROR_V(1U)
279762306a36Sopenharmony_ci
279862306a36Sopenharmony_ci#define ZERO_SWITCH_ERROR_S    0
279962306a36Sopenharmony_ci#define ZERO_SWITCH_ERROR_V(x) ((x) << ZERO_SWITCH_ERROR_S)
280062306a36Sopenharmony_ci#define ZERO_SWITCH_ERROR_F    ZERO_SWITCH_ERROR_V(1U)
280162306a36Sopenharmony_ci
280262306a36Sopenharmony_ci#define SMB_INT_CAUSE_A 0x19090
280362306a36Sopenharmony_ci
280462306a36Sopenharmony_ci#define MSTTXFIFOPARINT_S    21
280562306a36Sopenharmony_ci#define MSTTXFIFOPARINT_V(x) ((x) << MSTTXFIFOPARINT_S)
280662306a36Sopenharmony_ci#define MSTTXFIFOPARINT_F    MSTTXFIFOPARINT_V(1U)
280762306a36Sopenharmony_ci
280862306a36Sopenharmony_ci#define MSTRXFIFOPARINT_S    20
280962306a36Sopenharmony_ci#define MSTRXFIFOPARINT_V(x) ((x) << MSTRXFIFOPARINT_S)
281062306a36Sopenharmony_ci#define MSTRXFIFOPARINT_F    MSTRXFIFOPARINT_V(1U)
281162306a36Sopenharmony_ci
281262306a36Sopenharmony_ci#define SLVFIFOPARINT_S    19
281362306a36Sopenharmony_ci#define SLVFIFOPARINT_V(x) ((x) << SLVFIFOPARINT_S)
281462306a36Sopenharmony_ci#define SLVFIFOPARINT_F    SLVFIFOPARINT_V(1U)
281562306a36Sopenharmony_ci
281662306a36Sopenharmony_ci#define ULP_RX_INT_CAUSE_A 0x19158
281762306a36Sopenharmony_ci#define ULP_RX_ISCSI_LLIMIT_A 0x1915c
281862306a36Sopenharmony_ci#define ULP_RX_ISCSI_ULIMIT_A 0x19160
281962306a36Sopenharmony_ci#define ULP_RX_ISCSI_TAGMASK_A 0x19164
282062306a36Sopenharmony_ci#define ULP_RX_ISCSI_PSZ_A 0x19168
282162306a36Sopenharmony_ci#define ULP_RX_TDDP_LLIMIT_A 0x1916c
282262306a36Sopenharmony_ci#define ULP_RX_TDDP_ULIMIT_A 0x19170
282362306a36Sopenharmony_ci#define ULP_RX_STAG_LLIMIT_A 0x1917c
282462306a36Sopenharmony_ci#define ULP_RX_STAG_ULIMIT_A 0x19180
282562306a36Sopenharmony_ci#define ULP_RX_RQ_LLIMIT_A 0x19184
282662306a36Sopenharmony_ci#define ULP_RX_RQ_ULIMIT_A 0x19188
282762306a36Sopenharmony_ci#define ULP_RX_PBL_LLIMIT_A 0x1918c
282862306a36Sopenharmony_ci#define ULP_RX_PBL_ULIMIT_A 0x19190
282962306a36Sopenharmony_ci#define ULP_RX_CTX_BASE_A 0x19194
283062306a36Sopenharmony_ci#define ULP_RX_RQUDP_LLIMIT_A 0x191a4
283162306a36Sopenharmony_ci#define ULP_RX_RQUDP_ULIMIT_A 0x191a8
283262306a36Sopenharmony_ci#define ULP_RX_LA_CTL_A 0x1923c
283362306a36Sopenharmony_ci#define ULP_RX_LA_RDPTR_A 0x19240
283462306a36Sopenharmony_ci#define ULP_RX_LA_RDDATA_A 0x19244
283562306a36Sopenharmony_ci#define ULP_RX_LA_WRPTR_A 0x19248
283662306a36Sopenharmony_ci#define ULP_RX_TLS_KEY_LLIMIT_A 0x192ac
283762306a36Sopenharmony_ci#define ULP_RX_TLS_KEY_ULIMIT_A 0x192b0
283862306a36Sopenharmony_ci
283962306a36Sopenharmony_ci#define HPZ3_S    24
284062306a36Sopenharmony_ci#define HPZ3_V(x) ((x) << HPZ3_S)
284162306a36Sopenharmony_ci
284262306a36Sopenharmony_ci#define HPZ2_S    16
284362306a36Sopenharmony_ci#define HPZ2_V(x) ((x) << HPZ2_S)
284462306a36Sopenharmony_ci
284562306a36Sopenharmony_ci#define HPZ1_S    8
284662306a36Sopenharmony_ci#define HPZ1_V(x) ((x) << HPZ1_S)
284762306a36Sopenharmony_ci
284862306a36Sopenharmony_ci#define HPZ0_S    0
284962306a36Sopenharmony_ci#define HPZ0_V(x) ((x) << HPZ0_S)
285062306a36Sopenharmony_ci
285162306a36Sopenharmony_ci#define ULP_RX_TDDP_PSZ_A 0x19178
285262306a36Sopenharmony_ci
285362306a36Sopenharmony_ci/* registers for module SF */
285462306a36Sopenharmony_ci#define SF_DATA_A 0x193f8
285562306a36Sopenharmony_ci#define SF_OP_A 0x193fc
285662306a36Sopenharmony_ci
285762306a36Sopenharmony_ci#define SF_BUSY_S    31
285862306a36Sopenharmony_ci#define SF_BUSY_V(x) ((x) << SF_BUSY_S)
285962306a36Sopenharmony_ci#define SF_BUSY_F    SF_BUSY_V(1U)
286062306a36Sopenharmony_ci
286162306a36Sopenharmony_ci#define SF_LOCK_S    4
286262306a36Sopenharmony_ci#define SF_LOCK_V(x) ((x) << SF_LOCK_S)
286362306a36Sopenharmony_ci#define SF_LOCK_F    SF_LOCK_V(1U)
286462306a36Sopenharmony_ci
286562306a36Sopenharmony_ci#define SF_CONT_S    3
286662306a36Sopenharmony_ci#define SF_CONT_V(x) ((x) << SF_CONT_S)
286762306a36Sopenharmony_ci#define SF_CONT_F    SF_CONT_V(1U)
286862306a36Sopenharmony_ci
286962306a36Sopenharmony_ci#define BYTECNT_S    1
287062306a36Sopenharmony_ci#define BYTECNT_V(x) ((x) << BYTECNT_S)
287162306a36Sopenharmony_ci
287262306a36Sopenharmony_ci#define OP_S    0
287362306a36Sopenharmony_ci#define OP_V(x) ((x) << OP_S)
287462306a36Sopenharmony_ci#define OP_F    OP_V(1U)
287562306a36Sopenharmony_ci
287662306a36Sopenharmony_ci#define PL_PF_INT_CAUSE_A 0x3c0
287762306a36Sopenharmony_ci
287862306a36Sopenharmony_ci#define PFSW_S    3
287962306a36Sopenharmony_ci#define PFSW_V(x) ((x) << PFSW_S)
288062306a36Sopenharmony_ci#define PFSW_F    PFSW_V(1U)
288162306a36Sopenharmony_ci
288262306a36Sopenharmony_ci#define PFCIM_S    1
288362306a36Sopenharmony_ci#define PFCIM_V(x) ((x) << PFCIM_S)
288462306a36Sopenharmony_ci#define PFCIM_F    PFCIM_V(1U)
288562306a36Sopenharmony_ci
288662306a36Sopenharmony_ci#define PL_PF_INT_ENABLE_A 0x3c4
288762306a36Sopenharmony_ci#define PL_PF_CTL_A 0x3c8
288862306a36Sopenharmony_ci
288962306a36Sopenharmony_ci#define PL_WHOAMI_A 0x19400
289062306a36Sopenharmony_ci
289162306a36Sopenharmony_ci#define SOURCEPF_S    8
289262306a36Sopenharmony_ci#define SOURCEPF_M    0x7U
289362306a36Sopenharmony_ci#define SOURCEPF_G(x) (((x) >> SOURCEPF_S) & SOURCEPF_M)
289462306a36Sopenharmony_ci
289562306a36Sopenharmony_ci#define T6_SOURCEPF_S    9
289662306a36Sopenharmony_ci#define T6_SOURCEPF_M    0x7U
289762306a36Sopenharmony_ci#define T6_SOURCEPF_G(x) (((x) >> T6_SOURCEPF_S) & T6_SOURCEPF_M)
289862306a36Sopenharmony_ci
289962306a36Sopenharmony_ci#define PL_INT_CAUSE_A 0x1940c
290062306a36Sopenharmony_ci
290162306a36Sopenharmony_ci#define ULP_TX_S    27
290262306a36Sopenharmony_ci#define ULP_TX_V(x) ((x) << ULP_TX_S)
290362306a36Sopenharmony_ci#define ULP_TX_F    ULP_TX_V(1U)
290462306a36Sopenharmony_ci
290562306a36Sopenharmony_ci#define SGE_S    26
290662306a36Sopenharmony_ci#define SGE_V(x) ((x) << SGE_S)
290762306a36Sopenharmony_ci#define SGE_F    SGE_V(1U)
290862306a36Sopenharmony_ci
290962306a36Sopenharmony_ci#define CPL_SWITCH_S    24
291062306a36Sopenharmony_ci#define CPL_SWITCH_V(x) ((x) << CPL_SWITCH_S)
291162306a36Sopenharmony_ci#define CPL_SWITCH_F    CPL_SWITCH_V(1U)
291262306a36Sopenharmony_ci
291362306a36Sopenharmony_ci#define ULP_RX_S    23
291462306a36Sopenharmony_ci#define ULP_RX_V(x) ((x) << ULP_RX_S)
291562306a36Sopenharmony_ci#define ULP_RX_F    ULP_RX_V(1U)
291662306a36Sopenharmony_ci
291762306a36Sopenharmony_ci#define PM_RX_S    22
291862306a36Sopenharmony_ci#define PM_RX_V(x) ((x) << PM_RX_S)
291962306a36Sopenharmony_ci#define PM_RX_F    PM_RX_V(1U)
292062306a36Sopenharmony_ci
292162306a36Sopenharmony_ci#define PM_TX_S    21
292262306a36Sopenharmony_ci#define PM_TX_V(x) ((x) << PM_TX_S)
292362306a36Sopenharmony_ci#define PM_TX_F    PM_TX_V(1U)
292462306a36Sopenharmony_ci
292562306a36Sopenharmony_ci#define MA_S    20
292662306a36Sopenharmony_ci#define MA_V(x) ((x) << MA_S)
292762306a36Sopenharmony_ci#define MA_F    MA_V(1U)
292862306a36Sopenharmony_ci
292962306a36Sopenharmony_ci#define TP_S    19
293062306a36Sopenharmony_ci#define TP_V(x) ((x) << TP_S)
293162306a36Sopenharmony_ci#define TP_F    TP_V(1U)
293262306a36Sopenharmony_ci
293362306a36Sopenharmony_ci#define LE_S    18
293462306a36Sopenharmony_ci#define LE_V(x) ((x) << LE_S)
293562306a36Sopenharmony_ci#define LE_F    LE_V(1U)
293662306a36Sopenharmony_ci
293762306a36Sopenharmony_ci#define EDC1_S    17
293862306a36Sopenharmony_ci#define EDC1_V(x) ((x) << EDC1_S)
293962306a36Sopenharmony_ci#define EDC1_F    EDC1_V(1U)
294062306a36Sopenharmony_ci
294162306a36Sopenharmony_ci#define EDC0_S    16
294262306a36Sopenharmony_ci#define EDC0_V(x) ((x) << EDC0_S)
294362306a36Sopenharmony_ci#define EDC0_F    EDC0_V(1U)
294462306a36Sopenharmony_ci
294562306a36Sopenharmony_ci#define MC_S    15
294662306a36Sopenharmony_ci#define MC_V(x) ((x) << MC_S)
294762306a36Sopenharmony_ci#define MC_F    MC_V(1U)
294862306a36Sopenharmony_ci
294962306a36Sopenharmony_ci#define PCIE_S    14
295062306a36Sopenharmony_ci#define PCIE_V(x) ((x) << PCIE_S)
295162306a36Sopenharmony_ci#define PCIE_F    PCIE_V(1U)
295262306a36Sopenharmony_ci
295362306a36Sopenharmony_ci#define XGMAC_KR1_S    12
295462306a36Sopenharmony_ci#define XGMAC_KR1_V(x) ((x) << XGMAC_KR1_S)
295562306a36Sopenharmony_ci#define XGMAC_KR1_F    XGMAC_KR1_V(1U)
295662306a36Sopenharmony_ci
295762306a36Sopenharmony_ci#define XGMAC_KR0_S    11
295862306a36Sopenharmony_ci#define XGMAC_KR0_V(x) ((x) << XGMAC_KR0_S)
295962306a36Sopenharmony_ci#define XGMAC_KR0_F    XGMAC_KR0_V(1U)
296062306a36Sopenharmony_ci
296162306a36Sopenharmony_ci#define XGMAC1_S    10
296262306a36Sopenharmony_ci#define XGMAC1_V(x) ((x) << XGMAC1_S)
296362306a36Sopenharmony_ci#define XGMAC1_F    XGMAC1_V(1U)
296462306a36Sopenharmony_ci
296562306a36Sopenharmony_ci#define XGMAC0_S    9
296662306a36Sopenharmony_ci#define XGMAC0_V(x) ((x) << XGMAC0_S)
296762306a36Sopenharmony_ci#define XGMAC0_F    XGMAC0_V(1U)
296862306a36Sopenharmony_ci
296962306a36Sopenharmony_ci#define SMB_S    8
297062306a36Sopenharmony_ci#define SMB_V(x) ((x) << SMB_S)
297162306a36Sopenharmony_ci#define SMB_F    SMB_V(1U)
297262306a36Sopenharmony_ci
297362306a36Sopenharmony_ci#define SF_S    7
297462306a36Sopenharmony_ci#define SF_V(x) ((x) << SF_S)
297562306a36Sopenharmony_ci#define SF_F    SF_V(1U)
297662306a36Sopenharmony_ci
297762306a36Sopenharmony_ci#define PL_S    6
297862306a36Sopenharmony_ci#define PL_V(x) ((x) << PL_S)
297962306a36Sopenharmony_ci#define PL_F    PL_V(1U)
298062306a36Sopenharmony_ci
298162306a36Sopenharmony_ci#define NCSI_S    5
298262306a36Sopenharmony_ci#define NCSI_V(x) ((x) << NCSI_S)
298362306a36Sopenharmony_ci#define NCSI_F    NCSI_V(1U)
298462306a36Sopenharmony_ci
298562306a36Sopenharmony_ci#define MPS_S    4
298662306a36Sopenharmony_ci#define MPS_V(x) ((x) << MPS_S)
298762306a36Sopenharmony_ci#define MPS_F    MPS_V(1U)
298862306a36Sopenharmony_ci
298962306a36Sopenharmony_ci#define CIM_S    0
299062306a36Sopenharmony_ci#define CIM_V(x) ((x) << CIM_S)
299162306a36Sopenharmony_ci#define CIM_F    CIM_V(1U)
299262306a36Sopenharmony_ci
299362306a36Sopenharmony_ci#define MC1_S    31
299462306a36Sopenharmony_ci#define MC1_V(x) ((x) << MC1_S)
299562306a36Sopenharmony_ci#define MC1_F    MC1_V(1U)
299662306a36Sopenharmony_ci
299762306a36Sopenharmony_ci#define PL_INT_ENABLE_A 0x19410
299862306a36Sopenharmony_ci#define PL_INT_MAP0_A 0x19414
299962306a36Sopenharmony_ci#define PL_RST_A 0x19428
300062306a36Sopenharmony_ci
300162306a36Sopenharmony_ci#define PIORST_S    1
300262306a36Sopenharmony_ci#define PIORST_V(x) ((x) << PIORST_S)
300362306a36Sopenharmony_ci#define PIORST_F    PIORST_V(1U)
300462306a36Sopenharmony_ci
300562306a36Sopenharmony_ci#define PIORSTMODE_S    0
300662306a36Sopenharmony_ci#define PIORSTMODE_V(x) ((x) << PIORSTMODE_S)
300762306a36Sopenharmony_ci#define PIORSTMODE_F    PIORSTMODE_V(1U)
300862306a36Sopenharmony_ci
300962306a36Sopenharmony_ci#define PL_PL_INT_CAUSE_A 0x19430
301062306a36Sopenharmony_ci
301162306a36Sopenharmony_ci#define FATALPERR_S    4
301262306a36Sopenharmony_ci#define FATALPERR_V(x) ((x) << FATALPERR_S)
301362306a36Sopenharmony_ci#define FATALPERR_F    FATALPERR_V(1U)
301462306a36Sopenharmony_ci
301562306a36Sopenharmony_ci#define PERRVFID_S    0
301662306a36Sopenharmony_ci#define PERRVFID_V(x) ((x) << PERRVFID_S)
301762306a36Sopenharmony_ci#define PERRVFID_F    PERRVFID_V(1U)
301862306a36Sopenharmony_ci
301962306a36Sopenharmony_ci#define PL_REV_A 0x1943c
302062306a36Sopenharmony_ci
302162306a36Sopenharmony_ci#define REV_S    0
302262306a36Sopenharmony_ci#define REV_M    0xfU
302362306a36Sopenharmony_ci#define REV_V(x) ((x) << REV_S)
302462306a36Sopenharmony_ci#define REV_G(x) (((x) >> REV_S) & REV_M)
302562306a36Sopenharmony_ci
302662306a36Sopenharmony_ci#define HASHTBLMEMCRCERR_S    27
302762306a36Sopenharmony_ci#define HASHTBLMEMCRCERR_V(x) ((x) << HASHTBLMEMCRCERR_S)
302862306a36Sopenharmony_ci#define HASHTBLMEMCRCERR_F    HASHTBLMEMCRCERR_V(1U)
302962306a36Sopenharmony_ci
303062306a36Sopenharmony_ci#define CMDTIDERR_S    22
303162306a36Sopenharmony_ci#define CMDTIDERR_V(x) ((x) << CMDTIDERR_S)
303262306a36Sopenharmony_ci#define CMDTIDERR_F    CMDTIDERR_V(1U)
303362306a36Sopenharmony_ci
303462306a36Sopenharmony_ci#define T6_UNKNOWNCMD_S    3
303562306a36Sopenharmony_ci#define T6_UNKNOWNCMD_V(x) ((x) << T6_UNKNOWNCMD_S)
303662306a36Sopenharmony_ci#define T6_UNKNOWNCMD_F    T6_UNKNOWNCMD_V(1U)
303762306a36Sopenharmony_ci
303862306a36Sopenharmony_ci#define T6_LIP0_S    2
303962306a36Sopenharmony_ci#define T6_LIP0_V(x) ((x) << T6_LIP0_S)
304062306a36Sopenharmony_ci#define T6_LIP0_F    T6_LIP0_V(1U)
304162306a36Sopenharmony_ci
304262306a36Sopenharmony_ci#define T6_LIPMISS_S    1
304362306a36Sopenharmony_ci#define T6_LIPMISS_V(x) ((x) << T6_LIPMISS_S)
304462306a36Sopenharmony_ci#define T6_LIPMISS_F    T6_LIPMISS_V(1U)
304562306a36Sopenharmony_ci
304662306a36Sopenharmony_ci#define LE_DB_CONFIG_A 0x19c04
304762306a36Sopenharmony_ci#define LE_DB_ROUTING_TABLE_INDEX_A 0x19c10
304862306a36Sopenharmony_ci#define LE_DB_ACTIVE_TABLE_START_INDEX_A 0x19c10
304962306a36Sopenharmony_ci#define LE_DB_FILTER_TABLE_INDEX_A 0x19c14
305062306a36Sopenharmony_ci#define LE_DB_SERVER_INDEX_A 0x19c18
305162306a36Sopenharmony_ci#define LE_DB_SRVR_START_INDEX_A 0x19c18
305262306a36Sopenharmony_ci#define LE_DB_CLIP_TABLE_INDEX_A 0x19c1c
305362306a36Sopenharmony_ci#define LE_DB_ACT_CNT_IPV4_A 0x19c20
305462306a36Sopenharmony_ci#define LE_DB_ACT_CNT_IPV6_A 0x19c24
305562306a36Sopenharmony_ci#define LE_DB_HASH_CONFIG_A 0x19c28
305662306a36Sopenharmony_ci
305762306a36Sopenharmony_ci#define HASHTIDSIZE_S    16
305862306a36Sopenharmony_ci#define HASHTIDSIZE_M    0x3fU
305962306a36Sopenharmony_ci#define HASHTIDSIZE_G(x) (((x) >> HASHTIDSIZE_S) & HASHTIDSIZE_M)
306062306a36Sopenharmony_ci
306162306a36Sopenharmony_ci#define HASHTBLSIZE_S    3
306262306a36Sopenharmony_ci#define HASHTBLSIZE_M    0x1ffffU
306362306a36Sopenharmony_ci#define HASHTBLSIZE_G(x) (((x) >> HASHTBLSIZE_S) & HASHTBLSIZE_M)
306462306a36Sopenharmony_ci
306562306a36Sopenharmony_ci#define LE_DB_HASH_TID_BASE_A 0x19c30
306662306a36Sopenharmony_ci#define LE_DB_HASH_TBL_BASE_ADDR_A 0x19c30
306762306a36Sopenharmony_ci#define LE_DB_INT_CAUSE_A 0x19c3c
306862306a36Sopenharmony_ci#define LE_DB_CLCAM_TID_BASE_A 0x19df4
306962306a36Sopenharmony_ci#define LE_DB_TID_HASHBASE_A 0x19df8
307062306a36Sopenharmony_ci#define T6_LE_DB_HASH_TID_BASE_A 0x19df8
307162306a36Sopenharmony_ci
307262306a36Sopenharmony_ci#define HASHEN_S    20
307362306a36Sopenharmony_ci#define HASHEN_V(x) ((x) << HASHEN_S)
307462306a36Sopenharmony_ci#define HASHEN_F    HASHEN_V(1U)
307562306a36Sopenharmony_ci
307662306a36Sopenharmony_ci#define ASLIPCOMPEN_S    17
307762306a36Sopenharmony_ci#define ASLIPCOMPEN_V(x) ((x) << ASLIPCOMPEN_S)
307862306a36Sopenharmony_ci#define ASLIPCOMPEN_F    ASLIPCOMPEN_V(1U)
307962306a36Sopenharmony_ci
308062306a36Sopenharmony_ci#define REQQPARERR_S    16
308162306a36Sopenharmony_ci#define REQQPARERR_V(x) ((x) << REQQPARERR_S)
308262306a36Sopenharmony_ci#define REQQPARERR_F    REQQPARERR_V(1U)
308362306a36Sopenharmony_ci
308462306a36Sopenharmony_ci#define UNKNOWNCMD_S    15
308562306a36Sopenharmony_ci#define UNKNOWNCMD_V(x) ((x) << UNKNOWNCMD_S)
308662306a36Sopenharmony_ci#define UNKNOWNCMD_F    UNKNOWNCMD_V(1U)
308762306a36Sopenharmony_ci
308862306a36Sopenharmony_ci#define PARITYERR_S    6
308962306a36Sopenharmony_ci#define PARITYERR_V(x) ((x) << PARITYERR_S)
309062306a36Sopenharmony_ci#define PARITYERR_F    PARITYERR_V(1U)
309162306a36Sopenharmony_ci
309262306a36Sopenharmony_ci#define LIPMISS_S    5
309362306a36Sopenharmony_ci#define LIPMISS_V(x) ((x) << LIPMISS_S)
309462306a36Sopenharmony_ci#define LIPMISS_F    LIPMISS_V(1U)
309562306a36Sopenharmony_ci
309662306a36Sopenharmony_ci#define LIP0_S    4
309762306a36Sopenharmony_ci#define LIP0_V(x) ((x) << LIP0_S)
309862306a36Sopenharmony_ci#define LIP0_F    LIP0_V(1U)
309962306a36Sopenharmony_ci
310062306a36Sopenharmony_ci#define BASEADDR_S    3
310162306a36Sopenharmony_ci#define BASEADDR_M    0x1fffffffU
310262306a36Sopenharmony_ci#define BASEADDR_G(x) (((x) >> BASEADDR_S) & BASEADDR_M)
310362306a36Sopenharmony_ci
310462306a36Sopenharmony_ci#define TCAMINTPERR_S    13
310562306a36Sopenharmony_ci#define TCAMINTPERR_V(x) ((x) << TCAMINTPERR_S)
310662306a36Sopenharmony_ci#define TCAMINTPERR_F    TCAMINTPERR_V(1U)
310762306a36Sopenharmony_ci
310862306a36Sopenharmony_ci#define SSRAMINTPERR_S    10
310962306a36Sopenharmony_ci#define SSRAMINTPERR_V(x) ((x) << SSRAMINTPERR_S)
311062306a36Sopenharmony_ci#define SSRAMINTPERR_F    SSRAMINTPERR_V(1U)
311162306a36Sopenharmony_ci
311262306a36Sopenharmony_ci#define LE_DB_RSP_CODE_0_A	0x19c74
311362306a36Sopenharmony_ci
311462306a36Sopenharmony_ci#define TCAM_ACTV_HIT_S		0
311562306a36Sopenharmony_ci#define TCAM_ACTV_HIT_M		0x1fU
311662306a36Sopenharmony_ci#define TCAM_ACTV_HIT_V(x)	((x) << TCAM_ACTV_HIT_S)
311762306a36Sopenharmony_ci#define TCAM_ACTV_HIT_G(x)	(((x) >> TCAM_ACTV_HIT_S) & TCAM_ACTV_HIT_M)
311862306a36Sopenharmony_ci
311962306a36Sopenharmony_ci#define LE_DB_RSP_CODE_1_A     0x19c78
312062306a36Sopenharmony_ci
312162306a36Sopenharmony_ci#define HASH_ACTV_HIT_S		25
312262306a36Sopenharmony_ci#define HASH_ACTV_HIT_M		0x1fU
312362306a36Sopenharmony_ci#define HASH_ACTV_HIT_V(x)	((x) << HASH_ACTV_HIT_S)
312462306a36Sopenharmony_ci#define HASH_ACTV_HIT_G(x)	(((x) >> HASH_ACTV_HIT_S) & HASH_ACTV_HIT_M)
312562306a36Sopenharmony_ci
312662306a36Sopenharmony_ci#define LE_3_DB_HASH_MASK_GEN_IPV4_T6_A	0x19eac
312762306a36Sopenharmony_ci#define LE_4_DB_HASH_MASK_GEN_IPV4_T6_A	0x19eb0
312862306a36Sopenharmony_ci
312962306a36Sopenharmony_ci#define NCSI_INT_CAUSE_A 0x1a0d8
313062306a36Sopenharmony_ci
313162306a36Sopenharmony_ci#define CIM_DM_PRTY_ERR_S    8
313262306a36Sopenharmony_ci#define CIM_DM_PRTY_ERR_V(x) ((x) << CIM_DM_PRTY_ERR_S)
313362306a36Sopenharmony_ci#define CIM_DM_PRTY_ERR_F    CIM_DM_PRTY_ERR_V(1U)
313462306a36Sopenharmony_ci
313562306a36Sopenharmony_ci#define MPS_DM_PRTY_ERR_S    7
313662306a36Sopenharmony_ci#define MPS_DM_PRTY_ERR_V(x) ((x) << MPS_DM_PRTY_ERR_S)
313762306a36Sopenharmony_ci#define MPS_DM_PRTY_ERR_F    MPS_DM_PRTY_ERR_V(1U)
313862306a36Sopenharmony_ci
313962306a36Sopenharmony_ci#define TXFIFO_PRTY_ERR_S    1
314062306a36Sopenharmony_ci#define TXFIFO_PRTY_ERR_V(x) ((x) << TXFIFO_PRTY_ERR_S)
314162306a36Sopenharmony_ci#define TXFIFO_PRTY_ERR_F    TXFIFO_PRTY_ERR_V(1U)
314262306a36Sopenharmony_ci
314362306a36Sopenharmony_ci#define RXFIFO_PRTY_ERR_S    0
314462306a36Sopenharmony_ci#define RXFIFO_PRTY_ERR_V(x) ((x) << RXFIFO_PRTY_ERR_S)
314562306a36Sopenharmony_ci#define RXFIFO_PRTY_ERR_F    RXFIFO_PRTY_ERR_V(1U)
314662306a36Sopenharmony_ci
314762306a36Sopenharmony_ci#define XGMAC_PORT_CFG2_A 0x1018
314862306a36Sopenharmony_ci
314962306a36Sopenharmony_ci#define PATEN_S    18
315062306a36Sopenharmony_ci#define PATEN_V(x) ((x) << PATEN_S)
315162306a36Sopenharmony_ci#define PATEN_F    PATEN_V(1U)
315262306a36Sopenharmony_ci
315362306a36Sopenharmony_ci#define MAGICEN_S    17
315462306a36Sopenharmony_ci#define MAGICEN_V(x) ((x) << MAGICEN_S)
315562306a36Sopenharmony_ci#define MAGICEN_F    MAGICEN_V(1U)
315662306a36Sopenharmony_ci
315762306a36Sopenharmony_ci#define XGMAC_PORT_MAGIC_MACID_LO 0x1024
315862306a36Sopenharmony_ci#define XGMAC_PORT_MAGIC_MACID_HI 0x1028
315962306a36Sopenharmony_ci
316062306a36Sopenharmony_ci#define XGMAC_PORT_EPIO_DATA0_A 0x10c0
316162306a36Sopenharmony_ci#define XGMAC_PORT_EPIO_DATA1_A 0x10c4
316262306a36Sopenharmony_ci#define XGMAC_PORT_EPIO_DATA2_A 0x10c8
316362306a36Sopenharmony_ci#define XGMAC_PORT_EPIO_DATA3_A 0x10cc
316462306a36Sopenharmony_ci#define XGMAC_PORT_EPIO_OP_A 0x10d0
316562306a36Sopenharmony_ci
316662306a36Sopenharmony_ci#define EPIOWR_S    8
316762306a36Sopenharmony_ci#define EPIOWR_V(x) ((x) << EPIOWR_S)
316862306a36Sopenharmony_ci#define EPIOWR_F    EPIOWR_V(1U)
316962306a36Sopenharmony_ci
317062306a36Sopenharmony_ci#define ADDRESS_S    0
317162306a36Sopenharmony_ci#define ADDRESS_V(x) ((x) << ADDRESS_S)
317262306a36Sopenharmony_ci
317362306a36Sopenharmony_ci#define MAC_PORT_INT_CAUSE_A 0x8dc
317462306a36Sopenharmony_ci#define XGMAC_PORT_INT_CAUSE_A 0x10dc
317562306a36Sopenharmony_ci
317662306a36Sopenharmony_ci#define TP_TX_MOD_QUEUE_REQ_MAP_A 0x7e28
317762306a36Sopenharmony_ci
317862306a36Sopenharmony_ci#define TP_TX_MOD_QUEUE_WEIGHT0_A 0x7e30
317962306a36Sopenharmony_ci#define TP_TX_MOD_CHANNEL_WEIGHT_A 0x7e34
318062306a36Sopenharmony_ci
318162306a36Sopenharmony_ci#define TX_MOD_QUEUE_REQ_MAP_S    0
318262306a36Sopenharmony_ci#define TX_MOD_QUEUE_REQ_MAP_V(x) ((x) << TX_MOD_QUEUE_REQ_MAP_S)
318362306a36Sopenharmony_ci
318462306a36Sopenharmony_ci#define TX_MODQ_WEIGHT3_S    24
318562306a36Sopenharmony_ci#define TX_MODQ_WEIGHT3_V(x) ((x) << TX_MODQ_WEIGHT3_S)
318662306a36Sopenharmony_ci
318762306a36Sopenharmony_ci#define TX_MODQ_WEIGHT2_S    16
318862306a36Sopenharmony_ci#define TX_MODQ_WEIGHT2_V(x) ((x) << TX_MODQ_WEIGHT2_S)
318962306a36Sopenharmony_ci
319062306a36Sopenharmony_ci#define TX_MODQ_WEIGHT1_S    8
319162306a36Sopenharmony_ci#define TX_MODQ_WEIGHT1_V(x) ((x) << TX_MODQ_WEIGHT1_S)
319262306a36Sopenharmony_ci
319362306a36Sopenharmony_ci#define TX_MODQ_WEIGHT0_S    0
319462306a36Sopenharmony_ci#define TX_MODQ_WEIGHT0_V(x) ((x) << TX_MODQ_WEIGHT0_S)
319562306a36Sopenharmony_ci
319662306a36Sopenharmony_ci#define TP_TX_SCHED_HDR_A 0x23
319762306a36Sopenharmony_ci#define TP_TX_SCHED_FIFO_A 0x24
319862306a36Sopenharmony_ci#define TP_TX_SCHED_PCMD_A 0x25
319962306a36Sopenharmony_ci
320062306a36Sopenharmony_ci#define NUM_MPS_CLS_SRAM_L_INSTANCES 336
320162306a36Sopenharmony_ci#define NUM_MPS_T5_CLS_SRAM_L_INSTANCES 512
320262306a36Sopenharmony_ci
320362306a36Sopenharmony_ci#define T5_PORT0_BASE 0x30000
320462306a36Sopenharmony_ci#define T5_PORT_STRIDE 0x4000
320562306a36Sopenharmony_ci#define T5_PORT_BASE(idx) (T5_PORT0_BASE + (idx) * T5_PORT_STRIDE)
320662306a36Sopenharmony_ci#define T5_PORT_REG(idx, reg) (T5_PORT_BASE(idx) + (reg))
320762306a36Sopenharmony_ci
320862306a36Sopenharmony_ci#define MC_0_BASE_ADDR 0x40000
320962306a36Sopenharmony_ci#define MC_1_BASE_ADDR 0x48000
321062306a36Sopenharmony_ci#define MC_STRIDE (MC_1_BASE_ADDR - MC_0_BASE_ADDR)
321162306a36Sopenharmony_ci#define MC_REG(reg, idx) (reg + MC_STRIDE * idx)
321262306a36Sopenharmony_ci
321362306a36Sopenharmony_ci#define MC_P_BIST_CMD_A			0x41400
321462306a36Sopenharmony_ci#define MC_P_BIST_CMD_ADDR_A		0x41404
321562306a36Sopenharmony_ci#define MC_P_BIST_CMD_LEN_A		0x41408
321662306a36Sopenharmony_ci#define MC_P_BIST_DATA_PATTERN_A	0x4140c
321762306a36Sopenharmony_ci#define MC_P_BIST_STATUS_RDATA_A	0x41488
321862306a36Sopenharmony_ci
321962306a36Sopenharmony_ci#define EDC_T50_BASE_ADDR		0x50000
322062306a36Sopenharmony_ci
322162306a36Sopenharmony_ci#define EDC_H_BIST_CMD_A		0x50004
322262306a36Sopenharmony_ci#define EDC_H_BIST_CMD_ADDR_A		0x50008
322362306a36Sopenharmony_ci#define EDC_H_BIST_CMD_LEN_A		0x5000c
322462306a36Sopenharmony_ci#define EDC_H_BIST_DATA_PATTERN_A	0x50010
322562306a36Sopenharmony_ci#define EDC_H_BIST_STATUS_RDATA_A	0x50028
322662306a36Sopenharmony_ci
322762306a36Sopenharmony_ci#define EDC_H_ECC_ERR_ADDR_A		0x50084
322862306a36Sopenharmony_ci#define EDC_T51_BASE_ADDR		0x50800
322962306a36Sopenharmony_ci
323062306a36Sopenharmony_ci#define EDC_T5_STRIDE (EDC_T51_BASE_ADDR - EDC_T50_BASE_ADDR)
323162306a36Sopenharmony_ci#define EDC_T5_REG(reg, idx) (reg + EDC_T5_STRIDE * idx)
323262306a36Sopenharmony_ci
323362306a36Sopenharmony_ci#define PL_VF_REV_A 0x4
323462306a36Sopenharmony_ci#define PL_VF_WHOAMI_A 0x0
323562306a36Sopenharmony_ci#define PL_VF_REVISION_A 0x8
323662306a36Sopenharmony_ci
323762306a36Sopenharmony_ci/* registers for module CIM */
323862306a36Sopenharmony_ci#define CIM_HOST_ACC_CTRL_A	0x7b50
323962306a36Sopenharmony_ci#define CIM_HOST_ACC_DATA_A	0x7b54
324062306a36Sopenharmony_ci#define UP_UP_DBG_LA_CFG_A	0x140
324162306a36Sopenharmony_ci#define UP_UP_DBG_LA_DATA_A	0x144
324262306a36Sopenharmony_ci
324362306a36Sopenharmony_ci#define HOSTBUSY_S	17
324462306a36Sopenharmony_ci#define HOSTBUSY_V(x)	((x) << HOSTBUSY_S)
324562306a36Sopenharmony_ci#define HOSTBUSY_F	HOSTBUSY_V(1U)
324662306a36Sopenharmony_ci
324762306a36Sopenharmony_ci#define HOSTWRITE_S	16
324862306a36Sopenharmony_ci#define HOSTWRITE_V(x)	((x) << HOSTWRITE_S)
324962306a36Sopenharmony_ci#define HOSTWRITE_F	HOSTWRITE_V(1U)
325062306a36Sopenharmony_ci
325162306a36Sopenharmony_ci#define CIM_IBQ_DBG_CFG_A 0x7b60
325262306a36Sopenharmony_ci
325362306a36Sopenharmony_ci#define IBQDBGADDR_S    16
325462306a36Sopenharmony_ci#define IBQDBGADDR_M    0xfffU
325562306a36Sopenharmony_ci#define IBQDBGADDR_V(x) ((x) << IBQDBGADDR_S)
325662306a36Sopenharmony_ci#define IBQDBGADDR_G(x) (((x) >> IBQDBGADDR_S) & IBQDBGADDR_M)
325762306a36Sopenharmony_ci
325862306a36Sopenharmony_ci#define IBQDBGBUSY_S    1
325962306a36Sopenharmony_ci#define IBQDBGBUSY_V(x) ((x) << IBQDBGBUSY_S)
326062306a36Sopenharmony_ci#define IBQDBGBUSY_F    IBQDBGBUSY_V(1U)
326162306a36Sopenharmony_ci
326262306a36Sopenharmony_ci#define IBQDBGEN_S    0
326362306a36Sopenharmony_ci#define IBQDBGEN_V(x) ((x) << IBQDBGEN_S)
326462306a36Sopenharmony_ci#define IBQDBGEN_F    IBQDBGEN_V(1U)
326562306a36Sopenharmony_ci
326662306a36Sopenharmony_ci#define CIM_OBQ_DBG_CFG_A 0x7b64
326762306a36Sopenharmony_ci
326862306a36Sopenharmony_ci#define OBQDBGADDR_S    16
326962306a36Sopenharmony_ci#define OBQDBGADDR_M    0xfffU
327062306a36Sopenharmony_ci#define OBQDBGADDR_V(x) ((x) << OBQDBGADDR_S)
327162306a36Sopenharmony_ci#define OBQDBGADDR_G(x) (((x) >> OBQDBGADDR_S) & OBQDBGADDR_M)
327262306a36Sopenharmony_ci
327362306a36Sopenharmony_ci#define OBQDBGBUSY_S    1
327462306a36Sopenharmony_ci#define OBQDBGBUSY_V(x) ((x) << OBQDBGBUSY_S)
327562306a36Sopenharmony_ci#define OBQDBGBUSY_F    OBQDBGBUSY_V(1U)
327662306a36Sopenharmony_ci
327762306a36Sopenharmony_ci#define OBQDBGEN_S    0
327862306a36Sopenharmony_ci#define OBQDBGEN_V(x) ((x) << OBQDBGEN_S)
327962306a36Sopenharmony_ci#define OBQDBGEN_F    OBQDBGEN_V(1U)
328062306a36Sopenharmony_ci
328162306a36Sopenharmony_ci#define CIM_IBQ_DBG_DATA_A 0x7b68
328262306a36Sopenharmony_ci#define CIM_OBQ_DBG_DATA_A 0x7b6c
328362306a36Sopenharmony_ci#define CIM_DEBUGCFG_A 0x7b70
328462306a36Sopenharmony_ci#define CIM_DEBUGSTS_A 0x7b74
328562306a36Sopenharmony_ci
328662306a36Sopenharmony_ci#define POLADBGRDPTR_S		23
328762306a36Sopenharmony_ci#define POLADBGRDPTR_M		0x1ffU
328862306a36Sopenharmony_ci#define POLADBGRDPTR_V(x)	((x) << POLADBGRDPTR_S)
328962306a36Sopenharmony_ci
329062306a36Sopenharmony_ci#define POLADBGWRPTR_S		16
329162306a36Sopenharmony_ci#define POLADBGWRPTR_M		0x1ffU
329262306a36Sopenharmony_ci#define POLADBGWRPTR_G(x)	(((x) >> POLADBGWRPTR_S) & POLADBGWRPTR_M)
329362306a36Sopenharmony_ci
329462306a36Sopenharmony_ci#define PILADBGRDPTR_S		14
329562306a36Sopenharmony_ci#define PILADBGRDPTR_M		0x1ffU
329662306a36Sopenharmony_ci#define PILADBGRDPTR_V(x)	((x) << PILADBGRDPTR_S)
329762306a36Sopenharmony_ci
329862306a36Sopenharmony_ci#define PILADBGWRPTR_S		0
329962306a36Sopenharmony_ci#define PILADBGWRPTR_M		0x1ffU
330062306a36Sopenharmony_ci#define PILADBGWRPTR_G(x)	(((x) >> PILADBGWRPTR_S) & PILADBGWRPTR_M)
330162306a36Sopenharmony_ci
330262306a36Sopenharmony_ci#define LADBGEN_S	12
330362306a36Sopenharmony_ci#define LADBGEN_V(x)	((x) << LADBGEN_S)
330462306a36Sopenharmony_ci#define LADBGEN_F	LADBGEN_V(1U)
330562306a36Sopenharmony_ci
330662306a36Sopenharmony_ci#define CIM_PO_LA_DEBUGDATA_A 0x7b78
330762306a36Sopenharmony_ci#define CIM_PI_LA_DEBUGDATA_A 0x7b7c
330862306a36Sopenharmony_ci#define CIM_PO_LA_MADEBUGDATA_A	0x7b80
330962306a36Sopenharmony_ci#define CIM_PI_LA_MADEBUGDATA_A	0x7b84
331062306a36Sopenharmony_ci
331162306a36Sopenharmony_ci#define UPDBGLARDEN_S		1
331262306a36Sopenharmony_ci#define UPDBGLARDEN_V(x)	((x) << UPDBGLARDEN_S)
331362306a36Sopenharmony_ci#define UPDBGLARDEN_F		UPDBGLARDEN_V(1U)
331462306a36Sopenharmony_ci
331562306a36Sopenharmony_ci#define UPDBGLAEN_S	0
331662306a36Sopenharmony_ci#define UPDBGLAEN_V(x)	((x) << UPDBGLAEN_S)
331762306a36Sopenharmony_ci#define UPDBGLAEN_F	UPDBGLAEN_V(1U)
331862306a36Sopenharmony_ci
331962306a36Sopenharmony_ci#define UPDBGLARDPTR_S		2
332062306a36Sopenharmony_ci#define UPDBGLARDPTR_M		0xfffU
332162306a36Sopenharmony_ci#define UPDBGLARDPTR_V(x)	((x) << UPDBGLARDPTR_S)
332262306a36Sopenharmony_ci
332362306a36Sopenharmony_ci#define UPDBGLAWRPTR_S    16
332462306a36Sopenharmony_ci#define UPDBGLAWRPTR_M    0xfffU
332562306a36Sopenharmony_ci#define UPDBGLAWRPTR_G(x) (((x) >> UPDBGLAWRPTR_S) & UPDBGLAWRPTR_M)
332662306a36Sopenharmony_ci
332762306a36Sopenharmony_ci#define UPDBGLACAPTPCONLY_S	30
332862306a36Sopenharmony_ci#define UPDBGLACAPTPCONLY_V(x)	((x) << UPDBGLACAPTPCONLY_S)
332962306a36Sopenharmony_ci#define UPDBGLACAPTPCONLY_F	UPDBGLACAPTPCONLY_V(1U)
333062306a36Sopenharmony_ci
333162306a36Sopenharmony_ci#define CIM_QUEUE_CONFIG_REF_A 0x7b48
333262306a36Sopenharmony_ci#define CIM_QUEUE_CONFIG_CTRL_A 0x7b4c
333362306a36Sopenharmony_ci
333462306a36Sopenharmony_ci#define CIMQSIZE_S    24
333562306a36Sopenharmony_ci#define CIMQSIZE_M    0x3fU
333662306a36Sopenharmony_ci#define CIMQSIZE_G(x) (((x) >> CIMQSIZE_S) & CIMQSIZE_M)
333762306a36Sopenharmony_ci
333862306a36Sopenharmony_ci#define CIMQBASE_S    16
333962306a36Sopenharmony_ci#define CIMQBASE_M    0x3fU
334062306a36Sopenharmony_ci#define CIMQBASE_G(x) (((x) >> CIMQBASE_S) & CIMQBASE_M)
334162306a36Sopenharmony_ci
334262306a36Sopenharmony_ci#define QUEFULLTHRSH_S    0
334362306a36Sopenharmony_ci#define QUEFULLTHRSH_M    0x1ffU
334462306a36Sopenharmony_ci#define QUEFULLTHRSH_G(x) (((x) >> QUEFULLTHRSH_S) & QUEFULLTHRSH_M)
334562306a36Sopenharmony_ci
334662306a36Sopenharmony_ci#define UP_IBQ_0_RDADDR_A 0x10
334762306a36Sopenharmony_ci#define UP_IBQ_0_SHADOW_RDADDR_A 0x280
334862306a36Sopenharmony_ci#define UP_OBQ_0_REALADDR_A 0x104
334962306a36Sopenharmony_ci#define UP_OBQ_0_SHADOW_REALADDR_A 0x394
335062306a36Sopenharmony_ci
335162306a36Sopenharmony_ci#define IBQRDADDR_S    0
335262306a36Sopenharmony_ci#define IBQRDADDR_M    0x1fffU
335362306a36Sopenharmony_ci#define IBQRDADDR_G(x) (((x) >> IBQRDADDR_S) & IBQRDADDR_M)
335462306a36Sopenharmony_ci
335562306a36Sopenharmony_ci#define IBQWRADDR_S    0
335662306a36Sopenharmony_ci#define IBQWRADDR_M    0x1fffU
335762306a36Sopenharmony_ci#define IBQWRADDR_G(x) (((x) >> IBQWRADDR_S) & IBQWRADDR_M)
335862306a36Sopenharmony_ci
335962306a36Sopenharmony_ci#define QUERDADDR_S    0
336062306a36Sopenharmony_ci#define QUERDADDR_M    0x7fffU
336162306a36Sopenharmony_ci#define QUERDADDR_G(x) (((x) >> QUERDADDR_S) & QUERDADDR_M)
336262306a36Sopenharmony_ci
336362306a36Sopenharmony_ci#define QUEREMFLITS_S    0
336462306a36Sopenharmony_ci#define QUEREMFLITS_M    0x7ffU
336562306a36Sopenharmony_ci#define QUEREMFLITS_G(x) (((x) >> QUEREMFLITS_S) & QUEREMFLITS_M)
336662306a36Sopenharmony_ci
336762306a36Sopenharmony_ci#define QUEEOPCNT_S    16
336862306a36Sopenharmony_ci#define QUEEOPCNT_M    0xfffU
336962306a36Sopenharmony_ci#define QUEEOPCNT_G(x) (((x) >> QUEEOPCNT_S) & QUEEOPCNT_M)
337062306a36Sopenharmony_ci
337162306a36Sopenharmony_ci#define QUESOPCNT_S    0
337262306a36Sopenharmony_ci#define QUESOPCNT_M    0xfffU
337362306a36Sopenharmony_ci#define QUESOPCNT_G(x) (((x) >> QUESOPCNT_S) & QUESOPCNT_M)
337462306a36Sopenharmony_ci
337562306a36Sopenharmony_ci#define OBQSELECT_S    4
337662306a36Sopenharmony_ci#define OBQSELECT_V(x) ((x) << OBQSELECT_S)
337762306a36Sopenharmony_ci#define OBQSELECT_F    OBQSELECT_V(1U)
337862306a36Sopenharmony_ci
337962306a36Sopenharmony_ci#define IBQSELECT_S    3
338062306a36Sopenharmony_ci#define IBQSELECT_V(x) ((x) << IBQSELECT_S)
338162306a36Sopenharmony_ci#define IBQSELECT_F    IBQSELECT_V(1U)
338262306a36Sopenharmony_ci
338362306a36Sopenharmony_ci#define QUENUMSELECT_S    0
338462306a36Sopenharmony_ci#define QUENUMSELECT_V(x) ((x) << QUENUMSELECT_S)
338562306a36Sopenharmony_ci
338662306a36Sopenharmony_ci#endif /* __T4_REGS_H */
3387