18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * This file is part of the Chelsio T4 Ethernet driver for Linux.
38c2ecf20Sopenharmony_ci *
48c2ecf20Sopenharmony_ci * Copyright (c) 2003-2014 Chelsio Communications, Inc. All rights reserved.
58c2ecf20Sopenharmony_ci *
68c2ecf20Sopenharmony_ci * This software is available to you under a choice of one of two
78c2ecf20Sopenharmony_ci * licenses.  You may choose to be licensed under the terms of the GNU
88c2ecf20Sopenharmony_ci * General Public License (GPL) Version 2, available from the file
98c2ecf20Sopenharmony_ci * COPYING in the main directory of this source tree, or the
108c2ecf20Sopenharmony_ci * OpenIB.org BSD license below:
118c2ecf20Sopenharmony_ci *
128c2ecf20Sopenharmony_ci *     Redistribution and use in source and binary forms, with or
138c2ecf20Sopenharmony_ci *     without modification, are permitted provided that the following
148c2ecf20Sopenharmony_ci *     conditions are met:
158c2ecf20Sopenharmony_ci *
168c2ecf20Sopenharmony_ci *      - Redistributions of source code must retain the above
178c2ecf20Sopenharmony_ci *        copyright notice, this list of conditions and the following
188c2ecf20Sopenharmony_ci *        disclaimer.
198c2ecf20Sopenharmony_ci *
208c2ecf20Sopenharmony_ci *      - Redistributions in binary form must reproduce the above
218c2ecf20Sopenharmony_ci *        copyright notice, this list of conditions and the following
228c2ecf20Sopenharmony_ci *        disclaimer in the documentation and/or other materials
238c2ecf20Sopenharmony_ci *        provided with the distribution.
248c2ecf20Sopenharmony_ci *
258c2ecf20Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
268c2ecf20Sopenharmony_ci * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
278c2ecf20Sopenharmony_ci * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
288c2ecf20Sopenharmony_ci * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
298c2ecf20Sopenharmony_ci * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
308c2ecf20Sopenharmony_ci * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
318c2ecf20Sopenharmony_ci * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
328c2ecf20Sopenharmony_ci * SOFTWARE.
338c2ecf20Sopenharmony_ci */
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ci#ifndef __T4_REGS_H
368c2ecf20Sopenharmony_ci#define __T4_REGS_H
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_ci#define MYPF_BASE 0x1b000
398c2ecf20Sopenharmony_ci#define MYPF_REG(reg_addr) (MYPF_BASE + (reg_addr))
408c2ecf20Sopenharmony_ci
418c2ecf20Sopenharmony_ci#define PF0_BASE 0x1e000
428c2ecf20Sopenharmony_ci#define PF0_REG(reg_addr) (PF0_BASE + (reg_addr))
438c2ecf20Sopenharmony_ci
448c2ecf20Sopenharmony_ci#define PF_STRIDE 0x400
458c2ecf20Sopenharmony_ci#define PF_BASE(idx) (PF0_BASE + (idx) * PF_STRIDE)
468c2ecf20Sopenharmony_ci#define PF_REG(idx, reg) (PF_BASE(idx) + (reg))
478c2ecf20Sopenharmony_ci
488c2ecf20Sopenharmony_ci#define NUM_CIM_CTL_TSCH_CHANNEL_INSTANCES 4
498c2ecf20Sopenharmony_ci#define NUM_CIM_CTL_TSCH_CHANNEL_TSCH_CLASS_INSTANCES 16
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ci#define MYPORT_BASE 0x1c000
528c2ecf20Sopenharmony_ci#define MYPORT_REG(reg_addr) (MYPORT_BASE + (reg_addr))
538c2ecf20Sopenharmony_ci
548c2ecf20Sopenharmony_ci#define PORT0_BASE 0x20000
558c2ecf20Sopenharmony_ci#define PORT0_REG(reg_addr) (PORT0_BASE + (reg_addr))
568c2ecf20Sopenharmony_ci
578c2ecf20Sopenharmony_ci#define PORT_STRIDE 0x2000
588c2ecf20Sopenharmony_ci#define PORT_BASE(idx) (PORT0_BASE + (idx) * PORT_STRIDE)
598c2ecf20Sopenharmony_ci#define PORT_REG(idx, reg) (PORT_BASE(idx) + (reg))
608c2ecf20Sopenharmony_ci
618c2ecf20Sopenharmony_ci#define EDC_STRIDE (EDC_1_BASE_ADDR - EDC_0_BASE_ADDR)
628c2ecf20Sopenharmony_ci#define EDC_REG(reg, idx) (reg + EDC_STRIDE * idx)
638c2ecf20Sopenharmony_ci
648c2ecf20Sopenharmony_ci#define PCIE_MEM_ACCESS_REG(reg_addr, idx) ((reg_addr) + (idx) * 8)
658c2ecf20Sopenharmony_ci#define PCIE_MAILBOX_REG(reg_addr, idx) ((reg_addr) + (idx) * 8)
668c2ecf20Sopenharmony_ci#define MC_BIST_STATUS_REG(reg_addr, idx) ((reg_addr) + (idx) * 4)
678c2ecf20Sopenharmony_ci#define EDC_BIST_STATUS_REG(reg_addr, idx) ((reg_addr) + (idx) * 4)
688c2ecf20Sopenharmony_ci
698c2ecf20Sopenharmony_ci#define PCIE_FW_REG(reg_addr, idx) ((reg_addr) + (idx) * 4)
708c2ecf20Sopenharmony_ci
718c2ecf20Sopenharmony_ci#define NUM_LE_DB_DBGI_REQ_DATA_INSTANCES 17
728c2ecf20Sopenharmony_ci#define NUM_LE_DB_DBGI_RSP_DATA_INSTANCES 17
738c2ecf20Sopenharmony_ci
748c2ecf20Sopenharmony_ci#define SGE_PF_KDOORBELL_A 0x0
758c2ecf20Sopenharmony_ci
768c2ecf20Sopenharmony_ci#define QID_S    15
778c2ecf20Sopenharmony_ci#define QID_V(x) ((x) << QID_S)
788c2ecf20Sopenharmony_ci
798c2ecf20Sopenharmony_ci#define DBPRIO_S    14
808c2ecf20Sopenharmony_ci#define DBPRIO_V(x) ((x) << DBPRIO_S)
818c2ecf20Sopenharmony_ci#define DBPRIO_F    DBPRIO_V(1U)
828c2ecf20Sopenharmony_ci
838c2ecf20Sopenharmony_ci#define PIDX_S    0
848c2ecf20Sopenharmony_ci#define PIDX_V(x) ((x) << PIDX_S)
858c2ecf20Sopenharmony_ci
868c2ecf20Sopenharmony_ci#define SGE_VF_KDOORBELL_A 0x0
878c2ecf20Sopenharmony_ci
888c2ecf20Sopenharmony_ci#define DBTYPE_S    13
898c2ecf20Sopenharmony_ci#define DBTYPE_V(x) ((x) << DBTYPE_S)
908c2ecf20Sopenharmony_ci#define DBTYPE_F    DBTYPE_V(1U)
918c2ecf20Sopenharmony_ci
928c2ecf20Sopenharmony_ci#define PIDX_T5_S    0
938c2ecf20Sopenharmony_ci#define PIDX_T5_M    0x1fffU
948c2ecf20Sopenharmony_ci#define PIDX_T5_V(x) ((x) << PIDX_T5_S)
958c2ecf20Sopenharmony_ci#define PIDX_T5_G(x) (((x) >> PIDX_T5_S) & PIDX_T5_M)
968c2ecf20Sopenharmony_ci
978c2ecf20Sopenharmony_ci#define SGE_PF_GTS_A 0x4
988c2ecf20Sopenharmony_ci
998c2ecf20Sopenharmony_ci#define INGRESSQID_S    16
1008c2ecf20Sopenharmony_ci#define INGRESSQID_V(x) ((x) << INGRESSQID_S)
1018c2ecf20Sopenharmony_ci
1028c2ecf20Sopenharmony_ci#define TIMERREG_S    13
1038c2ecf20Sopenharmony_ci#define TIMERREG_V(x) ((x) << TIMERREG_S)
1048c2ecf20Sopenharmony_ci
1058c2ecf20Sopenharmony_ci#define SEINTARM_S    12
1068c2ecf20Sopenharmony_ci#define SEINTARM_V(x) ((x) << SEINTARM_S)
1078c2ecf20Sopenharmony_ci
1088c2ecf20Sopenharmony_ci#define CIDXINC_S    0
1098c2ecf20Sopenharmony_ci#define CIDXINC_M    0xfffU
1108c2ecf20Sopenharmony_ci#define CIDXINC_V(x) ((x) << CIDXINC_S)
1118c2ecf20Sopenharmony_ci
1128c2ecf20Sopenharmony_ci#define SGE_CONTROL_A	0x1008
1138c2ecf20Sopenharmony_ci#define SGE_CONTROL2_A	0x1124
1148c2ecf20Sopenharmony_ci
1158c2ecf20Sopenharmony_ci#define RXPKTCPLMODE_S    18
1168c2ecf20Sopenharmony_ci#define RXPKTCPLMODE_V(x) ((x) << RXPKTCPLMODE_S)
1178c2ecf20Sopenharmony_ci#define RXPKTCPLMODE_F    RXPKTCPLMODE_V(1U)
1188c2ecf20Sopenharmony_ci
1198c2ecf20Sopenharmony_ci#define EGRSTATUSPAGESIZE_S    17
1208c2ecf20Sopenharmony_ci#define EGRSTATUSPAGESIZE_V(x) ((x) << EGRSTATUSPAGESIZE_S)
1218c2ecf20Sopenharmony_ci#define EGRSTATUSPAGESIZE_F    EGRSTATUSPAGESIZE_V(1U)
1228c2ecf20Sopenharmony_ci
1238c2ecf20Sopenharmony_ci#define PKTSHIFT_S    10
1248c2ecf20Sopenharmony_ci#define PKTSHIFT_M    0x7U
1258c2ecf20Sopenharmony_ci#define PKTSHIFT_V(x) ((x) << PKTSHIFT_S)
1268c2ecf20Sopenharmony_ci#define PKTSHIFT_G(x) (((x) >> PKTSHIFT_S) & PKTSHIFT_M)
1278c2ecf20Sopenharmony_ci
1288c2ecf20Sopenharmony_ci#define INGPCIEBOUNDARY_S    7
1298c2ecf20Sopenharmony_ci#define INGPCIEBOUNDARY_V(x) ((x) << INGPCIEBOUNDARY_S)
1308c2ecf20Sopenharmony_ci
1318c2ecf20Sopenharmony_ci#define INGPADBOUNDARY_S    4
1328c2ecf20Sopenharmony_ci#define INGPADBOUNDARY_M    0x7U
1338c2ecf20Sopenharmony_ci#define INGPADBOUNDARY_V(x) ((x) << INGPADBOUNDARY_S)
1348c2ecf20Sopenharmony_ci#define INGPADBOUNDARY_G(x) (((x) >> INGPADBOUNDARY_S) & INGPADBOUNDARY_M)
1358c2ecf20Sopenharmony_ci
1368c2ecf20Sopenharmony_ci#define EGRPCIEBOUNDARY_S    1
1378c2ecf20Sopenharmony_ci#define EGRPCIEBOUNDARY_V(x) ((x) << EGRPCIEBOUNDARY_S)
1388c2ecf20Sopenharmony_ci
1398c2ecf20Sopenharmony_ci#define  INGPACKBOUNDARY_S	16
1408c2ecf20Sopenharmony_ci#define  INGPACKBOUNDARY_M	0x7U
1418c2ecf20Sopenharmony_ci#define  INGPACKBOUNDARY_V(x)	((x) << INGPACKBOUNDARY_S)
1428c2ecf20Sopenharmony_ci#define  INGPACKBOUNDARY_G(x)	(((x) >> INGPACKBOUNDARY_S) \
1438c2ecf20Sopenharmony_ci				 & INGPACKBOUNDARY_M)
1448c2ecf20Sopenharmony_ci
1458c2ecf20Sopenharmony_ci#define VFIFO_ENABLE_S    10
1468c2ecf20Sopenharmony_ci#define VFIFO_ENABLE_V(x) ((x) << VFIFO_ENABLE_S)
1478c2ecf20Sopenharmony_ci#define VFIFO_ENABLE_F    VFIFO_ENABLE_V(1U)
1488c2ecf20Sopenharmony_ci
1498c2ecf20Sopenharmony_ci#define SGE_DBVFIFO_BADDR_A 0x1138
1508c2ecf20Sopenharmony_ci
1518c2ecf20Sopenharmony_ci#define DBVFIFO_SIZE_S    6
1528c2ecf20Sopenharmony_ci#define DBVFIFO_SIZE_M    0xfffU
1538c2ecf20Sopenharmony_ci#define DBVFIFO_SIZE_G(x) (((x) >> DBVFIFO_SIZE_S) & DBVFIFO_SIZE_M)
1548c2ecf20Sopenharmony_ci
1558c2ecf20Sopenharmony_ci#define T6_DBVFIFO_SIZE_S    0
1568c2ecf20Sopenharmony_ci#define T6_DBVFIFO_SIZE_M    0x1fffU
1578c2ecf20Sopenharmony_ci#define T6_DBVFIFO_SIZE_G(x) (((x) >> T6_DBVFIFO_SIZE_S) & T6_DBVFIFO_SIZE_M)
1588c2ecf20Sopenharmony_ci
1598c2ecf20Sopenharmony_ci#define SGE_CTXT_CMD_A 0x11fc
1608c2ecf20Sopenharmony_ci
1618c2ecf20Sopenharmony_ci#define BUSY_S    31
1628c2ecf20Sopenharmony_ci#define BUSY_V(x) ((x) << BUSY_S)
1638c2ecf20Sopenharmony_ci#define BUSY_F    BUSY_V(1U)
1648c2ecf20Sopenharmony_ci
1658c2ecf20Sopenharmony_ci#define CTXTTYPE_S    24
1668c2ecf20Sopenharmony_ci#define CTXTTYPE_M    0x3U
1678c2ecf20Sopenharmony_ci#define CTXTTYPE_V(x) ((x) << CTXTTYPE_S)
1688c2ecf20Sopenharmony_ci
1698c2ecf20Sopenharmony_ci#define CTXTQID_S    0
1708c2ecf20Sopenharmony_ci#define CTXTQID_M    0x1ffffU
1718c2ecf20Sopenharmony_ci#define CTXTQID_V(x) ((x) << CTXTQID_S)
1728c2ecf20Sopenharmony_ci
1738c2ecf20Sopenharmony_ci#define SGE_CTXT_DATA0_A 0x1200
1748c2ecf20Sopenharmony_ci#define SGE_CTXT_DATA5_A 0x1214
1758c2ecf20Sopenharmony_ci
1768c2ecf20Sopenharmony_ci#define GLOBALENABLE_S    0
1778c2ecf20Sopenharmony_ci#define GLOBALENABLE_V(x) ((x) << GLOBALENABLE_S)
1788c2ecf20Sopenharmony_ci#define GLOBALENABLE_F    GLOBALENABLE_V(1U)
1798c2ecf20Sopenharmony_ci
1808c2ecf20Sopenharmony_ci#define SGE_HOST_PAGE_SIZE_A 0x100c
1818c2ecf20Sopenharmony_ci
1828c2ecf20Sopenharmony_ci#define HOSTPAGESIZEPF7_S    28
1838c2ecf20Sopenharmony_ci#define HOSTPAGESIZEPF7_M    0xfU
1848c2ecf20Sopenharmony_ci#define HOSTPAGESIZEPF7_V(x) ((x) << HOSTPAGESIZEPF7_S)
1858c2ecf20Sopenharmony_ci#define HOSTPAGESIZEPF7_G(x) (((x) >> HOSTPAGESIZEPF7_S) & HOSTPAGESIZEPF7_M)
1868c2ecf20Sopenharmony_ci
1878c2ecf20Sopenharmony_ci#define HOSTPAGESIZEPF6_S    24
1888c2ecf20Sopenharmony_ci#define HOSTPAGESIZEPF6_M    0xfU
1898c2ecf20Sopenharmony_ci#define HOSTPAGESIZEPF6_V(x) ((x) << HOSTPAGESIZEPF6_S)
1908c2ecf20Sopenharmony_ci#define HOSTPAGESIZEPF6_G(x) (((x) >> HOSTPAGESIZEPF6_S) & HOSTPAGESIZEPF6_M)
1918c2ecf20Sopenharmony_ci
1928c2ecf20Sopenharmony_ci#define HOSTPAGESIZEPF5_S    20
1938c2ecf20Sopenharmony_ci#define HOSTPAGESIZEPF5_M    0xfU
1948c2ecf20Sopenharmony_ci#define HOSTPAGESIZEPF5_V(x) ((x) << HOSTPAGESIZEPF5_S)
1958c2ecf20Sopenharmony_ci#define HOSTPAGESIZEPF5_G(x) (((x) >> HOSTPAGESIZEPF5_S) & HOSTPAGESIZEPF5_M)
1968c2ecf20Sopenharmony_ci
1978c2ecf20Sopenharmony_ci#define HOSTPAGESIZEPF4_S    16
1988c2ecf20Sopenharmony_ci#define HOSTPAGESIZEPF4_M    0xfU
1998c2ecf20Sopenharmony_ci#define HOSTPAGESIZEPF4_V(x) ((x) << HOSTPAGESIZEPF4_S)
2008c2ecf20Sopenharmony_ci#define HOSTPAGESIZEPF4_G(x) (((x) >> HOSTPAGESIZEPF4_S) & HOSTPAGESIZEPF4_M)
2018c2ecf20Sopenharmony_ci
2028c2ecf20Sopenharmony_ci#define HOSTPAGESIZEPF3_S    12
2038c2ecf20Sopenharmony_ci#define HOSTPAGESIZEPF3_M    0xfU
2048c2ecf20Sopenharmony_ci#define HOSTPAGESIZEPF3_V(x) ((x) << HOSTPAGESIZEPF3_S)
2058c2ecf20Sopenharmony_ci#define HOSTPAGESIZEPF3_G(x) (((x) >> HOSTPAGESIZEPF3_S) & HOSTPAGESIZEPF3_M)
2068c2ecf20Sopenharmony_ci
2078c2ecf20Sopenharmony_ci#define HOSTPAGESIZEPF2_S    8
2088c2ecf20Sopenharmony_ci#define HOSTPAGESIZEPF2_M    0xfU
2098c2ecf20Sopenharmony_ci#define HOSTPAGESIZEPF2_V(x) ((x) << HOSTPAGESIZEPF2_S)
2108c2ecf20Sopenharmony_ci#define HOSTPAGESIZEPF2_G(x) (((x) >> HOSTPAGESIZEPF2_S) & HOSTPAGESIZEPF2_M)
2118c2ecf20Sopenharmony_ci
2128c2ecf20Sopenharmony_ci#define HOSTPAGESIZEPF1_S    4
2138c2ecf20Sopenharmony_ci#define HOSTPAGESIZEPF1_M    0xfU
2148c2ecf20Sopenharmony_ci#define HOSTPAGESIZEPF1_V(x) ((x) << HOSTPAGESIZEPF1_S)
2158c2ecf20Sopenharmony_ci#define HOSTPAGESIZEPF1_G(x) (((x) >> HOSTPAGESIZEPF1_S) & HOSTPAGESIZEPF1_M)
2168c2ecf20Sopenharmony_ci
2178c2ecf20Sopenharmony_ci#define HOSTPAGESIZEPF0_S    0
2188c2ecf20Sopenharmony_ci#define HOSTPAGESIZEPF0_M    0xfU
2198c2ecf20Sopenharmony_ci#define HOSTPAGESIZEPF0_V(x) ((x) << HOSTPAGESIZEPF0_S)
2208c2ecf20Sopenharmony_ci#define HOSTPAGESIZEPF0_G(x) (((x) >> HOSTPAGESIZEPF0_S) & HOSTPAGESIZEPF0_M)
2218c2ecf20Sopenharmony_ci
2228c2ecf20Sopenharmony_ci#define SGE_EGRESS_QUEUES_PER_PAGE_PF_A 0x1010
2238c2ecf20Sopenharmony_ci#define SGE_EGRESS_QUEUES_PER_PAGE_VF_A 0x1014
2248c2ecf20Sopenharmony_ci
2258c2ecf20Sopenharmony_ci#define QUEUESPERPAGEPF1_S    4
2268c2ecf20Sopenharmony_ci
2278c2ecf20Sopenharmony_ci#define QUEUESPERPAGEPF0_S    0
2288c2ecf20Sopenharmony_ci#define QUEUESPERPAGEPF0_M    0xfU
2298c2ecf20Sopenharmony_ci#define QUEUESPERPAGEPF0_V(x) ((x) << QUEUESPERPAGEPF0_S)
2308c2ecf20Sopenharmony_ci#define QUEUESPERPAGEPF0_G(x) (((x) >> QUEUESPERPAGEPF0_S) & QUEUESPERPAGEPF0_M)
2318c2ecf20Sopenharmony_ci
2328c2ecf20Sopenharmony_ci#define SGE_INT_CAUSE1_A	0x1024
2338c2ecf20Sopenharmony_ci#define SGE_INT_CAUSE2_A	0x1030
2348c2ecf20Sopenharmony_ci#define SGE_INT_CAUSE3_A	0x103c
2358c2ecf20Sopenharmony_ci
2368c2ecf20Sopenharmony_ci#define ERR_FLM_DBP_S    31
2378c2ecf20Sopenharmony_ci#define ERR_FLM_DBP_V(x) ((x) << ERR_FLM_DBP_S)
2388c2ecf20Sopenharmony_ci#define ERR_FLM_DBP_F    ERR_FLM_DBP_V(1U)
2398c2ecf20Sopenharmony_ci
2408c2ecf20Sopenharmony_ci#define ERR_FLM_IDMA1_S    30
2418c2ecf20Sopenharmony_ci#define ERR_FLM_IDMA1_V(x) ((x) << ERR_FLM_IDMA1_S)
2428c2ecf20Sopenharmony_ci#define ERR_FLM_IDMA1_F    ERR_FLM_IDMA1_V(1U)
2438c2ecf20Sopenharmony_ci
2448c2ecf20Sopenharmony_ci#define ERR_FLM_IDMA0_S    29
2458c2ecf20Sopenharmony_ci#define ERR_FLM_IDMA0_V(x) ((x) << ERR_FLM_IDMA0_S)
2468c2ecf20Sopenharmony_ci#define ERR_FLM_IDMA0_F    ERR_FLM_IDMA0_V(1U)
2478c2ecf20Sopenharmony_ci
2488c2ecf20Sopenharmony_ci#define ERR_FLM_HINT_S    28
2498c2ecf20Sopenharmony_ci#define ERR_FLM_HINT_V(x) ((x) << ERR_FLM_HINT_S)
2508c2ecf20Sopenharmony_ci#define ERR_FLM_HINT_F    ERR_FLM_HINT_V(1U)
2518c2ecf20Sopenharmony_ci
2528c2ecf20Sopenharmony_ci#define ERR_PCIE_ERROR3_S    27
2538c2ecf20Sopenharmony_ci#define ERR_PCIE_ERROR3_V(x) ((x) << ERR_PCIE_ERROR3_S)
2548c2ecf20Sopenharmony_ci#define ERR_PCIE_ERROR3_F    ERR_PCIE_ERROR3_V(1U)
2558c2ecf20Sopenharmony_ci
2568c2ecf20Sopenharmony_ci#define ERR_PCIE_ERROR2_S    26
2578c2ecf20Sopenharmony_ci#define ERR_PCIE_ERROR2_V(x) ((x) << ERR_PCIE_ERROR2_S)
2588c2ecf20Sopenharmony_ci#define ERR_PCIE_ERROR2_F    ERR_PCIE_ERROR2_V(1U)
2598c2ecf20Sopenharmony_ci
2608c2ecf20Sopenharmony_ci#define ERR_PCIE_ERROR1_S    25
2618c2ecf20Sopenharmony_ci#define ERR_PCIE_ERROR1_V(x) ((x) << ERR_PCIE_ERROR1_S)
2628c2ecf20Sopenharmony_ci#define ERR_PCIE_ERROR1_F    ERR_PCIE_ERROR1_V(1U)
2638c2ecf20Sopenharmony_ci
2648c2ecf20Sopenharmony_ci#define ERR_PCIE_ERROR0_S    24
2658c2ecf20Sopenharmony_ci#define ERR_PCIE_ERROR0_V(x) ((x) << ERR_PCIE_ERROR0_S)
2668c2ecf20Sopenharmony_ci#define ERR_PCIE_ERROR0_F    ERR_PCIE_ERROR0_V(1U)
2678c2ecf20Sopenharmony_ci
2688c2ecf20Sopenharmony_ci#define ERR_CPL_EXCEED_IQE_SIZE_S    22
2698c2ecf20Sopenharmony_ci#define ERR_CPL_EXCEED_IQE_SIZE_V(x) ((x) << ERR_CPL_EXCEED_IQE_SIZE_S)
2708c2ecf20Sopenharmony_ci#define ERR_CPL_EXCEED_IQE_SIZE_F    ERR_CPL_EXCEED_IQE_SIZE_V(1U)
2718c2ecf20Sopenharmony_ci
2728c2ecf20Sopenharmony_ci#define ERR_INVALID_CIDX_INC_S    21
2738c2ecf20Sopenharmony_ci#define ERR_INVALID_CIDX_INC_V(x) ((x) << ERR_INVALID_CIDX_INC_S)
2748c2ecf20Sopenharmony_ci#define ERR_INVALID_CIDX_INC_F    ERR_INVALID_CIDX_INC_V(1U)
2758c2ecf20Sopenharmony_ci
2768c2ecf20Sopenharmony_ci#define ERR_CPL_OPCODE_0_S    19
2778c2ecf20Sopenharmony_ci#define ERR_CPL_OPCODE_0_V(x) ((x) << ERR_CPL_OPCODE_0_S)
2788c2ecf20Sopenharmony_ci#define ERR_CPL_OPCODE_0_F    ERR_CPL_OPCODE_0_V(1U)
2798c2ecf20Sopenharmony_ci
2808c2ecf20Sopenharmony_ci#define ERR_DROPPED_DB_S    18
2818c2ecf20Sopenharmony_ci#define ERR_DROPPED_DB_V(x) ((x) << ERR_DROPPED_DB_S)
2828c2ecf20Sopenharmony_ci#define ERR_DROPPED_DB_F    ERR_DROPPED_DB_V(1U)
2838c2ecf20Sopenharmony_ci
2848c2ecf20Sopenharmony_ci#define ERR_DATA_CPL_ON_HIGH_QID1_S    17
2858c2ecf20Sopenharmony_ci#define ERR_DATA_CPL_ON_HIGH_QID1_V(x) ((x) << ERR_DATA_CPL_ON_HIGH_QID1_S)
2868c2ecf20Sopenharmony_ci#define ERR_DATA_CPL_ON_HIGH_QID1_F    ERR_DATA_CPL_ON_HIGH_QID1_V(1U)
2878c2ecf20Sopenharmony_ci
2888c2ecf20Sopenharmony_ci#define ERR_DATA_CPL_ON_HIGH_QID0_S    16
2898c2ecf20Sopenharmony_ci#define ERR_DATA_CPL_ON_HIGH_QID0_V(x) ((x) << ERR_DATA_CPL_ON_HIGH_QID0_S)
2908c2ecf20Sopenharmony_ci#define ERR_DATA_CPL_ON_HIGH_QID0_F    ERR_DATA_CPL_ON_HIGH_QID0_V(1U)
2918c2ecf20Sopenharmony_ci
2928c2ecf20Sopenharmony_ci#define ERR_BAD_DB_PIDX3_S    15
2938c2ecf20Sopenharmony_ci#define ERR_BAD_DB_PIDX3_V(x) ((x) << ERR_BAD_DB_PIDX3_S)
2948c2ecf20Sopenharmony_ci#define ERR_BAD_DB_PIDX3_F    ERR_BAD_DB_PIDX3_V(1U)
2958c2ecf20Sopenharmony_ci
2968c2ecf20Sopenharmony_ci#define ERR_BAD_DB_PIDX2_S    14
2978c2ecf20Sopenharmony_ci#define ERR_BAD_DB_PIDX2_V(x) ((x) << ERR_BAD_DB_PIDX2_S)
2988c2ecf20Sopenharmony_ci#define ERR_BAD_DB_PIDX2_F    ERR_BAD_DB_PIDX2_V(1U)
2998c2ecf20Sopenharmony_ci
3008c2ecf20Sopenharmony_ci#define ERR_BAD_DB_PIDX1_S    13
3018c2ecf20Sopenharmony_ci#define ERR_BAD_DB_PIDX1_V(x) ((x) << ERR_BAD_DB_PIDX1_S)
3028c2ecf20Sopenharmony_ci#define ERR_BAD_DB_PIDX1_F    ERR_BAD_DB_PIDX1_V(1U)
3038c2ecf20Sopenharmony_ci
3048c2ecf20Sopenharmony_ci#define ERR_BAD_DB_PIDX0_S    12
3058c2ecf20Sopenharmony_ci#define ERR_BAD_DB_PIDX0_V(x) ((x) << ERR_BAD_DB_PIDX0_S)
3068c2ecf20Sopenharmony_ci#define ERR_BAD_DB_PIDX0_F    ERR_BAD_DB_PIDX0_V(1U)
3078c2ecf20Sopenharmony_ci
3088c2ecf20Sopenharmony_ci#define ERR_ING_CTXT_PRIO_S    10
3098c2ecf20Sopenharmony_ci#define ERR_ING_CTXT_PRIO_V(x) ((x) << ERR_ING_CTXT_PRIO_S)
3108c2ecf20Sopenharmony_ci#define ERR_ING_CTXT_PRIO_F    ERR_ING_CTXT_PRIO_V(1U)
3118c2ecf20Sopenharmony_ci
3128c2ecf20Sopenharmony_ci#define ERR_EGR_CTXT_PRIO_S    9
3138c2ecf20Sopenharmony_ci#define ERR_EGR_CTXT_PRIO_V(x) ((x) << ERR_EGR_CTXT_PRIO_S)
3148c2ecf20Sopenharmony_ci#define ERR_EGR_CTXT_PRIO_F    ERR_EGR_CTXT_PRIO_V(1U)
3158c2ecf20Sopenharmony_ci
3168c2ecf20Sopenharmony_ci#define DBFIFO_HP_INT_S    8
3178c2ecf20Sopenharmony_ci#define DBFIFO_HP_INT_V(x) ((x) << DBFIFO_HP_INT_S)
3188c2ecf20Sopenharmony_ci#define DBFIFO_HP_INT_F    DBFIFO_HP_INT_V(1U)
3198c2ecf20Sopenharmony_ci
3208c2ecf20Sopenharmony_ci#define DBFIFO_LP_INT_S    7
3218c2ecf20Sopenharmony_ci#define DBFIFO_LP_INT_V(x) ((x) << DBFIFO_LP_INT_S)
3228c2ecf20Sopenharmony_ci#define DBFIFO_LP_INT_F    DBFIFO_LP_INT_V(1U)
3238c2ecf20Sopenharmony_ci
3248c2ecf20Sopenharmony_ci#define INGRESS_SIZE_ERR_S    5
3258c2ecf20Sopenharmony_ci#define INGRESS_SIZE_ERR_V(x) ((x) << INGRESS_SIZE_ERR_S)
3268c2ecf20Sopenharmony_ci#define INGRESS_SIZE_ERR_F    INGRESS_SIZE_ERR_V(1U)
3278c2ecf20Sopenharmony_ci
3288c2ecf20Sopenharmony_ci#define EGRESS_SIZE_ERR_S    4
3298c2ecf20Sopenharmony_ci#define EGRESS_SIZE_ERR_V(x) ((x) << EGRESS_SIZE_ERR_S)
3308c2ecf20Sopenharmony_ci#define EGRESS_SIZE_ERR_F    EGRESS_SIZE_ERR_V(1U)
3318c2ecf20Sopenharmony_ci
3328c2ecf20Sopenharmony_ci#define SGE_INT_ENABLE3_A 0x1040
3338c2ecf20Sopenharmony_ci#define SGE_FL_BUFFER_SIZE0_A 0x1044
3348c2ecf20Sopenharmony_ci#define SGE_FL_BUFFER_SIZE1_A 0x1048
3358c2ecf20Sopenharmony_ci#define SGE_FL_BUFFER_SIZE2_A 0x104c
3368c2ecf20Sopenharmony_ci#define SGE_FL_BUFFER_SIZE3_A 0x1050
3378c2ecf20Sopenharmony_ci#define SGE_FL_BUFFER_SIZE4_A 0x1054
3388c2ecf20Sopenharmony_ci#define SGE_FL_BUFFER_SIZE5_A 0x1058
3398c2ecf20Sopenharmony_ci#define SGE_FL_BUFFER_SIZE6_A 0x105c
3408c2ecf20Sopenharmony_ci#define SGE_FL_BUFFER_SIZE7_A 0x1060
3418c2ecf20Sopenharmony_ci#define SGE_FL_BUFFER_SIZE8_A 0x1064
3428c2ecf20Sopenharmony_ci
3438c2ecf20Sopenharmony_ci#define SGE_IMSG_CTXT_BADDR_A 0x1088
3448c2ecf20Sopenharmony_ci#define SGE_FLM_CACHE_BADDR_A 0x108c
3458c2ecf20Sopenharmony_ci#define SGE_FLM_CFG_A 0x1090
3468c2ecf20Sopenharmony_ci
3478c2ecf20Sopenharmony_ci#define NOHDR_S    18
3488c2ecf20Sopenharmony_ci#define NOHDR_V(x) ((x) << NOHDR_S)
3498c2ecf20Sopenharmony_ci#define NOHDR_F    NOHDR_V(1U)
3508c2ecf20Sopenharmony_ci
3518c2ecf20Sopenharmony_ci#define HDRSTARTFLQ_S    11
3528c2ecf20Sopenharmony_ci#define HDRSTARTFLQ_M    0x7U
3538c2ecf20Sopenharmony_ci#define HDRSTARTFLQ_G(x) (((x) >> HDRSTARTFLQ_S) & HDRSTARTFLQ_M)
3548c2ecf20Sopenharmony_ci
3558c2ecf20Sopenharmony_ci#define SGE_INGRESS_RX_THRESHOLD_A 0x10a0
3568c2ecf20Sopenharmony_ci
3578c2ecf20Sopenharmony_ci#define THRESHOLD_0_S    24
3588c2ecf20Sopenharmony_ci#define THRESHOLD_0_M    0x3fU
3598c2ecf20Sopenharmony_ci#define THRESHOLD_0_V(x) ((x) << THRESHOLD_0_S)
3608c2ecf20Sopenharmony_ci#define THRESHOLD_0_G(x) (((x) >> THRESHOLD_0_S) & THRESHOLD_0_M)
3618c2ecf20Sopenharmony_ci
3628c2ecf20Sopenharmony_ci#define THRESHOLD_1_S    16
3638c2ecf20Sopenharmony_ci#define THRESHOLD_1_M    0x3fU
3648c2ecf20Sopenharmony_ci#define THRESHOLD_1_V(x) ((x) << THRESHOLD_1_S)
3658c2ecf20Sopenharmony_ci#define THRESHOLD_1_G(x) (((x) >> THRESHOLD_1_S) & THRESHOLD_1_M)
3668c2ecf20Sopenharmony_ci
3678c2ecf20Sopenharmony_ci#define THRESHOLD_2_S    8
3688c2ecf20Sopenharmony_ci#define THRESHOLD_2_M    0x3fU
3698c2ecf20Sopenharmony_ci#define THRESHOLD_2_V(x) ((x) << THRESHOLD_2_S)
3708c2ecf20Sopenharmony_ci#define THRESHOLD_2_G(x) (((x) >> THRESHOLD_2_S) & THRESHOLD_2_M)
3718c2ecf20Sopenharmony_ci
3728c2ecf20Sopenharmony_ci#define THRESHOLD_3_S    0
3738c2ecf20Sopenharmony_ci#define THRESHOLD_3_M    0x3fU
3748c2ecf20Sopenharmony_ci#define THRESHOLD_3_V(x) ((x) << THRESHOLD_3_S)
3758c2ecf20Sopenharmony_ci#define THRESHOLD_3_G(x) (((x) >> THRESHOLD_3_S) & THRESHOLD_3_M)
3768c2ecf20Sopenharmony_ci
3778c2ecf20Sopenharmony_ci#define SGE_CONM_CTRL_A 0x1094
3788c2ecf20Sopenharmony_ci
3798c2ecf20Sopenharmony_ci#define EGRTHRESHOLD_S    8
3808c2ecf20Sopenharmony_ci#define EGRTHRESHOLD_M    0x3fU
3818c2ecf20Sopenharmony_ci#define EGRTHRESHOLD_V(x) ((x) << EGRTHRESHOLD_S)
3828c2ecf20Sopenharmony_ci#define EGRTHRESHOLD_G(x) (((x) >> EGRTHRESHOLD_S) & EGRTHRESHOLD_M)
3838c2ecf20Sopenharmony_ci
3848c2ecf20Sopenharmony_ci#define EGRTHRESHOLDPACKING_S    14
3858c2ecf20Sopenharmony_ci#define EGRTHRESHOLDPACKING_M    0x3fU
3868c2ecf20Sopenharmony_ci#define EGRTHRESHOLDPACKING_V(x) ((x) << EGRTHRESHOLDPACKING_S)
3878c2ecf20Sopenharmony_ci#define EGRTHRESHOLDPACKING_G(x) \
3888c2ecf20Sopenharmony_ci	(((x) >> EGRTHRESHOLDPACKING_S) & EGRTHRESHOLDPACKING_M)
3898c2ecf20Sopenharmony_ci
3908c2ecf20Sopenharmony_ci#define T6_EGRTHRESHOLDPACKING_S    16
3918c2ecf20Sopenharmony_ci#define T6_EGRTHRESHOLDPACKING_M    0xffU
3928c2ecf20Sopenharmony_ci#define T6_EGRTHRESHOLDPACKING_G(x) \
3938c2ecf20Sopenharmony_ci	(((x) >> T6_EGRTHRESHOLDPACKING_S) & T6_EGRTHRESHOLDPACKING_M)
3948c2ecf20Sopenharmony_ci
3958c2ecf20Sopenharmony_ci#define SGE_TIMESTAMP_LO_A 0x1098
3968c2ecf20Sopenharmony_ci#define SGE_TIMESTAMP_HI_A 0x109c
3978c2ecf20Sopenharmony_ci
3988c2ecf20Sopenharmony_ci#define TSOP_S    28
3998c2ecf20Sopenharmony_ci#define TSOP_M    0x3U
4008c2ecf20Sopenharmony_ci#define TSOP_V(x) ((x) << TSOP_S)
4018c2ecf20Sopenharmony_ci#define TSOP_G(x) (((x) >> TSOP_S) & TSOP_M)
4028c2ecf20Sopenharmony_ci
4038c2ecf20Sopenharmony_ci#define TSVAL_S    0
4048c2ecf20Sopenharmony_ci#define TSVAL_M    0xfffffffU
4058c2ecf20Sopenharmony_ci#define TSVAL_V(x) ((x) << TSVAL_S)
4068c2ecf20Sopenharmony_ci#define TSVAL_G(x) (((x) >> TSVAL_S) & TSVAL_M)
4078c2ecf20Sopenharmony_ci
4088c2ecf20Sopenharmony_ci#define SGE_DBFIFO_STATUS_A 0x10a4
4098c2ecf20Sopenharmony_ci#define SGE_DBVFIFO_SIZE_A 0x113c
4108c2ecf20Sopenharmony_ci
4118c2ecf20Sopenharmony_ci#define HP_INT_THRESH_S    28
4128c2ecf20Sopenharmony_ci#define HP_INT_THRESH_M    0xfU
4138c2ecf20Sopenharmony_ci#define HP_INT_THRESH_V(x) ((x) << HP_INT_THRESH_S)
4148c2ecf20Sopenharmony_ci
4158c2ecf20Sopenharmony_ci#define LP_INT_THRESH_S    12
4168c2ecf20Sopenharmony_ci#define LP_INT_THRESH_M    0xfU
4178c2ecf20Sopenharmony_ci#define LP_INT_THRESH_V(x) ((x) << LP_INT_THRESH_S)
4188c2ecf20Sopenharmony_ci
4198c2ecf20Sopenharmony_ci#define SGE_DOORBELL_CONTROL_A 0x10a8
4208c2ecf20Sopenharmony_ci
4218c2ecf20Sopenharmony_ci#define NOCOALESCE_S    26
4228c2ecf20Sopenharmony_ci#define NOCOALESCE_V(x) ((x) << NOCOALESCE_S)
4238c2ecf20Sopenharmony_ci#define NOCOALESCE_F    NOCOALESCE_V(1U)
4248c2ecf20Sopenharmony_ci
4258c2ecf20Sopenharmony_ci#define ENABLE_DROP_S    13
4268c2ecf20Sopenharmony_ci#define ENABLE_DROP_V(x) ((x) << ENABLE_DROP_S)
4278c2ecf20Sopenharmony_ci#define ENABLE_DROP_F    ENABLE_DROP_V(1U)
4288c2ecf20Sopenharmony_ci
4298c2ecf20Sopenharmony_ci#define SGE_TIMER_VALUE_0_AND_1_A 0x10b8
4308c2ecf20Sopenharmony_ci
4318c2ecf20Sopenharmony_ci#define TIMERVALUE0_S    16
4328c2ecf20Sopenharmony_ci#define TIMERVALUE0_M    0xffffU
4338c2ecf20Sopenharmony_ci#define TIMERVALUE0_V(x) ((x) << TIMERVALUE0_S)
4348c2ecf20Sopenharmony_ci#define TIMERVALUE0_G(x) (((x) >> TIMERVALUE0_S) & TIMERVALUE0_M)
4358c2ecf20Sopenharmony_ci
4368c2ecf20Sopenharmony_ci#define TIMERVALUE1_S    0
4378c2ecf20Sopenharmony_ci#define TIMERVALUE1_M    0xffffU
4388c2ecf20Sopenharmony_ci#define TIMERVALUE1_V(x) ((x) << TIMERVALUE1_S)
4398c2ecf20Sopenharmony_ci#define TIMERVALUE1_G(x) (((x) >> TIMERVALUE1_S) & TIMERVALUE1_M)
4408c2ecf20Sopenharmony_ci
4418c2ecf20Sopenharmony_ci#define SGE_TIMER_VALUE_2_AND_3_A 0x10bc
4428c2ecf20Sopenharmony_ci
4438c2ecf20Sopenharmony_ci#define TIMERVALUE2_S    16
4448c2ecf20Sopenharmony_ci#define TIMERVALUE2_M    0xffffU
4458c2ecf20Sopenharmony_ci#define TIMERVALUE2_V(x) ((x) << TIMERVALUE2_S)
4468c2ecf20Sopenharmony_ci#define TIMERVALUE2_G(x) (((x) >> TIMERVALUE2_S) & TIMERVALUE2_M)
4478c2ecf20Sopenharmony_ci
4488c2ecf20Sopenharmony_ci#define TIMERVALUE3_S    0
4498c2ecf20Sopenharmony_ci#define TIMERVALUE3_M    0xffffU
4508c2ecf20Sopenharmony_ci#define TIMERVALUE3_V(x) ((x) << TIMERVALUE3_S)
4518c2ecf20Sopenharmony_ci#define TIMERVALUE3_G(x) (((x) >> TIMERVALUE3_S) & TIMERVALUE3_M)
4528c2ecf20Sopenharmony_ci
4538c2ecf20Sopenharmony_ci#define SGE_TIMER_VALUE_4_AND_5_A 0x10c0
4548c2ecf20Sopenharmony_ci
4558c2ecf20Sopenharmony_ci#define TIMERVALUE4_S    16
4568c2ecf20Sopenharmony_ci#define TIMERVALUE4_M    0xffffU
4578c2ecf20Sopenharmony_ci#define TIMERVALUE4_V(x) ((x) << TIMERVALUE4_S)
4588c2ecf20Sopenharmony_ci#define TIMERVALUE4_G(x) (((x) >> TIMERVALUE4_S) & TIMERVALUE4_M)
4598c2ecf20Sopenharmony_ci
4608c2ecf20Sopenharmony_ci#define TIMERVALUE5_S    0
4618c2ecf20Sopenharmony_ci#define TIMERVALUE5_M    0xffffU
4628c2ecf20Sopenharmony_ci#define TIMERVALUE5_V(x) ((x) << TIMERVALUE5_S)
4638c2ecf20Sopenharmony_ci#define TIMERVALUE5_G(x) (((x) >> TIMERVALUE5_S) & TIMERVALUE5_M)
4648c2ecf20Sopenharmony_ci
4658c2ecf20Sopenharmony_ci#define SGE_DEBUG_INDEX_A 0x10cc
4668c2ecf20Sopenharmony_ci#define SGE_DEBUG_DATA_HIGH_A 0x10d0
4678c2ecf20Sopenharmony_ci#define SGE_DEBUG_DATA_LOW_A 0x10d4
4688c2ecf20Sopenharmony_ci
4698c2ecf20Sopenharmony_ci#define SGE_DEBUG_DATA_LOW_INDEX_2_A	0x12c8
4708c2ecf20Sopenharmony_ci#define SGE_DEBUG_DATA_LOW_INDEX_3_A	0x12cc
4718c2ecf20Sopenharmony_ci#define SGE_DEBUG_DATA_HIGH_INDEX_10_A	0x12a8
4728c2ecf20Sopenharmony_ci
4738c2ecf20Sopenharmony_ci#define SGE_INGRESS_QUEUES_PER_PAGE_PF_A 0x10f4
4748c2ecf20Sopenharmony_ci#define SGE_INGRESS_QUEUES_PER_PAGE_VF_A 0x10f8
4758c2ecf20Sopenharmony_ci
4768c2ecf20Sopenharmony_ci#define SGE_ERROR_STATS_A 0x1100
4778c2ecf20Sopenharmony_ci
4788c2ecf20Sopenharmony_ci#define UNCAPTURED_ERROR_S    18
4798c2ecf20Sopenharmony_ci#define UNCAPTURED_ERROR_V(x) ((x) << UNCAPTURED_ERROR_S)
4808c2ecf20Sopenharmony_ci#define UNCAPTURED_ERROR_F    UNCAPTURED_ERROR_V(1U)
4818c2ecf20Sopenharmony_ci
4828c2ecf20Sopenharmony_ci#define ERROR_QID_VALID_S    17
4838c2ecf20Sopenharmony_ci#define ERROR_QID_VALID_V(x) ((x) << ERROR_QID_VALID_S)
4848c2ecf20Sopenharmony_ci#define ERROR_QID_VALID_F    ERROR_QID_VALID_V(1U)
4858c2ecf20Sopenharmony_ci
4868c2ecf20Sopenharmony_ci#define ERROR_QID_S    0
4878c2ecf20Sopenharmony_ci#define ERROR_QID_M    0x1ffffU
4888c2ecf20Sopenharmony_ci#define ERROR_QID_G(x) (((x) >> ERROR_QID_S) & ERROR_QID_M)
4898c2ecf20Sopenharmony_ci
4908c2ecf20Sopenharmony_ci#define SGE_INT_CAUSE5_A        0x110c
4918c2ecf20Sopenharmony_ci
4928c2ecf20Sopenharmony_ci#define ERR_T_RXCRC_S    31
4938c2ecf20Sopenharmony_ci#define ERR_T_RXCRC_V(x) ((x) << ERR_T_RXCRC_S)
4948c2ecf20Sopenharmony_ci#define ERR_T_RXCRC_F    ERR_T_RXCRC_V(1U)
4958c2ecf20Sopenharmony_ci
4968c2ecf20Sopenharmony_ci#define HP_INT_THRESH_S    28
4978c2ecf20Sopenharmony_ci#define HP_INT_THRESH_M    0xfU
4988c2ecf20Sopenharmony_ci#define HP_INT_THRESH_V(x) ((x) << HP_INT_THRESH_S)
4998c2ecf20Sopenharmony_ci
5008c2ecf20Sopenharmony_ci#define HP_COUNT_S    16
5018c2ecf20Sopenharmony_ci#define HP_COUNT_M    0x7ffU
5028c2ecf20Sopenharmony_ci#define HP_COUNT_G(x) (((x) >> HP_COUNT_S) & HP_COUNT_M)
5038c2ecf20Sopenharmony_ci
5048c2ecf20Sopenharmony_ci#define LP_INT_THRESH_S    12
5058c2ecf20Sopenharmony_ci#define LP_INT_THRESH_M    0xfU
5068c2ecf20Sopenharmony_ci#define LP_INT_THRESH_V(x) ((x) << LP_INT_THRESH_S)
5078c2ecf20Sopenharmony_ci
5088c2ecf20Sopenharmony_ci#define LP_COUNT_S    0
5098c2ecf20Sopenharmony_ci#define LP_COUNT_M    0x7ffU
5108c2ecf20Sopenharmony_ci#define LP_COUNT_G(x) (((x) >> LP_COUNT_S) & LP_COUNT_M)
5118c2ecf20Sopenharmony_ci
5128c2ecf20Sopenharmony_ci#define LP_INT_THRESH_T5_S    18
5138c2ecf20Sopenharmony_ci#define LP_INT_THRESH_T5_M    0xfffU
5148c2ecf20Sopenharmony_ci#define LP_INT_THRESH_T5_V(x) ((x) << LP_INT_THRESH_T5_S)
5158c2ecf20Sopenharmony_ci
5168c2ecf20Sopenharmony_ci#define LP_COUNT_T5_S    0
5178c2ecf20Sopenharmony_ci#define LP_COUNT_T5_M    0x3ffffU
5188c2ecf20Sopenharmony_ci#define LP_COUNT_T5_G(x) (((x) >> LP_COUNT_T5_S) & LP_COUNT_T5_M)
5198c2ecf20Sopenharmony_ci
5208c2ecf20Sopenharmony_ci#define SGE_DOORBELL_CONTROL_A 0x10a8
5218c2ecf20Sopenharmony_ci
5228c2ecf20Sopenharmony_ci#define SGE_STAT_TOTAL_A	0x10e4
5238c2ecf20Sopenharmony_ci#define SGE_STAT_MATCH_A	0x10e8
5248c2ecf20Sopenharmony_ci#define SGE_STAT_CFG_A		0x10ec
5258c2ecf20Sopenharmony_ci
5268c2ecf20Sopenharmony_ci#define STATMODE_S    2
5278c2ecf20Sopenharmony_ci#define STATMODE_V(x) ((x) << STATMODE_S)
5288c2ecf20Sopenharmony_ci
5298c2ecf20Sopenharmony_ci#define STATSOURCE_T5_S    9
5308c2ecf20Sopenharmony_ci#define STATSOURCE_T5_M    0xfU
5318c2ecf20Sopenharmony_ci#define STATSOURCE_T5_V(x) ((x) << STATSOURCE_T5_S)
5328c2ecf20Sopenharmony_ci#define STATSOURCE_T5_G(x) (((x) >> STATSOURCE_T5_S) & STATSOURCE_T5_M)
5338c2ecf20Sopenharmony_ci
5348c2ecf20Sopenharmony_ci#define T6_STATMODE_S    0
5358c2ecf20Sopenharmony_ci#define T6_STATMODE_V(x) ((x) << T6_STATMODE_S)
5368c2ecf20Sopenharmony_ci
5378c2ecf20Sopenharmony_ci#define SGE_DBFIFO_STATUS2_A 0x1118
5388c2ecf20Sopenharmony_ci
5398c2ecf20Sopenharmony_ci#define HP_INT_THRESH_T5_S    10
5408c2ecf20Sopenharmony_ci#define HP_INT_THRESH_T5_M    0xfU
5418c2ecf20Sopenharmony_ci#define HP_INT_THRESH_T5_V(x) ((x) << HP_INT_THRESH_T5_S)
5428c2ecf20Sopenharmony_ci
5438c2ecf20Sopenharmony_ci#define HP_COUNT_T5_S    0
5448c2ecf20Sopenharmony_ci#define HP_COUNT_T5_M    0x3ffU
5458c2ecf20Sopenharmony_ci#define HP_COUNT_T5_G(x) (((x) >> HP_COUNT_T5_S) & HP_COUNT_T5_M)
5468c2ecf20Sopenharmony_ci
5478c2ecf20Sopenharmony_ci#define ENABLE_DROP_S    13
5488c2ecf20Sopenharmony_ci#define ENABLE_DROP_V(x) ((x) << ENABLE_DROP_S)
5498c2ecf20Sopenharmony_ci#define ENABLE_DROP_F    ENABLE_DROP_V(1U)
5508c2ecf20Sopenharmony_ci
5518c2ecf20Sopenharmony_ci#define DROPPED_DB_S    0
5528c2ecf20Sopenharmony_ci#define DROPPED_DB_V(x) ((x) << DROPPED_DB_S)
5538c2ecf20Sopenharmony_ci#define DROPPED_DB_F    DROPPED_DB_V(1U)
5548c2ecf20Sopenharmony_ci
5558c2ecf20Sopenharmony_ci#define SGE_CTXT_CMD_A 0x11fc
5568c2ecf20Sopenharmony_ci#define SGE_DBQ_CTXT_BADDR_A 0x1084
5578c2ecf20Sopenharmony_ci
5588c2ecf20Sopenharmony_ci/* registers for module PCIE */
5598c2ecf20Sopenharmony_ci#define PCIE_PF_CFG_A	0x40
5608c2ecf20Sopenharmony_ci
5618c2ecf20Sopenharmony_ci#define AIVEC_S    4
5628c2ecf20Sopenharmony_ci#define AIVEC_M    0x3ffU
5638c2ecf20Sopenharmony_ci#define AIVEC_V(x) ((x) << AIVEC_S)
5648c2ecf20Sopenharmony_ci
5658c2ecf20Sopenharmony_ci#define PCIE_PF_CLI_A	0x44
5668c2ecf20Sopenharmony_ci
5678c2ecf20Sopenharmony_ci#define PCIE_PF_EXPROM_OFST_A 0x4c
5688c2ecf20Sopenharmony_ci#define OFFSET_S    10
5698c2ecf20Sopenharmony_ci#define OFFSET_M    0x3fffU
5708c2ecf20Sopenharmony_ci#define OFFSET_G(x) (((x) >> OFFSET_S) & OFFSET_M)
5718c2ecf20Sopenharmony_ci
5728c2ecf20Sopenharmony_ci#define PCIE_INT_CAUSE_A	0x3004
5738c2ecf20Sopenharmony_ci
5748c2ecf20Sopenharmony_ci#define UNXSPLCPLERR_S    29
5758c2ecf20Sopenharmony_ci#define UNXSPLCPLERR_V(x) ((x) << UNXSPLCPLERR_S)
5768c2ecf20Sopenharmony_ci#define UNXSPLCPLERR_F    UNXSPLCPLERR_V(1U)
5778c2ecf20Sopenharmony_ci
5788c2ecf20Sopenharmony_ci#define PCIEPINT_S    28
5798c2ecf20Sopenharmony_ci#define PCIEPINT_V(x) ((x) << PCIEPINT_S)
5808c2ecf20Sopenharmony_ci#define PCIEPINT_F    PCIEPINT_V(1U)
5818c2ecf20Sopenharmony_ci
5828c2ecf20Sopenharmony_ci#define PCIESINT_S    27
5838c2ecf20Sopenharmony_ci#define PCIESINT_V(x) ((x) << PCIESINT_S)
5848c2ecf20Sopenharmony_ci#define PCIESINT_F    PCIESINT_V(1U)
5858c2ecf20Sopenharmony_ci
5868c2ecf20Sopenharmony_ci#define RPLPERR_S    26
5878c2ecf20Sopenharmony_ci#define RPLPERR_V(x) ((x) << RPLPERR_S)
5888c2ecf20Sopenharmony_ci#define RPLPERR_F    RPLPERR_V(1U)
5898c2ecf20Sopenharmony_ci
5908c2ecf20Sopenharmony_ci#define RXWRPERR_S    25
5918c2ecf20Sopenharmony_ci#define RXWRPERR_V(x) ((x) << RXWRPERR_S)
5928c2ecf20Sopenharmony_ci#define RXWRPERR_F    RXWRPERR_V(1U)
5938c2ecf20Sopenharmony_ci
5948c2ecf20Sopenharmony_ci#define RXCPLPERR_S    24
5958c2ecf20Sopenharmony_ci#define RXCPLPERR_V(x) ((x) << RXCPLPERR_S)
5968c2ecf20Sopenharmony_ci#define RXCPLPERR_F    RXCPLPERR_V(1U)
5978c2ecf20Sopenharmony_ci
5988c2ecf20Sopenharmony_ci#define PIOTAGPERR_S    23
5998c2ecf20Sopenharmony_ci#define PIOTAGPERR_V(x) ((x) << PIOTAGPERR_S)
6008c2ecf20Sopenharmony_ci#define PIOTAGPERR_F    PIOTAGPERR_V(1U)
6018c2ecf20Sopenharmony_ci
6028c2ecf20Sopenharmony_ci#define MATAGPERR_S    22
6038c2ecf20Sopenharmony_ci#define MATAGPERR_V(x) ((x) << MATAGPERR_S)
6048c2ecf20Sopenharmony_ci#define MATAGPERR_F    MATAGPERR_V(1U)
6058c2ecf20Sopenharmony_ci
6068c2ecf20Sopenharmony_ci#define INTXCLRPERR_S    21
6078c2ecf20Sopenharmony_ci#define INTXCLRPERR_V(x) ((x) << INTXCLRPERR_S)
6088c2ecf20Sopenharmony_ci#define INTXCLRPERR_F    INTXCLRPERR_V(1U)
6098c2ecf20Sopenharmony_ci
6108c2ecf20Sopenharmony_ci#define FIDPERR_S    20
6118c2ecf20Sopenharmony_ci#define FIDPERR_V(x) ((x) << FIDPERR_S)
6128c2ecf20Sopenharmony_ci#define FIDPERR_F    FIDPERR_V(1U)
6138c2ecf20Sopenharmony_ci
6148c2ecf20Sopenharmony_ci#define CFGSNPPERR_S    19
6158c2ecf20Sopenharmony_ci#define CFGSNPPERR_V(x) ((x) << CFGSNPPERR_S)
6168c2ecf20Sopenharmony_ci#define CFGSNPPERR_F    CFGSNPPERR_V(1U)
6178c2ecf20Sopenharmony_ci
6188c2ecf20Sopenharmony_ci#define HRSPPERR_S    18
6198c2ecf20Sopenharmony_ci#define HRSPPERR_V(x) ((x) << HRSPPERR_S)
6208c2ecf20Sopenharmony_ci#define HRSPPERR_F    HRSPPERR_V(1U)
6218c2ecf20Sopenharmony_ci
6228c2ecf20Sopenharmony_ci#define HREQPERR_S    17
6238c2ecf20Sopenharmony_ci#define HREQPERR_V(x) ((x) << HREQPERR_S)
6248c2ecf20Sopenharmony_ci#define HREQPERR_F    HREQPERR_V(1U)
6258c2ecf20Sopenharmony_ci
6268c2ecf20Sopenharmony_ci#define HCNTPERR_S    16
6278c2ecf20Sopenharmony_ci#define HCNTPERR_V(x) ((x) << HCNTPERR_S)
6288c2ecf20Sopenharmony_ci#define HCNTPERR_F    HCNTPERR_V(1U)
6298c2ecf20Sopenharmony_ci
6308c2ecf20Sopenharmony_ci#define DRSPPERR_S    15
6318c2ecf20Sopenharmony_ci#define DRSPPERR_V(x) ((x) << DRSPPERR_S)
6328c2ecf20Sopenharmony_ci#define DRSPPERR_F    DRSPPERR_V(1U)
6338c2ecf20Sopenharmony_ci
6348c2ecf20Sopenharmony_ci#define DREQPERR_S    14
6358c2ecf20Sopenharmony_ci#define DREQPERR_V(x) ((x) << DREQPERR_S)
6368c2ecf20Sopenharmony_ci#define DREQPERR_F    DREQPERR_V(1U)
6378c2ecf20Sopenharmony_ci
6388c2ecf20Sopenharmony_ci#define DCNTPERR_S    13
6398c2ecf20Sopenharmony_ci#define DCNTPERR_V(x) ((x) << DCNTPERR_S)
6408c2ecf20Sopenharmony_ci#define DCNTPERR_F    DCNTPERR_V(1U)
6418c2ecf20Sopenharmony_ci
6428c2ecf20Sopenharmony_ci#define CRSPPERR_S    12
6438c2ecf20Sopenharmony_ci#define CRSPPERR_V(x) ((x) << CRSPPERR_S)
6448c2ecf20Sopenharmony_ci#define CRSPPERR_F    CRSPPERR_V(1U)
6458c2ecf20Sopenharmony_ci
6468c2ecf20Sopenharmony_ci#define CREQPERR_S    11
6478c2ecf20Sopenharmony_ci#define CREQPERR_V(x) ((x) << CREQPERR_S)
6488c2ecf20Sopenharmony_ci#define CREQPERR_F    CREQPERR_V(1U)
6498c2ecf20Sopenharmony_ci
6508c2ecf20Sopenharmony_ci#define CCNTPERR_S    10
6518c2ecf20Sopenharmony_ci#define CCNTPERR_V(x) ((x) << CCNTPERR_S)
6528c2ecf20Sopenharmony_ci#define CCNTPERR_F    CCNTPERR_V(1U)
6538c2ecf20Sopenharmony_ci
6548c2ecf20Sopenharmony_ci#define TARTAGPERR_S    9
6558c2ecf20Sopenharmony_ci#define TARTAGPERR_V(x) ((x) << TARTAGPERR_S)
6568c2ecf20Sopenharmony_ci#define TARTAGPERR_F    TARTAGPERR_V(1U)
6578c2ecf20Sopenharmony_ci
6588c2ecf20Sopenharmony_ci#define PIOREQPERR_S    8
6598c2ecf20Sopenharmony_ci#define PIOREQPERR_V(x) ((x) << PIOREQPERR_S)
6608c2ecf20Sopenharmony_ci#define PIOREQPERR_F    PIOREQPERR_V(1U)
6618c2ecf20Sopenharmony_ci
6628c2ecf20Sopenharmony_ci#define PIOCPLPERR_S    7
6638c2ecf20Sopenharmony_ci#define PIOCPLPERR_V(x) ((x) << PIOCPLPERR_S)
6648c2ecf20Sopenharmony_ci#define PIOCPLPERR_F    PIOCPLPERR_V(1U)
6658c2ecf20Sopenharmony_ci
6668c2ecf20Sopenharmony_ci#define MSIXDIPERR_S    6
6678c2ecf20Sopenharmony_ci#define MSIXDIPERR_V(x) ((x) << MSIXDIPERR_S)
6688c2ecf20Sopenharmony_ci#define MSIXDIPERR_F    MSIXDIPERR_V(1U)
6698c2ecf20Sopenharmony_ci
6708c2ecf20Sopenharmony_ci#define MSIXDATAPERR_S    5
6718c2ecf20Sopenharmony_ci#define MSIXDATAPERR_V(x) ((x) << MSIXDATAPERR_S)
6728c2ecf20Sopenharmony_ci#define MSIXDATAPERR_F    MSIXDATAPERR_V(1U)
6738c2ecf20Sopenharmony_ci
6748c2ecf20Sopenharmony_ci#define MSIXADDRHPERR_S    4
6758c2ecf20Sopenharmony_ci#define MSIXADDRHPERR_V(x) ((x) << MSIXADDRHPERR_S)
6768c2ecf20Sopenharmony_ci#define MSIXADDRHPERR_F    MSIXADDRHPERR_V(1U)
6778c2ecf20Sopenharmony_ci
6788c2ecf20Sopenharmony_ci#define MSIXADDRLPERR_S    3
6798c2ecf20Sopenharmony_ci#define MSIXADDRLPERR_V(x) ((x) << MSIXADDRLPERR_S)
6808c2ecf20Sopenharmony_ci#define MSIXADDRLPERR_F    MSIXADDRLPERR_V(1U)
6818c2ecf20Sopenharmony_ci
6828c2ecf20Sopenharmony_ci#define MSIDATAPERR_S    2
6838c2ecf20Sopenharmony_ci#define MSIDATAPERR_V(x) ((x) << MSIDATAPERR_S)
6848c2ecf20Sopenharmony_ci#define MSIDATAPERR_F    MSIDATAPERR_V(1U)
6858c2ecf20Sopenharmony_ci
6868c2ecf20Sopenharmony_ci#define MSIADDRHPERR_S    1
6878c2ecf20Sopenharmony_ci#define MSIADDRHPERR_V(x) ((x) << MSIADDRHPERR_S)
6888c2ecf20Sopenharmony_ci#define MSIADDRHPERR_F    MSIADDRHPERR_V(1U)
6898c2ecf20Sopenharmony_ci
6908c2ecf20Sopenharmony_ci#define MSIADDRLPERR_S    0
6918c2ecf20Sopenharmony_ci#define MSIADDRLPERR_V(x) ((x) << MSIADDRLPERR_S)
6928c2ecf20Sopenharmony_ci#define MSIADDRLPERR_F    MSIADDRLPERR_V(1U)
6938c2ecf20Sopenharmony_ci
6948c2ecf20Sopenharmony_ci#define READRSPERR_S    29
6958c2ecf20Sopenharmony_ci#define READRSPERR_V(x) ((x) << READRSPERR_S)
6968c2ecf20Sopenharmony_ci#define READRSPERR_F    READRSPERR_V(1U)
6978c2ecf20Sopenharmony_ci
6988c2ecf20Sopenharmony_ci#define TRGT1GRPPERR_S    28
6998c2ecf20Sopenharmony_ci#define TRGT1GRPPERR_V(x) ((x) << TRGT1GRPPERR_S)
7008c2ecf20Sopenharmony_ci#define TRGT1GRPPERR_F    TRGT1GRPPERR_V(1U)
7018c2ecf20Sopenharmony_ci
7028c2ecf20Sopenharmony_ci#define IPSOTPERR_S    27
7038c2ecf20Sopenharmony_ci#define IPSOTPERR_V(x) ((x) << IPSOTPERR_S)
7048c2ecf20Sopenharmony_ci#define IPSOTPERR_F    IPSOTPERR_V(1U)
7058c2ecf20Sopenharmony_ci
7068c2ecf20Sopenharmony_ci#define IPRETRYPERR_S    26
7078c2ecf20Sopenharmony_ci#define IPRETRYPERR_V(x) ((x) << IPRETRYPERR_S)
7088c2ecf20Sopenharmony_ci#define IPRETRYPERR_F    IPRETRYPERR_V(1U)
7098c2ecf20Sopenharmony_ci
7108c2ecf20Sopenharmony_ci#define IPRXDATAGRPPERR_S    25
7118c2ecf20Sopenharmony_ci#define IPRXDATAGRPPERR_V(x) ((x) << IPRXDATAGRPPERR_S)
7128c2ecf20Sopenharmony_ci#define IPRXDATAGRPPERR_F    IPRXDATAGRPPERR_V(1U)
7138c2ecf20Sopenharmony_ci
7148c2ecf20Sopenharmony_ci#define IPRXHDRGRPPERR_S    24
7158c2ecf20Sopenharmony_ci#define IPRXHDRGRPPERR_V(x) ((x) << IPRXHDRGRPPERR_S)
7168c2ecf20Sopenharmony_ci#define IPRXHDRGRPPERR_F    IPRXHDRGRPPERR_V(1U)
7178c2ecf20Sopenharmony_ci
7188c2ecf20Sopenharmony_ci#define MAGRPPERR_S    22
7198c2ecf20Sopenharmony_ci#define MAGRPPERR_V(x) ((x) << MAGRPPERR_S)
7208c2ecf20Sopenharmony_ci#define MAGRPPERR_F    MAGRPPERR_V(1U)
7218c2ecf20Sopenharmony_ci
7228c2ecf20Sopenharmony_ci#define VFIDPERR_S    21
7238c2ecf20Sopenharmony_ci#define VFIDPERR_V(x) ((x) << VFIDPERR_S)
7248c2ecf20Sopenharmony_ci#define VFIDPERR_F    VFIDPERR_V(1U)
7258c2ecf20Sopenharmony_ci
7268c2ecf20Sopenharmony_ci#define HREQWRPERR_S    16
7278c2ecf20Sopenharmony_ci#define HREQWRPERR_V(x) ((x) << HREQWRPERR_S)
7288c2ecf20Sopenharmony_ci#define HREQWRPERR_F    HREQWRPERR_V(1U)
7298c2ecf20Sopenharmony_ci
7308c2ecf20Sopenharmony_ci#define DREQWRPERR_S    13
7318c2ecf20Sopenharmony_ci#define DREQWRPERR_V(x) ((x) << DREQWRPERR_S)
7328c2ecf20Sopenharmony_ci#define DREQWRPERR_F    DREQWRPERR_V(1U)
7338c2ecf20Sopenharmony_ci
7348c2ecf20Sopenharmony_ci#define CREQRDPERR_S    11
7358c2ecf20Sopenharmony_ci#define CREQRDPERR_V(x) ((x) << CREQRDPERR_S)
7368c2ecf20Sopenharmony_ci#define CREQRDPERR_F    CREQRDPERR_V(1U)
7378c2ecf20Sopenharmony_ci
7388c2ecf20Sopenharmony_ci#define MSTTAGQPERR_S    10
7398c2ecf20Sopenharmony_ci#define MSTTAGQPERR_V(x) ((x) << MSTTAGQPERR_S)
7408c2ecf20Sopenharmony_ci#define MSTTAGQPERR_F    MSTTAGQPERR_V(1U)
7418c2ecf20Sopenharmony_ci
7428c2ecf20Sopenharmony_ci#define PIOREQGRPPERR_S    8
7438c2ecf20Sopenharmony_ci#define PIOREQGRPPERR_V(x) ((x) << PIOREQGRPPERR_S)
7448c2ecf20Sopenharmony_ci#define PIOREQGRPPERR_F    PIOREQGRPPERR_V(1U)
7458c2ecf20Sopenharmony_ci
7468c2ecf20Sopenharmony_ci#define PIOCPLGRPPERR_S    7
7478c2ecf20Sopenharmony_ci#define PIOCPLGRPPERR_V(x) ((x) << PIOCPLGRPPERR_S)
7488c2ecf20Sopenharmony_ci#define PIOCPLGRPPERR_F    PIOCPLGRPPERR_V(1U)
7498c2ecf20Sopenharmony_ci
7508c2ecf20Sopenharmony_ci#define MSIXSTIPERR_S    2
7518c2ecf20Sopenharmony_ci#define MSIXSTIPERR_V(x) ((x) << MSIXSTIPERR_S)
7528c2ecf20Sopenharmony_ci#define MSIXSTIPERR_F    MSIXSTIPERR_V(1U)
7538c2ecf20Sopenharmony_ci
7548c2ecf20Sopenharmony_ci#define MSTTIMEOUTPERR_S    1
7558c2ecf20Sopenharmony_ci#define MSTTIMEOUTPERR_V(x) ((x) << MSTTIMEOUTPERR_S)
7568c2ecf20Sopenharmony_ci#define MSTTIMEOUTPERR_F    MSTTIMEOUTPERR_V(1U)
7578c2ecf20Sopenharmony_ci
7588c2ecf20Sopenharmony_ci#define MSTGRPPERR_S    0
7598c2ecf20Sopenharmony_ci#define MSTGRPPERR_V(x) ((x) << MSTGRPPERR_S)
7608c2ecf20Sopenharmony_ci#define MSTGRPPERR_F    MSTGRPPERR_V(1U)
7618c2ecf20Sopenharmony_ci
7628c2ecf20Sopenharmony_ci#define PCIE_NONFAT_ERR_A	0x3010
7638c2ecf20Sopenharmony_ci#define PCIE_CFG_SPACE_REQ_A	0x3060
7648c2ecf20Sopenharmony_ci#define PCIE_CFG_SPACE_DATA_A	0x3064
7658c2ecf20Sopenharmony_ci#define PCIE_MEM_ACCESS_BASE_WIN_A 0x3068
7668c2ecf20Sopenharmony_ci
7678c2ecf20Sopenharmony_ci#define PCIEOFST_S    10
7688c2ecf20Sopenharmony_ci#define PCIEOFST_M    0x3fffffU
7698c2ecf20Sopenharmony_ci#define PCIEOFST_G(x) (((x) >> PCIEOFST_S) & PCIEOFST_M)
7708c2ecf20Sopenharmony_ci
7718c2ecf20Sopenharmony_ci#define BIR_S    8
7728c2ecf20Sopenharmony_ci#define BIR_M    0x3U
7738c2ecf20Sopenharmony_ci#define BIR_V(x) ((x) << BIR_S)
7748c2ecf20Sopenharmony_ci#define BIR_G(x) (((x) >> BIR_S) & BIR_M)
7758c2ecf20Sopenharmony_ci
7768c2ecf20Sopenharmony_ci#define WINDOW_S    0
7778c2ecf20Sopenharmony_ci#define WINDOW_M    0xffU
7788c2ecf20Sopenharmony_ci#define WINDOW_V(x) ((x) << WINDOW_S)
7798c2ecf20Sopenharmony_ci#define WINDOW_G(x) (((x) >> WINDOW_S) & WINDOW_M)
7808c2ecf20Sopenharmony_ci
7818c2ecf20Sopenharmony_ci#define PCIE_MEM_ACCESS_OFFSET_A 0x306c
7828c2ecf20Sopenharmony_ci
7838c2ecf20Sopenharmony_ci#define ENABLE_S    30
7848c2ecf20Sopenharmony_ci#define ENABLE_V(x) ((x) << ENABLE_S)
7858c2ecf20Sopenharmony_ci#define ENABLE_F    ENABLE_V(1U)
7868c2ecf20Sopenharmony_ci
7878c2ecf20Sopenharmony_ci#define LOCALCFG_S    28
7888c2ecf20Sopenharmony_ci#define LOCALCFG_V(x) ((x) << LOCALCFG_S)
7898c2ecf20Sopenharmony_ci#define LOCALCFG_F    LOCALCFG_V(1U)
7908c2ecf20Sopenharmony_ci
7918c2ecf20Sopenharmony_ci#define FUNCTION_S    12
7928c2ecf20Sopenharmony_ci#define FUNCTION_V(x) ((x) << FUNCTION_S)
7938c2ecf20Sopenharmony_ci
7948c2ecf20Sopenharmony_ci#define REGISTER_S    0
7958c2ecf20Sopenharmony_ci#define REGISTER_V(x) ((x) << REGISTER_S)
7968c2ecf20Sopenharmony_ci
7978c2ecf20Sopenharmony_ci#define T6_ENABLE_S    31
7988c2ecf20Sopenharmony_ci#define T6_ENABLE_V(x) ((x) << T6_ENABLE_S)
7998c2ecf20Sopenharmony_ci#define T6_ENABLE_F    T6_ENABLE_V(1U)
8008c2ecf20Sopenharmony_ci
8018c2ecf20Sopenharmony_ci#define PFNUM_S    0
8028c2ecf20Sopenharmony_ci#define PFNUM_V(x) ((x) << PFNUM_S)
8038c2ecf20Sopenharmony_ci
8048c2ecf20Sopenharmony_ci#define PCIE_FW_A 0x30b8
8058c2ecf20Sopenharmony_ci#define PCIE_FW_PF_A 0x30bc
8068c2ecf20Sopenharmony_ci
8078c2ecf20Sopenharmony_ci#define PCIE_CORE_UTL_SYSTEM_BUS_AGENT_STATUS_A 0x5908
8088c2ecf20Sopenharmony_ci
8098c2ecf20Sopenharmony_ci#define RNPP_S    31
8108c2ecf20Sopenharmony_ci#define RNPP_V(x) ((x) << RNPP_S)
8118c2ecf20Sopenharmony_ci#define RNPP_F    RNPP_V(1U)
8128c2ecf20Sopenharmony_ci
8138c2ecf20Sopenharmony_ci#define RPCP_S    29
8148c2ecf20Sopenharmony_ci#define RPCP_V(x) ((x) << RPCP_S)
8158c2ecf20Sopenharmony_ci#define RPCP_F    RPCP_V(1U)
8168c2ecf20Sopenharmony_ci
8178c2ecf20Sopenharmony_ci#define RCIP_S    27
8188c2ecf20Sopenharmony_ci#define RCIP_V(x) ((x) << RCIP_S)
8198c2ecf20Sopenharmony_ci#define RCIP_F    RCIP_V(1U)
8208c2ecf20Sopenharmony_ci
8218c2ecf20Sopenharmony_ci#define RCCP_S    26
8228c2ecf20Sopenharmony_ci#define RCCP_V(x) ((x) << RCCP_S)
8238c2ecf20Sopenharmony_ci#define RCCP_F    RCCP_V(1U)
8248c2ecf20Sopenharmony_ci
8258c2ecf20Sopenharmony_ci#define RFTP_S    23
8268c2ecf20Sopenharmony_ci#define RFTP_V(x) ((x) << RFTP_S)
8278c2ecf20Sopenharmony_ci#define RFTP_F    RFTP_V(1U)
8288c2ecf20Sopenharmony_ci
8298c2ecf20Sopenharmony_ci#define PTRP_S    20
8308c2ecf20Sopenharmony_ci#define PTRP_V(x) ((x) << PTRP_S)
8318c2ecf20Sopenharmony_ci#define PTRP_F    PTRP_V(1U)
8328c2ecf20Sopenharmony_ci
8338c2ecf20Sopenharmony_ci#define PCIE_CORE_UTL_PCI_EXPRESS_PORT_STATUS_A 0x59a4
8348c2ecf20Sopenharmony_ci
8358c2ecf20Sopenharmony_ci#define TPCP_S    30
8368c2ecf20Sopenharmony_ci#define TPCP_V(x) ((x) << TPCP_S)
8378c2ecf20Sopenharmony_ci#define TPCP_F    TPCP_V(1U)
8388c2ecf20Sopenharmony_ci
8398c2ecf20Sopenharmony_ci#define TNPP_S    29
8408c2ecf20Sopenharmony_ci#define TNPP_V(x) ((x) << TNPP_S)
8418c2ecf20Sopenharmony_ci#define TNPP_F    TNPP_V(1U)
8428c2ecf20Sopenharmony_ci
8438c2ecf20Sopenharmony_ci#define TFTP_S    28
8448c2ecf20Sopenharmony_ci#define TFTP_V(x) ((x) << TFTP_S)
8458c2ecf20Sopenharmony_ci#define TFTP_F    TFTP_V(1U)
8468c2ecf20Sopenharmony_ci
8478c2ecf20Sopenharmony_ci#define TCAP_S    27
8488c2ecf20Sopenharmony_ci#define TCAP_V(x) ((x) << TCAP_S)
8498c2ecf20Sopenharmony_ci#define TCAP_F    TCAP_V(1U)
8508c2ecf20Sopenharmony_ci
8518c2ecf20Sopenharmony_ci#define TCIP_S    26
8528c2ecf20Sopenharmony_ci#define TCIP_V(x) ((x) << TCIP_S)
8538c2ecf20Sopenharmony_ci#define TCIP_F    TCIP_V(1U)
8548c2ecf20Sopenharmony_ci
8558c2ecf20Sopenharmony_ci#define RCAP_S    25
8568c2ecf20Sopenharmony_ci#define RCAP_V(x) ((x) << RCAP_S)
8578c2ecf20Sopenharmony_ci#define RCAP_F    RCAP_V(1U)
8588c2ecf20Sopenharmony_ci
8598c2ecf20Sopenharmony_ci#define PLUP_S    23
8608c2ecf20Sopenharmony_ci#define PLUP_V(x) ((x) << PLUP_S)
8618c2ecf20Sopenharmony_ci#define PLUP_F    PLUP_V(1U)
8628c2ecf20Sopenharmony_ci
8638c2ecf20Sopenharmony_ci#define PLDN_S    22
8648c2ecf20Sopenharmony_ci#define PLDN_V(x) ((x) << PLDN_S)
8658c2ecf20Sopenharmony_ci#define PLDN_F    PLDN_V(1U)
8668c2ecf20Sopenharmony_ci
8678c2ecf20Sopenharmony_ci#define OTDD_S    21
8688c2ecf20Sopenharmony_ci#define OTDD_V(x) ((x) << OTDD_S)
8698c2ecf20Sopenharmony_ci#define OTDD_F    OTDD_V(1U)
8708c2ecf20Sopenharmony_ci
8718c2ecf20Sopenharmony_ci#define GTRP_S    20
8728c2ecf20Sopenharmony_ci#define GTRP_V(x) ((x) << GTRP_S)
8738c2ecf20Sopenharmony_ci#define GTRP_F    GTRP_V(1U)
8748c2ecf20Sopenharmony_ci
8758c2ecf20Sopenharmony_ci#define RDPE_S    18
8768c2ecf20Sopenharmony_ci#define RDPE_V(x) ((x) << RDPE_S)
8778c2ecf20Sopenharmony_ci#define RDPE_F    RDPE_V(1U)
8788c2ecf20Sopenharmony_ci
8798c2ecf20Sopenharmony_ci#define TDCE_S    17
8808c2ecf20Sopenharmony_ci#define TDCE_V(x) ((x) << TDCE_S)
8818c2ecf20Sopenharmony_ci#define TDCE_F    TDCE_V(1U)
8828c2ecf20Sopenharmony_ci
8838c2ecf20Sopenharmony_ci#define TDUE_S    16
8848c2ecf20Sopenharmony_ci#define TDUE_V(x) ((x) << TDUE_S)
8858c2ecf20Sopenharmony_ci#define TDUE_F    TDUE_V(1U)
8868c2ecf20Sopenharmony_ci
8878c2ecf20Sopenharmony_ci/* registers for module MC */
8888c2ecf20Sopenharmony_ci#define MC_INT_CAUSE_A		0x7518
8898c2ecf20Sopenharmony_ci#define MC_P_INT_CAUSE_A	0x41318
8908c2ecf20Sopenharmony_ci
8918c2ecf20Sopenharmony_ci#define ECC_UE_INT_CAUSE_S    2
8928c2ecf20Sopenharmony_ci#define ECC_UE_INT_CAUSE_V(x) ((x) << ECC_UE_INT_CAUSE_S)
8938c2ecf20Sopenharmony_ci#define ECC_UE_INT_CAUSE_F    ECC_UE_INT_CAUSE_V(1U)
8948c2ecf20Sopenharmony_ci
8958c2ecf20Sopenharmony_ci#define ECC_CE_INT_CAUSE_S    1
8968c2ecf20Sopenharmony_ci#define ECC_CE_INT_CAUSE_V(x) ((x) << ECC_CE_INT_CAUSE_S)
8978c2ecf20Sopenharmony_ci#define ECC_CE_INT_CAUSE_F    ECC_CE_INT_CAUSE_V(1U)
8988c2ecf20Sopenharmony_ci
8998c2ecf20Sopenharmony_ci#define PERR_INT_CAUSE_S    0
9008c2ecf20Sopenharmony_ci#define PERR_INT_CAUSE_V(x) ((x) << PERR_INT_CAUSE_S)
9018c2ecf20Sopenharmony_ci#define PERR_INT_CAUSE_F    PERR_INT_CAUSE_V(1U)
9028c2ecf20Sopenharmony_ci
9038c2ecf20Sopenharmony_ci#define DBG_GPIO_EN_A		0x6010
9048c2ecf20Sopenharmony_ci#define XGMAC_PORT_CFG_A	0x1000
9058c2ecf20Sopenharmony_ci#define MAC_PORT_CFG_A		0x800
9068c2ecf20Sopenharmony_ci
9078c2ecf20Sopenharmony_ci#define SIGNAL_DET_S    14
9088c2ecf20Sopenharmony_ci#define SIGNAL_DET_V(x) ((x) << SIGNAL_DET_S)
9098c2ecf20Sopenharmony_ci#define SIGNAL_DET_F    SIGNAL_DET_V(1U)
9108c2ecf20Sopenharmony_ci
9118c2ecf20Sopenharmony_ci#define MC_ECC_STATUS_A		0x751c
9128c2ecf20Sopenharmony_ci#define MC_P_ECC_STATUS_A	0x4131c
9138c2ecf20Sopenharmony_ci
9148c2ecf20Sopenharmony_ci#define ECC_CECNT_S    16
9158c2ecf20Sopenharmony_ci#define ECC_CECNT_M    0xffffU
9168c2ecf20Sopenharmony_ci#define ECC_CECNT_V(x) ((x) << ECC_CECNT_S)
9178c2ecf20Sopenharmony_ci#define ECC_CECNT_G(x) (((x) >> ECC_CECNT_S) & ECC_CECNT_M)
9188c2ecf20Sopenharmony_ci
9198c2ecf20Sopenharmony_ci#define ECC_UECNT_S    0
9208c2ecf20Sopenharmony_ci#define ECC_UECNT_M    0xffffU
9218c2ecf20Sopenharmony_ci#define ECC_UECNT_V(x) ((x) << ECC_UECNT_S)
9228c2ecf20Sopenharmony_ci#define ECC_UECNT_G(x) (((x) >> ECC_UECNT_S) & ECC_UECNT_M)
9238c2ecf20Sopenharmony_ci
9248c2ecf20Sopenharmony_ci#define MC_BIST_CMD_A 0x7600
9258c2ecf20Sopenharmony_ci
9268c2ecf20Sopenharmony_ci#define START_BIST_S    31
9278c2ecf20Sopenharmony_ci#define START_BIST_V(x) ((x) << START_BIST_S)
9288c2ecf20Sopenharmony_ci#define START_BIST_F    START_BIST_V(1U)
9298c2ecf20Sopenharmony_ci
9308c2ecf20Sopenharmony_ci#define BIST_CMD_GAP_S    8
9318c2ecf20Sopenharmony_ci#define BIST_CMD_GAP_V(x) ((x) << BIST_CMD_GAP_S)
9328c2ecf20Sopenharmony_ci
9338c2ecf20Sopenharmony_ci#define BIST_OPCODE_S    0
9348c2ecf20Sopenharmony_ci#define BIST_OPCODE_V(x) ((x) << BIST_OPCODE_S)
9358c2ecf20Sopenharmony_ci
9368c2ecf20Sopenharmony_ci#define MC_BIST_CMD_ADDR_A 0x7604
9378c2ecf20Sopenharmony_ci#define MC_BIST_CMD_LEN_A 0x7608
9388c2ecf20Sopenharmony_ci#define MC_BIST_DATA_PATTERN_A 0x760c
9398c2ecf20Sopenharmony_ci
9408c2ecf20Sopenharmony_ci#define MC_BIST_STATUS_RDATA_A 0x7688
9418c2ecf20Sopenharmony_ci
9428c2ecf20Sopenharmony_ci/* registers for module MA */
9438c2ecf20Sopenharmony_ci#define MA_EDRAM0_BAR_A 0x77c0
9448c2ecf20Sopenharmony_ci
9458c2ecf20Sopenharmony_ci#define EDRAM0_BASE_S    16
9468c2ecf20Sopenharmony_ci#define EDRAM0_BASE_M    0xfffU
9478c2ecf20Sopenharmony_ci#define EDRAM0_BASE_G(x) (((x) >> EDRAM0_BASE_S) & EDRAM0_BASE_M)
9488c2ecf20Sopenharmony_ci
9498c2ecf20Sopenharmony_ci#define EDRAM0_SIZE_S    0
9508c2ecf20Sopenharmony_ci#define EDRAM0_SIZE_M    0xfffU
9518c2ecf20Sopenharmony_ci#define EDRAM0_SIZE_V(x) ((x) << EDRAM0_SIZE_S)
9528c2ecf20Sopenharmony_ci#define EDRAM0_SIZE_G(x) (((x) >> EDRAM0_SIZE_S) & EDRAM0_SIZE_M)
9538c2ecf20Sopenharmony_ci
9548c2ecf20Sopenharmony_ci#define MA_EDRAM1_BAR_A 0x77c4
9558c2ecf20Sopenharmony_ci
9568c2ecf20Sopenharmony_ci#define EDRAM1_BASE_S    16
9578c2ecf20Sopenharmony_ci#define EDRAM1_BASE_M    0xfffU
9588c2ecf20Sopenharmony_ci#define EDRAM1_BASE_G(x) (((x) >> EDRAM1_BASE_S) & EDRAM1_BASE_M)
9598c2ecf20Sopenharmony_ci
9608c2ecf20Sopenharmony_ci#define EDRAM1_SIZE_S    0
9618c2ecf20Sopenharmony_ci#define EDRAM1_SIZE_M    0xfffU
9628c2ecf20Sopenharmony_ci#define EDRAM1_SIZE_V(x) ((x) << EDRAM1_SIZE_S)
9638c2ecf20Sopenharmony_ci#define EDRAM1_SIZE_G(x) (((x) >> EDRAM1_SIZE_S) & EDRAM1_SIZE_M)
9648c2ecf20Sopenharmony_ci
9658c2ecf20Sopenharmony_ci#define MA_EXT_MEMORY_BAR_A 0x77c8
9668c2ecf20Sopenharmony_ci
9678c2ecf20Sopenharmony_ci#define EXT_MEM_BASE_S    16
9688c2ecf20Sopenharmony_ci#define EXT_MEM_BASE_M    0xfffU
9698c2ecf20Sopenharmony_ci#define EXT_MEM_BASE_V(x) ((x) << EXT_MEM_BASE_S)
9708c2ecf20Sopenharmony_ci#define EXT_MEM_BASE_G(x) (((x) >> EXT_MEM_BASE_S) & EXT_MEM_BASE_M)
9718c2ecf20Sopenharmony_ci
9728c2ecf20Sopenharmony_ci#define EXT_MEM_SIZE_S    0
9738c2ecf20Sopenharmony_ci#define EXT_MEM_SIZE_M    0xfffU
9748c2ecf20Sopenharmony_ci#define EXT_MEM_SIZE_V(x) ((x) << EXT_MEM_SIZE_S)
9758c2ecf20Sopenharmony_ci#define EXT_MEM_SIZE_G(x) (((x) >> EXT_MEM_SIZE_S) & EXT_MEM_SIZE_M)
9768c2ecf20Sopenharmony_ci
9778c2ecf20Sopenharmony_ci#define MA_EXT_MEMORY1_BAR_A 0x7808
9788c2ecf20Sopenharmony_ci
9798c2ecf20Sopenharmony_ci#define HMA_MUX_S    5
9808c2ecf20Sopenharmony_ci#define HMA_MUX_V(x) ((x) << HMA_MUX_S)
9818c2ecf20Sopenharmony_ci#define HMA_MUX_F    HMA_MUX_V(1U)
9828c2ecf20Sopenharmony_ci
9838c2ecf20Sopenharmony_ci#define EXT_MEM1_BASE_S    16
9848c2ecf20Sopenharmony_ci#define EXT_MEM1_BASE_M    0xfffU
9858c2ecf20Sopenharmony_ci#define EXT_MEM1_BASE_G(x) (((x) >> EXT_MEM1_BASE_S) & EXT_MEM1_BASE_M)
9868c2ecf20Sopenharmony_ci
9878c2ecf20Sopenharmony_ci#define EXT_MEM1_SIZE_S    0
9888c2ecf20Sopenharmony_ci#define EXT_MEM1_SIZE_M    0xfffU
9898c2ecf20Sopenharmony_ci#define EXT_MEM1_SIZE_V(x) ((x) << EXT_MEM1_SIZE_S)
9908c2ecf20Sopenharmony_ci#define EXT_MEM1_SIZE_G(x) (((x) >> EXT_MEM1_SIZE_S) & EXT_MEM1_SIZE_M)
9918c2ecf20Sopenharmony_ci
9928c2ecf20Sopenharmony_ci#define MA_EXT_MEMORY0_BAR_A 0x77c8
9938c2ecf20Sopenharmony_ci
9948c2ecf20Sopenharmony_ci#define EXT_MEM0_BASE_S    16
9958c2ecf20Sopenharmony_ci#define EXT_MEM0_BASE_M    0xfffU
9968c2ecf20Sopenharmony_ci#define EXT_MEM0_BASE_G(x) (((x) >> EXT_MEM0_BASE_S) & EXT_MEM0_BASE_M)
9978c2ecf20Sopenharmony_ci
9988c2ecf20Sopenharmony_ci#define EXT_MEM0_SIZE_S    0
9998c2ecf20Sopenharmony_ci#define EXT_MEM0_SIZE_M    0xfffU
10008c2ecf20Sopenharmony_ci#define EXT_MEM0_SIZE_V(x) ((x) << EXT_MEM0_SIZE_S)
10018c2ecf20Sopenharmony_ci#define EXT_MEM0_SIZE_G(x) (((x) >> EXT_MEM0_SIZE_S) & EXT_MEM0_SIZE_M)
10028c2ecf20Sopenharmony_ci
10038c2ecf20Sopenharmony_ci#define MA_TARGET_MEM_ENABLE_A 0x77d8
10048c2ecf20Sopenharmony_ci
10058c2ecf20Sopenharmony_ci#define EXT_MEM_ENABLE_S    2
10068c2ecf20Sopenharmony_ci#define EXT_MEM_ENABLE_V(x) ((x) << EXT_MEM_ENABLE_S)
10078c2ecf20Sopenharmony_ci#define EXT_MEM_ENABLE_F    EXT_MEM_ENABLE_V(1U)
10088c2ecf20Sopenharmony_ci
10098c2ecf20Sopenharmony_ci#define EDRAM1_ENABLE_S    1
10108c2ecf20Sopenharmony_ci#define EDRAM1_ENABLE_V(x) ((x) << EDRAM1_ENABLE_S)
10118c2ecf20Sopenharmony_ci#define EDRAM1_ENABLE_F    EDRAM1_ENABLE_V(1U)
10128c2ecf20Sopenharmony_ci
10138c2ecf20Sopenharmony_ci#define EDRAM0_ENABLE_S    0
10148c2ecf20Sopenharmony_ci#define EDRAM0_ENABLE_V(x) ((x) << EDRAM0_ENABLE_S)
10158c2ecf20Sopenharmony_ci#define EDRAM0_ENABLE_F    EDRAM0_ENABLE_V(1U)
10168c2ecf20Sopenharmony_ci
10178c2ecf20Sopenharmony_ci#define EXT_MEM1_ENABLE_S    4
10188c2ecf20Sopenharmony_ci#define EXT_MEM1_ENABLE_V(x) ((x) << EXT_MEM1_ENABLE_S)
10198c2ecf20Sopenharmony_ci#define EXT_MEM1_ENABLE_F    EXT_MEM1_ENABLE_V(1U)
10208c2ecf20Sopenharmony_ci
10218c2ecf20Sopenharmony_ci#define EXT_MEM0_ENABLE_S    2
10228c2ecf20Sopenharmony_ci#define EXT_MEM0_ENABLE_V(x) ((x) << EXT_MEM0_ENABLE_S)
10238c2ecf20Sopenharmony_ci#define EXT_MEM0_ENABLE_F    EXT_MEM0_ENABLE_V(1U)
10248c2ecf20Sopenharmony_ci
10258c2ecf20Sopenharmony_ci#define MA_INT_CAUSE_A	0x77e0
10268c2ecf20Sopenharmony_ci
10278c2ecf20Sopenharmony_ci#define MEM_PERR_INT_CAUSE_S    1
10288c2ecf20Sopenharmony_ci#define MEM_PERR_INT_CAUSE_V(x) ((x) << MEM_PERR_INT_CAUSE_S)
10298c2ecf20Sopenharmony_ci#define MEM_PERR_INT_CAUSE_F    MEM_PERR_INT_CAUSE_V(1U)
10308c2ecf20Sopenharmony_ci
10318c2ecf20Sopenharmony_ci#define MEM_WRAP_INT_CAUSE_S    0
10328c2ecf20Sopenharmony_ci#define MEM_WRAP_INT_CAUSE_V(x) ((x) << MEM_WRAP_INT_CAUSE_S)
10338c2ecf20Sopenharmony_ci#define MEM_WRAP_INT_CAUSE_F    MEM_WRAP_INT_CAUSE_V(1U)
10348c2ecf20Sopenharmony_ci
10358c2ecf20Sopenharmony_ci#define MA_INT_WRAP_STATUS_A	0x77e4
10368c2ecf20Sopenharmony_ci
10378c2ecf20Sopenharmony_ci#define MEM_WRAP_ADDRESS_S    4
10388c2ecf20Sopenharmony_ci#define MEM_WRAP_ADDRESS_M    0xfffffffU
10398c2ecf20Sopenharmony_ci#define MEM_WRAP_ADDRESS_G(x) (((x) >> MEM_WRAP_ADDRESS_S) & MEM_WRAP_ADDRESS_M)
10408c2ecf20Sopenharmony_ci
10418c2ecf20Sopenharmony_ci#define MEM_WRAP_CLIENT_NUM_S    0
10428c2ecf20Sopenharmony_ci#define MEM_WRAP_CLIENT_NUM_M    0xfU
10438c2ecf20Sopenharmony_ci#define MEM_WRAP_CLIENT_NUM_G(x) \
10448c2ecf20Sopenharmony_ci	(((x) >> MEM_WRAP_CLIENT_NUM_S) & MEM_WRAP_CLIENT_NUM_M)
10458c2ecf20Sopenharmony_ci
10468c2ecf20Sopenharmony_ci#define MA_PARITY_ERROR_STATUS_A	0x77f4
10478c2ecf20Sopenharmony_ci#define MA_PARITY_ERROR_STATUS1_A	0x77f4
10488c2ecf20Sopenharmony_ci#define MA_PARITY_ERROR_STATUS2_A	0x7804
10498c2ecf20Sopenharmony_ci
10508c2ecf20Sopenharmony_ci/* registers for module EDC_0 */
10518c2ecf20Sopenharmony_ci#define EDC_0_BASE_ADDR		0x7900
10528c2ecf20Sopenharmony_ci
10538c2ecf20Sopenharmony_ci#define EDC_BIST_CMD_A		0x7904
10548c2ecf20Sopenharmony_ci#define EDC_BIST_CMD_ADDR_A	0x7908
10558c2ecf20Sopenharmony_ci#define EDC_BIST_CMD_LEN_A	0x790c
10568c2ecf20Sopenharmony_ci#define EDC_BIST_DATA_PATTERN_A 0x7910
10578c2ecf20Sopenharmony_ci#define EDC_BIST_STATUS_RDATA_A	0x7928
10588c2ecf20Sopenharmony_ci#define EDC_INT_CAUSE_A		0x7978
10598c2ecf20Sopenharmony_ci
10608c2ecf20Sopenharmony_ci#define ECC_UE_PAR_S    5
10618c2ecf20Sopenharmony_ci#define ECC_UE_PAR_V(x) ((x) << ECC_UE_PAR_S)
10628c2ecf20Sopenharmony_ci#define ECC_UE_PAR_F    ECC_UE_PAR_V(1U)
10638c2ecf20Sopenharmony_ci
10648c2ecf20Sopenharmony_ci#define ECC_CE_PAR_S    4
10658c2ecf20Sopenharmony_ci#define ECC_CE_PAR_V(x) ((x) << ECC_CE_PAR_S)
10668c2ecf20Sopenharmony_ci#define ECC_CE_PAR_F    ECC_CE_PAR_V(1U)
10678c2ecf20Sopenharmony_ci
10688c2ecf20Sopenharmony_ci#define PERR_PAR_CAUSE_S    3
10698c2ecf20Sopenharmony_ci#define PERR_PAR_CAUSE_V(x) ((x) << PERR_PAR_CAUSE_S)
10708c2ecf20Sopenharmony_ci#define PERR_PAR_CAUSE_F    PERR_PAR_CAUSE_V(1U)
10718c2ecf20Sopenharmony_ci
10728c2ecf20Sopenharmony_ci#define EDC_ECC_STATUS_A	0x797c
10738c2ecf20Sopenharmony_ci
10748c2ecf20Sopenharmony_ci/* registers for module EDC_1 */
10758c2ecf20Sopenharmony_ci#define EDC_1_BASE_ADDR	0x7980
10768c2ecf20Sopenharmony_ci
10778c2ecf20Sopenharmony_ci/* registers for module CIM */
10788c2ecf20Sopenharmony_ci#define CIM_BOOT_CFG_A 0x7b00
10798c2ecf20Sopenharmony_ci#define CIM_SDRAM_BASE_ADDR_A 0x7b14
10808c2ecf20Sopenharmony_ci#define CIM_SDRAM_ADDR_SIZE_A 0x7b18
10818c2ecf20Sopenharmony_ci#define CIM_EXTMEM2_BASE_ADDR_A 0x7b1c
10828c2ecf20Sopenharmony_ci#define CIM_EXTMEM2_ADDR_SIZE_A 0x7b20
10838c2ecf20Sopenharmony_ci#define CIM_PF_MAILBOX_CTRL_SHADOW_COPY_A 0x290
10848c2ecf20Sopenharmony_ci
10858c2ecf20Sopenharmony_ci#define  BOOTADDR_M	0xffffff00U
10868c2ecf20Sopenharmony_ci
10878c2ecf20Sopenharmony_ci#define UPCRST_S    0
10888c2ecf20Sopenharmony_ci#define UPCRST_V(x) ((x) << UPCRST_S)
10898c2ecf20Sopenharmony_ci#define UPCRST_F    UPCRST_V(1U)
10908c2ecf20Sopenharmony_ci
10918c2ecf20Sopenharmony_ci#define CIM_PF_MAILBOX_DATA_A 0x240
10928c2ecf20Sopenharmony_ci#define CIM_PF_MAILBOX_CTRL_A 0x280
10938c2ecf20Sopenharmony_ci
10948c2ecf20Sopenharmony_ci#define MBMSGVALID_S    3
10958c2ecf20Sopenharmony_ci#define MBMSGVALID_V(x) ((x) << MBMSGVALID_S)
10968c2ecf20Sopenharmony_ci#define MBMSGVALID_F    MBMSGVALID_V(1U)
10978c2ecf20Sopenharmony_ci
10988c2ecf20Sopenharmony_ci#define MBINTREQ_S    2
10998c2ecf20Sopenharmony_ci#define MBINTREQ_V(x) ((x) << MBINTREQ_S)
11008c2ecf20Sopenharmony_ci#define MBINTREQ_F    MBINTREQ_V(1U)
11018c2ecf20Sopenharmony_ci
11028c2ecf20Sopenharmony_ci#define MBOWNER_S    0
11038c2ecf20Sopenharmony_ci#define MBOWNER_M    0x3U
11048c2ecf20Sopenharmony_ci#define MBOWNER_V(x) ((x) << MBOWNER_S)
11058c2ecf20Sopenharmony_ci#define MBOWNER_G(x) (((x) >> MBOWNER_S) & MBOWNER_M)
11068c2ecf20Sopenharmony_ci
11078c2ecf20Sopenharmony_ci#define CIM_PF_HOST_INT_ENABLE_A 0x288
11088c2ecf20Sopenharmony_ci
11098c2ecf20Sopenharmony_ci#define MBMSGRDYINTEN_S    19
11108c2ecf20Sopenharmony_ci#define MBMSGRDYINTEN_V(x) ((x) << MBMSGRDYINTEN_S)
11118c2ecf20Sopenharmony_ci#define MBMSGRDYINTEN_F    MBMSGRDYINTEN_V(1U)
11128c2ecf20Sopenharmony_ci
11138c2ecf20Sopenharmony_ci#define CIM_PF_HOST_INT_CAUSE_A 0x28c
11148c2ecf20Sopenharmony_ci
11158c2ecf20Sopenharmony_ci#define MBMSGRDYINT_S    19
11168c2ecf20Sopenharmony_ci#define MBMSGRDYINT_V(x) ((x) << MBMSGRDYINT_S)
11178c2ecf20Sopenharmony_ci#define MBMSGRDYINT_F    MBMSGRDYINT_V(1U)
11188c2ecf20Sopenharmony_ci
11198c2ecf20Sopenharmony_ci#define CIM_HOST_INT_CAUSE_A 0x7b2c
11208c2ecf20Sopenharmony_ci
11218c2ecf20Sopenharmony_ci#define TIEQOUTPARERRINT_S    20
11228c2ecf20Sopenharmony_ci#define TIEQOUTPARERRINT_V(x) ((x) << TIEQOUTPARERRINT_S)
11238c2ecf20Sopenharmony_ci#define TIEQOUTPARERRINT_F    TIEQOUTPARERRINT_V(1U)
11248c2ecf20Sopenharmony_ci
11258c2ecf20Sopenharmony_ci#define TIEQINPARERRINT_S    19
11268c2ecf20Sopenharmony_ci#define TIEQINPARERRINT_V(x) ((x) << TIEQINPARERRINT_S)
11278c2ecf20Sopenharmony_ci#define TIEQINPARERRINT_F    TIEQINPARERRINT_V(1U)
11288c2ecf20Sopenharmony_ci
11298c2ecf20Sopenharmony_ci#define TIMER0INT_S    2
11308c2ecf20Sopenharmony_ci#define TIMER0INT_V(x) ((x) << TIMER0INT_S)
11318c2ecf20Sopenharmony_ci#define TIMER0INT_F    TIMER0INT_V(1U)
11328c2ecf20Sopenharmony_ci
11338c2ecf20Sopenharmony_ci#define PREFDROPINT_S    1
11348c2ecf20Sopenharmony_ci#define PREFDROPINT_V(x) ((x) << PREFDROPINT_S)
11358c2ecf20Sopenharmony_ci#define PREFDROPINT_F    PREFDROPINT_V(1U)
11368c2ecf20Sopenharmony_ci
11378c2ecf20Sopenharmony_ci#define UPACCNONZERO_S    0
11388c2ecf20Sopenharmony_ci#define UPACCNONZERO_V(x) ((x) << UPACCNONZERO_S)
11398c2ecf20Sopenharmony_ci#define UPACCNONZERO_F    UPACCNONZERO_V(1U)
11408c2ecf20Sopenharmony_ci
11418c2ecf20Sopenharmony_ci#define MBHOSTPARERR_S    18
11428c2ecf20Sopenharmony_ci#define MBHOSTPARERR_V(x) ((x) << MBHOSTPARERR_S)
11438c2ecf20Sopenharmony_ci#define MBHOSTPARERR_F    MBHOSTPARERR_V(1U)
11448c2ecf20Sopenharmony_ci
11458c2ecf20Sopenharmony_ci#define MBUPPARERR_S    17
11468c2ecf20Sopenharmony_ci#define MBUPPARERR_V(x) ((x) << MBUPPARERR_S)
11478c2ecf20Sopenharmony_ci#define MBUPPARERR_F    MBUPPARERR_V(1U)
11488c2ecf20Sopenharmony_ci
11498c2ecf20Sopenharmony_ci#define IBQTP0PARERR_S    16
11508c2ecf20Sopenharmony_ci#define IBQTP0PARERR_V(x) ((x) << IBQTP0PARERR_S)
11518c2ecf20Sopenharmony_ci#define IBQTP0PARERR_F    IBQTP0PARERR_V(1U)
11528c2ecf20Sopenharmony_ci
11538c2ecf20Sopenharmony_ci#define IBQTP1PARERR_S    15
11548c2ecf20Sopenharmony_ci#define IBQTP1PARERR_V(x) ((x) << IBQTP1PARERR_S)
11558c2ecf20Sopenharmony_ci#define IBQTP1PARERR_F    IBQTP1PARERR_V(1U)
11568c2ecf20Sopenharmony_ci
11578c2ecf20Sopenharmony_ci#define IBQULPPARERR_S    14
11588c2ecf20Sopenharmony_ci#define IBQULPPARERR_V(x) ((x) << IBQULPPARERR_S)
11598c2ecf20Sopenharmony_ci#define IBQULPPARERR_F    IBQULPPARERR_V(1U)
11608c2ecf20Sopenharmony_ci
11618c2ecf20Sopenharmony_ci#define IBQSGELOPARERR_S    13
11628c2ecf20Sopenharmony_ci#define IBQSGELOPARERR_V(x) ((x) << IBQSGELOPARERR_S)
11638c2ecf20Sopenharmony_ci#define IBQSGELOPARERR_F    IBQSGELOPARERR_V(1U)
11648c2ecf20Sopenharmony_ci
11658c2ecf20Sopenharmony_ci#define IBQSGEHIPARERR_S    12
11668c2ecf20Sopenharmony_ci#define IBQSGEHIPARERR_V(x) ((x) << IBQSGEHIPARERR_S)
11678c2ecf20Sopenharmony_ci#define IBQSGEHIPARERR_F    IBQSGEHIPARERR_V(1U)
11688c2ecf20Sopenharmony_ci
11698c2ecf20Sopenharmony_ci#define IBQNCSIPARERR_S    11
11708c2ecf20Sopenharmony_ci#define IBQNCSIPARERR_V(x) ((x) << IBQNCSIPARERR_S)
11718c2ecf20Sopenharmony_ci#define IBQNCSIPARERR_F    IBQNCSIPARERR_V(1U)
11728c2ecf20Sopenharmony_ci
11738c2ecf20Sopenharmony_ci#define OBQULP0PARERR_S    10
11748c2ecf20Sopenharmony_ci#define OBQULP0PARERR_V(x) ((x) << OBQULP0PARERR_S)
11758c2ecf20Sopenharmony_ci#define OBQULP0PARERR_F    OBQULP0PARERR_V(1U)
11768c2ecf20Sopenharmony_ci
11778c2ecf20Sopenharmony_ci#define OBQULP1PARERR_S    9
11788c2ecf20Sopenharmony_ci#define OBQULP1PARERR_V(x) ((x) << OBQULP1PARERR_S)
11798c2ecf20Sopenharmony_ci#define OBQULP1PARERR_F    OBQULP1PARERR_V(1U)
11808c2ecf20Sopenharmony_ci
11818c2ecf20Sopenharmony_ci#define OBQULP2PARERR_S    8
11828c2ecf20Sopenharmony_ci#define OBQULP2PARERR_V(x) ((x) << OBQULP2PARERR_S)
11838c2ecf20Sopenharmony_ci#define OBQULP2PARERR_F    OBQULP2PARERR_V(1U)
11848c2ecf20Sopenharmony_ci
11858c2ecf20Sopenharmony_ci#define OBQULP3PARERR_S    7
11868c2ecf20Sopenharmony_ci#define OBQULP3PARERR_V(x) ((x) << OBQULP3PARERR_S)
11878c2ecf20Sopenharmony_ci#define OBQULP3PARERR_F    OBQULP3PARERR_V(1U)
11888c2ecf20Sopenharmony_ci
11898c2ecf20Sopenharmony_ci#define OBQSGEPARERR_S    6
11908c2ecf20Sopenharmony_ci#define OBQSGEPARERR_V(x) ((x) << OBQSGEPARERR_S)
11918c2ecf20Sopenharmony_ci#define OBQSGEPARERR_F    OBQSGEPARERR_V(1U)
11928c2ecf20Sopenharmony_ci
11938c2ecf20Sopenharmony_ci#define OBQNCSIPARERR_S    5
11948c2ecf20Sopenharmony_ci#define OBQNCSIPARERR_V(x) ((x) << OBQNCSIPARERR_S)
11958c2ecf20Sopenharmony_ci#define OBQNCSIPARERR_F    OBQNCSIPARERR_V(1U)
11968c2ecf20Sopenharmony_ci
11978c2ecf20Sopenharmony_ci#define CIM_HOST_UPACC_INT_CAUSE_A 0x7b34
11988c2ecf20Sopenharmony_ci
11998c2ecf20Sopenharmony_ci#define EEPROMWRINT_S    30
12008c2ecf20Sopenharmony_ci#define EEPROMWRINT_V(x) ((x) << EEPROMWRINT_S)
12018c2ecf20Sopenharmony_ci#define EEPROMWRINT_F    EEPROMWRINT_V(1U)
12028c2ecf20Sopenharmony_ci
12038c2ecf20Sopenharmony_ci#define TIMEOUTMAINT_S    29
12048c2ecf20Sopenharmony_ci#define TIMEOUTMAINT_V(x) ((x) << TIMEOUTMAINT_S)
12058c2ecf20Sopenharmony_ci#define TIMEOUTMAINT_F    TIMEOUTMAINT_V(1U)
12068c2ecf20Sopenharmony_ci
12078c2ecf20Sopenharmony_ci#define TIMEOUTINT_S    28
12088c2ecf20Sopenharmony_ci#define TIMEOUTINT_V(x) ((x) << TIMEOUTINT_S)
12098c2ecf20Sopenharmony_ci#define TIMEOUTINT_F    TIMEOUTINT_V(1U)
12108c2ecf20Sopenharmony_ci
12118c2ecf20Sopenharmony_ci#define RSPOVRLOOKUPINT_S    27
12128c2ecf20Sopenharmony_ci#define RSPOVRLOOKUPINT_V(x) ((x) << RSPOVRLOOKUPINT_S)
12138c2ecf20Sopenharmony_ci#define RSPOVRLOOKUPINT_F    RSPOVRLOOKUPINT_V(1U)
12148c2ecf20Sopenharmony_ci
12158c2ecf20Sopenharmony_ci#define REQOVRLOOKUPINT_S    26
12168c2ecf20Sopenharmony_ci#define REQOVRLOOKUPINT_V(x) ((x) << REQOVRLOOKUPINT_S)
12178c2ecf20Sopenharmony_ci#define REQOVRLOOKUPINT_F    REQOVRLOOKUPINT_V(1U)
12188c2ecf20Sopenharmony_ci
12198c2ecf20Sopenharmony_ci#define BLKWRPLINT_S    25
12208c2ecf20Sopenharmony_ci#define BLKWRPLINT_V(x) ((x) << BLKWRPLINT_S)
12218c2ecf20Sopenharmony_ci#define BLKWRPLINT_F    BLKWRPLINT_V(1U)
12228c2ecf20Sopenharmony_ci
12238c2ecf20Sopenharmony_ci#define BLKRDPLINT_S    24
12248c2ecf20Sopenharmony_ci#define BLKRDPLINT_V(x) ((x) << BLKRDPLINT_S)
12258c2ecf20Sopenharmony_ci#define BLKRDPLINT_F    BLKRDPLINT_V(1U)
12268c2ecf20Sopenharmony_ci
12278c2ecf20Sopenharmony_ci#define SGLWRPLINT_S    23
12288c2ecf20Sopenharmony_ci#define SGLWRPLINT_V(x) ((x) << SGLWRPLINT_S)
12298c2ecf20Sopenharmony_ci#define SGLWRPLINT_F    SGLWRPLINT_V(1U)
12308c2ecf20Sopenharmony_ci
12318c2ecf20Sopenharmony_ci#define SGLRDPLINT_S    22
12328c2ecf20Sopenharmony_ci#define SGLRDPLINT_V(x) ((x) << SGLRDPLINT_S)
12338c2ecf20Sopenharmony_ci#define SGLRDPLINT_F    SGLRDPLINT_V(1U)
12348c2ecf20Sopenharmony_ci
12358c2ecf20Sopenharmony_ci#define BLKWRCTLINT_S    21
12368c2ecf20Sopenharmony_ci#define BLKWRCTLINT_V(x) ((x) << BLKWRCTLINT_S)
12378c2ecf20Sopenharmony_ci#define BLKWRCTLINT_F    BLKWRCTLINT_V(1U)
12388c2ecf20Sopenharmony_ci
12398c2ecf20Sopenharmony_ci#define BLKRDCTLINT_S    20
12408c2ecf20Sopenharmony_ci#define BLKRDCTLINT_V(x) ((x) << BLKRDCTLINT_S)
12418c2ecf20Sopenharmony_ci#define BLKRDCTLINT_F    BLKRDCTLINT_V(1U)
12428c2ecf20Sopenharmony_ci
12438c2ecf20Sopenharmony_ci#define SGLWRCTLINT_S    19
12448c2ecf20Sopenharmony_ci#define SGLWRCTLINT_V(x) ((x) << SGLWRCTLINT_S)
12458c2ecf20Sopenharmony_ci#define SGLWRCTLINT_F    SGLWRCTLINT_V(1U)
12468c2ecf20Sopenharmony_ci
12478c2ecf20Sopenharmony_ci#define SGLRDCTLINT_S    18
12488c2ecf20Sopenharmony_ci#define SGLRDCTLINT_V(x) ((x) << SGLRDCTLINT_S)
12498c2ecf20Sopenharmony_ci#define SGLRDCTLINT_F    SGLRDCTLINT_V(1U)
12508c2ecf20Sopenharmony_ci
12518c2ecf20Sopenharmony_ci#define BLKWREEPROMINT_S    17
12528c2ecf20Sopenharmony_ci#define BLKWREEPROMINT_V(x) ((x) << BLKWREEPROMINT_S)
12538c2ecf20Sopenharmony_ci#define BLKWREEPROMINT_F    BLKWREEPROMINT_V(1U)
12548c2ecf20Sopenharmony_ci
12558c2ecf20Sopenharmony_ci#define BLKRDEEPROMINT_S    16
12568c2ecf20Sopenharmony_ci#define BLKRDEEPROMINT_V(x) ((x) << BLKRDEEPROMINT_S)
12578c2ecf20Sopenharmony_ci#define BLKRDEEPROMINT_F    BLKRDEEPROMINT_V(1U)
12588c2ecf20Sopenharmony_ci
12598c2ecf20Sopenharmony_ci#define SGLWREEPROMINT_S    15
12608c2ecf20Sopenharmony_ci#define SGLWREEPROMINT_V(x) ((x) << SGLWREEPROMINT_S)
12618c2ecf20Sopenharmony_ci#define SGLWREEPROMINT_F    SGLWREEPROMINT_V(1U)
12628c2ecf20Sopenharmony_ci
12638c2ecf20Sopenharmony_ci#define SGLRDEEPROMINT_S    14
12648c2ecf20Sopenharmony_ci#define SGLRDEEPROMINT_V(x) ((x) << SGLRDEEPROMINT_S)
12658c2ecf20Sopenharmony_ci#define SGLRDEEPROMINT_F    SGLRDEEPROMINT_V(1U)
12668c2ecf20Sopenharmony_ci
12678c2ecf20Sopenharmony_ci#define BLKWRFLASHINT_S    13
12688c2ecf20Sopenharmony_ci#define BLKWRFLASHINT_V(x) ((x) << BLKWRFLASHINT_S)
12698c2ecf20Sopenharmony_ci#define BLKWRFLASHINT_F    BLKWRFLASHINT_V(1U)
12708c2ecf20Sopenharmony_ci
12718c2ecf20Sopenharmony_ci#define BLKRDFLASHINT_S    12
12728c2ecf20Sopenharmony_ci#define BLKRDFLASHINT_V(x) ((x) << BLKRDFLASHINT_S)
12738c2ecf20Sopenharmony_ci#define BLKRDFLASHINT_F    BLKRDFLASHINT_V(1U)
12748c2ecf20Sopenharmony_ci
12758c2ecf20Sopenharmony_ci#define SGLWRFLASHINT_S    11
12768c2ecf20Sopenharmony_ci#define SGLWRFLASHINT_V(x) ((x) << SGLWRFLASHINT_S)
12778c2ecf20Sopenharmony_ci#define SGLWRFLASHINT_F    SGLWRFLASHINT_V(1U)
12788c2ecf20Sopenharmony_ci
12798c2ecf20Sopenharmony_ci#define SGLRDFLASHINT_S    10
12808c2ecf20Sopenharmony_ci#define SGLRDFLASHINT_V(x) ((x) << SGLRDFLASHINT_S)
12818c2ecf20Sopenharmony_ci#define SGLRDFLASHINT_F    SGLRDFLASHINT_V(1U)
12828c2ecf20Sopenharmony_ci
12838c2ecf20Sopenharmony_ci#define BLKWRBOOTINT_S    9
12848c2ecf20Sopenharmony_ci#define BLKWRBOOTINT_V(x) ((x) << BLKWRBOOTINT_S)
12858c2ecf20Sopenharmony_ci#define BLKWRBOOTINT_F    BLKWRBOOTINT_V(1U)
12868c2ecf20Sopenharmony_ci
12878c2ecf20Sopenharmony_ci#define BLKRDBOOTINT_S    8
12888c2ecf20Sopenharmony_ci#define BLKRDBOOTINT_V(x) ((x) << BLKRDBOOTINT_S)
12898c2ecf20Sopenharmony_ci#define BLKRDBOOTINT_F    BLKRDBOOTINT_V(1U)
12908c2ecf20Sopenharmony_ci
12918c2ecf20Sopenharmony_ci#define SGLWRBOOTINT_S    7
12928c2ecf20Sopenharmony_ci#define SGLWRBOOTINT_V(x) ((x) << SGLWRBOOTINT_S)
12938c2ecf20Sopenharmony_ci#define SGLWRBOOTINT_F    SGLWRBOOTINT_V(1U)
12948c2ecf20Sopenharmony_ci
12958c2ecf20Sopenharmony_ci#define SGLRDBOOTINT_S    6
12968c2ecf20Sopenharmony_ci#define SGLRDBOOTINT_V(x) ((x) << SGLRDBOOTINT_S)
12978c2ecf20Sopenharmony_ci#define SGLRDBOOTINT_F    SGLRDBOOTINT_V(1U)
12988c2ecf20Sopenharmony_ci
12998c2ecf20Sopenharmony_ci#define ILLWRBEINT_S    5
13008c2ecf20Sopenharmony_ci#define ILLWRBEINT_V(x) ((x) << ILLWRBEINT_S)
13018c2ecf20Sopenharmony_ci#define ILLWRBEINT_F    ILLWRBEINT_V(1U)
13028c2ecf20Sopenharmony_ci
13038c2ecf20Sopenharmony_ci#define ILLRDBEINT_S    4
13048c2ecf20Sopenharmony_ci#define ILLRDBEINT_V(x) ((x) << ILLRDBEINT_S)
13058c2ecf20Sopenharmony_ci#define ILLRDBEINT_F    ILLRDBEINT_V(1U)
13068c2ecf20Sopenharmony_ci
13078c2ecf20Sopenharmony_ci#define ILLRDINT_S    3
13088c2ecf20Sopenharmony_ci#define ILLRDINT_V(x) ((x) << ILLRDINT_S)
13098c2ecf20Sopenharmony_ci#define ILLRDINT_F    ILLRDINT_V(1U)
13108c2ecf20Sopenharmony_ci
13118c2ecf20Sopenharmony_ci#define ILLWRINT_S    2
13128c2ecf20Sopenharmony_ci#define ILLWRINT_V(x) ((x) << ILLWRINT_S)
13138c2ecf20Sopenharmony_ci#define ILLWRINT_F    ILLWRINT_V(1U)
13148c2ecf20Sopenharmony_ci
13158c2ecf20Sopenharmony_ci#define ILLTRANSINT_S    1
13168c2ecf20Sopenharmony_ci#define ILLTRANSINT_V(x) ((x) << ILLTRANSINT_S)
13178c2ecf20Sopenharmony_ci#define ILLTRANSINT_F    ILLTRANSINT_V(1U)
13188c2ecf20Sopenharmony_ci
13198c2ecf20Sopenharmony_ci#define RSVDSPACEINT_S    0
13208c2ecf20Sopenharmony_ci#define RSVDSPACEINT_V(x) ((x) << RSVDSPACEINT_S)
13218c2ecf20Sopenharmony_ci#define RSVDSPACEINT_F    RSVDSPACEINT_V(1U)
13228c2ecf20Sopenharmony_ci
13238c2ecf20Sopenharmony_ci/* registers for module TP */
13248c2ecf20Sopenharmony_ci#define DBGLAWHLF_S    23
13258c2ecf20Sopenharmony_ci#define DBGLAWHLF_V(x) ((x) << DBGLAWHLF_S)
13268c2ecf20Sopenharmony_ci#define DBGLAWHLF_F    DBGLAWHLF_V(1U)
13278c2ecf20Sopenharmony_ci
13288c2ecf20Sopenharmony_ci#define DBGLAWPTR_S    16
13298c2ecf20Sopenharmony_ci#define DBGLAWPTR_M    0x7fU
13308c2ecf20Sopenharmony_ci#define DBGLAWPTR_G(x) (((x) >> DBGLAWPTR_S) & DBGLAWPTR_M)
13318c2ecf20Sopenharmony_ci
13328c2ecf20Sopenharmony_ci#define DBGLAENABLE_S    12
13338c2ecf20Sopenharmony_ci#define DBGLAENABLE_V(x) ((x) << DBGLAENABLE_S)
13348c2ecf20Sopenharmony_ci#define DBGLAENABLE_F    DBGLAENABLE_V(1U)
13358c2ecf20Sopenharmony_ci
13368c2ecf20Sopenharmony_ci#define DBGLARPTR_S    0
13378c2ecf20Sopenharmony_ci#define DBGLARPTR_M    0x7fU
13388c2ecf20Sopenharmony_ci#define DBGLARPTR_V(x) ((x) << DBGLARPTR_S)
13398c2ecf20Sopenharmony_ci
13408c2ecf20Sopenharmony_ci#define CRXPKTENC_S    3
13418c2ecf20Sopenharmony_ci#define CRXPKTENC_V(x) ((x) << CRXPKTENC_S)
13428c2ecf20Sopenharmony_ci#define CRXPKTENC_F    CRXPKTENC_V(1U)
13438c2ecf20Sopenharmony_ci
13448c2ecf20Sopenharmony_ci#define TP_DBG_LA_DATAL_A	0x7ed8
13458c2ecf20Sopenharmony_ci#define TP_DBG_LA_CONFIG_A	0x7ed4
13468c2ecf20Sopenharmony_ci#define TP_OUT_CONFIG_A		0x7d04
13478c2ecf20Sopenharmony_ci#define TP_GLOBAL_CONFIG_A	0x7d08
13488c2ecf20Sopenharmony_ci
13498c2ecf20Sopenharmony_ci#define ACTIVEFILTERCOUNTS_S    22
13508c2ecf20Sopenharmony_ci#define ACTIVEFILTERCOUNTS_V(x) ((x) << ACTIVEFILTERCOUNTS_S)
13518c2ecf20Sopenharmony_ci#define ACTIVEFILTERCOUNTS_F    ACTIVEFILTERCOUNTS_V(1U)
13528c2ecf20Sopenharmony_ci
13538c2ecf20Sopenharmony_ci#define TP_CMM_TCB_BASE_A 0x7d10
13548c2ecf20Sopenharmony_ci#define TP_CMM_MM_BASE_A 0x7d14
13558c2ecf20Sopenharmony_ci#define TP_CMM_TIMER_BASE_A 0x7d18
13568c2ecf20Sopenharmony_ci#define TP_PMM_TX_BASE_A 0x7d20
13578c2ecf20Sopenharmony_ci#define TP_PMM_RX_BASE_A 0x7d28
13588c2ecf20Sopenharmony_ci#define TP_PMM_RX_PAGE_SIZE_A 0x7d2c
13598c2ecf20Sopenharmony_ci#define TP_PMM_RX_MAX_PAGE_A 0x7d30
13608c2ecf20Sopenharmony_ci#define TP_PMM_TX_PAGE_SIZE_A 0x7d34
13618c2ecf20Sopenharmony_ci#define TP_PMM_TX_MAX_PAGE_A 0x7d38
13628c2ecf20Sopenharmony_ci#define TP_CMM_MM_MAX_PSTRUCT_A 0x7e6c
13638c2ecf20Sopenharmony_ci
13648c2ecf20Sopenharmony_ci#define PMRXNUMCHN_S    31
13658c2ecf20Sopenharmony_ci#define PMRXNUMCHN_V(x) ((x) << PMRXNUMCHN_S)
13668c2ecf20Sopenharmony_ci#define PMRXNUMCHN_F    PMRXNUMCHN_V(1U)
13678c2ecf20Sopenharmony_ci
13688c2ecf20Sopenharmony_ci#define PMTXNUMCHN_S    30
13698c2ecf20Sopenharmony_ci#define PMTXNUMCHN_M    0x3U
13708c2ecf20Sopenharmony_ci#define PMTXNUMCHN_G(x) (((x) >> PMTXNUMCHN_S) & PMTXNUMCHN_M)
13718c2ecf20Sopenharmony_ci
13728c2ecf20Sopenharmony_ci#define PMTXMAXPAGE_S    0
13738c2ecf20Sopenharmony_ci#define PMTXMAXPAGE_M    0x1fffffU
13748c2ecf20Sopenharmony_ci#define PMTXMAXPAGE_G(x) (((x) >> PMTXMAXPAGE_S) & PMTXMAXPAGE_M)
13758c2ecf20Sopenharmony_ci
13768c2ecf20Sopenharmony_ci#define PMRXMAXPAGE_S    0
13778c2ecf20Sopenharmony_ci#define PMRXMAXPAGE_M    0x1fffffU
13788c2ecf20Sopenharmony_ci#define PMRXMAXPAGE_G(x) (((x) >> PMRXMAXPAGE_S) & PMRXMAXPAGE_M)
13798c2ecf20Sopenharmony_ci
13808c2ecf20Sopenharmony_ci#define DBGLAMODE_S	14
13818c2ecf20Sopenharmony_ci#define DBGLAMODE_M	0x3U
13828c2ecf20Sopenharmony_ci#define DBGLAMODE_G(x)	(((x) >> DBGLAMODE_S) & DBGLAMODE_M)
13838c2ecf20Sopenharmony_ci
13848c2ecf20Sopenharmony_ci#define FIVETUPLELOOKUP_S    17
13858c2ecf20Sopenharmony_ci#define FIVETUPLELOOKUP_M    0x3U
13868c2ecf20Sopenharmony_ci#define FIVETUPLELOOKUP_V(x) ((x) << FIVETUPLELOOKUP_S)
13878c2ecf20Sopenharmony_ci#define FIVETUPLELOOKUP_G(x) (((x) >> FIVETUPLELOOKUP_S) & FIVETUPLELOOKUP_M)
13888c2ecf20Sopenharmony_ci
13898c2ecf20Sopenharmony_ci#define TP_PARA_REG2_A 0x7d68
13908c2ecf20Sopenharmony_ci
13918c2ecf20Sopenharmony_ci#define MAXRXDATA_S    16
13928c2ecf20Sopenharmony_ci#define MAXRXDATA_M    0xffffU
13938c2ecf20Sopenharmony_ci#define MAXRXDATA_G(x) (((x) >> MAXRXDATA_S) & MAXRXDATA_M)
13948c2ecf20Sopenharmony_ci
13958c2ecf20Sopenharmony_ci#define TP_TIMER_RESOLUTION_A 0x7d90
13968c2ecf20Sopenharmony_ci
13978c2ecf20Sopenharmony_ci#define TIMERRESOLUTION_S    16
13988c2ecf20Sopenharmony_ci#define TIMERRESOLUTION_M    0xffU
13998c2ecf20Sopenharmony_ci#define TIMERRESOLUTION_G(x) (((x) >> TIMERRESOLUTION_S) & TIMERRESOLUTION_M)
14008c2ecf20Sopenharmony_ci
14018c2ecf20Sopenharmony_ci#define TIMESTAMPRESOLUTION_S    8
14028c2ecf20Sopenharmony_ci#define TIMESTAMPRESOLUTION_M    0xffU
14038c2ecf20Sopenharmony_ci#define TIMESTAMPRESOLUTION_G(x) \
14048c2ecf20Sopenharmony_ci	(((x) >> TIMESTAMPRESOLUTION_S) & TIMESTAMPRESOLUTION_M)
14058c2ecf20Sopenharmony_ci
14068c2ecf20Sopenharmony_ci#define DELAYEDACKRESOLUTION_S    0
14078c2ecf20Sopenharmony_ci#define DELAYEDACKRESOLUTION_M    0xffU
14088c2ecf20Sopenharmony_ci#define DELAYEDACKRESOLUTION_G(x) \
14098c2ecf20Sopenharmony_ci	(((x) >> DELAYEDACKRESOLUTION_S) & DELAYEDACKRESOLUTION_M)
14108c2ecf20Sopenharmony_ci
14118c2ecf20Sopenharmony_ci#define TP_SHIFT_CNT_A 0x7dc0
14128c2ecf20Sopenharmony_ci#define TP_RXT_MIN_A 0x7d98
14138c2ecf20Sopenharmony_ci#define TP_RXT_MAX_A 0x7d9c
14148c2ecf20Sopenharmony_ci#define TP_PERS_MIN_A 0x7da0
14158c2ecf20Sopenharmony_ci#define TP_PERS_MAX_A 0x7da4
14168c2ecf20Sopenharmony_ci#define TP_KEEP_IDLE_A 0x7da8
14178c2ecf20Sopenharmony_ci#define TP_KEEP_INTVL_A 0x7dac
14188c2ecf20Sopenharmony_ci#define TP_INIT_SRTT_A 0x7db0
14198c2ecf20Sopenharmony_ci#define TP_DACK_TIMER_A 0x7db4
14208c2ecf20Sopenharmony_ci#define TP_FINWAIT2_TIMER_A 0x7db8
14218c2ecf20Sopenharmony_ci
14228c2ecf20Sopenharmony_ci#define INITSRTT_S    0
14238c2ecf20Sopenharmony_ci#define INITSRTT_M    0xffffU
14248c2ecf20Sopenharmony_ci#define INITSRTT_G(x) (((x) >> INITSRTT_S) & INITSRTT_M)
14258c2ecf20Sopenharmony_ci
14268c2ecf20Sopenharmony_ci#define PERSMAX_S    0
14278c2ecf20Sopenharmony_ci#define PERSMAX_M    0x3fffffffU
14288c2ecf20Sopenharmony_ci#define PERSMAX_V(x) ((x) << PERSMAX_S)
14298c2ecf20Sopenharmony_ci#define PERSMAX_G(x) (((x) >> PERSMAX_S) & PERSMAX_M)
14308c2ecf20Sopenharmony_ci
14318c2ecf20Sopenharmony_ci#define SYNSHIFTMAX_S    24
14328c2ecf20Sopenharmony_ci#define SYNSHIFTMAX_M    0xffU
14338c2ecf20Sopenharmony_ci#define SYNSHIFTMAX_V(x) ((x) << SYNSHIFTMAX_S)
14348c2ecf20Sopenharmony_ci#define SYNSHIFTMAX_G(x) (((x) >> SYNSHIFTMAX_S) & SYNSHIFTMAX_M)
14358c2ecf20Sopenharmony_ci
14368c2ecf20Sopenharmony_ci#define RXTSHIFTMAXR1_S    20
14378c2ecf20Sopenharmony_ci#define RXTSHIFTMAXR1_M    0xfU
14388c2ecf20Sopenharmony_ci#define RXTSHIFTMAXR1_V(x) ((x) << RXTSHIFTMAXR1_S)
14398c2ecf20Sopenharmony_ci#define RXTSHIFTMAXR1_G(x) (((x) >> RXTSHIFTMAXR1_S) & RXTSHIFTMAXR1_M)
14408c2ecf20Sopenharmony_ci
14418c2ecf20Sopenharmony_ci#define RXTSHIFTMAXR2_S    16
14428c2ecf20Sopenharmony_ci#define RXTSHIFTMAXR2_M    0xfU
14438c2ecf20Sopenharmony_ci#define RXTSHIFTMAXR2_V(x) ((x) << RXTSHIFTMAXR2_S)
14448c2ecf20Sopenharmony_ci#define RXTSHIFTMAXR2_G(x) (((x) >> RXTSHIFTMAXR2_S) & RXTSHIFTMAXR2_M)
14458c2ecf20Sopenharmony_ci
14468c2ecf20Sopenharmony_ci#define PERSHIFTBACKOFFMAX_S    12
14478c2ecf20Sopenharmony_ci#define PERSHIFTBACKOFFMAX_M    0xfU
14488c2ecf20Sopenharmony_ci#define PERSHIFTBACKOFFMAX_V(x) ((x) << PERSHIFTBACKOFFMAX_S)
14498c2ecf20Sopenharmony_ci#define PERSHIFTBACKOFFMAX_G(x) \
14508c2ecf20Sopenharmony_ci	(((x) >> PERSHIFTBACKOFFMAX_S) & PERSHIFTBACKOFFMAX_M)
14518c2ecf20Sopenharmony_ci
14528c2ecf20Sopenharmony_ci#define PERSHIFTMAX_S    8
14538c2ecf20Sopenharmony_ci#define PERSHIFTMAX_M    0xfU
14548c2ecf20Sopenharmony_ci#define PERSHIFTMAX_V(x) ((x) << PERSHIFTMAX_S)
14558c2ecf20Sopenharmony_ci#define PERSHIFTMAX_G(x) (((x) >> PERSHIFTMAX_S) & PERSHIFTMAX_M)
14568c2ecf20Sopenharmony_ci
14578c2ecf20Sopenharmony_ci#define KEEPALIVEMAXR1_S    4
14588c2ecf20Sopenharmony_ci#define KEEPALIVEMAXR1_M    0xfU
14598c2ecf20Sopenharmony_ci#define KEEPALIVEMAXR1_V(x) ((x) << KEEPALIVEMAXR1_S)
14608c2ecf20Sopenharmony_ci#define KEEPALIVEMAXR1_G(x) (((x) >> KEEPALIVEMAXR1_S) & KEEPALIVEMAXR1_M)
14618c2ecf20Sopenharmony_ci
14628c2ecf20Sopenharmony_ci#define KEEPALIVEMAXR2_S    0
14638c2ecf20Sopenharmony_ci#define KEEPALIVEMAXR2_M    0xfU
14648c2ecf20Sopenharmony_ci#define KEEPALIVEMAXR2_V(x) ((x) << KEEPALIVEMAXR2_S)
14658c2ecf20Sopenharmony_ci#define KEEPALIVEMAXR2_G(x) (((x) >> KEEPALIVEMAXR2_S) & KEEPALIVEMAXR2_M)
14668c2ecf20Sopenharmony_ci
14678c2ecf20Sopenharmony_ci#define ROWINDEX_S    16
14688c2ecf20Sopenharmony_ci#define ROWINDEX_V(x) ((x) << ROWINDEX_S)
14698c2ecf20Sopenharmony_ci
14708c2ecf20Sopenharmony_ci#define TP_CCTRL_TABLE_A	0x7ddc
14718c2ecf20Sopenharmony_ci#define TP_PACE_TABLE_A 0x7dd8
14728c2ecf20Sopenharmony_ci#define TP_MTU_TABLE_A		0x7de4
14738c2ecf20Sopenharmony_ci
14748c2ecf20Sopenharmony_ci#define MTUINDEX_S    24
14758c2ecf20Sopenharmony_ci#define MTUINDEX_V(x) ((x) << MTUINDEX_S)
14768c2ecf20Sopenharmony_ci
14778c2ecf20Sopenharmony_ci#define MTUWIDTH_S    16
14788c2ecf20Sopenharmony_ci#define MTUWIDTH_M    0xfU
14798c2ecf20Sopenharmony_ci#define MTUWIDTH_V(x) ((x) << MTUWIDTH_S)
14808c2ecf20Sopenharmony_ci#define MTUWIDTH_G(x) (((x) >> MTUWIDTH_S) & MTUWIDTH_M)
14818c2ecf20Sopenharmony_ci
14828c2ecf20Sopenharmony_ci#define MTUVALUE_S    0
14838c2ecf20Sopenharmony_ci#define MTUVALUE_M    0x3fffU
14848c2ecf20Sopenharmony_ci#define MTUVALUE_V(x) ((x) << MTUVALUE_S)
14858c2ecf20Sopenharmony_ci#define MTUVALUE_G(x) (((x) >> MTUVALUE_S) & MTUVALUE_M)
14868c2ecf20Sopenharmony_ci
14878c2ecf20Sopenharmony_ci#define TP_RSS_LKP_TABLE_A	0x7dec
14888c2ecf20Sopenharmony_ci#define TP_CMM_MM_RX_FLST_BASE_A 0x7e60
14898c2ecf20Sopenharmony_ci#define TP_CMM_MM_TX_FLST_BASE_A 0x7e64
14908c2ecf20Sopenharmony_ci#define TP_CMM_MM_PS_FLST_BASE_A 0x7e68
14918c2ecf20Sopenharmony_ci
14928c2ecf20Sopenharmony_ci#define LKPTBLROWVLD_S    31
14938c2ecf20Sopenharmony_ci#define LKPTBLROWVLD_V(x) ((x) << LKPTBLROWVLD_S)
14948c2ecf20Sopenharmony_ci#define LKPTBLROWVLD_F    LKPTBLROWVLD_V(1U)
14958c2ecf20Sopenharmony_ci
14968c2ecf20Sopenharmony_ci#define LKPTBLQUEUE1_S    10
14978c2ecf20Sopenharmony_ci#define LKPTBLQUEUE1_M    0x3ffU
14988c2ecf20Sopenharmony_ci#define LKPTBLQUEUE1_G(x) (((x) >> LKPTBLQUEUE1_S) & LKPTBLQUEUE1_M)
14998c2ecf20Sopenharmony_ci
15008c2ecf20Sopenharmony_ci#define LKPTBLQUEUE0_S    0
15018c2ecf20Sopenharmony_ci#define LKPTBLQUEUE0_M    0x3ffU
15028c2ecf20Sopenharmony_ci#define LKPTBLQUEUE0_G(x) (((x) >> LKPTBLQUEUE0_S) & LKPTBLQUEUE0_M)
15038c2ecf20Sopenharmony_ci
15048c2ecf20Sopenharmony_ci#define TP_TM_PIO_ADDR_A 0x7e18
15058c2ecf20Sopenharmony_ci#define TP_TM_PIO_DATA_A 0x7e1c
15068c2ecf20Sopenharmony_ci#define TP_MOD_CONFIG_A 0x7e24
15078c2ecf20Sopenharmony_ci
15088c2ecf20Sopenharmony_ci#define TIMERMODE_S    8
15098c2ecf20Sopenharmony_ci#define TIMERMODE_M    0xffU
15108c2ecf20Sopenharmony_ci#define TIMERMODE_G(x) (((x) >> TIMERMODE_S) & TIMERMODE_M)
15118c2ecf20Sopenharmony_ci
15128c2ecf20Sopenharmony_ci#define TP_TX_MOD_Q1_Q0_TIMER_SEPARATOR_A 0x3
15138c2ecf20Sopenharmony_ci#define TP_TX_MOD_Q1_Q0_RATE_LIMIT_A 0x8
15148c2ecf20Sopenharmony_ci
15158c2ecf20Sopenharmony_ci#define TP_PIO_ADDR_A	0x7e40
15168c2ecf20Sopenharmony_ci#define TP_PIO_DATA_A	0x7e44
15178c2ecf20Sopenharmony_ci#define TP_MIB_INDEX_A	0x7e50
15188c2ecf20Sopenharmony_ci#define TP_MIB_DATA_A	0x7e54
15198c2ecf20Sopenharmony_ci#define TP_INT_CAUSE_A	0x7e74
15208c2ecf20Sopenharmony_ci
15218c2ecf20Sopenharmony_ci#define TP_FLM_FREE_PS_CNT_A 0x7e80
15228c2ecf20Sopenharmony_ci#define TP_FLM_FREE_RX_CNT_A 0x7e84
15238c2ecf20Sopenharmony_ci
15248c2ecf20Sopenharmony_ci#define FREEPSTRUCTCOUNT_S    0
15258c2ecf20Sopenharmony_ci#define FREEPSTRUCTCOUNT_M    0x1fffffU
15268c2ecf20Sopenharmony_ci#define FREEPSTRUCTCOUNT_G(x) (((x) >> FREEPSTRUCTCOUNT_S) & FREEPSTRUCTCOUNT_M)
15278c2ecf20Sopenharmony_ci
15288c2ecf20Sopenharmony_ci#define FREERXPAGECOUNT_S    0
15298c2ecf20Sopenharmony_ci#define FREERXPAGECOUNT_M    0x1fffffU
15308c2ecf20Sopenharmony_ci#define FREERXPAGECOUNT_V(x) ((x) << FREERXPAGECOUNT_S)
15318c2ecf20Sopenharmony_ci#define FREERXPAGECOUNT_G(x) (((x) >> FREERXPAGECOUNT_S) & FREERXPAGECOUNT_M)
15328c2ecf20Sopenharmony_ci
15338c2ecf20Sopenharmony_ci#define TP_FLM_FREE_TX_CNT_A 0x7e88
15348c2ecf20Sopenharmony_ci
15358c2ecf20Sopenharmony_ci#define FREETXPAGECOUNT_S    0
15368c2ecf20Sopenharmony_ci#define FREETXPAGECOUNT_M    0x1fffffU
15378c2ecf20Sopenharmony_ci#define FREETXPAGECOUNT_V(x) ((x) << FREETXPAGECOUNT_S)
15388c2ecf20Sopenharmony_ci#define FREETXPAGECOUNT_G(x) (((x) >> FREETXPAGECOUNT_S) & FREETXPAGECOUNT_M)
15398c2ecf20Sopenharmony_ci
15408c2ecf20Sopenharmony_ci#define FLMTXFLSTEMPTY_S    30
15418c2ecf20Sopenharmony_ci#define FLMTXFLSTEMPTY_V(x) ((x) << FLMTXFLSTEMPTY_S)
15428c2ecf20Sopenharmony_ci#define FLMTXFLSTEMPTY_F    FLMTXFLSTEMPTY_V(1U)
15438c2ecf20Sopenharmony_ci
15448c2ecf20Sopenharmony_ci#define TP_TX_ORATE_A 0x7ebc
15458c2ecf20Sopenharmony_ci
15468c2ecf20Sopenharmony_ci#define OFDRATE3_S    24
15478c2ecf20Sopenharmony_ci#define OFDRATE3_M    0xffU
15488c2ecf20Sopenharmony_ci#define OFDRATE3_G(x) (((x) >> OFDRATE3_S) & OFDRATE3_M)
15498c2ecf20Sopenharmony_ci
15508c2ecf20Sopenharmony_ci#define OFDRATE2_S    16
15518c2ecf20Sopenharmony_ci#define OFDRATE2_M    0xffU
15528c2ecf20Sopenharmony_ci#define OFDRATE2_G(x) (((x) >> OFDRATE2_S) & OFDRATE2_M)
15538c2ecf20Sopenharmony_ci
15548c2ecf20Sopenharmony_ci#define OFDRATE1_S    8
15558c2ecf20Sopenharmony_ci#define OFDRATE1_M    0xffU
15568c2ecf20Sopenharmony_ci#define OFDRATE1_G(x) (((x) >> OFDRATE1_S) & OFDRATE1_M)
15578c2ecf20Sopenharmony_ci
15588c2ecf20Sopenharmony_ci#define OFDRATE0_S    0
15598c2ecf20Sopenharmony_ci#define OFDRATE0_M    0xffU
15608c2ecf20Sopenharmony_ci#define OFDRATE0_G(x) (((x) >> OFDRATE0_S) & OFDRATE0_M)
15618c2ecf20Sopenharmony_ci
15628c2ecf20Sopenharmony_ci#define TP_TX_TRATE_A 0x7ed0
15638c2ecf20Sopenharmony_ci
15648c2ecf20Sopenharmony_ci#define TNLRATE3_S    24
15658c2ecf20Sopenharmony_ci#define TNLRATE3_M    0xffU
15668c2ecf20Sopenharmony_ci#define TNLRATE3_G(x) (((x) >> TNLRATE3_S) & TNLRATE3_M)
15678c2ecf20Sopenharmony_ci
15688c2ecf20Sopenharmony_ci#define TNLRATE2_S    16
15698c2ecf20Sopenharmony_ci#define TNLRATE2_M    0xffU
15708c2ecf20Sopenharmony_ci#define TNLRATE2_G(x) (((x) >> TNLRATE2_S) & TNLRATE2_M)
15718c2ecf20Sopenharmony_ci
15728c2ecf20Sopenharmony_ci#define TNLRATE1_S    8
15738c2ecf20Sopenharmony_ci#define TNLRATE1_M    0xffU
15748c2ecf20Sopenharmony_ci#define TNLRATE1_G(x) (((x) >> TNLRATE1_S) & TNLRATE1_M)
15758c2ecf20Sopenharmony_ci
15768c2ecf20Sopenharmony_ci#define TNLRATE0_S    0
15778c2ecf20Sopenharmony_ci#define TNLRATE0_M    0xffU
15788c2ecf20Sopenharmony_ci#define TNLRATE0_G(x) (((x) >> TNLRATE0_S) & TNLRATE0_M)
15798c2ecf20Sopenharmony_ci
15808c2ecf20Sopenharmony_ci#define TP_VLAN_PRI_MAP_A 0x140
15818c2ecf20Sopenharmony_ci
15828c2ecf20Sopenharmony_ci#define FRAGMENTATION_S    9
15838c2ecf20Sopenharmony_ci#define FRAGMENTATION_V(x) ((x) << FRAGMENTATION_S)
15848c2ecf20Sopenharmony_ci#define FRAGMENTATION_F    FRAGMENTATION_V(1U)
15858c2ecf20Sopenharmony_ci
15868c2ecf20Sopenharmony_ci#define MPSHITTYPE_S    8
15878c2ecf20Sopenharmony_ci#define MPSHITTYPE_V(x) ((x) << MPSHITTYPE_S)
15888c2ecf20Sopenharmony_ci#define MPSHITTYPE_F    MPSHITTYPE_V(1U)
15898c2ecf20Sopenharmony_ci
15908c2ecf20Sopenharmony_ci#define MACMATCH_S    7
15918c2ecf20Sopenharmony_ci#define MACMATCH_V(x) ((x) << MACMATCH_S)
15928c2ecf20Sopenharmony_ci#define MACMATCH_F    MACMATCH_V(1U)
15938c2ecf20Sopenharmony_ci
15948c2ecf20Sopenharmony_ci#define ETHERTYPE_S    6
15958c2ecf20Sopenharmony_ci#define ETHERTYPE_V(x) ((x) << ETHERTYPE_S)
15968c2ecf20Sopenharmony_ci#define ETHERTYPE_F    ETHERTYPE_V(1U)
15978c2ecf20Sopenharmony_ci
15988c2ecf20Sopenharmony_ci#define PROTOCOL_S    5
15998c2ecf20Sopenharmony_ci#define PROTOCOL_V(x) ((x) << PROTOCOL_S)
16008c2ecf20Sopenharmony_ci#define PROTOCOL_F    PROTOCOL_V(1U)
16018c2ecf20Sopenharmony_ci
16028c2ecf20Sopenharmony_ci#define TOS_S    4
16038c2ecf20Sopenharmony_ci#define TOS_V(x) ((x) << TOS_S)
16048c2ecf20Sopenharmony_ci#define TOS_F    TOS_V(1U)
16058c2ecf20Sopenharmony_ci
16068c2ecf20Sopenharmony_ci#define VLAN_S    3
16078c2ecf20Sopenharmony_ci#define VLAN_V(x) ((x) << VLAN_S)
16088c2ecf20Sopenharmony_ci#define VLAN_F    VLAN_V(1U)
16098c2ecf20Sopenharmony_ci
16108c2ecf20Sopenharmony_ci#define VNIC_ID_S    2
16118c2ecf20Sopenharmony_ci#define VNIC_ID_V(x) ((x) << VNIC_ID_S)
16128c2ecf20Sopenharmony_ci#define VNIC_ID_F    VNIC_ID_V(1U)
16138c2ecf20Sopenharmony_ci
16148c2ecf20Sopenharmony_ci#define PORT_S    1
16158c2ecf20Sopenharmony_ci#define PORT_V(x) ((x) << PORT_S)
16168c2ecf20Sopenharmony_ci#define PORT_F    PORT_V(1U)
16178c2ecf20Sopenharmony_ci
16188c2ecf20Sopenharmony_ci#define FCOE_S    0
16198c2ecf20Sopenharmony_ci#define FCOE_V(x) ((x) << FCOE_S)
16208c2ecf20Sopenharmony_ci#define FCOE_F    FCOE_V(1U)
16218c2ecf20Sopenharmony_ci
16228c2ecf20Sopenharmony_ci#define FILTERMODE_S    15
16238c2ecf20Sopenharmony_ci#define FILTERMODE_V(x) ((x) << FILTERMODE_S)
16248c2ecf20Sopenharmony_ci#define FILTERMODE_F    FILTERMODE_V(1U)
16258c2ecf20Sopenharmony_ci
16268c2ecf20Sopenharmony_ci#define FCOEMASK_S    14
16278c2ecf20Sopenharmony_ci#define FCOEMASK_V(x) ((x) << FCOEMASK_S)
16288c2ecf20Sopenharmony_ci#define FCOEMASK_F    FCOEMASK_V(1U)
16298c2ecf20Sopenharmony_ci
16308c2ecf20Sopenharmony_ci#define TP_INGRESS_CONFIG_A	0x141
16318c2ecf20Sopenharmony_ci
16328c2ecf20Sopenharmony_ci#define VNIC_S    11
16338c2ecf20Sopenharmony_ci#define VNIC_V(x) ((x) << VNIC_S)
16348c2ecf20Sopenharmony_ci#define VNIC_F    VNIC_V(1U)
16358c2ecf20Sopenharmony_ci
16368c2ecf20Sopenharmony_ci#define USE_ENC_IDX_S		13
16378c2ecf20Sopenharmony_ci#define USE_ENC_IDX_V(x)	((x) << USE_ENC_IDX_S)
16388c2ecf20Sopenharmony_ci#define USE_ENC_IDX_F		USE_ENC_IDX_V(1U)
16398c2ecf20Sopenharmony_ci
16408c2ecf20Sopenharmony_ci#define CSUM_HAS_PSEUDO_HDR_S    10
16418c2ecf20Sopenharmony_ci#define CSUM_HAS_PSEUDO_HDR_V(x) ((x) << CSUM_HAS_PSEUDO_HDR_S)
16428c2ecf20Sopenharmony_ci#define CSUM_HAS_PSEUDO_HDR_F    CSUM_HAS_PSEUDO_HDR_V(1U)
16438c2ecf20Sopenharmony_ci
16448c2ecf20Sopenharmony_ci#define TP_MIB_MAC_IN_ERR_0_A	0x0
16458c2ecf20Sopenharmony_ci#define TP_MIB_HDR_IN_ERR_0_A	0x4
16468c2ecf20Sopenharmony_ci#define TP_MIB_TCP_IN_ERR_0_A	0x8
16478c2ecf20Sopenharmony_ci#define TP_MIB_TCP_OUT_RST_A	0xc
16488c2ecf20Sopenharmony_ci#define TP_MIB_TCP_IN_SEG_HI_A	0x10
16498c2ecf20Sopenharmony_ci#define TP_MIB_TCP_IN_SEG_LO_A	0x11
16508c2ecf20Sopenharmony_ci#define TP_MIB_TCP_OUT_SEG_HI_A	0x12
16518c2ecf20Sopenharmony_ci#define TP_MIB_TCP_OUT_SEG_LO_A 0x13
16528c2ecf20Sopenharmony_ci#define TP_MIB_TCP_RXT_SEG_HI_A	0x14
16538c2ecf20Sopenharmony_ci#define TP_MIB_TCP_RXT_SEG_LO_A	0x15
16548c2ecf20Sopenharmony_ci#define TP_MIB_TNL_CNG_DROP_0_A 0x18
16558c2ecf20Sopenharmony_ci#define TP_MIB_OFD_CHN_DROP_0_A 0x1c
16568c2ecf20Sopenharmony_ci#define TP_MIB_TCP_V6IN_ERR_0_A 0x28
16578c2ecf20Sopenharmony_ci#define TP_MIB_TCP_V6OUT_RST_A	0x2c
16588c2ecf20Sopenharmony_ci#define TP_MIB_OFD_ARP_DROP_A	0x36
16598c2ecf20Sopenharmony_ci#define TP_MIB_CPL_IN_REQ_0_A	0x38
16608c2ecf20Sopenharmony_ci#define TP_MIB_CPL_OUT_RSP_0_A	0x3c
16618c2ecf20Sopenharmony_ci#define TP_MIB_TNL_DROP_0_A	0x44
16628c2ecf20Sopenharmony_ci#define TP_MIB_FCOE_DDP_0_A	0x48
16638c2ecf20Sopenharmony_ci#define TP_MIB_FCOE_DROP_0_A	0x4c
16648c2ecf20Sopenharmony_ci#define TP_MIB_FCOE_BYTE_0_HI_A	0x50
16658c2ecf20Sopenharmony_ci#define TP_MIB_OFD_VLN_DROP_0_A	0x58
16668c2ecf20Sopenharmony_ci#define TP_MIB_USM_PKTS_A	0x5c
16678c2ecf20Sopenharmony_ci#define TP_MIB_RQE_DFR_PKT_A	0x64
16688c2ecf20Sopenharmony_ci
16698c2ecf20Sopenharmony_ci#define ULP_TX_INT_CAUSE_A	0x8dcc
16708c2ecf20Sopenharmony_ci#define ULP_TX_TPT_LLIMIT_A	0x8dd4
16718c2ecf20Sopenharmony_ci#define ULP_TX_TPT_ULIMIT_A	0x8dd8
16728c2ecf20Sopenharmony_ci#define ULP_TX_PBL_LLIMIT_A	0x8ddc
16738c2ecf20Sopenharmony_ci#define ULP_TX_PBL_ULIMIT_A	0x8de0
16748c2ecf20Sopenharmony_ci#define ULP_TX_ERR_TABLE_BASE_A 0x8e04
16758c2ecf20Sopenharmony_ci
16768c2ecf20Sopenharmony_ci#define PBL_BOUND_ERR_CH3_S    31
16778c2ecf20Sopenharmony_ci#define PBL_BOUND_ERR_CH3_V(x) ((x) << PBL_BOUND_ERR_CH3_S)
16788c2ecf20Sopenharmony_ci#define PBL_BOUND_ERR_CH3_F    PBL_BOUND_ERR_CH3_V(1U)
16798c2ecf20Sopenharmony_ci
16808c2ecf20Sopenharmony_ci#define PBL_BOUND_ERR_CH2_S    30
16818c2ecf20Sopenharmony_ci#define PBL_BOUND_ERR_CH2_V(x) ((x) << PBL_BOUND_ERR_CH2_S)
16828c2ecf20Sopenharmony_ci#define PBL_BOUND_ERR_CH2_F    PBL_BOUND_ERR_CH2_V(1U)
16838c2ecf20Sopenharmony_ci
16848c2ecf20Sopenharmony_ci#define PBL_BOUND_ERR_CH1_S    29
16858c2ecf20Sopenharmony_ci#define PBL_BOUND_ERR_CH1_V(x) ((x) << PBL_BOUND_ERR_CH1_S)
16868c2ecf20Sopenharmony_ci#define PBL_BOUND_ERR_CH1_F    PBL_BOUND_ERR_CH1_V(1U)
16878c2ecf20Sopenharmony_ci
16888c2ecf20Sopenharmony_ci#define PBL_BOUND_ERR_CH0_S    28
16898c2ecf20Sopenharmony_ci#define PBL_BOUND_ERR_CH0_V(x) ((x) << PBL_BOUND_ERR_CH0_S)
16908c2ecf20Sopenharmony_ci#define PBL_BOUND_ERR_CH0_F    PBL_BOUND_ERR_CH0_V(1U)
16918c2ecf20Sopenharmony_ci
16928c2ecf20Sopenharmony_ci#define PM_RX_INT_CAUSE_A	0x8fdc
16938c2ecf20Sopenharmony_ci#define PM_RX_STAT_CONFIG_A 0x8fc8
16948c2ecf20Sopenharmony_ci#define PM_RX_STAT_COUNT_A 0x8fcc
16958c2ecf20Sopenharmony_ci#define PM_RX_STAT_LSB_A 0x8fd0
16968c2ecf20Sopenharmony_ci#define PM_RX_DBG_CTRL_A 0x8fd0
16978c2ecf20Sopenharmony_ci#define PM_RX_DBG_DATA_A 0x8fd4
16988c2ecf20Sopenharmony_ci#define PM_RX_DBG_STAT_MSB_A 0x10013
16998c2ecf20Sopenharmony_ci
17008c2ecf20Sopenharmony_ci#define PMRX_FRAMING_ERROR_F	0x003ffff0U
17018c2ecf20Sopenharmony_ci
17028c2ecf20Sopenharmony_ci#define ZERO_E_CMD_ERROR_S    22
17038c2ecf20Sopenharmony_ci#define ZERO_E_CMD_ERROR_V(x) ((x) << ZERO_E_CMD_ERROR_S)
17048c2ecf20Sopenharmony_ci#define ZERO_E_CMD_ERROR_F    ZERO_E_CMD_ERROR_V(1U)
17058c2ecf20Sopenharmony_ci
17068c2ecf20Sopenharmony_ci#define OCSPI_PAR_ERROR_S    3
17078c2ecf20Sopenharmony_ci#define OCSPI_PAR_ERROR_V(x) ((x) << OCSPI_PAR_ERROR_S)
17088c2ecf20Sopenharmony_ci#define OCSPI_PAR_ERROR_F    OCSPI_PAR_ERROR_V(1U)
17098c2ecf20Sopenharmony_ci
17108c2ecf20Sopenharmony_ci#define DB_OPTIONS_PAR_ERROR_S    2
17118c2ecf20Sopenharmony_ci#define DB_OPTIONS_PAR_ERROR_V(x) ((x) << DB_OPTIONS_PAR_ERROR_S)
17128c2ecf20Sopenharmony_ci#define DB_OPTIONS_PAR_ERROR_F    DB_OPTIONS_PAR_ERROR_V(1U)
17138c2ecf20Sopenharmony_ci
17148c2ecf20Sopenharmony_ci#define IESPI_PAR_ERROR_S    1
17158c2ecf20Sopenharmony_ci#define IESPI_PAR_ERROR_V(x) ((x) << IESPI_PAR_ERROR_S)
17168c2ecf20Sopenharmony_ci#define IESPI_PAR_ERROR_F    IESPI_PAR_ERROR_V(1U)
17178c2ecf20Sopenharmony_ci
17188c2ecf20Sopenharmony_ci#define ULP_TX_LA_RDPTR_0_A 0x8ec0
17198c2ecf20Sopenharmony_ci#define ULP_TX_LA_RDDATA_0_A 0x8ec4
17208c2ecf20Sopenharmony_ci#define ULP_TX_LA_WRPTR_0_A 0x8ec8
17218c2ecf20Sopenharmony_ci#define ULP_TX_ASIC_DEBUG_CTRL_A 0x8f70
17228c2ecf20Sopenharmony_ci
17238c2ecf20Sopenharmony_ci#define ULP_TX_ASIC_DEBUG_0_A 0x8f74
17248c2ecf20Sopenharmony_ci#define ULP_TX_ASIC_DEBUG_1_A 0x8f78
17258c2ecf20Sopenharmony_ci#define ULP_TX_ASIC_DEBUG_2_A 0x8f7c
17268c2ecf20Sopenharmony_ci#define ULP_TX_ASIC_DEBUG_3_A 0x8f80
17278c2ecf20Sopenharmony_ci#define ULP_TX_ASIC_DEBUG_4_A 0x8f84
17288c2ecf20Sopenharmony_ci
17298c2ecf20Sopenharmony_ci/* registers for module PM_RX */
17308c2ecf20Sopenharmony_ci#define PM_RX_BASE_ADDR 0x8fc0
17318c2ecf20Sopenharmony_ci
17328c2ecf20Sopenharmony_ci#define PMRX_E_PCMD_PAR_ERROR_S    0
17338c2ecf20Sopenharmony_ci#define PMRX_E_PCMD_PAR_ERROR_V(x) ((x) << PMRX_E_PCMD_PAR_ERROR_S)
17348c2ecf20Sopenharmony_ci#define PMRX_E_PCMD_PAR_ERROR_F    PMRX_E_PCMD_PAR_ERROR_V(1U)
17358c2ecf20Sopenharmony_ci
17368c2ecf20Sopenharmony_ci#define PM_TX_INT_CAUSE_A	0x8ffc
17378c2ecf20Sopenharmony_ci#define PM_TX_STAT_CONFIG_A 0x8fe8
17388c2ecf20Sopenharmony_ci#define PM_TX_STAT_COUNT_A 0x8fec
17398c2ecf20Sopenharmony_ci#define PM_TX_STAT_LSB_A 0x8ff0
17408c2ecf20Sopenharmony_ci#define PM_TX_DBG_CTRL_A 0x8ff0
17418c2ecf20Sopenharmony_ci#define PM_TX_DBG_DATA_A 0x8ff4
17428c2ecf20Sopenharmony_ci#define PM_TX_DBG_STAT_MSB_A 0x1001a
17438c2ecf20Sopenharmony_ci
17448c2ecf20Sopenharmony_ci#define PCMD_LEN_OVFL0_S    31
17458c2ecf20Sopenharmony_ci#define PCMD_LEN_OVFL0_V(x) ((x) << PCMD_LEN_OVFL0_S)
17468c2ecf20Sopenharmony_ci#define PCMD_LEN_OVFL0_F    PCMD_LEN_OVFL0_V(1U)
17478c2ecf20Sopenharmony_ci
17488c2ecf20Sopenharmony_ci#define PCMD_LEN_OVFL1_S    30
17498c2ecf20Sopenharmony_ci#define PCMD_LEN_OVFL1_V(x) ((x) << PCMD_LEN_OVFL1_S)
17508c2ecf20Sopenharmony_ci#define PCMD_LEN_OVFL1_F    PCMD_LEN_OVFL1_V(1U)
17518c2ecf20Sopenharmony_ci
17528c2ecf20Sopenharmony_ci#define PCMD_LEN_OVFL2_S    29
17538c2ecf20Sopenharmony_ci#define PCMD_LEN_OVFL2_V(x) ((x) << PCMD_LEN_OVFL2_S)
17548c2ecf20Sopenharmony_ci#define PCMD_LEN_OVFL2_F    PCMD_LEN_OVFL2_V(1U)
17558c2ecf20Sopenharmony_ci
17568c2ecf20Sopenharmony_ci#define ZERO_C_CMD_ERROR_S    28
17578c2ecf20Sopenharmony_ci#define ZERO_C_CMD_ERROR_V(x) ((x) << ZERO_C_CMD_ERROR_S)
17588c2ecf20Sopenharmony_ci#define ZERO_C_CMD_ERROR_F    ZERO_C_CMD_ERROR_V(1U)
17598c2ecf20Sopenharmony_ci
17608c2ecf20Sopenharmony_ci#define  PMTX_FRAMING_ERROR_F 0x0ffffff0U
17618c2ecf20Sopenharmony_ci
17628c2ecf20Sopenharmony_ci#define OESPI_PAR_ERROR_S    3
17638c2ecf20Sopenharmony_ci#define OESPI_PAR_ERROR_V(x) ((x) << OESPI_PAR_ERROR_S)
17648c2ecf20Sopenharmony_ci#define OESPI_PAR_ERROR_F    OESPI_PAR_ERROR_V(1U)
17658c2ecf20Sopenharmony_ci
17668c2ecf20Sopenharmony_ci#define ICSPI_PAR_ERROR_S    1
17678c2ecf20Sopenharmony_ci#define ICSPI_PAR_ERROR_V(x) ((x) << ICSPI_PAR_ERROR_S)
17688c2ecf20Sopenharmony_ci#define ICSPI_PAR_ERROR_F    ICSPI_PAR_ERROR_V(1U)
17698c2ecf20Sopenharmony_ci
17708c2ecf20Sopenharmony_ci#define PMTX_C_PCMD_PAR_ERROR_S    0
17718c2ecf20Sopenharmony_ci#define PMTX_C_PCMD_PAR_ERROR_V(x) ((x) << PMTX_C_PCMD_PAR_ERROR_S)
17728c2ecf20Sopenharmony_ci#define PMTX_C_PCMD_PAR_ERROR_F    PMTX_C_PCMD_PAR_ERROR_V(1U)
17738c2ecf20Sopenharmony_ci
17748c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_BYTES_L 0x400
17758c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_BYTES_H 0x404
17768c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_FRAMES_L 0x408
17778c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_FRAMES_H 0x40c
17788c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_BCAST_L 0x410
17798c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_BCAST_H 0x414
17808c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_MCAST_L 0x418
17818c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_MCAST_H 0x41c
17828c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_UCAST_L 0x420
17838c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_UCAST_H 0x424
17848c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_ERROR_L 0x428
17858c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_ERROR_H 0x42c
17868c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_64B_L 0x430
17878c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_64B_H 0x434
17888c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_65B_127B_L 0x438
17898c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_65B_127B_H 0x43c
17908c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_128B_255B_L 0x440
17918c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_128B_255B_H 0x444
17928c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_256B_511B_L 0x448
17938c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_256B_511B_H 0x44c
17948c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_512B_1023B_L 0x450
17958c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_512B_1023B_H 0x454
17968c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_1024B_1518B_L 0x458
17978c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_1024B_1518B_H 0x45c
17988c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_1519B_MAX_L 0x460
17998c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_1519B_MAX_H 0x464
18008c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_DROP_L 0x468
18018c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_DROP_H 0x46c
18028c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_PAUSE_L 0x470
18038c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_PAUSE_H 0x474
18048c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_PPP0_L 0x478
18058c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_PPP0_H 0x47c
18068c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_PPP1_L 0x480
18078c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_PPP1_H 0x484
18088c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_PPP2_L 0x488
18098c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_PPP2_H 0x48c
18108c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_PPP3_L 0x490
18118c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_PPP3_H 0x494
18128c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_PPP4_L 0x498
18138c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_PPP4_H 0x49c
18148c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_PPP5_L 0x4a0
18158c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_PPP5_H 0x4a4
18168c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_PPP6_L 0x4a8
18178c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_PPP6_H 0x4ac
18188c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_PPP7_L 0x4b0
18198c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_TX_PORT_PPP7_H 0x4b4
18208c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_BYTES_L 0x4c0
18218c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_BYTES_H 0x4c4
18228c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_FRAMES_L 0x4c8
18238c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_FRAMES_H 0x4cc
18248c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_BCAST_L 0x4d0
18258c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_BCAST_H 0x4d4
18268c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_MCAST_L 0x4d8
18278c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_MCAST_H 0x4dc
18288c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_UCAST_L 0x4e0
18298c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_UCAST_H 0x4e4
18308c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_ERROR_L 0x4e8
18318c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_ERROR_H 0x4ec
18328c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_64B_L 0x4f0
18338c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_64B_H 0x4f4
18348c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_65B_127B_L 0x4f8
18358c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_65B_127B_H 0x4fc
18368c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_128B_255B_L 0x500
18378c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_128B_255B_H 0x504
18388c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_256B_511B_L 0x508
18398c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_256B_511B_H 0x50c
18408c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_512B_1023B_L 0x510
18418c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_512B_1023B_H 0x514
18428c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_1024B_1518B_L 0x518
18438c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_1024B_1518B_H 0x51c
18448c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_1519B_MAX_L 0x520
18458c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_1519B_MAX_H 0x524
18468c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_DROP_FRAMES 0x528
18478c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_LB_PORT_DROP_FRAMES_L 0x528
18488c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_BYTES_L 0x540
18498c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_BYTES_H 0x544
18508c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_FRAMES_L 0x548
18518c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_FRAMES_H 0x54c
18528c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_BCAST_L 0x550
18538c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_BCAST_H 0x554
18548c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_MCAST_L 0x558
18558c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_MCAST_H 0x55c
18568c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_UCAST_L 0x560
18578c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_UCAST_H 0x564
18588c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_MTU_ERROR_L 0x568
18598c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_MTU_ERROR_H 0x56c
18608c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_MTU_CRC_ERROR_L 0x570
18618c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_MTU_CRC_ERROR_H 0x574
18628c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_CRC_ERROR_L 0x578
18638c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_CRC_ERROR_H 0x57c
18648c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_LEN_ERROR_L 0x580
18658c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_LEN_ERROR_H 0x584
18668c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_SYM_ERROR_L 0x588
18678c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_SYM_ERROR_H 0x58c
18688c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_64B_L 0x590
18698c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_64B_H 0x594
18708c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_65B_127B_L 0x598
18718c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_65B_127B_H 0x59c
18728c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_128B_255B_L 0x5a0
18738c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_128B_255B_H 0x5a4
18748c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_256B_511B_L 0x5a8
18758c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_256B_511B_H 0x5ac
18768c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_512B_1023B_L 0x5b0
18778c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_512B_1023B_H 0x5b4
18788c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_1024B_1518B_L 0x5b8
18798c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_1024B_1518B_H 0x5bc
18808c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_1519B_MAX_L 0x5c0
18818c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_1519B_MAX_H 0x5c4
18828c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_PAUSE_L 0x5c8
18838c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_PAUSE_H 0x5cc
18848c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_PPP0_L 0x5d0
18858c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_PPP0_H 0x5d4
18868c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_PPP1_L 0x5d8
18878c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_PPP1_H 0x5dc
18888c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_PPP2_L 0x5e0
18898c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_PPP2_H 0x5e4
18908c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_PPP3_L 0x5e8
18918c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_PPP3_H 0x5ec
18928c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_PPP4_L 0x5f0
18938c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_PPP4_H 0x5f4
18948c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_PPP5_L 0x5f8
18958c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_PPP5_H 0x5fc
18968c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_PPP6_L 0x600
18978c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_PPP6_H 0x604
18988c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_PPP7_L 0x608
18998c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_PPP7_H 0x60c
19008c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_LESS_64B_L 0x610
19018c2ecf20Sopenharmony_ci#define MPS_PORT_STAT_RX_PORT_LESS_64B_H 0x614
19028c2ecf20Sopenharmony_ci#define MAC_PORT_MAGIC_MACID_LO 0x824
19038c2ecf20Sopenharmony_ci#define MAC_PORT_MAGIC_MACID_HI 0x828
19048c2ecf20Sopenharmony_ci#define MAC_PORT_TX_TS_VAL_LO   0x928
19058c2ecf20Sopenharmony_ci#define MAC_PORT_TX_TS_VAL_HI   0x92c
19068c2ecf20Sopenharmony_ci
19078c2ecf20Sopenharmony_ci#define MAC_PORT_EPIO_DATA0_A 0x8c0
19088c2ecf20Sopenharmony_ci#define MAC_PORT_EPIO_DATA1_A 0x8c4
19098c2ecf20Sopenharmony_ci#define MAC_PORT_EPIO_DATA2_A 0x8c8
19108c2ecf20Sopenharmony_ci#define MAC_PORT_EPIO_DATA3_A 0x8cc
19118c2ecf20Sopenharmony_ci#define MAC_PORT_EPIO_OP_A 0x8d0
19128c2ecf20Sopenharmony_ci
19138c2ecf20Sopenharmony_ci#define MAC_PORT_CFG2_A 0x818
19148c2ecf20Sopenharmony_ci
19158c2ecf20Sopenharmony_ci#define MAC_PORT_PTP_SUM_LO_A 0x990
19168c2ecf20Sopenharmony_ci#define MAC_PORT_PTP_SUM_HI_A 0x994
19178c2ecf20Sopenharmony_ci
19188c2ecf20Sopenharmony_ci#define MPS_CMN_CTL_A	0x9000
19198c2ecf20Sopenharmony_ci
19208c2ecf20Sopenharmony_ci#define COUNTPAUSEMCRX_S    5
19218c2ecf20Sopenharmony_ci#define COUNTPAUSEMCRX_V(x) ((x) << COUNTPAUSEMCRX_S)
19228c2ecf20Sopenharmony_ci#define COUNTPAUSEMCRX_F    COUNTPAUSEMCRX_V(1U)
19238c2ecf20Sopenharmony_ci
19248c2ecf20Sopenharmony_ci#define COUNTPAUSESTATRX_S    4
19258c2ecf20Sopenharmony_ci#define COUNTPAUSESTATRX_V(x) ((x) << COUNTPAUSESTATRX_S)
19268c2ecf20Sopenharmony_ci#define COUNTPAUSESTATRX_F    COUNTPAUSESTATRX_V(1U)
19278c2ecf20Sopenharmony_ci
19288c2ecf20Sopenharmony_ci#define COUNTPAUSEMCTX_S    3
19298c2ecf20Sopenharmony_ci#define COUNTPAUSEMCTX_V(x) ((x) << COUNTPAUSEMCTX_S)
19308c2ecf20Sopenharmony_ci#define COUNTPAUSEMCTX_F    COUNTPAUSEMCTX_V(1U)
19318c2ecf20Sopenharmony_ci
19328c2ecf20Sopenharmony_ci#define COUNTPAUSESTATTX_S    2
19338c2ecf20Sopenharmony_ci#define COUNTPAUSESTATTX_V(x) ((x) << COUNTPAUSESTATTX_S)
19348c2ecf20Sopenharmony_ci#define COUNTPAUSESTATTX_F    COUNTPAUSESTATTX_V(1U)
19358c2ecf20Sopenharmony_ci
19368c2ecf20Sopenharmony_ci#define NUMPORTS_S    0
19378c2ecf20Sopenharmony_ci#define NUMPORTS_M    0x3U
19388c2ecf20Sopenharmony_ci#define NUMPORTS_G(x) (((x) >> NUMPORTS_S) & NUMPORTS_M)
19398c2ecf20Sopenharmony_ci
19408c2ecf20Sopenharmony_ci#define MPS_INT_CAUSE_A 0x9008
19418c2ecf20Sopenharmony_ci#define MPS_TX_INT_CAUSE_A 0x9408
19428c2ecf20Sopenharmony_ci#define MPS_STAT_CTL_A 0x9600
19438c2ecf20Sopenharmony_ci
19448c2ecf20Sopenharmony_ci#define FRMERR_S    15
19458c2ecf20Sopenharmony_ci#define FRMERR_V(x) ((x) << FRMERR_S)
19468c2ecf20Sopenharmony_ci#define FRMERR_F    FRMERR_V(1U)
19478c2ecf20Sopenharmony_ci
19488c2ecf20Sopenharmony_ci#define SECNTERR_S    14
19498c2ecf20Sopenharmony_ci#define SECNTERR_V(x) ((x) << SECNTERR_S)
19508c2ecf20Sopenharmony_ci#define SECNTERR_F    SECNTERR_V(1U)
19518c2ecf20Sopenharmony_ci
19528c2ecf20Sopenharmony_ci#define BUBBLE_S    13
19538c2ecf20Sopenharmony_ci#define BUBBLE_V(x) ((x) << BUBBLE_S)
19548c2ecf20Sopenharmony_ci#define BUBBLE_F    BUBBLE_V(1U)
19558c2ecf20Sopenharmony_ci
19568c2ecf20Sopenharmony_ci#define TXDESCFIFO_S    9
19578c2ecf20Sopenharmony_ci#define TXDESCFIFO_M    0xfU
19588c2ecf20Sopenharmony_ci#define TXDESCFIFO_V(x) ((x) << TXDESCFIFO_S)
19598c2ecf20Sopenharmony_ci
19608c2ecf20Sopenharmony_ci#define TXDATAFIFO_S    5
19618c2ecf20Sopenharmony_ci#define TXDATAFIFO_M    0xfU
19628c2ecf20Sopenharmony_ci#define TXDATAFIFO_V(x) ((x) << TXDATAFIFO_S)
19638c2ecf20Sopenharmony_ci
19648c2ecf20Sopenharmony_ci#define NCSIFIFO_S    4
19658c2ecf20Sopenharmony_ci#define NCSIFIFO_V(x) ((x) << NCSIFIFO_S)
19668c2ecf20Sopenharmony_ci#define NCSIFIFO_F    NCSIFIFO_V(1U)
19678c2ecf20Sopenharmony_ci
19688c2ecf20Sopenharmony_ci#define TPFIFO_S    0
19698c2ecf20Sopenharmony_ci#define TPFIFO_M    0xfU
19708c2ecf20Sopenharmony_ci#define TPFIFO_V(x) ((x) << TPFIFO_S)
19718c2ecf20Sopenharmony_ci
19728c2ecf20Sopenharmony_ci#define MPS_STAT_PERR_INT_CAUSE_SRAM_A		0x9614
19738c2ecf20Sopenharmony_ci#define MPS_STAT_PERR_INT_CAUSE_TX_FIFO_A	0x9620
19748c2ecf20Sopenharmony_ci#define MPS_STAT_PERR_INT_CAUSE_RX_FIFO_A	0x962c
19758c2ecf20Sopenharmony_ci
19768c2ecf20Sopenharmony_ci#define MPS_STAT_RX_BG_0_MAC_DROP_FRAME_L 0x9640
19778c2ecf20Sopenharmony_ci#define MPS_STAT_RX_BG_0_MAC_DROP_FRAME_H 0x9644
19788c2ecf20Sopenharmony_ci#define MPS_STAT_RX_BG_1_MAC_DROP_FRAME_L 0x9648
19798c2ecf20Sopenharmony_ci#define MPS_STAT_RX_BG_1_MAC_DROP_FRAME_H 0x964c
19808c2ecf20Sopenharmony_ci#define MPS_STAT_RX_BG_2_MAC_DROP_FRAME_L 0x9650
19818c2ecf20Sopenharmony_ci#define MPS_STAT_RX_BG_2_MAC_DROP_FRAME_H 0x9654
19828c2ecf20Sopenharmony_ci#define MPS_STAT_RX_BG_3_MAC_DROP_FRAME_L 0x9658
19838c2ecf20Sopenharmony_ci#define MPS_STAT_RX_BG_3_MAC_DROP_FRAME_H 0x965c
19848c2ecf20Sopenharmony_ci#define MPS_STAT_RX_BG_0_LB_DROP_FRAME_L 0x9660
19858c2ecf20Sopenharmony_ci#define MPS_STAT_RX_BG_0_LB_DROP_FRAME_H 0x9664
19868c2ecf20Sopenharmony_ci#define MPS_STAT_RX_BG_1_LB_DROP_FRAME_L 0x9668
19878c2ecf20Sopenharmony_ci#define MPS_STAT_RX_BG_1_LB_DROP_FRAME_H 0x966c
19888c2ecf20Sopenharmony_ci#define MPS_STAT_RX_BG_2_LB_DROP_FRAME_L 0x9670
19898c2ecf20Sopenharmony_ci#define MPS_STAT_RX_BG_2_LB_DROP_FRAME_H 0x9674
19908c2ecf20Sopenharmony_ci#define MPS_STAT_RX_BG_3_LB_DROP_FRAME_L 0x9678
19918c2ecf20Sopenharmony_ci#define MPS_STAT_RX_BG_3_LB_DROP_FRAME_H 0x967c
19928c2ecf20Sopenharmony_ci#define MPS_STAT_RX_BG_0_MAC_TRUNC_FRAME_L 0x9680
19938c2ecf20Sopenharmony_ci#define MPS_STAT_RX_BG_0_MAC_TRUNC_FRAME_H 0x9684
19948c2ecf20Sopenharmony_ci#define MPS_STAT_RX_BG_1_MAC_TRUNC_FRAME_L 0x9688
19958c2ecf20Sopenharmony_ci#define MPS_STAT_RX_BG_1_MAC_TRUNC_FRAME_H 0x968c
19968c2ecf20Sopenharmony_ci#define MPS_STAT_RX_BG_2_MAC_TRUNC_FRAME_L 0x9690
19978c2ecf20Sopenharmony_ci#define MPS_STAT_RX_BG_2_MAC_TRUNC_FRAME_H 0x9694
19988c2ecf20Sopenharmony_ci#define MPS_STAT_RX_BG_3_MAC_TRUNC_FRAME_L 0x9698
19998c2ecf20Sopenharmony_ci#define MPS_STAT_RX_BG_3_MAC_TRUNC_FRAME_H 0x969c
20008c2ecf20Sopenharmony_ci#define MPS_STAT_RX_BG_0_LB_TRUNC_FRAME_L 0x96a0
20018c2ecf20Sopenharmony_ci#define MPS_STAT_RX_BG_0_LB_TRUNC_FRAME_H 0x96a4
20028c2ecf20Sopenharmony_ci#define MPS_STAT_RX_BG_1_LB_TRUNC_FRAME_L 0x96a8
20038c2ecf20Sopenharmony_ci#define MPS_STAT_RX_BG_1_LB_TRUNC_FRAME_H 0x96ac
20048c2ecf20Sopenharmony_ci#define MPS_STAT_RX_BG_2_LB_TRUNC_FRAME_L 0x96b0
20058c2ecf20Sopenharmony_ci#define MPS_STAT_RX_BG_2_LB_TRUNC_FRAME_H 0x96b4
20068c2ecf20Sopenharmony_ci#define MPS_STAT_RX_BG_3_LB_TRUNC_FRAME_L 0x96b8
20078c2ecf20Sopenharmony_ci#define MPS_STAT_RX_BG_3_LB_TRUNC_FRAME_H 0x96bc
20088c2ecf20Sopenharmony_ci
20098c2ecf20Sopenharmony_ci#define MPS_TRC_CFG_A 0x9800
20108c2ecf20Sopenharmony_ci
20118c2ecf20Sopenharmony_ci#define TRCFIFOEMPTY_S    4
20128c2ecf20Sopenharmony_ci#define TRCFIFOEMPTY_V(x) ((x) << TRCFIFOEMPTY_S)
20138c2ecf20Sopenharmony_ci#define TRCFIFOEMPTY_F    TRCFIFOEMPTY_V(1U)
20148c2ecf20Sopenharmony_ci
20158c2ecf20Sopenharmony_ci#define TRCIGNOREDROPINPUT_S    3
20168c2ecf20Sopenharmony_ci#define TRCIGNOREDROPINPUT_V(x) ((x) << TRCIGNOREDROPINPUT_S)
20178c2ecf20Sopenharmony_ci#define TRCIGNOREDROPINPUT_F    TRCIGNOREDROPINPUT_V(1U)
20188c2ecf20Sopenharmony_ci
20198c2ecf20Sopenharmony_ci#define TRCKEEPDUPLICATES_S    2
20208c2ecf20Sopenharmony_ci#define TRCKEEPDUPLICATES_V(x) ((x) << TRCKEEPDUPLICATES_S)
20218c2ecf20Sopenharmony_ci#define TRCKEEPDUPLICATES_F    TRCKEEPDUPLICATES_V(1U)
20228c2ecf20Sopenharmony_ci
20238c2ecf20Sopenharmony_ci#define TRCEN_S    1
20248c2ecf20Sopenharmony_ci#define TRCEN_V(x) ((x) << TRCEN_S)
20258c2ecf20Sopenharmony_ci#define TRCEN_F    TRCEN_V(1U)
20268c2ecf20Sopenharmony_ci
20278c2ecf20Sopenharmony_ci#define TRCMULTIFILTER_S    0
20288c2ecf20Sopenharmony_ci#define TRCMULTIFILTER_V(x) ((x) << TRCMULTIFILTER_S)
20298c2ecf20Sopenharmony_ci#define TRCMULTIFILTER_F    TRCMULTIFILTER_V(1U)
20308c2ecf20Sopenharmony_ci
20318c2ecf20Sopenharmony_ci#define MPS_TRC_RSS_CONTROL_A		0x9808
20328c2ecf20Sopenharmony_ci#define MPS_TRC_FILTER1_RSS_CONTROL_A	0x9ff4
20338c2ecf20Sopenharmony_ci#define MPS_TRC_FILTER2_RSS_CONTROL_A	0x9ffc
20348c2ecf20Sopenharmony_ci#define MPS_TRC_FILTER3_RSS_CONTROL_A	0xa004
20358c2ecf20Sopenharmony_ci#define MPS_T5_TRC_RSS_CONTROL_A	0xa00c
20368c2ecf20Sopenharmony_ci
20378c2ecf20Sopenharmony_ci#define RSSCONTROL_S    16
20388c2ecf20Sopenharmony_ci#define RSSCONTROL_V(x) ((x) << RSSCONTROL_S)
20398c2ecf20Sopenharmony_ci
20408c2ecf20Sopenharmony_ci#define QUEUENUMBER_S    0
20418c2ecf20Sopenharmony_ci#define QUEUENUMBER_V(x) ((x) << QUEUENUMBER_S)
20428c2ecf20Sopenharmony_ci
20438c2ecf20Sopenharmony_ci#define TFINVERTMATCH_S    24
20448c2ecf20Sopenharmony_ci#define TFINVERTMATCH_V(x) ((x) << TFINVERTMATCH_S)
20458c2ecf20Sopenharmony_ci#define TFINVERTMATCH_F    TFINVERTMATCH_V(1U)
20468c2ecf20Sopenharmony_ci
20478c2ecf20Sopenharmony_ci#define TFEN_S    22
20488c2ecf20Sopenharmony_ci#define TFEN_V(x) ((x) << TFEN_S)
20498c2ecf20Sopenharmony_ci#define TFEN_F    TFEN_V(1U)
20508c2ecf20Sopenharmony_ci
20518c2ecf20Sopenharmony_ci#define TFPORT_S    18
20528c2ecf20Sopenharmony_ci#define TFPORT_M    0xfU
20538c2ecf20Sopenharmony_ci#define TFPORT_V(x) ((x) << TFPORT_S)
20548c2ecf20Sopenharmony_ci#define TFPORT_G(x) (((x) >> TFPORT_S) & TFPORT_M)
20558c2ecf20Sopenharmony_ci
20568c2ecf20Sopenharmony_ci#define TFLENGTH_S    8
20578c2ecf20Sopenharmony_ci#define TFLENGTH_M    0x1fU
20588c2ecf20Sopenharmony_ci#define TFLENGTH_V(x) ((x) << TFLENGTH_S)
20598c2ecf20Sopenharmony_ci#define TFLENGTH_G(x) (((x) >> TFLENGTH_S) & TFLENGTH_M)
20608c2ecf20Sopenharmony_ci
20618c2ecf20Sopenharmony_ci#define TFOFFSET_S    0
20628c2ecf20Sopenharmony_ci#define TFOFFSET_M    0x1fU
20638c2ecf20Sopenharmony_ci#define TFOFFSET_V(x) ((x) << TFOFFSET_S)
20648c2ecf20Sopenharmony_ci#define TFOFFSET_G(x) (((x) >> TFOFFSET_S) & TFOFFSET_M)
20658c2ecf20Sopenharmony_ci
20668c2ecf20Sopenharmony_ci#define T5_TFINVERTMATCH_S    25
20678c2ecf20Sopenharmony_ci#define T5_TFINVERTMATCH_V(x) ((x) << T5_TFINVERTMATCH_S)
20688c2ecf20Sopenharmony_ci#define T5_TFINVERTMATCH_F    T5_TFINVERTMATCH_V(1U)
20698c2ecf20Sopenharmony_ci
20708c2ecf20Sopenharmony_ci#define T5_TFEN_S    23
20718c2ecf20Sopenharmony_ci#define T5_TFEN_V(x) ((x) << T5_TFEN_S)
20728c2ecf20Sopenharmony_ci#define T5_TFEN_F    T5_TFEN_V(1U)
20738c2ecf20Sopenharmony_ci
20748c2ecf20Sopenharmony_ci#define T5_TFPORT_S    18
20758c2ecf20Sopenharmony_ci#define T5_TFPORT_M    0x1fU
20768c2ecf20Sopenharmony_ci#define T5_TFPORT_V(x) ((x) << T5_TFPORT_S)
20778c2ecf20Sopenharmony_ci#define T5_TFPORT_G(x) (((x) >> T5_TFPORT_S) & T5_TFPORT_M)
20788c2ecf20Sopenharmony_ci
20798c2ecf20Sopenharmony_ci#define MPS_TRC_FILTER_MATCH_CTL_A_A 0x9810
20808c2ecf20Sopenharmony_ci#define MPS_TRC_FILTER_MATCH_CTL_B_A 0x9820
20818c2ecf20Sopenharmony_ci
20828c2ecf20Sopenharmony_ci#define TFMINPKTSIZE_S    16
20838c2ecf20Sopenharmony_ci#define TFMINPKTSIZE_M    0x1ffU
20848c2ecf20Sopenharmony_ci#define TFMINPKTSIZE_V(x) ((x) << TFMINPKTSIZE_S)
20858c2ecf20Sopenharmony_ci#define TFMINPKTSIZE_G(x) (((x) >> TFMINPKTSIZE_S) & TFMINPKTSIZE_M)
20868c2ecf20Sopenharmony_ci
20878c2ecf20Sopenharmony_ci#define TFCAPTUREMAX_S    0
20888c2ecf20Sopenharmony_ci#define TFCAPTUREMAX_M    0x3fffU
20898c2ecf20Sopenharmony_ci#define TFCAPTUREMAX_V(x) ((x) << TFCAPTUREMAX_S)
20908c2ecf20Sopenharmony_ci#define TFCAPTUREMAX_G(x) (((x) >> TFCAPTUREMAX_S) & TFCAPTUREMAX_M)
20918c2ecf20Sopenharmony_ci
20928c2ecf20Sopenharmony_ci#define MPS_TRC_FILTER0_MATCH_A 0x9c00
20938c2ecf20Sopenharmony_ci#define MPS_TRC_FILTER0_DONT_CARE_A 0x9c80
20948c2ecf20Sopenharmony_ci#define MPS_TRC_FILTER1_MATCH_A 0x9d00
20958c2ecf20Sopenharmony_ci
20968c2ecf20Sopenharmony_ci#define TP_RSS_CONFIG_A 0x7df0
20978c2ecf20Sopenharmony_ci
20988c2ecf20Sopenharmony_ci#define TNL4TUPENIPV6_S    31
20998c2ecf20Sopenharmony_ci#define TNL4TUPENIPV6_V(x) ((x) << TNL4TUPENIPV6_S)
21008c2ecf20Sopenharmony_ci#define TNL4TUPENIPV6_F    TNL4TUPENIPV6_V(1U)
21018c2ecf20Sopenharmony_ci
21028c2ecf20Sopenharmony_ci#define TNL2TUPENIPV6_S    30
21038c2ecf20Sopenharmony_ci#define TNL2TUPENIPV6_V(x) ((x) << TNL2TUPENIPV6_S)
21048c2ecf20Sopenharmony_ci#define TNL2TUPENIPV6_F    TNL2TUPENIPV6_V(1U)
21058c2ecf20Sopenharmony_ci
21068c2ecf20Sopenharmony_ci#define TNL4TUPENIPV4_S    29
21078c2ecf20Sopenharmony_ci#define TNL4TUPENIPV4_V(x) ((x) << TNL4TUPENIPV4_S)
21088c2ecf20Sopenharmony_ci#define TNL4TUPENIPV4_F    TNL4TUPENIPV4_V(1U)
21098c2ecf20Sopenharmony_ci
21108c2ecf20Sopenharmony_ci#define TNL2TUPENIPV4_S    28
21118c2ecf20Sopenharmony_ci#define TNL2TUPENIPV4_V(x) ((x) << TNL2TUPENIPV4_S)
21128c2ecf20Sopenharmony_ci#define TNL2TUPENIPV4_F    TNL2TUPENIPV4_V(1U)
21138c2ecf20Sopenharmony_ci
21148c2ecf20Sopenharmony_ci#define TNLTCPSEL_S    27
21158c2ecf20Sopenharmony_ci#define TNLTCPSEL_V(x) ((x) << TNLTCPSEL_S)
21168c2ecf20Sopenharmony_ci#define TNLTCPSEL_F    TNLTCPSEL_V(1U)
21178c2ecf20Sopenharmony_ci
21188c2ecf20Sopenharmony_ci#define TNLIP6SEL_S    26
21198c2ecf20Sopenharmony_ci#define TNLIP6SEL_V(x) ((x) << TNLIP6SEL_S)
21208c2ecf20Sopenharmony_ci#define TNLIP6SEL_F    TNLIP6SEL_V(1U)
21218c2ecf20Sopenharmony_ci
21228c2ecf20Sopenharmony_ci#define TNLVRTSEL_S    25
21238c2ecf20Sopenharmony_ci#define TNLVRTSEL_V(x) ((x) << TNLVRTSEL_S)
21248c2ecf20Sopenharmony_ci#define TNLVRTSEL_F    TNLVRTSEL_V(1U)
21258c2ecf20Sopenharmony_ci
21268c2ecf20Sopenharmony_ci#define TNLMAPEN_S    24
21278c2ecf20Sopenharmony_ci#define TNLMAPEN_V(x) ((x) << TNLMAPEN_S)
21288c2ecf20Sopenharmony_ci#define TNLMAPEN_F    TNLMAPEN_V(1U)
21298c2ecf20Sopenharmony_ci
21308c2ecf20Sopenharmony_ci#define OFDHASHSAVE_S    19
21318c2ecf20Sopenharmony_ci#define OFDHASHSAVE_V(x) ((x) << OFDHASHSAVE_S)
21328c2ecf20Sopenharmony_ci#define OFDHASHSAVE_F    OFDHASHSAVE_V(1U)
21338c2ecf20Sopenharmony_ci
21348c2ecf20Sopenharmony_ci#define OFDVRTSEL_S    18
21358c2ecf20Sopenharmony_ci#define OFDVRTSEL_V(x) ((x) << OFDVRTSEL_S)
21368c2ecf20Sopenharmony_ci#define OFDVRTSEL_F    OFDVRTSEL_V(1U)
21378c2ecf20Sopenharmony_ci
21388c2ecf20Sopenharmony_ci#define OFDMAPEN_S    17
21398c2ecf20Sopenharmony_ci#define OFDMAPEN_V(x) ((x) << OFDMAPEN_S)
21408c2ecf20Sopenharmony_ci#define OFDMAPEN_F    OFDMAPEN_V(1U)
21418c2ecf20Sopenharmony_ci
21428c2ecf20Sopenharmony_ci#define OFDLKPEN_S    16
21438c2ecf20Sopenharmony_ci#define OFDLKPEN_V(x) ((x) << OFDLKPEN_S)
21448c2ecf20Sopenharmony_ci#define OFDLKPEN_F    OFDLKPEN_V(1U)
21458c2ecf20Sopenharmony_ci
21468c2ecf20Sopenharmony_ci#define SYN4TUPENIPV6_S    15
21478c2ecf20Sopenharmony_ci#define SYN4TUPENIPV6_V(x) ((x) << SYN4TUPENIPV6_S)
21488c2ecf20Sopenharmony_ci#define SYN4TUPENIPV6_F    SYN4TUPENIPV6_V(1U)
21498c2ecf20Sopenharmony_ci
21508c2ecf20Sopenharmony_ci#define SYN2TUPENIPV6_S    14
21518c2ecf20Sopenharmony_ci#define SYN2TUPENIPV6_V(x) ((x) << SYN2TUPENIPV6_S)
21528c2ecf20Sopenharmony_ci#define SYN2TUPENIPV6_F    SYN2TUPENIPV6_V(1U)
21538c2ecf20Sopenharmony_ci
21548c2ecf20Sopenharmony_ci#define SYN4TUPENIPV4_S    13
21558c2ecf20Sopenharmony_ci#define SYN4TUPENIPV4_V(x) ((x) << SYN4TUPENIPV4_S)
21568c2ecf20Sopenharmony_ci#define SYN4TUPENIPV4_F    SYN4TUPENIPV4_V(1U)
21578c2ecf20Sopenharmony_ci
21588c2ecf20Sopenharmony_ci#define SYN2TUPENIPV4_S    12
21598c2ecf20Sopenharmony_ci#define SYN2TUPENIPV4_V(x) ((x) << SYN2TUPENIPV4_S)
21608c2ecf20Sopenharmony_ci#define SYN2TUPENIPV4_F    SYN2TUPENIPV4_V(1U)
21618c2ecf20Sopenharmony_ci
21628c2ecf20Sopenharmony_ci#define SYNIP6SEL_S    11
21638c2ecf20Sopenharmony_ci#define SYNIP6SEL_V(x) ((x) << SYNIP6SEL_S)
21648c2ecf20Sopenharmony_ci#define SYNIP6SEL_F    SYNIP6SEL_V(1U)
21658c2ecf20Sopenharmony_ci
21668c2ecf20Sopenharmony_ci#define SYNVRTSEL_S    10
21678c2ecf20Sopenharmony_ci#define SYNVRTSEL_V(x) ((x) << SYNVRTSEL_S)
21688c2ecf20Sopenharmony_ci#define SYNVRTSEL_F    SYNVRTSEL_V(1U)
21698c2ecf20Sopenharmony_ci
21708c2ecf20Sopenharmony_ci#define SYNMAPEN_S    9
21718c2ecf20Sopenharmony_ci#define SYNMAPEN_V(x) ((x) << SYNMAPEN_S)
21728c2ecf20Sopenharmony_ci#define SYNMAPEN_F    SYNMAPEN_V(1U)
21738c2ecf20Sopenharmony_ci
21748c2ecf20Sopenharmony_ci#define SYNLKPEN_S    8
21758c2ecf20Sopenharmony_ci#define SYNLKPEN_V(x) ((x) << SYNLKPEN_S)
21768c2ecf20Sopenharmony_ci#define SYNLKPEN_F    SYNLKPEN_V(1U)
21778c2ecf20Sopenharmony_ci
21788c2ecf20Sopenharmony_ci#define CHANNELENABLE_S    7
21798c2ecf20Sopenharmony_ci#define CHANNELENABLE_V(x) ((x) << CHANNELENABLE_S)
21808c2ecf20Sopenharmony_ci#define CHANNELENABLE_F    CHANNELENABLE_V(1U)
21818c2ecf20Sopenharmony_ci
21828c2ecf20Sopenharmony_ci#define PORTENABLE_S    6
21838c2ecf20Sopenharmony_ci#define PORTENABLE_V(x) ((x) << PORTENABLE_S)
21848c2ecf20Sopenharmony_ci#define PORTENABLE_F    PORTENABLE_V(1U)
21858c2ecf20Sopenharmony_ci
21868c2ecf20Sopenharmony_ci#define TNLALLLOOKUP_S    5
21878c2ecf20Sopenharmony_ci#define TNLALLLOOKUP_V(x) ((x) << TNLALLLOOKUP_S)
21888c2ecf20Sopenharmony_ci#define TNLALLLOOKUP_F    TNLALLLOOKUP_V(1U)
21898c2ecf20Sopenharmony_ci
21908c2ecf20Sopenharmony_ci#define VIRTENABLE_S    4
21918c2ecf20Sopenharmony_ci#define VIRTENABLE_V(x) ((x) << VIRTENABLE_S)
21928c2ecf20Sopenharmony_ci#define VIRTENABLE_F    VIRTENABLE_V(1U)
21938c2ecf20Sopenharmony_ci
21948c2ecf20Sopenharmony_ci#define CONGESTIONENABLE_S    3
21958c2ecf20Sopenharmony_ci#define CONGESTIONENABLE_V(x) ((x) << CONGESTIONENABLE_S)
21968c2ecf20Sopenharmony_ci#define CONGESTIONENABLE_F    CONGESTIONENABLE_V(1U)
21978c2ecf20Sopenharmony_ci
21988c2ecf20Sopenharmony_ci#define HASHTOEPLITZ_S    2
21998c2ecf20Sopenharmony_ci#define HASHTOEPLITZ_V(x) ((x) << HASHTOEPLITZ_S)
22008c2ecf20Sopenharmony_ci#define HASHTOEPLITZ_F    HASHTOEPLITZ_V(1U)
22018c2ecf20Sopenharmony_ci
22028c2ecf20Sopenharmony_ci#define UDPENABLE_S    1
22038c2ecf20Sopenharmony_ci#define UDPENABLE_V(x) ((x) << UDPENABLE_S)
22048c2ecf20Sopenharmony_ci#define UDPENABLE_F    UDPENABLE_V(1U)
22058c2ecf20Sopenharmony_ci
22068c2ecf20Sopenharmony_ci#define DISABLE_S    0
22078c2ecf20Sopenharmony_ci#define DISABLE_V(x) ((x) << DISABLE_S)
22088c2ecf20Sopenharmony_ci#define DISABLE_F    DISABLE_V(1U)
22098c2ecf20Sopenharmony_ci
22108c2ecf20Sopenharmony_ci#define TP_RSS_CONFIG_TNL_A 0x7df4
22118c2ecf20Sopenharmony_ci
22128c2ecf20Sopenharmony_ci#define MASKSIZE_S    28
22138c2ecf20Sopenharmony_ci#define MASKSIZE_M    0xfU
22148c2ecf20Sopenharmony_ci#define MASKSIZE_V(x) ((x) << MASKSIZE_S)
22158c2ecf20Sopenharmony_ci#define MASKSIZE_G(x) (((x) >> MASKSIZE_S) & MASKSIZE_M)
22168c2ecf20Sopenharmony_ci
22178c2ecf20Sopenharmony_ci#define MASKFILTER_S    16
22188c2ecf20Sopenharmony_ci#define MASKFILTER_M    0x7ffU
22198c2ecf20Sopenharmony_ci#define MASKFILTER_V(x) ((x) << MASKFILTER_S)
22208c2ecf20Sopenharmony_ci#define MASKFILTER_G(x) (((x) >> MASKFILTER_S) & MASKFILTER_M)
22218c2ecf20Sopenharmony_ci
22228c2ecf20Sopenharmony_ci#define USEWIRECH_S    0
22238c2ecf20Sopenharmony_ci#define USEWIRECH_V(x) ((x) << USEWIRECH_S)
22248c2ecf20Sopenharmony_ci#define USEWIRECH_F    USEWIRECH_V(1U)
22258c2ecf20Sopenharmony_ci
22268c2ecf20Sopenharmony_ci#define HASHALL_S    2
22278c2ecf20Sopenharmony_ci#define HASHALL_V(x) ((x) << HASHALL_S)
22288c2ecf20Sopenharmony_ci#define HASHALL_F    HASHALL_V(1U)
22298c2ecf20Sopenharmony_ci
22308c2ecf20Sopenharmony_ci#define HASHETH_S    1
22318c2ecf20Sopenharmony_ci#define HASHETH_V(x) ((x) << HASHETH_S)
22328c2ecf20Sopenharmony_ci#define HASHETH_F    HASHETH_V(1U)
22338c2ecf20Sopenharmony_ci
22348c2ecf20Sopenharmony_ci#define TP_RSS_CONFIG_OFD_A 0x7df8
22358c2ecf20Sopenharmony_ci
22368c2ecf20Sopenharmony_ci#define RRCPLMAPEN_S    20
22378c2ecf20Sopenharmony_ci#define RRCPLMAPEN_V(x) ((x) << RRCPLMAPEN_S)
22388c2ecf20Sopenharmony_ci#define RRCPLMAPEN_F    RRCPLMAPEN_V(1U)
22398c2ecf20Sopenharmony_ci
22408c2ecf20Sopenharmony_ci#define RRCPLQUEWIDTH_S    16
22418c2ecf20Sopenharmony_ci#define RRCPLQUEWIDTH_M    0xfU
22428c2ecf20Sopenharmony_ci#define RRCPLQUEWIDTH_V(x) ((x) << RRCPLQUEWIDTH_S)
22438c2ecf20Sopenharmony_ci#define RRCPLQUEWIDTH_G(x) (((x) >> RRCPLQUEWIDTH_S) & RRCPLQUEWIDTH_M)
22448c2ecf20Sopenharmony_ci
22458c2ecf20Sopenharmony_ci#define TP_RSS_CONFIG_SYN_A 0x7dfc
22468c2ecf20Sopenharmony_ci#define TP_RSS_CONFIG_VRT_A 0x7e00
22478c2ecf20Sopenharmony_ci
22488c2ecf20Sopenharmony_ci#define VFRDRG_S    25
22498c2ecf20Sopenharmony_ci#define VFRDRG_V(x) ((x) << VFRDRG_S)
22508c2ecf20Sopenharmony_ci#define VFRDRG_F    VFRDRG_V(1U)
22518c2ecf20Sopenharmony_ci
22528c2ecf20Sopenharmony_ci#define VFRDEN_S    24
22538c2ecf20Sopenharmony_ci#define VFRDEN_V(x) ((x) << VFRDEN_S)
22548c2ecf20Sopenharmony_ci#define VFRDEN_F    VFRDEN_V(1U)
22558c2ecf20Sopenharmony_ci
22568c2ecf20Sopenharmony_ci#define VFPERREN_S    23
22578c2ecf20Sopenharmony_ci#define VFPERREN_V(x) ((x) << VFPERREN_S)
22588c2ecf20Sopenharmony_ci#define VFPERREN_F    VFPERREN_V(1U)
22598c2ecf20Sopenharmony_ci
22608c2ecf20Sopenharmony_ci#define KEYPERREN_S    22
22618c2ecf20Sopenharmony_ci#define KEYPERREN_V(x) ((x) << KEYPERREN_S)
22628c2ecf20Sopenharmony_ci#define KEYPERREN_F    KEYPERREN_V(1U)
22638c2ecf20Sopenharmony_ci
22648c2ecf20Sopenharmony_ci#define DISABLEVLAN_S    21
22658c2ecf20Sopenharmony_ci#define DISABLEVLAN_V(x) ((x) << DISABLEVLAN_S)
22668c2ecf20Sopenharmony_ci#define DISABLEVLAN_F    DISABLEVLAN_V(1U)
22678c2ecf20Sopenharmony_ci
22688c2ecf20Sopenharmony_ci#define ENABLEUP0_S    20
22698c2ecf20Sopenharmony_ci#define ENABLEUP0_V(x) ((x) << ENABLEUP0_S)
22708c2ecf20Sopenharmony_ci#define ENABLEUP0_F    ENABLEUP0_V(1U)
22718c2ecf20Sopenharmony_ci
22728c2ecf20Sopenharmony_ci#define HASHDELAY_S    16
22738c2ecf20Sopenharmony_ci#define HASHDELAY_M    0xfU
22748c2ecf20Sopenharmony_ci#define HASHDELAY_V(x) ((x) << HASHDELAY_S)
22758c2ecf20Sopenharmony_ci#define HASHDELAY_G(x) (((x) >> HASHDELAY_S) & HASHDELAY_M)
22768c2ecf20Sopenharmony_ci
22778c2ecf20Sopenharmony_ci#define VFWRADDR_S    8
22788c2ecf20Sopenharmony_ci#define VFWRADDR_M    0x7fU
22798c2ecf20Sopenharmony_ci#define VFWRADDR_V(x) ((x) << VFWRADDR_S)
22808c2ecf20Sopenharmony_ci#define VFWRADDR_G(x) (((x) >> VFWRADDR_S) & VFWRADDR_M)
22818c2ecf20Sopenharmony_ci
22828c2ecf20Sopenharmony_ci#define KEYMODE_S    6
22838c2ecf20Sopenharmony_ci#define KEYMODE_M    0x3U
22848c2ecf20Sopenharmony_ci#define KEYMODE_V(x) ((x) << KEYMODE_S)
22858c2ecf20Sopenharmony_ci#define KEYMODE_G(x) (((x) >> KEYMODE_S) & KEYMODE_M)
22868c2ecf20Sopenharmony_ci
22878c2ecf20Sopenharmony_ci#define VFWREN_S    5
22888c2ecf20Sopenharmony_ci#define VFWREN_V(x) ((x) << VFWREN_S)
22898c2ecf20Sopenharmony_ci#define VFWREN_F    VFWREN_V(1U)
22908c2ecf20Sopenharmony_ci
22918c2ecf20Sopenharmony_ci#define KEYWREN_S    4
22928c2ecf20Sopenharmony_ci#define KEYWREN_V(x) ((x) << KEYWREN_S)
22938c2ecf20Sopenharmony_ci#define KEYWREN_F    KEYWREN_V(1U)
22948c2ecf20Sopenharmony_ci
22958c2ecf20Sopenharmony_ci#define KEYWRADDR_S    0
22968c2ecf20Sopenharmony_ci#define KEYWRADDR_M    0xfU
22978c2ecf20Sopenharmony_ci#define KEYWRADDR_V(x) ((x) << KEYWRADDR_S)
22988c2ecf20Sopenharmony_ci#define KEYWRADDR_G(x) (((x) >> KEYWRADDR_S) & KEYWRADDR_M)
22998c2ecf20Sopenharmony_ci
23008c2ecf20Sopenharmony_ci#define KEYWRADDRX_S    30
23018c2ecf20Sopenharmony_ci#define KEYWRADDRX_M    0x3U
23028c2ecf20Sopenharmony_ci#define KEYWRADDRX_V(x) ((x) << KEYWRADDRX_S)
23038c2ecf20Sopenharmony_ci#define KEYWRADDRX_G(x) (((x) >> KEYWRADDRX_S) & KEYWRADDRX_M)
23048c2ecf20Sopenharmony_ci
23058c2ecf20Sopenharmony_ci#define KEYEXTEND_S    26
23068c2ecf20Sopenharmony_ci#define KEYEXTEND_V(x) ((x) << KEYEXTEND_S)
23078c2ecf20Sopenharmony_ci#define KEYEXTEND_F    KEYEXTEND_V(1U)
23088c2ecf20Sopenharmony_ci
23098c2ecf20Sopenharmony_ci#define LKPIDXSIZE_S    24
23108c2ecf20Sopenharmony_ci#define LKPIDXSIZE_M    0x3U
23118c2ecf20Sopenharmony_ci#define LKPIDXSIZE_V(x) ((x) << LKPIDXSIZE_S)
23128c2ecf20Sopenharmony_ci#define LKPIDXSIZE_G(x) (((x) >> LKPIDXSIZE_S) & LKPIDXSIZE_M)
23138c2ecf20Sopenharmony_ci
23148c2ecf20Sopenharmony_ci#define TP_RSS_VFL_CONFIG_A 0x3a
23158c2ecf20Sopenharmony_ci#define TP_RSS_VFH_CONFIG_A 0x3b
23168c2ecf20Sopenharmony_ci
23178c2ecf20Sopenharmony_ci#define ENABLEUDPHASH_S    31
23188c2ecf20Sopenharmony_ci#define ENABLEUDPHASH_V(x) ((x) << ENABLEUDPHASH_S)
23198c2ecf20Sopenharmony_ci#define ENABLEUDPHASH_F    ENABLEUDPHASH_V(1U)
23208c2ecf20Sopenharmony_ci
23218c2ecf20Sopenharmony_ci#define VFUPEN_S    30
23228c2ecf20Sopenharmony_ci#define VFUPEN_V(x) ((x) << VFUPEN_S)
23238c2ecf20Sopenharmony_ci#define VFUPEN_F    VFUPEN_V(1U)
23248c2ecf20Sopenharmony_ci
23258c2ecf20Sopenharmony_ci#define VFVLNEX_S    28
23268c2ecf20Sopenharmony_ci#define VFVLNEX_V(x) ((x) << VFVLNEX_S)
23278c2ecf20Sopenharmony_ci#define VFVLNEX_F    VFVLNEX_V(1U)
23288c2ecf20Sopenharmony_ci
23298c2ecf20Sopenharmony_ci#define VFPRTEN_S    27
23308c2ecf20Sopenharmony_ci#define VFPRTEN_V(x) ((x) << VFPRTEN_S)
23318c2ecf20Sopenharmony_ci#define VFPRTEN_F    VFPRTEN_V(1U)
23328c2ecf20Sopenharmony_ci
23338c2ecf20Sopenharmony_ci#define VFCHNEN_S    26
23348c2ecf20Sopenharmony_ci#define VFCHNEN_V(x) ((x) << VFCHNEN_S)
23358c2ecf20Sopenharmony_ci#define VFCHNEN_F    VFCHNEN_V(1U)
23368c2ecf20Sopenharmony_ci
23378c2ecf20Sopenharmony_ci#define DEFAULTQUEUE_S    16
23388c2ecf20Sopenharmony_ci#define DEFAULTQUEUE_M    0x3ffU
23398c2ecf20Sopenharmony_ci#define DEFAULTQUEUE_G(x) (((x) >> DEFAULTQUEUE_S) & DEFAULTQUEUE_M)
23408c2ecf20Sopenharmony_ci
23418c2ecf20Sopenharmony_ci#define VFIP6TWOTUPEN_S    6
23428c2ecf20Sopenharmony_ci#define VFIP6TWOTUPEN_V(x) ((x) << VFIP6TWOTUPEN_S)
23438c2ecf20Sopenharmony_ci#define VFIP6TWOTUPEN_F    VFIP6TWOTUPEN_V(1U)
23448c2ecf20Sopenharmony_ci
23458c2ecf20Sopenharmony_ci#define VFIP4FOURTUPEN_S    5
23468c2ecf20Sopenharmony_ci#define VFIP4FOURTUPEN_V(x) ((x) << VFIP4FOURTUPEN_S)
23478c2ecf20Sopenharmony_ci#define VFIP4FOURTUPEN_F    VFIP4FOURTUPEN_V(1U)
23488c2ecf20Sopenharmony_ci
23498c2ecf20Sopenharmony_ci#define VFIP4TWOTUPEN_S    4
23508c2ecf20Sopenharmony_ci#define VFIP4TWOTUPEN_V(x) ((x) << VFIP4TWOTUPEN_S)
23518c2ecf20Sopenharmony_ci#define VFIP4TWOTUPEN_F    VFIP4TWOTUPEN_V(1U)
23528c2ecf20Sopenharmony_ci
23538c2ecf20Sopenharmony_ci#define KEYINDEX_S    0
23548c2ecf20Sopenharmony_ci#define KEYINDEX_M    0xfU
23558c2ecf20Sopenharmony_ci#define KEYINDEX_G(x) (((x) >> KEYINDEX_S) & KEYINDEX_M)
23568c2ecf20Sopenharmony_ci
23578c2ecf20Sopenharmony_ci#define MAPENABLE_S    31
23588c2ecf20Sopenharmony_ci#define MAPENABLE_V(x) ((x) << MAPENABLE_S)
23598c2ecf20Sopenharmony_ci#define MAPENABLE_F    MAPENABLE_V(1U)
23608c2ecf20Sopenharmony_ci
23618c2ecf20Sopenharmony_ci#define CHNENABLE_S    30
23628c2ecf20Sopenharmony_ci#define CHNENABLE_V(x) ((x) << CHNENABLE_S)
23638c2ecf20Sopenharmony_ci#define CHNENABLE_F    CHNENABLE_V(1U)
23648c2ecf20Sopenharmony_ci
23658c2ecf20Sopenharmony_ci#define LE_DB_DBGI_CONFIG_A 0x19cf0
23668c2ecf20Sopenharmony_ci
23678c2ecf20Sopenharmony_ci#define DBGICMDBUSY_S    3
23688c2ecf20Sopenharmony_ci#define DBGICMDBUSY_V(x) ((x) << DBGICMDBUSY_S)
23698c2ecf20Sopenharmony_ci#define DBGICMDBUSY_F    DBGICMDBUSY_V(1U)
23708c2ecf20Sopenharmony_ci
23718c2ecf20Sopenharmony_ci#define DBGICMDSTRT_S    2
23728c2ecf20Sopenharmony_ci#define DBGICMDSTRT_V(x) ((x) << DBGICMDSTRT_S)
23738c2ecf20Sopenharmony_ci#define DBGICMDSTRT_F    DBGICMDSTRT_V(1U)
23748c2ecf20Sopenharmony_ci
23758c2ecf20Sopenharmony_ci#define DBGICMDMODE_S    0
23768c2ecf20Sopenharmony_ci#define DBGICMDMODE_M    0x3U
23778c2ecf20Sopenharmony_ci#define DBGICMDMODE_V(x) ((x) << DBGICMDMODE_S)
23788c2ecf20Sopenharmony_ci
23798c2ecf20Sopenharmony_ci#define LE_DB_DBGI_REQ_TCAM_CMD_A 0x19cf4
23808c2ecf20Sopenharmony_ci
23818c2ecf20Sopenharmony_ci#define DBGICMD_S    20
23828c2ecf20Sopenharmony_ci#define DBGICMD_M    0xfU
23838c2ecf20Sopenharmony_ci#define DBGICMD_V(x) ((x) << DBGICMD_S)
23848c2ecf20Sopenharmony_ci
23858c2ecf20Sopenharmony_ci#define DBGITID_S    0
23868c2ecf20Sopenharmony_ci#define DBGITID_M    0xfffffU
23878c2ecf20Sopenharmony_ci#define DBGITID_V(x) ((x) << DBGITID_S)
23888c2ecf20Sopenharmony_ci
23898c2ecf20Sopenharmony_ci#define LE_DB_DBGI_REQ_DATA_A 0x19d00
23908c2ecf20Sopenharmony_ci#define LE_DB_DBGI_RSP_STATUS_A 0x19d94
23918c2ecf20Sopenharmony_ci
23928c2ecf20Sopenharmony_ci#define LE_DB_DBGI_RSP_DATA_A 0x19da0
23938c2ecf20Sopenharmony_ci
23948c2ecf20Sopenharmony_ci#define PRTENABLE_S    29
23958c2ecf20Sopenharmony_ci#define PRTENABLE_V(x) ((x) << PRTENABLE_S)
23968c2ecf20Sopenharmony_ci#define PRTENABLE_F    PRTENABLE_V(1U)
23978c2ecf20Sopenharmony_ci
23988c2ecf20Sopenharmony_ci#define UDPFOURTUPEN_S    28
23998c2ecf20Sopenharmony_ci#define UDPFOURTUPEN_V(x) ((x) << UDPFOURTUPEN_S)
24008c2ecf20Sopenharmony_ci#define UDPFOURTUPEN_F    UDPFOURTUPEN_V(1U)
24018c2ecf20Sopenharmony_ci
24028c2ecf20Sopenharmony_ci#define IP6FOURTUPEN_S    27
24038c2ecf20Sopenharmony_ci#define IP6FOURTUPEN_V(x) ((x) << IP6FOURTUPEN_S)
24048c2ecf20Sopenharmony_ci#define IP6FOURTUPEN_F    IP6FOURTUPEN_V(1U)
24058c2ecf20Sopenharmony_ci
24068c2ecf20Sopenharmony_ci#define IP6TWOTUPEN_S    26
24078c2ecf20Sopenharmony_ci#define IP6TWOTUPEN_V(x) ((x) << IP6TWOTUPEN_S)
24088c2ecf20Sopenharmony_ci#define IP6TWOTUPEN_F    IP6TWOTUPEN_V(1U)
24098c2ecf20Sopenharmony_ci
24108c2ecf20Sopenharmony_ci#define IP4FOURTUPEN_S    25
24118c2ecf20Sopenharmony_ci#define IP4FOURTUPEN_V(x) ((x) << IP4FOURTUPEN_S)
24128c2ecf20Sopenharmony_ci#define IP4FOURTUPEN_F    IP4FOURTUPEN_V(1U)
24138c2ecf20Sopenharmony_ci
24148c2ecf20Sopenharmony_ci#define IP4TWOTUPEN_S    24
24158c2ecf20Sopenharmony_ci#define IP4TWOTUPEN_V(x) ((x) << IP4TWOTUPEN_S)
24168c2ecf20Sopenharmony_ci#define IP4TWOTUPEN_F    IP4TWOTUPEN_V(1U)
24178c2ecf20Sopenharmony_ci
24188c2ecf20Sopenharmony_ci#define IVFWIDTH_S    20
24198c2ecf20Sopenharmony_ci#define IVFWIDTH_M    0xfU
24208c2ecf20Sopenharmony_ci#define IVFWIDTH_V(x) ((x) << IVFWIDTH_S)
24218c2ecf20Sopenharmony_ci#define IVFWIDTH_G(x) (((x) >> IVFWIDTH_S) & IVFWIDTH_M)
24228c2ecf20Sopenharmony_ci
24238c2ecf20Sopenharmony_ci#define CH1DEFAULTQUEUE_S    10
24248c2ecf20Sopenharmony_ci#define CH1DEFAULTQUEUE_M    0x3ffU
24258c2ecf20Sopenharmony_ci#define CH1DEFAULTQUEUE_V(x) ((x) << CH1DEFAULTQUEUE_S)
24268c2ecf20Sopenharmony_ci#define CH1DEFAULTQUEUE_G(x) (((x) >> CH1DEFAULTQUEUE_S) & CH1DEFAULTQUEUE_M)
24278c2ecf20Sopenharmony_ci
24288c2ecf20Sopenharmony_ci#define CH0DEFAULTQUEUE_S    0
24298c2ecf20Sopenharmony_ci#define CH0DEFAULTQUEUE_M    0x3ffU
24308c2ecf20Sopenharmony_ci#define CH0DEFAULTQUEUE_V(x) ((x) << CH0DEFAULTQUEUE_S)
24318c2ecf20Sopenharmony_ci#define CH0DEFAULTQUEUE_G(x) (((x) >> CH0DEFAULTQUEUE_S) & CH0DEFAULTQUEUE_M)
24328c2ecf20Sopenharmony_ci
24338c2ecf20Sopenharmony_ci#define VFLKPIDX_S    8
24348c2ecf20Sopenharmony_ci#define VFLKPIDX_M    0xffU
24358c2ecf20Sopenharmony_ci#define VFLKPIDX_G(x) (((x) >> VFLKPIDX_S) & VFLKPIDX_M)
24368c2ecf20Sopenharmony_ci
24378c2ecf20Sopenharmony_ci#define T6_VFWRADDR_S    8
24388c2ecf20Sopenharmony_ci#define T6_VFWRADDR_M    0xffU
24398c2ecf20Sopenharmony_ci#define T6_VFWRADDR_V(x) ((x) << T6_VFWRADDR_S)
24408c2ecf20Sopenharmony_ci#define T6_VFWRADDR_G(x) (((x) >> T6_VFWRADDR_S) & T6_VFWRADDR_M)
24418c2ecf20Sopenharmony_ci
24428c2ecf20Sopenharmony_ci#define TP_RSS_CONFIG_CNG_A 0x7e04
24438c2ecf20Sopenharmony_ci#define TP_RSS_SECRET_KEY0_A 0x40
24448c2ecf20Sopenharmony_ci#define TP_RSS_PF0_CONFIG_A 0x30
24458c2ecf20Sopenharmony_ci#define TP_RSS_PF_MAP_A 0x38
24468c2ecf20Sopenharmony_ci#define TP_RSS_PF_MSK_A 0x39
24478c2ecf20Sopenharmony_ci
24488c2ecf20Sopenharmony_ci#define PF1LKPIDX_S    3
24498c2ecf20Sopenharmony_ci
24508c2ecf20Sopenharmony_ci#define PF0LKPIDX_M    0x7U
24518c2ecf20Sopenharmony_ci
24528c2ecf20Sopenharmony_ci#define PF1MSKSIZE_S    4
24538c2ecf20Sopenharmony_ci#define PF1MSKSIZE_M    0xfU
24548c2ecf20Sopenharmony_ci
24558c2ecf20Sopenharmony_ci#define CHNCOUNT3_S    31
24568c2ecf20Sopenharmony_ci#define CHNCOUNT3_V(x) ((x) << CHNCOUNT3_S)
24578c2ecf20Sopenharmony_ci#define CHNCOUNT3_F    CHNCOUNT3_V(1U)
24588c2ecf20Sopenharmony_ci
24598c2ecf20Sopenharmony_ci#define CHNCOUNT2_S    30
24608c2ecf20Sopenharmony_ci#define CHNCOUNT2_V(x) ((x) << CHNCOUNT2_S)
24618c2ecf20Sopenharmony_ci#define CHNCOUNT2_F    CHNCOUNT2_V(1U)
24628c2ecf20Sopenharmony_ci
24638c2ecf20Sopenharmony_ci#define CHNCOUNT1_S    29
24648c2ecf20Sopenharmony_ci#define CHNCOUNT1_V(x) ((x) << CHNCOUNT1_S)
24658c2ecf20Sopenharmony_ci#define CHNCOUNT1_F    CHNCOUNT1_V(1U)
24668c2ecf20Sopenharmony_ci
24678c2ecf20Sopenharmony_ci#define CHNCOUNT0_S    28
24688c2ecf20Sopenharmony_ci#define CHNCOUNT0_V(x) ((x) << CHNCOUNT0_S)
24698c2ecf20Sopenharmony_ci#define CHNCOUNT0_F    CHNCOUNT0_V(1U)
24708c2ecf20Sopenharmony_ci
24718c2ecf20Sopenharmony_ci#define CHNUNDFLOW3_S    27
24728c2ecf20Sopenharmony_ci#define CHNUNDFLOW3_V(x) ((x) << CHNUNDFLOW3_S)
24738c2ecf20Sopenharmony_ci#define CHNUNDFLOW3_F    CHNUNDFLOW3_V(1U)
24748c2ecf20Sopenharmony_ci
24758c2ecf20Sopenharmony_ci#define CHNUNDFLOW2_S    26
24768c2ecf20Sopenharmony_ci#define CHNUNDFLOW2_V(x) ((x) << CHNUNDFLOW2_S)
24778c2ecf20Sopenharmony_ci#define CHNUNDFLOW2_F    CHNUNDFLOW2_V(1U)
24788c2ecf20Sopenharmony_ci
24798c2ecf20Sopenharmony_ci#define CHNUNDFLOW1_S    25
24808c2ecf20Sopenharmony_ci#define CHNUNDFLOW1_V(x) ((x) << CHNUNDFLOW1_S)
24818c2ecf20Sopenharmony_ci#define CHNUNDFLOW1_F    CHNUNDFLOW1_V(1U)
24828c2ecf20Sopenharmony_ci
24838c2ecf20Sopenharmony_ci#define CHNUNDFLOW0_S    24
24848c2ecf20Sopenharmony_ci#define CHNUNDFLOW0_V(x) ((x) << CHNUNDFLOW0_S)
24858c2ecf20Sopenharmony_ci#define CHNUNDFLOW0_F    CHNUNDFLOW0_V(1U)
24868c2ecf20Sopenharmony_ci
24878c2ecf20Sopenharmony_ci#define RSTCHN3_S    19
24888c2ecf20Sopenharmony_ci#define RSTCHN3_V(x) ((x) << RSTCHN3_S)
24898c2ecf20Sopenharmony_ci#define RSTCHN3_F    RSTCHN3_V(1U)
24908c2ecf20Sopenharmony_ci
24918c2ecf20Sopenharmony_ci#define RSTCHN2_S    18
24928c2ecf20Sopenharmony_ci#define RSTCHN2_V(x) ((x) << RSTCHN2_S)
24938c2ecf20Sopenharmony_ci#define RSTCHN2_F    RSTCHN2_V(1U)
24948c2ecf20Sopenharmony_ci
24958c2ecf20Sopenharmony_ci#define RSTCHN1_S    17
24968c2ecf20Sopenharmony_ci#define RSTCHN1_V(x) ((x) << RSTCHN1_S)
24978c2ecf20Sopenharmony_ci#define RSTCHN1_F    RSTCHN1_V(1U)
24988c2ecf20Sopenharmony_ci
24998c2ecf20Sopenharmony_ci#define RSTCHN0_S    16
25008c2ecf20Sopenharmony_ci#define RSTCHN0_V(x) ((x) << RSTCHN0_S)
25018c2ecf20Sopenharmony_ci#define RSTCHN0_F    RSTCHN0_V(1U)
25028c2ecf20Sopenharmony_ci
25038c2ecf20Sopenharmony_ci#define UPDVLD_S    15
25048c2ecf20Sopenharmony_ci#define UPDVLD_V(x) ((x) << UPDVLD_S)
25058c2ecf20Sopenharmony_ci#define UPDVLD_F    UPDVLD_V(1U)
25068c2ecf20Sopenharmony_ci
25078c2ecf20Sopenharmony_ci#define XOFF_S    14
25088c2ecf20Sopenharmony_ci#define XOFF_V(x) ((x) << XOFF_S)
25098c2ecf20Sopenharmony_ci#define XOFF_F    XOFF_V(1U)
25108c2ecf20Sopenharmony_ci
25118c2ecf20Sopenharmony_ci#define UPDCHN3_S    13
25128c2ecf20Sopenharmony_ci#define UPDCHN3_V(x) ((x) << UPDCHN3_S)
25138c2ecf20Sopenharmony_ci#define UPDCHN3_F    UPDCHN3_V(1U)
25148c2ecf20Sopenharmony_ci
25158c2ecf20Sopenharmony_ci#define UPDCHN2_S    12
25168c2ecf20Sopenharmony_ci#define UPDCHN2_V(x) ((x) << UPDCHN2_S)
25178c2ecf20Sopenharmony_ci#define UPDCHN2_F    UPDCHN2_V(1U)
25188c2ecf20Sopenharmony_ci
25198c2ecf20Sopenharmony_ci#define UPDCHN1_S    11
25208c2ecf20Sopenharmony_ci#define UPDCHN1_V(x) ((x) << UPDCHN1_S)
25218c2ecf20Sopenharmony_ci#define UPDCHN1_F    UPDCHN1_V(1U)
25228c2ecf20Sopenharmony_ci
25238c2ecf20Sopenharmony_ci#define UPDCHN0_S    10
25248c2ecf20Sopenharmony_ci#define UPDCHN0_V(x) ((x) << UPDCHN0_S)
25258c2ecf20Sopenharmony_ci#define UPDCHN0_F    UPDCHN0_V(1U)
25268c2ecf20Sopenharmony_ci
25278c2ecf20Sopenharmony_ci#define QUEUE_S    0
25288c2ecf20Sopenharmony_ci#define QUEUE_M    0x3ffU
25298c2ecf20Sopenharmony_ci#define QUEUE_V(x) ((x) << QUEUE_S)
25308c2ecf20Sopenharmony_ci#define QUEUE_G(x) (((x) >> QUEUE_S) & QUEUE_M)
25318c2ecf20Sopenharmony_ci
25328c2ecf20Sopenharmony_ci#define MPS_TRC_INT_CAUSE_A	0x985c
25338c2ecf20Sopenharmony_ci
25348c2ecf20Sopenharmony_ci#define MISCPERR_S    8
25358c2ecf20Sopenharmony_ci#define MISCPERR_V(x) ((x) << MISCPERR_S)
25368c2ecf20Sopenharmony_ci#define MISCPERR_F    MISCPERR_V(1U)
25378c2ecf20Sopenharmony_ci
25388c2ecf20Sopenharmony_ci#define PKTFIFO_S    4
25398c2ecf20Sopenharmony_ci#define PKTFIFO_M    0xfU
25408c2ecf20Sopenharmony_ci#define PKTFIFO_V(x) ((x) << PKTFIFO_S)
25418c2ecf20Sopenharmony_ci
25428c2ecf20Sopenharmony_ci#define FILTMEM_S    0
25438c2ecf20Sopenharmony_ci#define FILTMEM_M    0xfU
25448c2ecf20Sopenharmony_ci#define FILTMEM_V(x) ((x) << FILTMEM_S)
25458c2ecf20Sopenharmony_ci
25468c2ecf20Sopenharmony_ci#define MPS_CLS_INT_CAUSE_A 0xd028
25478c2ecf20Sopenharmony_ci
25488c2ecf20Sopenharmony_ci#define HASHSRAM_S    2
25498c2ecf20Sopenharmony_ci#define HASHSRAM_V(x) ((x) << HASHSRAM_S)
25508c2ecf20Sopenharmony_ci#define HASHSRAM_F    HASHSRAM_V(1U)
25518c2ecf20Sopenharmony_ci
25528c2ecf20Sopenharmony_ci#define MATCHTCAM_S    1
25538c2ecf20Sopenharmony_ci#define MATCHTCAM_V(x) ((x) << MATCHTCAM_S)
25548c2ecf20Sopenharmony_ci#define MATCHTCAM_F    MATCHTCAM_V(1U)
25558c2ecf20Sopenharmony_ci
25568c2ecf20Sopenharmony_ci#define MATCHSRAM_S    0
25578c2ecf20Sopenharmony_ci#define MATCHSRAM_V(x) ((x) << MATCHSRAM_S)
25588c2ecf20Sopenharmony_ci#define MATCHSRAM_F    MATCHSRAM_V(1U)
25598c2ecf20Sopenharmony_ci
25608c2ecf20Sopenharmony_ci#define MPS_RX_PG_RSV0_A 0x11010
25618c2ecf20Sopenharmony_ci#define MPS_RX_PG_RSV4_A 0x11020
25628c2ecf20Sopenharmony_ci#define MPS_RX_PERR_INT_CAUSE_A 0x11074
25638c2ecf20Sopenharmony_ci#define MPS_RX_MAC_BG_PG_CNT0_A 0x11208
25648c2ecf20Sopenharmony_ci#define MPS_RX_LPBK_BG_PG_CNT0_A 0x11218
25658c2ecf20Sopenharmony_ci
25668c2ecf20Sopenharmony_ci#define MPS_RX_VXLAN_TYPE_A 0x11234
25678c2ecf20Sopenharmony_ci
25688c2ecf20Sopenharmony_ci#define VXLAN_EN_S    16
25698c2ecf20Sopenharmony_ci#define VXLAN_EN_V(x) ((x) << VXLAN_EN_S)
25708c2ecf20Sopenharmony_ci#define VXLAN_EN_F    VXLAN_EN_V(1U)
25718c2ecf20Sopenharmony_ci
25728c2ecf20Sopenharmony_ci#define VXLAN_S    0
25738c2ecf20Sopenharmony_ci#define VXLAN_M    0xffffU
25748c2ecf20Sopenharmony_ci#define VXLAN_V(x) ((x) << VXLAN_S)
25758c2ecf20Sopenharmony_ci#define VXLAN_G(x) (((x) >> VXLAN_S) & VXLAN_M)
25768c2ecf20Sopenharmony_ci
25778c2ecf20Sopenharmony_ci#define MPS_RX_GENEVE_TYPE_A 0x11238
25788c2ecf20Sopenharmony_ci
25798c2ecf20Sopenharmony_ci#define GENEVE_EN_S    16
25808c2ecf20Sopenharmony_ci#define GENEVE_EN_V(x) ((x) << GENEVE_EN_S)
25818c2ecf20Sopenharmony_ci#define GENEVE_EN_F    GENEVE_EN_V(1U)
25828c2ecf20Sopenharmony_ci
25838c2ecf20Sopenharmony_ci#define GENEVE_S    0
25848c2ecf20Sopenharmony_ci#define GENEVE_M    0xffffU
25858c2ecf20Sopenharmony_ci#define GENEVE_V(x) ((x) << GENEVE_S)
25868c2ecf20Sopenharmony_ci#define GENEVE_G(x) (((x) >> GENEVE_S) & GENEVE_M)
25878c2ecf20Sopenharmony_ci
25888c2ecf20Sopenharmony_ci#define MPS_CLS_TCAM_Y_L_A 0xf000
25898c2ecf20Sopenharmony_ci#define MPS_CLS_TCAM_DATA0_A 0xf000
25908c2ecf20Sopenharmony_ci#define MPS_CLS_TCAM_DATA1_A 0xf004
25918c2ecf20Sopenharmony_ci
25928c2ecf20Sopenharmony_ci#define CTLREQID_S    30
25938c2ecf20Sopenharmony_ci#define CTLREQID_V(x) ((x) << CTLREQID_S)
25948c2ecf20Sopenharmony_ci
25958c2ecf20Sopenharmony_ci#define MPS_VF_RPLCT_MAP0_A 0x1111c
25968c2ecf20Sopenharmony_ci#define MPS_VF_RPLCT_MAP1_A 0x11120
25978c2ecf20Sopenharmony_ci#define MPS_VF_RPLCT_MAP2_A 0x11124
25988c2ecf20Sopenharmony_ci#define MPS_VF_RPLCT_MAP3_A 0x11128
25998c2ecf20Sopenharmony_ci#define MPS_VF_RPLCT_MAP4_A 0x11300
26008c2ecf20Sopenharmony_ci#define MPS_VF_RPLCT_MAP5_A 0x11304
26018c2ecf20Sopenharmony_ci#define MPS_VF_RPLCT_MAP6_A 0x11308
26028c2ecf20Sopenharmony_ci#define MPS_VF_RPLCT_MAP7_A 0x1130c
26038c2ecf20Sopenharmony_ci
26048c2ecf20Sopenharmony_ci#define VIDL_S    16
26058c2ecf20Sopenharmony_ci#define VIDL_M    0xffffU
26068c2ecf20Sopenharmony_ci#define VIDL_G(x) (((x) >> VIDL_S) & VIDL_M)
26078c2ecf20Sopenharmony_ci
26088c2ecf20Sopenharmony_ci#define DATALKPTYPE_S    10
26098c2ecf20Sopenharmony_ci#define DATALKPTYPE_M    0x3U
26108c2ecf20Sopenharmony_ci#define DATALKPTYPE_G(x) (((x) >> DATALKPTYPE_S) & DATALKPTYPE_M)
26118c2ecf20Sopenharmony_ci
26128c2ecf20Sopenharmony_ci#define DATAPORTNUM_S    12
26138c2ecf20Sopenharmony_ci#define DATAPORTNUM_M    0xfU
26148c2ecf20Sopenharmony_ci#define DATAPORTNUM_V(x) ((x) << DATAPORTNUM_S)
26158c2ecf20Sopenharmony_ci#define DATAPORTNUM_G(x) (((x) >> DATAPORTNUM_S) & DATAPORTNUM_M)
26168c2ecf20Sopenharmony_ci
26178c2ecf20Sopenharmony_ci#define DATALKPTYPE_S    10
26188c2ecf20Sopenharmony_ci#define DATALKPTYPE_M    0x3U
26198c2ecf20Sopenharmony_ci#define DATALKPTYPE_V(x) ((x) << DATALKPTYPE_S)
26208c2ecf20Sopenharmony_ci#define DATALKPTYPE_G(x) (((x) >> DATALKPTYPE_S) & DATALKPTYPE_M)
26218c2ecf20Sopenharmony_ci
26228c2ecf20Sopenharmony_ci#define DATADIPHIT_S    8
26238c2ecf20Sopenharmony_ci#define DATADIPHIT_V(x) ((x) << DATADIPHIT_S)
26248c2ecf20Sopenharmony_ci#define DATADIPHIT_F    DATADIPHIT_V(1U)
26258c2ecf20Sopenharmony_ci
26268c2ecf20Sopenharmony_ci#define DATAVIDH2_S    7
26278c2ecf20Sopenharmony_ci#define DATAVIDH2_V(x) ((x) << DATAVIDH2_S)
26288c2ecf20Sopenharmony_ci#define DATAVIDH2_F    DATAVIDH2_V(1U)
26298c2ecf20Sopenharmony_ci
26308c2ecf20Sopenharmony_ci#define DATAVIDH1_S    0
26318c2ecf20Sopenharmony_ci#define DATAVIDH1_M    0x7fU
26328c2ecf20Sopenharmony_ci#define DATAVIDH1_G(x) (((x) >> DATAVIDH1_S) & DATAVIDH1_M)
26338c2ecf20Sopenharmony_ci
26348c2ecf20Sopenharmony_ci#define MPS_CLS_TCAM_RDATA0_REQ_ID1_A 0xf020
26358c2ecf20Sopenharmony_ci#define MPS_CLS_TCAM_RDATA1_REQ_ID1_A 0xf024
26368c2ecf20Sopenharmony_ci#define MPS_CLS_TCAM_RDATA2_REQ_ID1_A 0xf028
26378c2ecf20Sopenharmony_ci
26388c2ecf20Sopenharmony_ci#define USED_S    16
26398c2ecf20Sopenharmony_ci#define USED_M    0x7ffU
26408c2ecf20Sopenharmony_ci#define USED_G(x) (((x) >> USED_S) & USED_M)
26418c2ecf20Sopenharmony_ci
26428c2ecf20Sopenharmony_ci#define ALLOC_S    0
26438c2ecf20Sopenharmony_ci#define ALLOC_M    0x7ffU
26448c2ecf20Sopenharmony_ci#define ALLOC_G(x) (((x) >> ALLOC_S) & ALLOC_M)
26458c2ecf20Sopenharmony_ci
26468c2ecf20Sopenharmony_ci#define T5_USED_S    16
26478c2ecf20Sopenharmony_ci#define T5_USED_M    0xfffU
26488c2ecf20Sopenharmony_ci#define T5_USED_G(x) (((x) >> T5_USED_S) & T5_USED_M)
26498c2ecf20Sopenharmony_ci
26508c2ecf20Sopenharmony_ci#define T5_ALLOC_S    0
26518c2ecf20Sopenharmony_ci#define T5_ALLOC_M    0xfffU
26528c2ecf20Sopenharmony_ci#define T5_ALLOC_G(x) (((x) >> T5_ALLOC_S) & T5_ALLOC_M)
26538c2ecf20Sopenharmony_ci
26548c2ecf20Sopenharmony_ci#define DMACH_S    0
26558c2ecf20Sopenharmony_ci#define DMACH_M    0xffffU
26568c2ecf20Sopenharmony_ci#define DMACH_G(x) (((x) >> DMACH_S) & DMACH_M)
26578c2ecf20Sopenharmony_ci
26588c2ecf20Sopenharmony_ci#define MPS_CLS_TCAM_X_L_A 0xf008
26598c2ecf20Sopenharmony_ci#define MPS_CLS_TCAM_DATA2_CTL_A 0xf008
26608c2ecf20Sopenharmony_ci
26618c2ecf20Sopenharmony_ci#define CTLCMDTYPE_S    31
26628c2ecf20Sopenharmony_ci#define CTLCMDTYPE_V(x) ((x) << CTLCMDTYPE_S)
26638c2ecf20Sopenharmony_ci#define CTLCMDTYPE_F    CTLCMDTYPE_V(1U)
26648c2ecf20Sopenharmony_ci
26658c2ecf20Sopenharmony_ci#define CTLTCAMSEL_S    25
26668c2ecf20Sopenharmony_ci#define CTLTCAMSEL_V(x) ((x) << CTLTCAMSEL_S)
26678c2ecf20Sopenharmony_ci
26688c2ecf20Sopenharmony_ci#define CTLTCAMINDEX_S    17
26698c2ecf20Sopenharmony_ci#define CTLTCAMINDEX_V(x) ((x) << CTLTCAMINDEX_S)
26708c2ecf20Sopenharmony_ci
26718c2ecf20Sopenharmony_ci#define CTLXYBITSEL_S    16
26728c2ecf20Sopenharmony_ci#define CTLXYBITSEL_V(x) ((x) << CTLXYBITSEL_S)
26738c2ecf20Sopenharmony_ci
26748c2ecf20Sopenharmony_ci#define MPS_CLS_TCAM_Y_L(idx) (MPS_CLS_TCAM_Y_L_A + (idx) * 16)
26758c2ecf20Sopenharmony_ci#define NUM_MPS_CLS_TCAM_Y_L_INSTANCES 512
26768c2ecf20Sopenharmony_ci
26778c2ecf20Sopenharmony_ci#define MPS_CLS_TCAM_X_L(idx) (MPS_CLS_TCAM_X_L_A + (idx) * 16)
26788c2ecf20Sopenharmony_ci#define NUM_MPS_CLS_TCAM_X_L_INSTANCES 512
26798c2ecf20Sopenharmony_ci
26808c2ecf20Sopenharmony_ci#define MPS_CLS_SRAM_L_A 0xe000
26818c2ecf20Sopenharmony_ci
26828c2ecf20Sopenharmony_ci#define T6_MULTILISTEN0_S    26
26838c2ecf20Sopenharmony_ci
26848c2ecf20Sopenharmony_ci#define T6_SRAM_PRIO3_S    23
26858c2ecf20Sopenharmony_ci#define T6_SRAM_PRIO3_M    0x7U
26868c2ecf20Sopenharmony_ci#define T6_SRAM_PRIO3_G(x) (((x) >> T6_SRAM_PRIO3_S) & T6_SRAM_PRIO3_M)
26878c2ecf20Sopenharmony_ci
26888c2ecf20Sopenharmony_ci#define T6_SRAM_PRIO2_S    20
26898c2ecf20Sopenharmony_ci#define T6_SRAM_PRIO2_M    0x7U
26908c2ecf20Sopenharmony_ci#define T6_SRAM_PRIO2_G(x) (((x) >> T6_SRAM_PRIO2_S) & T6_SRAM_PRIO2_M)
26918c2ecf20Sopenharmony_ci
26928c2ecf20Sopenharmony_ci#define T6_SRAM_PRIO1_S    17
26938c2ecf20Sopenharmony_ci#define T6_SRAM_PRIO1_M    0x7U
26948c2ecf20Sopenharmony_ci#define T6_SRAM_PRIO1_G(x) (((x) >> T6_SRAM_PRIO1_S) & T6_SRAM_PRIO1_M)
26958c2ecf20Sopenharmony_ci
26968c2ecf20Sopenharmony_ci#define T6_SRAM_PRIO0_S    14
26978c2ecf20Sopenharmony_ci#define T6_SRAM_PRIO0_M    0x7U
26988c2ecf20Sopenharmony_ci#define T6_SRAM_PRIO0_G(x) (((x) >> T6_SRAM_PRIO0_S) & T6_SRAM_PRIO0_M)
26998c2ecf20Sopenharmony_ci
27008c2ecf20Sopenharmony_ci#define T6_SRAM_VLD_S    13
27018c2ecf20Sopenharmony_ci#define T6_SRAM_VLD_V(x) ((x) << T6_SRAM_VLD_S)
27028c2ecf20Sopenharmony_ci#define T6_SRAM_VLD_F    T6_SRAM_VLD_V(1U)
27038c2ecf20Sopenharmony_ci
27048c2ecf20Sopenharmony_ci#define T6_REPLICATE_S    12
27058c2ecf20Sopenharmony_ci#define T6_REPLICATE_V(x) ((x) << T6_REPLICATE_S)
27068c2ecf20Sopenharmony_ci#define T6_REPLICATE_F    T6_REPLICATE_V(1U)
27078c2ecf20Sopenharmony_ci
27088c2ecf20Sopenharmony_ci#define T6_PF_S    9
27098c2ecf20Sopenharmony_ci#define T6_PF_M    0x7U
27108c2ecf20Sopenharmony_ci#define T6_PF_G(x) (((x) >> T6_PF_S) & T6_PF_M)
27118c2ecf20Sopenharmony_ci
27128c2ecf20Sopenharmony_ci#define T6_VF_VALID_S    8
27138c2ecf20Sopenharmony_ci#define T6_VF_VALID_V(x) ((x) << T6_VF_VALID_S)
27148c2ecf20Sopenharmony_ci#define T6_VF_VALID_F    T6_VF_VALID_V(1U)
27158c2ecf20Sopenharmony_ci
27168c2ecf20Sopenharmony_ci#define T6_VF_S    0
27178c2ecf20Sopenharmony_ci#define T6_VF_M    0xffU
27188c2ecf20Sopenharmony_ci#define T6_VF_G(x) (((x) >> T6_VF_S) & T6_VF_M)
27198c2ecf20Sopenharmony_ci
27208c2ecf20Sopenharmony_ci#define MPS_CLS_SRAM_H_A 0xe004
27218c2ecf20Sopenharmony_ci
27228c2ecf20Sopenharmony_ci#define MPS_CLS_SRAM_L(idx) (MPS_CLS_SRAM_L_A + (idx) * 8)
27238c2ecf20Sopenharmony_ci#define NUM_MPS_CLS_SRAM_L_INSTANCES 336
27248c2ecf20Sopenharmony_ci
27258c2ecf20Sopenharmony_ci#define MPS_CLS_SRAM_H(idx) (MPS_CLS_SRAM_H_A + (idx) * 8)
27268c2ecf20Sopenharmony_ci#define NUM_MPS_CLS_SRAM_H_INSTANCES 336
27278c2ecf20Sopenharmony_ci
27288c2ecf20Sopenharmony_ci#define MULTILISTEN0_S    25
27298c2ecf20Sopenharmony_ci
27308c2ecf20Sopenharmony_ci#define REPLICATE_S    11
27318c2ecf20Sopenharmony_ci#define REPLICATE_V(x) ((x) << REPLICATE_S)
27328c2ecf20Sopenharmony_ci#define REPLICATE_F    REPLICATE_V(1U)
27338c2ecf20Sopenharmony_ci
27348c2ecf20Sopenharmony_ci#define PF_S    8
27358c2ecf20Sopenharmony_ci#define PF_M    0x7U
27368c2ecf20Sopenharmony_ci#define PF_G(x) (((x) >> PF_S) & PF_M)
27378c2ecf20Sopenharmony_ci
27388c2ecf20Sopenharmony_ci#define VF_VALID_S    7
27398c2ecf20Sopenharmony_ci#define VF_VALID_V(x) ((x) << VF_VALID_S)
27408c2ecf20Sopenharmony_ci#define VF_VALID_F    VF_VALID_V(1U)
27418c2ecf20Sopenharmony_ci
27428c2ecf20Sopenharmony_ci#define VF_S    0
27438c2ecf20Sopenharmony_ci#define VF_M    0x7fU
27448c2ecf20Sopenharmony_ci#define VF_G(x) (((x) >> VF_S) & VF_M)
27458c2ecf20Sopenharmony_ci
27468c2ecf20Sopenharmony_ci#define SRAM_PRIO3_S    22
27478c2ecf20Sopenharmony_ci#define SRAM_PRIO3_M    0x7U
27488c2ecf20Sopenharmony_ci#define SRAM_PRIO3_G(x) (((x) >> SRAM_PRIO3_S) & SRAM_PRIO3_M)
27498c2ecf20Sopenharmony_ci
27508c2ecf20Sopenharmony_ci#define SRAM_PRIO2_S    19
27518c2ecf20Sopenharmony_ci#define SRAM_PRIO2_M    0x7U
27528c2ecf20Sopenharmony_ci#define SRAM_PRIO2_G(x) (((x) >> SRAM_PRIO2_S) & SRAM_PRIO2_M)
27538c2ecf20Sopenharmony_ci
27548c2ecf20Sopenharmony_ci#define SRAM_PRIO1_S    16
27558c2ecf20Sopenharmony_ci#define SRAM_PRIO1_M    0x7U
27568c2ecf20Sopenharmony_ci#define SRAM_PRIO1_G(x) (((x) >> SRAM_PRIO1_S) & SRAM_PRIO1_M)
27578c2ecf20Sopenharmony_ci
27588c2ecf20Sopenharmony_ci#define SRAM_PRIO0_S    13
27598c2ecf20Sopenharmony_ci#define SRAM_PRIO0_M    0x7U
27608c2ecf20Sopenharmony_ci#define SRAM_PRIO0_G(x) (((x) >> SRAM_PRIO0_S) & SRAM_PRIO0_M)
27618c2ecf20Sopenharmony_ci
27628c2ecf20Sopenharmony_ci#define SRAM_VLD_S    12
27638c2ecf20Sopenharmony_ci#define SRAM_VLD_V(x) ((x) << SRAM_VLD_S)
27648c2ecf20Sopenharmony_ci#define SRAM_VLD_F    SRAM_VLD_V(1U)
27658c2ecf20Sopenharmony_ci
27668c2ecf20Sopenharmony_ci#define PORTMAP_S    0
27678c2ecf20Sopenharmony_ci#define PORTMAP_M    0xfU
27688c2ecf20Sopenharmony_ci#define PORTMAP_G(x) (((x) >> PORTMAP_S) & PORTMAP_M)
27698c2ecf20Sopenharmony_ci
27708c2ecf20Sopenharmony_ci#define CPL_INTR_CAUSE_A 0x19054
27718c2ecf20Sopenharmony_ci
27728c2ecf20Sopenharmony_ci#define CIM_OP_MAP_PERR_S    5
27738c2ecf20Sopenharmony_ci#define CIM_OP_MAP_PERR_V(x) ((x) << CIM_OP_MAP_PERR_S)
27748c2ecf20Sopenharmony_ci#define CIM_OP_MAP_PERR_F    CIM_OP_MAP_PERR_V(1U)
27758c2ecf20Sopenharmony_ci
27768c2ecf20Sopenharmony_ci#define CIM_OVFL_ERROR_S    4
27778c2ecf20Sopenharmony_ci#define CIM_OVFL_ERROR_V(x) ((x) << CIM_OVFL_ERROR_S)
27788c2ecf20Sopenharmony_ci#define CIM_OVFL_ERROR_F    CIM_OVFL_ERROR_V(1U)
27798c2ecf20Sopenharmony_ci
27808c2ecf20Sopenharmony_ci#define TP_FRAMING_ERROR_S    3
27818c2ecf20Sopenharmony_ci#define TP_FRAMING_ERROR_V(x) ((x) << TP_FRAMING_ERROR_S)
27828c2ecf20Sopenharmony_ci#define TP_FRAMING_ERROR_F    TP_FRAMING_ERROR_V(1U)
27838c2ecf20Sopenharmony_ci
27848c2ecf20Sopenharmony_ci#define SGE_FRAMING_ERROR_S    2
27858c2ecf20Sopenharmony_ci#define SGE_FRAMING_ERROR_V(x) ((x) << SGE_FRAMING_ERROR_S)
27868c2ecf20Sopenharmony_ci#define SGE_FRAMING_ERROR_F    SGE_FRAMING_ERROR_V(1U)
27878c2ecf20Sopenharmony_ci
27888c2ecf20Sopenharmony_ci#define CIM_FRAMING_ERROR_S    1
27898c2ecf20Sopenharmony_ci#define CIM_FRAMING_ERROR_V(x) ((x) << CIM_FRAMING_ERROR_S)
27908c2ecf20Sopenharmony_ci#define CIM_FRAMING_ERROR_F    CIM_FRAMING_ERROR_V(1U)
27918c2ecf20Sopenharmony_ci
27928c2ecf20Sopenharmony_ci#define ZERO_SWITCH_ERROR_S    0
27938c2ecf20Sopenharmony_ci#define ZERO_SWITCH_ERROR_V(x) ((x) << ZERO_SWITCH_ERROR_S)
27948c2ecf20Sopenharmony_ci#define ZERO_SWITCH_ERROR_F    ZERO_SWITCH_ERROR_V(1U)
27958c2ecf20Sopenharmony_ci
27968c2ecf20Sopenharmony_ci#define SMB_INT_CAUSE_A 0x19090
27978c2ecf20Sopenharmony_ci
27988c2ecf20Sopenharmony_ci#define MSTTXFIFOPARINT_S    21
27998c2ecf20Sopenharmony_ci#define MSTTXFIFOPARINT_V(x) ((x) << MSTTXFIFOPARINT_S)
28008c2ecf20Sopenharmony_ci#define MSTTXFIFOPARINT_F    MSTTXFIFOPARINT_V(1U)
28018c2ecf20Sopenharmony_ci
28028c2ecf20Sopenharmony_ci#define MSTRXFIFOPARINT_S    20
28038c2ecf20Sopenharmony_ci#define MSTRXFIFOPARINT_V(x) ((x) << MSTRXFIFOPARINT_S)
28048c2ecf20Sopenharmony_ci#define MSTRXFIFOPARINT_F    MSTRXFIFOPARINT_V(1U)
28058c2ecf20Sopenharmony_ci
28068c2ecf20Sopenharmony_ci#define SLVFIFOPARINT_S    19
28078c2ecf20Sopenharmony_ci#define SLVFIFOPARINT_V(x) ((x) << SLVFIFOPARINT_S)
28088c2ecf20Sopenharmony_ci#define SLVFIFOPARINT_F    SLVFIFOPARINT_V(1U)
28098c2ecf20Sopenharmony_ci
28108c2ecf20Sopenharmony_ci#define ULP_RX_INT_CAUSE_A 0x19158
28118c2ecf20Sopenharmony_ci#define ULP_RX_ISCSI_LLIMIT_A 0x1915c
28128c2ecf20Sopenharmony_ci#define ULP_RX_ISCSI_ULIMIT_A 0x19160
28138c2ecf20Sopenharmony_ci#define ULP_RX_ISCSI_TAGMASK_A 0x19164
28148c2ecf20Sopenharmony_ci#define ULP_RX_ISCSI_PSZ_A 0x19168
28158c2ecf20Sopenharmony_ci#define ULP_RX_TDDP_LLIMIT_A 0x1916c
28168c2ecf20Sopenharmony_ci#define ULP_RX_TDDP_ULIMIT_A 0x19170
28178c2ecf20Sopenharmony_ci#define ULP_RX_STAG_LLIMIT_A 0x1917c
28188c2ecf20Sopenharmony_ci#define ULP_RX_STAG_ULIMIT_A 0x19180
28198c2ecf20Sopenharmony_ci#define ULP_RX_RQ_LLIMIT_A 0x19184
28208c2ecf20Sopenharmony_ci#define ULP_RX_RQ_ULIMIT_A 0x19188
28218c2ecf20Sopenharmony_ci#define ULP_RX_PBL_LLIMIT_A 0x1918c
28228c2ecf20Sopenharmony_ci#define ULP_RX_PBL_ULIMIT_A 0x19190
28238c2ecf20Sopenharmony_ci#define ULP_RX_CTX_BASE_A 0x19194
28248c2ecf20Sopenharmony_ci#define ULP_RX_RQUDP_LLIMIT_A 0x191a4
28258c2ecf20Sopenharmony_ci#define ULP_RX_RQUDP_ULIMIT_A 0x191a8
28268c2ecf20Sopenharmony_ci#define ULP_RX_LA_CTL_A 0x1923c
28278c2ecf20Sopenharmony_ci#define ULP_RX_LA_RDPTR_A 0x19240
28288c2ecf20Sopenharmony_ci#define ULP_RX_LA_RDDATA_A 0x19244
28298c2ecf20Sopenharmony_ci#define ULP_RX_LA_WRPTR_A 0x19248
28308c2ecf20Sopenharmony_ci#define ULP_RX_TLS_KEY_LLIMIT_A 0x192ac
28318c2ecf20Sopenharmony_ci#define ULP_RX_TLS_KEY_ULIMIT_A 0x192b0
28328c2ecf20Sopenharmony_ci
28338c2ecf20Sopenharmony_ci#define HPZ3_S    24
28348c2ecf20Sopenharmony_ci#define HPZ3_V(x) ((x) << HPZ3_S)
28358c2ecf20Sopenharmony_ci
28368c2ecf20Sopenharmony_ci#define HPZ2_S    16
28378c2ecf20Sopenharmony_ci#define HPZ2_V(x) ((x) << HPZ2_S)
28388c2ecf20Sopenharmony_ci
28398c2ecf20Sopenharmony_ci#define HPZ1_S    8
28408c2ecf20Sopenharmony_ci#define HPZ1_V(x) ((x) << HPZ1_S)
28418c2ecf20Sopenharmony_ci
28428c2ecf20Sopenharmony_ci#define HPZ0_S    0
28438c2ecf20Sopenharmony_ci#define HPZ0_V(x) ((x) << HPZ0_S)
28448c2ecf20Sopenharmony_ci
28458c2ecf20Sopenharmony_ci#define ULP_RX_TDDP_PSZ_A 0x19178
28468c2ecf20Sopenharmony_ci
28478c2ecf20Sopenharmony_ci/* registers for module SF */
28488c2ecf20Sopenharmony_ci#define SF_DATA_A 0x193f8
28498c2ecf20Sopenharmony_ci#define SF_OP_A 0x193fc
28508c2ecf20Sopenharmony_ci
28518c2ecf20Sopenharmony_ci#define SF_BUSY_S    31
28528c2ecf20Sopenharmony_ci#define SF_BUSY_V(x) ((x) << SF_BUSY_S)
28538c2ecf20Sopenharmony_ci#define SF_BUSY_F    SF_BUSY_V(1U)
28548c2ecf20Sopenharmony_ci
28558c2ecf20Sopenharmony_ci#define SF_LOCK_S    4
28568c2ecf20Sopenharmony_ci#define SF_LOCK_V(x) ((x) << SF_LOCK_S)
28578c2ecf20Sopenharmony_ci#define SF_LOCK_F    SF_LOCK_V(1U)
28588c2ecf20Sopenharmony_ci
28598c2ecf20Sopenharmony_ci#define SF_CONT_S    3
28608c2ecf20Sopenharmony_ci#define SF_CONT_V(x) ((x) << SF_CONT_S)
28618c2ecf20Sopenharmony_ci#define SF_CONT_F    SF_CONT_V(1U)
28628c2ecf20Sopenharmony_ci
28638c2ecf20Sopenharmony_ci#define BYTECNT_S    1
28648c2ecf20Sopenharmony_ci#define BYTECNT_V(x) ((x) << BYTECNT_S)
28658c2ecf20Sopenharmony_ci
28668c2ecf20Sopenharmony_ci#define OP_S    0
28678c2ecf20Sopenharmony_ci#define OP_V(x) ((x) << OP_S)
28688c2ecf20Sopenharmony_ci#define OP_F    OP_V(1U)
28698c2ecf20Sopenharmony_ci
28708c2ecf20Sopenharmony_ci#define PL_PF_INT_CAUSE_A 0x3c0
28718c2ecf20Sopenharmony_ci
28728c2ecf20Sopenharmony_ci#define PFSW_S    3
28738c2ecf20Sopenharmony_ci#define PFSW_V(x) ((x) << PFSW_S)
28748c2ecf20Sopenharmony_ci#define PFSW_F    PFSW_V(1U)
28758c2ecf20Sopenharmony_ci
28768c2ecf20Sopenharmony_ci#define PFCIM_S    1
28778c2ecf20Sopenharmony_ci#define PFCIM_V(x) ((x) << PFCIM_S)
28788c2ecf20Sopenharmony_ci#define PFCIM_F    PFCIM_V(1U)
28798c2ecf20Sopenharmony_ci
28808c2ecf20Sopenharmony_ci#define PL_PF_INT_ENABLE_A 0x3c4
28818c2ecf20Sopenharmony_ci#define PL_PF_CTL_A 0x3c8
28828c2ecf20Sopenharmony_ci
28838c2ecf20Sopenharmony_ci#define PL_WHOAMI_A 0x19400
28848c2ecf20Sopenharmony_ci
28858c2ecf20Sopenharmony_ci#define SOURCEPF_S    8
28868c2ecf20Sopenharmony_ci#define SOURCEPF_M    0x7U
28878c2ecf20Sopenharmony_ci#define SOURCEPF_G(x) (((x) >> SOURCEPF_S) & SOURCEPF_M)
28888c2ecf20Sopenharmony_ci
28898c2ecf20Sopenharmony_ci#define T6_SOURCEPF_S    9
28908c2ecf20Sopenharmony_ci#define T6_SOURCEPF_M    0x7U
28918c2ecf20Sopenharmony_ci#define T6_SOURCEPF_G(x) (((x) >> T6_SOURCEPF_S) & T6_SOURCEPF_M)
28928c2ecf20Sopenharmony_ci
28938c2ecf20Sopenharmony_ci#define PL_INT_CAUSE_A 0x1940c
28948c2ecf20Sopenharmony_ci
28958c2ecf20Sopenharmony_ci#define ULP_TX_S    27
28968c2ecf20Sopenharmony_ci#define ULP_TX_V(x) ((x) << ULP_TX_S)
28978c2ecf20Sopenharmony_ci#define ULP_TX_F    ULP_TX_V(1U)
28988c2ecf20Sopenharmony_ci
28998c2ecf20Sopenharmony_ci#define SGE_S    26
29008c2ecf20Sopenharmony_ci#define SGE_V(x) ((x) << SGE_S)
29018c2ecf20Sopenharmony_ci#define SGE_F    SGE_V(1U)
29028c2ecf20Sopenharmony_ci
29038c2ecf20Sopenharmony_ci#define CPL_SWITCH_S    24
29048c2ecf20Sopenharmony_ci#define CPL_SWITCH_V(x) ((x) << CPL_SWITCH_S)
29058c2ecf20Sopenharmony_ci#define CPL_SWITCH_F    CPL_SWITCH_V(1U)
29068c2ecf20Sopenharmony_ci
29078c2ecf20Sopenharmony_ci#define ULP_RX_S    23
29088c2ecf20Sopenharmony_ci#define ULP_RX_V(x) ((x) << ULP_RX_S)
29098c2ecf20Sopenharmony_ci#define ULP_RX_F    ULP_RX_V(1U)
29108c2ecf20Sopenharmony_ci
29118c2ecf20Sopenharmony_ci#define PM_RX_S    22
29128c2ecf20Sopenharmony_ci#define PM_RX_V(x) ((x) << PM_RX_S)
29138c2ecf20Sopenharmony_ci#define PM_RX_F    PM_RX_V(1U)
29148c2ecf20Sopenharmony_ci
29158c2ecf20Sopenharmony_ci#define PM_TX_S    21
29168c2ecf20Sopenharmony_ci#define PM_TX_V(x) ((x) << PM_TX_S)
29178c2ecf20Sopenharmony_ci#define PM_TX_F    PM_TX_V(1U)
29188c2ecf20Sopenharmony_ci
29198c2ecf20Sopenharmony_ci#define MA_S    20
29208c2ecf20Sopenharmony_ci#define MA_V(x) ((x) << MA_S)
29218c2ecf20Sopenharmony_ci#define MA_F    MA_V(1U)
29228c2ecf20Sopenharmony_ci
29238c2ecf20Sopenharmony_ci#define TP_S    19
29248c2ecf20Sopenharmony_ci#define TP_V(x) ((x) << TP_S)
29258c2ecf20Sopenharmony_ci#define TP_F    TP_V(1U)
29268c2ecf20Sopenharmony_ci
29278c2ecf20Sopenharmony_ci#define LE_S    18
29288c2ecf20Sopenharmony_ci#define LE_V(x) ((x) << LE_S)
29298c2ecf20Sopenharmony_ci#define LE_F    LE_V(1U)
29308c2ecf20Sopenharmony_ci
29318c2ecf20Sopenharmony_ci#define EDC1_S    17
29328c2ecf20Sopenharmony_ci#define EDC1_V(x) ((x) << EDC1_S)
29338c2ecf20Sopenharmony_ci#define EDC1_F    EDC1_V(1U)
29348c2ecf20Sopenharmony_ci
29358c2ecf20Sopenharmony_ci#define EDC0_S    16
29368c2ecf20Sopenharmony_ci#define EDC0_V(x) ((x) << EDC0_S)
29378c2ecf20Sopenharmony_ci#define EDC0_F    EDC0_V(1U)
29388c2ecf20Sopenharmony_ci
29398c2ecf20Sopenharmony_ci#define MC_S    15
29408c2ecf20Sopenharmony_ci#define MC_V(x) ((x) << MC_S)
29418c2ecf20Sopenharmony_ci#define MC_F    MC_V(1U)
29428c2ecf20Sopenharmony_ci
29438c2ecf20Sopenharmony_ci#define PCIE_S    14
29448c2ecf20Sopenharmony_ci#define PCIE_V(x) ((x) << PCIE_S)
29458c2ecf20Sopenharmony_ci#define PCIE_F    PCIE_V(1U)
29468c2ecf20Sopenharmony_ci
29478c2ecf20Sopenharmony_ci#define XGMAC_KR1_S    12
29488c2ecf20Sopenharmony_ci#define XGMAC_KR1_V(x) ((x) << XGMAC_KR1_S)
29498c2ecf20Sopenharmony_ci#define XGMAC_KR1_F    XGMAC_KR1_V(1U)
29508c2ecf20Sopenharmony_ci
29518c2ecf20Sopenharmony_ci#define XGMAC_KR0_S    11
29528c2ecf20Sopenharmony_ci#define XGMAC_KR0_V(x) ((x) << XGMAC_KR0_S)
29538c2ecf20Sopenharmony_ci#define XGMAC_KR0_F    XGMAC_KR0_V(1U)
29548c2ecf20Sopenharmony_ci
29558c2ecf20Sopenharmony_ci#define XGMAC1_S    10
29568c2ecf20Sopenharmony_ci#define XGMAC1_V(x) ((x) << XGMAC1_S)
29578c2ecf20Sopenharmony_ci#define XGMAC1_F    XGMAC1_V(1U)
29588c2ecf20Sopenharmony_ci
29598c2ecf20Sopenharmony_ci#define XGMAC0_S    9
29608c2ecf20Sopenharmony_ci#define XGMAC0_V(x) ((x) << XGMAC0_S)
29618c2ecf20Sopenharmony_ci#define XGMAC0_F    XGMAC0_V(1U)
29628c2ecf20Sopenharmony_ci
29638c2ecf20Sopenharmony_ci#define SMB_S    8
29648c2ecf20Sopenharmony_ci#define SMB_V(x) ((x) << SMB_S)
29658c2ecf20Sopenharmony_ci#define SMB_F    SMB_V(1U)
29668c2ecf20Sopenharmony_ci
29678c2ecf20Sopenharmony_ci#define SF_S    7
29688c2ecf20Sopenharmony_ci#define SF_V(x) ((x) << SF_S)
29698c2ecf20Sopenharmony_ci#define SF_F    SF_V(1U)
29708c2ecf20Sopenharmony_ci
29718c2ecf20Sopenharmony_ci#define PL_S    6
29728c2ecf20Sopenharmony_ci#define PL_V(x) ((x) << PL_S)
29738c2ecf20Sopenharmony_ci#define PL_F    PL_V(1U)
29748c2ecf20Sopenharmony_ci
29758c2ecf20Sopenharmony_ci#define NCSI_S    5
29768c2ecf20Sopenharmony_ci#define NCSI_V(x) ((x) << NCSI_S)
29778c2ecf20Sopenharmony_ci#define NCSI_F    NCSI_V(1U)
29788c2ecf20Sopenharmony_ci
29798c2ecf20Sopenharmony_ci#define MPS_S    4
29808c2ecf20Sopenharmony_ci#define MPS_V(x) ((x) << MPS_S)
29818c2ecf20Sopenharmony_ci#define MPS_F    MPS_V(1U)
29828c2ecf20Sopenharmony_ci
29838c2ecf20Sopenharmony_ci#define CIM_S    0
29848c2ecf20Sopenharmony_ci#define CIM_V(x) ((x) << CIM_S)
29858c2ecf20Sopenharmony_ci#define CIM_F    CIM_V(1U)
29868c2ecf20Sopenharmony_ci
29878c2ecf20Sopenharmony_ci#define MC1_S    31
29888c2ecf20Sopenharmony_ci#define MC1_V(x) ((x) << MC1_S)
29898c2ecf20Sopenharmony_ci#define MC1_F    MC1_V(1U)
29908c2ecf20Sopenharmony_ci
29918c2ecf20Sopenharmony_ci#define PL_INT_ENABLE_A 0x19410
29928c2ecf20Sopenharmony_ci#define PL_INT_MAP0_A 0x19414
29938c2ecf20Sopenharmony_ci#define PL_RST_A 0x19428
29948c2ecf20Sopenharmony_ci
29958c2ecf20Sopenharmony_ci#define PIORST_S    1
29968c2ecf20Sopenharmony_ci#define PIORST_V(x) ((x) << PIORST_S)
29978c2ecf20Sopenharmony_ci#define PIORST_F    PIORST_V(1U)
29988c2ecf20Sopenharmony_ci
29998c2ecf20Sopenharmony_ci#define PIORSTMODE_S    0
30008c2ecf20Sopenharmony_ci#define PIORSTMODE_V(x) ((x) << PIORSTMODE_S)
30018c2ecf20Sopenharmony_ci#define PIORSTMODE_F    PIORSTMODE_V(1U)
30028c2ecf20Sopenharmony_ci
30038c2ecf20Sopenharmony_ci#define PL_PL_INT_CAUSE_A 0x19430
30048c2ecf20Sopenharmony_ci
30058c2ecf20Sopenharmony_ci#define FATALPERR_S    4
30068c2ecf20Sopenharmony_ci#define FATALPERR_V(x) ((x) << FATALPERR_S)
30078c2ecf20Sopenharmony_ci#define FATALPERR_F    FATALPERR_V(1U)
30088c2ecf20Sopenharmony_ci
30098c2ecf20Sopenharmony_ci#define PERRVFID_S    0
30108c2ecf20Sopenharmony_ci#define PERRVFID_V(x) ((x) << PERRVFID_S)
30118c2ecf20Sopenharmony_ci#define PERRVFID_F    PERRVFID_V(1U)
30128c2ecf20Sopenharmony_ci
30138c2ecf20Sopenharmony_ci#define PL_REV_A 0x1943c
30148c2ecf20Sopenharmony_ci
30158c2ecf20Sopenharmony_ci#define REV_S    0
30168c2ecf20Sopenharmony_ci#define REV_M    0xfU
30178c2ecf20Sopenharmony_ci#define REV_V(x) ((x) << REV_S)
30188c2ecf20Sopenharmony_ci#define REV_G(x) (((x) >> REV_S) & REV_M)
30198c2ecf20Sopenharmony_ci
30208c2ecf20Sopenharmony_ci#define HASHTBLMEMCRCERR_S    27
30218c2ecf20Sopenharmony_ci#define HASHTBLMEMCRCERR_V(x) ((x) << HASHTBLMEMCRCERR_S)
30228c2ecf20Sopenharmony_ci#define HASHTBLMEMCRCERR_F    HASHTBLMEMCRCERR_V(1U)
30238c2ecf20Sopenharmony_ci
30248c2ecf20Sopenharmony_ci#define CMDTIDERR_S    22
30258c2ecf20Sopenharmony_ci#define CMDTIDERR_V(x) ((x) << CMDTIDERR_S)
30268c2ecf20Sopenharmony_ci#define CMDTIDERR_F    CMDTIDERR_V(1U)
30278c2ecf20Sopenharmony_ci
30288c2ecf20Sopenharmony_ci#define T6_UNKNOWNCMD_S    3
30298c2ecf20Sopenharmony_ci#define T6_UNKNOWNCMD_V(x) ((x) << T6_UNKNOWNCMD_S)
30308c2ecf20Sopenharmony_ci#define T6_UNKNOWNCMD_F    T6_UNKNOWNCMD_V(1U)
30318c2ecf20Sopenharmony_ci
30328c2ecf20Sopenharmony_ci#define T6_LIP0_S    2
30338c2ecf20Sopenharmony_ci#define T6_LIP0_V(x) ((x) << T6_LIP0_S)
30348c2ecf20Sopenharmony_ci#define T6_LIP0_F    T6_LIP0_V(1U)
30358c2ecf20Sopenharmony_ci
30368c2ecf20Sopenharmony_ci#define T6_LIPMISS_S    1
30378c2ecf20Sopenharmony_ci#define T6_LIPMISS_V(x) ((x) << T6_LIPMISS_S)
30388c2ecf20Sopenharmony_ci#define T6_LIPMISS_F    T6_LIPMISS_V(1U)
30398c2ecf20Sopenharmony_ci
30408c2ecf20Sopenharmony_ci#define LE_DB_CONFIG_A 0x19c04
30418c2ecf20Sopenharmony_ci#define LE_DB_ROUTING_TABLE_INDEX_A 0x19c10
30428c2ecf20Sopenharmony_ci#define LE_DB_ACTIVE_TABLE_START_INDEX_A 0x19c10
30438c2ecf20Sopenharmony_ci#define LE_DB_FILTER_TABLE_INDEX_A 0x19c14
30448c2ecf20Sopenharmony_ci#define LE_DB_SERVER_INDEX_A 0x19c18
30458c2ecf20Sopenharmony_ci#define LE_DB_SRVR_START_INDEX_A 0x19c18
30468c2ecf20Sopenharmony_ci#define LE_DB_CLIP_TABLE_INDEX_A 0x19c1c
30478c2ecf20Sopenharmony_ci#define LE_DB_ACT_CNT_IPV4_A 0x19c20
30488c2ecf20Sopenharmony_ci#define LE_DB_ACT_CNT_IPV6_A 0x19c24
30498c2ecf20Sopenharmony_ci#define LE_DB_HASH_CONFIG_A 0x19c28
30508c2ecf20Sopenharmony_ci
30518c2ecf20Sopenharmony_ci#define HASHTIDSIZE_S    16
30528c2ecf20Sopenharmony_ci#define HASHTIDSIZE_M    0x3fU
30538c2ecf20Sopenharmony_ci#define HASHTIDSIZE_G(x) (((x) >> HASHTIDSIZE_S) & HASHTIDSIZE_M)
30548c2ecf20Sopenharmony_ci
30558c2ecf20Sopenharmony_ci#define HASHTBLSIZE_S    3
30568c2ecf20Sopenharmony_ci#define HASHTBLSIZE_M    0x1ffffU
30578c2ecf20Sopenharmony_ci#define HASHTBLSIZE_G(x) (((x) >> HASHTBLSIZE_S) & HASHTBLSIZE_M)
30588c2ecf20Sopenharmony_ci
30598c2ecf20Sopenharmony_ci#define LE_DB_HASH_TID_BASE_A 0x19c30
30608c2ecf20Sopenharmony_ci#define LE_DB_HASH_TBL_BASE_ADDR_A 0x19c30
30618c2ecf20Sopenharmony_ci#define LE_DB_INT_CAUSE_A 0x19c3c
30628c2ecf20Sopenharmony_ci#define LE_DB_CLCAM_TID_BASE_A 0x19df4
30638c2ecf20Sopenharmony_ci#define LE_DB_TID_HASHBASE_A 0x19df8
30648c2ecf20Sopenharmony_ci#define T6_LE_DB_HASH_TID_BASE_A 0x19df8
30658c2ecf20Sopenharmony_ci
30668c2ecf20Sopenharmony_ci#define HASHEN_S    20
30678c2ecf20Sopenharmony_ci#define HASHEN_V(x) ((x) << HASHEN_S)
30688c2ecf20Sopenharmony_ci#define HASHEN_F    HASHEN_V(1U)
30698c2ecf20Sopenharmony_ci
30708c2ecf20Sopenharmony_ci#define ASLIPCOMPEN_S    17
30718c2ecf20Sopenharmony_ci#define ASLIPCOMPEN_V(x) ((x) << ASLIPCOMPEN_S)
30728c2ecf20Sopenharmony_ci#define ASLIPCOMPEN_F    ASLIPCOMPEN_V(1U)
30738c2ecf20Sopenharmony_ci
30748c2ecf20Sopenharmony_ci#define REQQPARERR_S    16
30758c2ecf20Sopenharmony_ci#define REQQPARERR_V(x) ((x) << REQQPARERR_S)
30768c2ecf20Sopenharmony_ci#define REQQPARERR_F    REQQPARERR_V(1U)
30778c2ecf20Sopenharmony_ci
30788c2ecf20Sopenharmony_ci#define UNKNOWNCMD_S    15
30798c2ecf20Sopenharmony_ci#define UNKNOWNCMD_V(x) ((x) << UNKNOWNCMD_S)
30808c2ecf20Sopenharmony_ci#define UNKNOWNCMD_F    UNKNOWNCMD_V(1U)
30818c2ecf20Sopenharmony_ci
30828c2ecf20Sopenharmony_ci#define PARITYERR_S    6
30838c2ecf20Sopenharmony_ci#define PARITYERR_V(x) ((x) << PARITYERR_S)
30848c2ecf20Sopenharmony_ci#define PARITYERR_F    PARITYERR_V(1U)
30858c2ecf20Sopenharmony_ci
30868c2ecf20Sopenharmony_ci#define LIPMISS_S    5
30878c2ecf20Sopenharmony_ci#define LIPMISS_V(x) ((x) << LIPMISS_S)
30888c2ecf20Sopenharmony_ci#define LIPMISS_F    LIPMISS_V(1U)
30898c2ecf20Sopenharmony_ci
30908c2ecf20Sopenharmony_ci#define LIP0_S    4
30918c2ecf20Sopenharmony_ci#define LIP0_V(x) ((x) << LIP0_S)
30928c2ecf20Sopenharmony_ci#define LIP0_F    LIP0_V(1U)
30938c2ecf20Sopenharmony_ci
30948c2ecf20Sopenharmony_ci#define BASEADDR_S    3
30958c2ecf20Sopenharmony_ci#define BASEADDR_M    0x1fffffffU
30968c2ecf20Sopenharmony_ci#define BASEADDR_G(x) (((x) >> BASEADDR_S) & BASEADDR_M)
30978c2ecf20Sopenharmony_ci
30988c2ecf20Sopenharmony_ci#define TCAMINTPERR_S    13
30998c2ecf20Sopenharmony_ci#define TCAMINTPERR_V(x) ((x) << TCAMINTPERR_S)
31008c2ecf20Sopenharmony_ci#define TCAMINTPERR_F    TCAMINTPERR_V(1U)
31018c2ecf20Sopenharmony_ci
31028c2ecf20Sopenharmony_ci#define SSRAMINTPERR_S    10
31038c2ecf20Sopenharmony_ci#define SSRAMINTPERR_V(x) ((x) << SSRAMINTPERR_S)
31048c2ecf20Sopenharmony_ci#define SSRAMINTPERR_F    SSRAMINTPERR_V(1U)
31058c2ecf20Sopenharmony_ci
31068c2ecf20Sopenharmony_ci#define LE_DB_RSP_CODE_0_A	0x19c74
31078c2ecf20Sopenharmony_ci
31088c2ecf20Sopenharmony_ci#define TCAM_ACTV_HIT_S		0
31098c2ecf20Sopenharmony_ci#define TCAM_ACTV_HIT_M		0x1fU
31108c2ecf20Sopenharmony_ci#define TCAM_ACTV_HIT_V(x)	((x) << TCAM_ACTV_HIT_S)
31118c2ecf20Sopenharmony_ci#define TCAM_ACTV_HIT_G(x)	(((x) >> TCAM_ACTV_HIT_S) & TCAM_ACTV_HIT_M)
31128c2ecf20Sopenharmony_ci
31138c2ecf20Sopenharmony_ci#define LE_DB_RSP_CODE_1_A     0x19c78
31148c2ecf20Sopenharmony_ci
31158c2ecf20Sopenharmony_ci#define HASH_ACTV_HIT_S		25
31168c2ecf20Sopenharmony_ci#define HASH_ACTV_HIT_M		0x1fU
31178c2ecf20Sopenharmony_ci#define HASH_ACTV_HIT_V(x)	((x) << HASH_ACTV_HIT_S)
31188c2ecf20Sopenharmony_ci#define HASH_ACTV_HIT_G(x)	(((x) >> HASH_ACTV_HIT_S) & HASH_ACTV_HIT_M)
31198c2ecf20Sopenharmony_ci
31208c2ecf20Sopenharmony_ci#define LE_3_DB_HASH_MASK_GEN_IPV4_T6_A	0x19eac
31218c2ecf20Sopenharmony_ci#define LE_4_DB_HASH_MASK_GEN_IPV4_T6_A	0x19eb0
31228c2ecf20Sopenharmony_ci
31238c2ecf20Sopenharmony_ci#define NCSI_INT_CAUSE_A 0x1a0d8
31248c2ecf20Sopenharmony_ci
31258c2ecf20Sopenharmony_ci#define CIM_DM_PRTY_ERR_S    8
31268c2ecf20Sopenharmony_ci#define CIM_DM_PRTY_ERR_V(x) ((x) << CIM_DM_PRTY_ERR_S)
31278c2ecf20Sopenharmony_ci#define CIM_DM_PRTY_ERR_F    CIM_DM_PRTY_ERR_V(1U)
31288c2ecf20Sopenharmony_ci
31298c2ecf20Sopenharmony_ci#define MPS_DM_PRTY_ERR_S    7
31308c2ecf20Sopenharmony_ci#define MPS_DM_PRTY_ERR_V(x) ((x) << MPS_DM_PRTY_ERR_S)
31318c2ecf20Sopenharmony_ci#define MPS_DM_PRTY_ERR_F    MPS_DM_PRTY_ERR_V(1U)
31328c2ecf20Sopenharmony_ci
31338c2ecf20Sopenharmony_ci#define TXFIFO_PRTY_ERR_S    1
31348c2ecf20Sopenharmony_ci#define TXFIFO_PRTY_ERR_V(x) ((x) << TXFIFO_PRTY_ERR_S)
31358c2ecf20Sopenharmony_ci#define TXFIFO_PRTY_ERR_F    TXFIFO_PRTY_ERR_V(1U)
31368c2ecf20Sopenharmony_ci
31378c2ecf20Sopenharmony_ci#define RXFIFO_PRTY_ERR_S    0
31388c2ecf20Sopenharmony_ci#define RXFIFO_PRTY_ERR_V(x) ((x) << RXFIFO_PRTY_ERR_S)
31398c2ecf20Sopenharmony_ci#define RXFIFO_PRTY_ERR_F    RXFIFO_PRTY_ERR_V(1U)
31408c2ecf20Sopenharmony_ci
31418c2ecf20Sopenharmony_ci#define XGMAC_PORT_CFG2_A 0x1018
31428c2ecf20Sopenharmony_ci
31438c2ecf20Sopenharmony_ci#define PATEN_S    18
31448c2ecf20Sopenharmony_ci#define PATEN_V(x) ((x) << PATEN_S)
31458c2ecf20Sopenharmony_ci#define PATEN_F    PATEN_V(1U)
31468c2ecf20Sopenharmony_ci
31478c2ecf20Sopenharmony_ci#define MAGICEN_S    17
31488c2ecf20Sopenharmony_ci#define MAGICEN_V(x) ((x) << MAGICEN_S)
31498c2ecf20Sopenharmony_ci#define MAGICEN_F    MAGICEN_V(1U)
31508c2ecf20Sopenharmony_ci
31518c2ecf20Sopenharmony_ci#define XGMAC_PORT_MAGIC_MACID_LO 0x1024
31528c2ecf20Sopenharmony_ci#define XGMAC_PORT_MAGIC_MACID_HI 0x1028
31538c2ecf20Sopenharmony_ci
31548c2ecf20Sopenharmony_ci#define XGMAC_PORT_EPIO_DATA0_A 0x10c0
31558c2ecf20Sopenharmony_ci#define XGMAC_PORT_EPIO_DATA1_A 0x10c4
31568c2ecf20Sopenharmony_ci#define XGMAC_PORT_EPIO_DATA2_A 0x10c8
31578c2ecf20Sopenharmony_ci#define XGMAC_PORT_EPIO_DATA3_A 0x10cc
31588c2ecf20Sopenharmony_ci#define XGMAC_PORT_EPIO_OP_A 0x10d0
31598c2ecf20Sopenharmony_ci
31608c2ecf20Sopenharmony_ci#define EPIOWR_S    8
31618c2ecf20Sopenharmony_ci#define EPIOWR_V(x) ((x) << EPIOWR_S)
31628c2ecf20Sopenharmony_ci#define EPIOWR_F    EPIOWR_V(1U)
31638c2ecf20Sopenharmony_ci
31648c2ecf20Sopenharmony_ci#define ADDRESS_S    0
31658c2ecf20Sopenharmony_ci#define ADDRESS_V(x) ((x) << ADDRESS_S)
31668c2ecf20Sopenharmony_ci
31678c2ecf20Sopenharmony_ci#define MAC_PORT_INT_CAUSE_A 0x8dc
31688c2ecf20Sopenharmony_ci#define XGMAC_PORT_INT_CAUSE_A 0x10dc
31698c2ecf20Sopenharmony_ci
31708c2ecf20Sopenharmony_ci#define TP_TX_MOD_QUEUE_REQ_MAP_A 0x7e28
31718c2ecf20Sopenharmony_ci
31728c2ecf20Sopenharmony_ci#define TP_TX_MOD_QUEUE_WEIGHT0_A 0x7e30
31738c2ecf20Sopenharmony_ci#define TP_TX_MOD_CHANNEL_WEIGHT_A 0x7e34
31748c2ecf20Sopenharmony_ci
31758c2ecf20Sopenharmony_ci#define TX_MOD_QUEUE_REQ_MAP_S    0
31768c2ecf20Sopenharmony_ci#define TX_MOD_QUEUE_REQ_MAP_V(x) ((x) << TX_MOD_QUEUE_REQ_MAP_S)
31778c2ecf20Sopenharmony_ci
31788c2ecf20Sopenharmony_ci#define TX_MODQ_WEIGHT3_S    24
31798c2ecf20Sopenharmony_ci#define TX_MODQ_WEIGHT3_V(x) ((x) << TX_MODQ_WEIGHT3_S)
31808c2ecf20Sopenharmony_ci
31818c2ecf20Sopenharmony_ci#define TX_MODQ_WEIGHT2_S    16
31828c2ecf20Sopenharmony_ci#define TX_MODQ_WEIGHT2_V(x) ((x) << TX_MODQ_WEIGHT2_S)
31838c2ecf20Sopenharmony_ci
31848c2ecf20Sopenharmony_ci#define TX_MODQ_WEIGHT1_S    8
31858c2ecf20Sopenharmony_ci#define TX_MODQ_WEIGHT1_V(x) ((x) << TX_MODQ_WEIGHT1_S)
31868c2ecf20Sopenharmony_ci
31878c2ecf20Sopenharmony_ci#define TX_MODQ_WEIGHT0_S    0
31888c2ecf20Sopenharmony_ci#define TX_MODQ_WEIGHT0_V(x) ((x) << TX_MODQ_WEIGHT0_S)
31898c2ecf20Sopenharmony_ci
31908c2ecf20Sopenharmony_ci#define TP_TX_SCHED_HDR_A 0x23
31918c2ecf20Sopenharmony_ci#define TP_TX_SCHED_FIFO_A 0x24
31928c2ecf20Sopenharmony_ci#define TP_TX_SCHED_PCMD_A 0x25
31938c2ecf20Sopenharmony_ci
31948c2ecf20Sopenharmony_ci#define NUM_MPS_CLS_SRAM_L_INSTANCES 336
31958c2ecf20Sopenharmony_ci#define NUM_MPS_T5_CLS_SRAM_L_INSTANCES 512
31968c2ecf20Sopenharmony_ci
31978c2ecf20Sopenharmony_ci#define T5_PORT0_BASE 0x30000
31988c2ecf20Sopenharmony_ci#define T5_PORT_STRIDE 0x4000
31998c2ecf20Sopenharmony_ci#define T5_PORT_BASE(idx) (T5_PORT0_BASE + (idx) * T5_PORT_STRIDE)
32008c2ecf20Sopenharmony_ci#define T5_PORT_REG(idx, reg) (T5_PORT_BASE(idx) + (reg))
32018c2ecf20Sopenharmony_ci
32028c2ecf20Sopenharmony_ci#define MC_0_BASE_ADDR 0x40000
32038c2ecf20Sopenharmony_ci#define MC_1_BASE_ADDR 0x48000
32048c2ecf20Sopenharmony_ci#define MC_STRIDE (MC_1_BASE_ADDR - MC_0_BASE_ADDR)
32058c2ecf20Sopenharmony_ci#define MC_REG(reg, idx) (reg + MC_STRIDE * idx)
32068c2ecf20Sopenharmony_ci
32078c2ecf20Sopenharmony_ci#define MC_P_BIST_CMD_A			0x41400
32088c2ecf20Sopenharmony_ci#define MC_P_BIST_CMD_ADDR_A		0x41404
32098c2ecf20Sopenharmony_ci#define MC_P_BIST_CMD_LEN_A		0x41408
32108c2ecf20Sopenharmony_ci#define MC_P_BIST_DATA_PATTERN_A	0x4140c
32118c2ecf20Sopenharmony_ci#define MC_P_BIST_STATUS_RDATA_A	0x41488
32128c2ecf20Sopenharmony_ci
32138c2ecf20Sopenharmony_ci#define EDC_T50_BASE_ADDR		0x50000
32148c2ecf20Sopenharmony_ci
32158c2ecf20Sopenharmony_ci#define EDC_H_BIST_CMD_A		0x50004
32168c2ecf20Sopenharmony_ci#define EDC_H_BIST_CMD_ADDR_A		0x50008
32178c2ecf20Sopenharmony_ci#define EDC_H_BIST_CMD_LEN_A		0x5000c
32188c2ecf20Sopenharmony_ci#define EDC_H_BIST_DATA_PATTERN_A	0x50010
32198c2ecf20Sopenharmony_ci#define EDC_H_BIST_STATUS_RDATA_A	0x50028
32208c2ecf20Sopenharmony_ci
32218c2ecf20Sopenharmony_ci#define EDC_H_ECC_ERR_ADDR_A		0x50084
32228c2ecf20Sopenharmony_ci#define EDC_T51_BASE_ADDR		0x50800
32238c2ecf20Sopenharmony_ci
32248c2ecf20Sopenharmony_ci#define EDC_T5_STRIDE (EDC_T51_BASE_ADDR - EDC_T50_BASE_ADDR)
32258c2ecf20Sopenharmony_ci#define EDC_T5_REG(reg, idx) (reg + EDC_T5_STRIDE * idx)
32268c2ecf20Sopenharmony_ci
32278c2ecf20Sopenharmony_ci#define PL_VF_REV_A 0x4
32288c2ecf20Sopenharmony_ci#define PL_VF_WHOAMI_A 0x0
32298c2ecf20Sopenharmony_ci#define PL_VF_REVISION_A 0x8
32308c2ecf20Sopenharmony_ci
32318c2ecf20Sopenharmony_ci/* registers for module CIM */
32328c2ecf20Sopenharmony_ci#define CIM_HOST_ACC_CTRL_A	0x7b50
32338c2ecf20Sopenharmony_ci#define CIM_HOST_ACC_DATA_A	0x7b54
32348c2ecf20Sopenharmony_ci#define UP_UP_DBG_LA_CFG_A	0x140
32358c2ecf20Sopenharmony_ci#define UP_UP_DBG_LA_DATA_A	0x144
32368c2ecf20Sopenharmony_ci
32378c2ecf20Sopenharmony_ci#define HOSTBUSY_S	17
32388c2ecf20Sopenharmony_ci#define HOSTBUSY_V(x)	((x) << HOSTBUSY_S)
32398c2ecf20Sopenharmony_ci#define HOSTBUSY_F	HOSTBUSY_V(1U)
32408c2ecf20Sopenharmony_ci
32418c2ecf20Sopenharmony_ci#define HOSTWRITE_S	16
32428c2ecf20Sopenharmony_ci#define HOSTWRITE_V(x)	((x) << HOSTWRITE_S)
32438c2ecf20Sopenharmony_ci#define HOSTWRITE_F	HOSTWRITE_V(1U)
32448c2ecf20Sopenharmony_ci
32458c2ecf20Sopenharmony_ci#define CIM_IBQ_DBG_CFG_A 0x7b60
32468c2ecf20Sopenharmony_ci
32478c2ecf20Sopenharmony_ci#define IBQDBGADDR_S    16
32488c2ecf20Sopenharmony_ci#define IBQDBGADDR_M    0xfffU
32498c2ecf20Sopenharmony_ci#define IBQDBGADDR_V(x) ((x) << IBQDBGADDR_S)
32508c2ecf20Sopenharmony_ci#define IBQDBGADDR_G(x) (((x) >> IBQDBGADDR_S) & IBQDBGADDR_M)
32518c2ecf20Sopenharmony_ci
32528c2ecf20Sopenharmony_ci#define IBQDBGBUSY_S    1
32538c2ecf20Sopenharmony_ci#define IBQDBGBUSY_V(x) ((x) << IBQDBGBUSY_S)
32548c2ecf20Sopenharmony_ci#define IBQDBGBUSY_F    IBQDBGBUSY_V(1U)
32558c2ecf20Sopenharmony_ci
32568c2ecf20Sopenharmony_ci#define IBQDBGEN_S    0
32578c2ecf20Sopenharmony_ci#define IBQDBGEN_V(x) ((x) << IBQDBGEN_S)
32588c2ecf20Sopenharmony_ci#define IBQDBGEN_F    IBQDBGEN_V(1U)
32598c2ecf20Sopenharmony_ci
32608c2ecf20Sopenharmony_ci#define CIM_OBQ_DBG_CFG_A 0x7b64
32618c2ecf20Sopenharmony_ci
32628c2ecf20Sopenharmony_ci#define OBQDBGADDR_S    16
32638c2ecf20Sopenharmony_ci#define OBQDBGADDR_M    0xfffU
32648c2ecf20Sopenharmony_ci#define OBQDBGADDR_V(x) ((x) << OBQDBGADDR_S)
32658c2ecf20Sopenharmony_ci#define OBQDBGADDR_G(x) (((x) >> OBQDBGADDR_S) & OBQDBGADDR_M)
32668c2ecf20Sopenharmony_ci
32678c2ecf20Sopenharmony_ci#define OBQDBGBUSY_S    1
32688c2ecf20Sopenharmony_ci#define OBQDBGBUSY_V(x) ((x) << OBQDBGBUSY_S)
32698c2ecf20Sopenharmony_ci#define OBQDBGBUSY_F    OBQDBGBUSY_V(1U)
32708c2ecf20Sopenharmony_ci
32718c2ecf20Sopenharmony_ci#define OBQDBGEN_S    0
32728c2ecf20Sopenharmony_ci#define OBQDBGEN_V(x) ((x) << OBQDBGEN_S)
32738c2ecf20Sopenharmony_ci#define OBQDBGEN_F    OBQDBGEN_V(1U)
32748c2ecf20Sopenharmony_ci
32758c2ecf20Sopenharmony_ci#define CIM_IBQ_DBG_DATA_A 0x7b68
32768c2ecf20Sopenharmony_ci#define CIM_OBQ_DBG_DATA_A 0x7b6c
32778c2ecf20Sopenharmony_ci#define CIM_DEBUGCFG_A 0x7b70
32788c2ecf20Sopenharmony_ci#define CIM_DEBUGSTS_A 0x7b74
32798c2ecf20Sopenharmony_ci
32808c2ecf20Sopenharmony_ci#define POLADBGRDPTR_S		23
32818c2ecf20Sopenharmony_ci#define POLADBGRDPTR_M		0x1ffU
32828c2ecf20Sopenharmony_ci#define POLADBGRDPTR_V(x)	((x) << POLADBGRDPTR_S)
32838c2ecf20Sopenharmony_ci
32848c2ecf20Sopenharmony_ci#define POLADBGWRPTR_S		16
32858c2ecf20Sopenharmony_ci#define POLADBGWRPTR_M		0x1ffU
32868c2ecf20Sopenharmony_ci#define POLADBGWRPTR_G(x)	(((x) >> POLADBGWRPTR_S) & POLADBGWRPTR_M)
32878c2ecf20Sopenharmony_ci
32888c2ecf20Sopenharmony_ci#define PILADBGRDPTR_S		14
32898c2ecf20Sopenharmony_ci#define PILADBGRDPTR_M		0x1ffU
32908c2ecf20Sopenharmony_ci#define PILADBGRDPTR_V(x)	((x) << PILADBGRDPTR_S)
32918c2ecf20Sopenharmony_ci
32928c2ecf20Sopenharmony_ci#define PILADBGWRPTR_S		0
32938c2ecf20Sopenharmony_ci#define PILADBGWRPTR_M		0x1ffU
32948c2ecf20Sopenharmony_ci#define PILADBGWRPTR_G(x)	(((x) >> PILADBGWRPTR_S) & PILADBGWRPTR_M)
32958c2ecf20Sopenharmony_ci
32968c2ecf20Sopenharmony_ci#define LADBGEN_S	12
32978c2ecf20Sopenharmony_ci#define LADBGEN_V(x)	((x) << LADBGEN_S)
32988c2ecf20Sopenharmony_ci#define LADBGEN_F	LADBGEN_V(1U)
32998c2ecf20Sopenharmony_ci
33008c2ecf20Sopenharmony_ci#define CIM_PO_LA_DEBUGDATA_A 0x7b78
33018c2ecf20Sopenharmony_ci#define CIM_PI_LA_DEBUGDATA_A 0x7b7c
33028c2ecf20Sopenharmony_ci#define CIM_PO_LA_MADEBUGDATA_A	0x7b80
33038c2ecf20Sopenharmony_ci#define CIM_PI_LA_MADEBUGDATA_A	0x7b84
33048c2ecf20Sopenharmony_ci
33058c2ecf20Sopenharmony_ci#define UPDBGLARDEN_S		1
33068c2ecf20Sopenharmony_ci#define UPDBGLARDEN_V(x)	((x) << UPDBGLARDEN_S)
33078c2ecf20Sopenharmony_ci#define UPDBGLARDEN_F		UPDBGLARDEN_V(1U)
33088c2ecf20Sopenharmony_ci
33098c2ecf20Sopenharmony_ci#define UPDBGLAEN_S	0
33108c2ecf20Sopenharmony_ci#define UPDBGLAEN_V(x)	((x) << UPDBGLAEN_S)
33118c2ecf20Sopenharmony_ci#define UPDBGLAEN_F	UPDBGLAEN_V(1U)
33128c2ecf20Sopenharmony_ci
33138c2ecf20Sopenharmony_ci#define UPDBGLARDPTR_S		2
33148c2ecf20Sopenharmony_ci#define UPDBGLARDPTR_M		0xfffU
33158c2ecf20Sopenharmony_ci#define UPDBGLARDPTR_V(x)	((x) << UPDBGLARDPTR_S)
33168c2ecf20Sopenharmony_ci
33178c2ecf20Sopenharmony_ci#define UPDBGLAWRPTR_S    16
33188c2ecf20Sopenharmony_ci#define UPDBGLAWRPTR_M    0xfffU
33198c2ecf20Sopenharmony_ci#define UPDBGLAWRPTR_G(x) (((x) >> UPDBGLAWRPTR_S) & UPDBGLAWRPTR_M)
33208c2ecf20Sopenharmony_ci
33218c2ecf20Sopenharmony_ci#define UPDBGLACAPTPCONLY_S	30
33228c2ecf20Sopenharmony_ci#define UPDBGLACAPTPCONLY_V(x)	((x) << UPDBGLACAPTPCONLY_S)
33238c2ecf20Sopenharmony_ci#define UPDBGLACAPTPCONLY_F	UPDBGLACAPTPCONLY_V(1U)
33248c2ecf20Sopenharmony_ci
33258c2ecf20Sopenharmony_ci#define CIM_QUEUE_CONFIG_REF_A 0x7b48
33268c2ecf20Sopenharmony_ci#define CIM_QUEUE_CONFIG_CTRL_A 0x7b4c
33278c2ecf20Sopenharmony_ci
33288c2ecf20Sopenharmony_ci#define CIMQSIZE_S    24
33298c2ecf20Sopenharmony_ci#define CIMQSIZE_M    0x3fU
33308c2ecf20Sopenharmony_ci#define CIMQSIZE_G(x) (((x) >> CIMQSIZE_S) & CIMQSIZE_M)
33318c2ecf20Sopenharmony_ci
33328c2ecf20Sopenharmony_ci#define CIMQBASE_S    16
33338c2ecf20Sopenharmony_ci#define CIMQBASE_M    0x3fU
33348c2ecf20Sopenharmony_ci#define CIMQBASE_G(x) (((x) >> CIMQBASE_S) & CIMQBASE_M)
33358c2ecf20Sopenharmony_ci
33368c2ecf20Sopenharmony_ci#define QUEFULLTHRSH_S    0
33378c2ecf20Sopenharmony_ci#define QUEFULLTHRSH_M    0x1ffU
33388c2ecf20Sopenharmony_ci#define QUEFULLTHRSH_G(x) (((x) >> QUEFULLTHRSH_S) & QUEFULLTHRSH_M)
33398c2ecf20Sopenharmony_ci
33408c2ecf20Sopenharmony_ci#define UP_IBQ_0_RDADDR_A 0x10
33418c2ecf20Sopenharmony_ci#define UP_IBQ_0_SHADOW_RDADDR_A 0x280
33428c2ecf20Sopenharmony_ci#define UP_OBQ_0_REALADDR_A 0x104
33438c2ecf20Sopenharmony_ci#define UP_OBQ_0_SHADOW_REALADDR_A 0x394
33448c2ecf20Sopenharmony_ci
33458c2ecf20Sopenharmony_ci#define IBQRDADDR_S    0
33468c2ecf20Sopenharmony_ci#define IBQRDADDR_M    0x1fffU
33478c2ecf20Sopenharmony_ci#define IBQRDADDR_G(x) (((x) >> IBQRDADDR_S) & IBQRDADDR_M)
33488c2ecf20Sopenharmony_ci
33498c2ecf20Sopenharmony_ci#define IBQWRADDR_S    0
33508c2ecf20Sopenharmony_ci#define IBQWRADDR_M    0x1fffU
33518c2ecf20Sopenharmony_ci#define IBQWRADDR_G(x) (((x) >> IBQWRADDR_S) & IBQWRADDR_M)
33528c2ecf20Sopenharmony_ci
33538c2ecf20Sopenharmony_ci#define QUERDADDR_S    0
33548c2ecf20Sopenharmony_ci#define QUERDADDR_M    0x7fffU
33558c2ecf20Sopenharmony_ci#define QUERDADDR_G(x) (((x) >> QUERDADDR_S) & QUERDADDR_M)
33568c2ecf20Sopenharmony_ci
33578c2ecf20Sopenharmony_ci#define QUEREMFLITS_S    0
33588c2ecf20Sopenharmony_ci#define QUEREMFLITS_M    0x7ffU
33598c2ecf20Sopenharmony_ci#define QUEREMFLITS_G(x) (((x) >> QUEREMFLITS_S) & QUEREMFLITS_M)
33608c2ecf20Sopenharmony_ci
33618c2ecf20Sopenharmony_ci#define QUEEOPCNT_S    16
33628c2ecf20Sopenharmony_ci#define QUEEOPCNT_M    0xfffU
33638c2ecf20Sopenharmony_ci#define QUEEOPCNT_G(x) (((x) >> QUEEOPCNT_S) & QUEEOPCNT_M)
33648c2ecf20Sopenharmony_ci
33658c2ecf20Sopenharmony_ci#define QUESOPCNT_S    0
33668c2ecf20Sopenharmony_ci#define QUESOPCNT_M    0xfffU
33678c2ecf20Sopenharmony_ci#define QUESOPCNT_G(x) (((x) >> QUESOPCNT_S) & QUESOPCNT_M)
33688c2ecf20Sopenharmony_ci
33698c2ecf20Sopenharmony_ci#define OBQSELECT_S    4
33708c2ecf20Sopenharmony_ci#define OBQSELECT_V(x) ((x) << OBQSELECT_S)
33718c2ecf20Sopenharmony_ci#define OBQSELECT_F    OBQSELECT_V(1U)
33728c2ecf20Sopenharmony_ci
33738c2ecf20Sopenharmony_ci#define IBQSELECT_S    3
33748c2ecf20Sopenharmony_ci#define IBQSELECT_V(x) ((x) << IBQSELECT_S)
33758c2ecf20Sopenharmony_ci#define IBQSELECT_F    IBQSELECT_V(1U)
33768c2ecf20Sopenharmony_ci
33778c2ecf20Sopenharmony_ci#define QUENUMSELECT_S    0
33788c2ecf20Sopenharmony_ci#define QUENUMSELECT_V(x) ((x) << QUENUMSELECT_S)
33798c2ecf20Sopenharmony_ci
33808c2ecf20Sopenharmony_ci#endif /* __T4_REGS_H */
3381