18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#define A_SG_CONTROL 0x0
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ci#define S_CONGMODE    29
58c2ecf20Sopenharmony_ci#define V_CONGMODE(x) ((x) << S_CONGMODE)
68c2ecf20Sopenharmony_ci#define F_CONGMODE    V_CONGMODE(1U)
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci#define S_TNLFLMODE    28
98c2ecf20Sopenharmony_ci#define V_TNLFLMODE(x) ((x) << S_TNLFLMODE)
108c2ecf20Sopenharmony_ci#define F_TNLFLMODE    V_TNLFLMODE(1U)
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#define S_FATLPERREN    27
138c2ecf20Sopenharmony_ci#define V_FATLPERREN(x) ((x) << S_FATLPERREN)
148c2ecf20Sopenharmony_ci#define F_FATLPERREN    V_FATLPERREN(1U)
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci#define S_DROPPKT    20
178c2ecf20Sopenharmony_ci#define V_DROPPKT(x) ((x) << S_DROPPKT)
188c2ecf20Sopenharmony_ci#define F_DROPPKT    V_DROPPKT(1U)
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci#define S_EGRGENCTRL    19
218c2ecf20Sopenharmony_ci#define V_EGRGENCTRL(x) ((x) << S_EGRGENCTRL)
228c2ecf20Sopenharmony_ci#define F_EGRGENCTRL    V_EGRGENCTRL(1U)
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci#define S_USERSPACESIZE    14
258c2ecf20Sopenharmony_ci#define M_USERSPACESIZE    0x1f
268c2ecf20Sopenharmony_ci#define V_USERSPACESIZE(x) ((x) << S_USERSPACESIZE)
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci#define S_HOSTPAGESIZE    11
298c2ecf20Sopenharmony_ci#define M_HOSTPAGESIZE    0x7
308c2ecf20Sopenharmony_ci#define V_HOSTPAGESIZE(x) ((x) << S_HOSTPAGESIZE)
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci#define S_FLMODE    9
338c2ecf20Sopenharmony_ci#define V_FLMODE(x) ((x) << S_FLMODE)
348c2ecf20Sopenharmony_ci#define F_FLMODE    V_FLMODE(1U)
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ci#define S_PKTSHIFT    6
378c2ecf20Sopenharmony_ci#define M_PKTSHIFT    0x7
388c2ecf20Sopenharmony_ci#define V_PKTSHIFT(x) ((x) << S_PKTSHIFT)
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_ci#define S_ONEINTMULTQ    5
418c2ecf20Sopenharmony_ci#define V_ONEINTMULTQ(x) ((x) << S_ONEINTMULTQ)
428c2ecf20Sopenharmony_ci#define F_ONEINTMULTQ    V_ONEINTMULTQ(1U)
438c2ecf20Sopenharmony_ci
448c2ecf20Sopenharmony_ci#define S_BIGENDIANINGRESS    2
458c2ecf20Sopenharmony_ci#define V_BIGENDIANINGRESS(x) ((x) << S_BIGENDIANINGRESS)
468c2ecf20Sopenharmony_ci#define F_BIGENDIANINGRESS    V_BIGENDIANINGRESS(1U)
478c2ecf20Sopenharmony_ci
488c2ecf20Sopenharmony_ci#define S_ISCSICOALESCING    1
498c2ecf20Sopenharmony_ci#define V_ISCSICOALESCING(x) ((x) << S_ISCSICOALESCING)
508c2ecf20Sopenharmony_ci#define F_ISCSICOALESCING    V_ISCSICOALESCING(1U)
518c2ecf20Sopenharmony_ci
528c2ecf20Sopenharmony_ci#define S_GLOBALENABLE    0
538c2ecf20Sopenharmony_ci#define V_GLOBALENABLE(x) ((x) << S_GLOBALENABLE)
548c2ecf20Sopenharmony_ci#define F_GLOBALENABLE    V_GLOBALENABLE(1U)
558c2ecf20Sopenharmony_ci
568c2ecf20Sopenharmony_ci#define S_AVOIDCQOVFL    24
578c2ecf20Sopenharmony_ci#define V_AVOIDCQOVFL(x) ((x) << S_AVOIDCQOVFL)
588c2ecf20Sopenharmony_ci#define F_AVOIDCQOVFL    V_AVOIDCQOVFL(1U)
598c2ecf20Sopenharmony_ci
608c2ecf20Sopenharmony_ci#define S_OPTONEINTMULTQ    23
618c2ecf20Sopenharmony_ci#define V_OPTONEINTMULTQ(x) ((x) << S_OPTONEINTMULTQ)
628c2ecf20Sopenharmony_ci#define F_OPTONEINTMULTQ    V_OPTONEINTMULTQ(1U)
638c2ecf20Sopenharmony_ci
648c2ecf20Sopenharmony_ci#define S_CQCRDTCTRL    22
658c2ecf20Sopenharmony_ci#define V_CQCRDTCTRL(x) ((x) << S_CQCRDTCTRL)
668c2ecf20Sopenharmony_ci#define F_CQCRDTCTRL    V_CQCRDTCTRL(1U)
678c2ecf20Sopenharmony_ci
688c2ecf20Sopenharmony_ci#define A_SG_KDOORBELL 0x4
698c2ecf20Sopenharmony_ci
708c2ecf20Sopenharmony_ci#define S_SELEGRCNTX    31
718c2ecf20Sopenharmony_ci#define V_SELEGRCNTX(x) ((x) << S_SELEGRCNTX)
728c2ecf20Sopenharmony_ci#define F_SELEGRCNTX    V_SELEGRCNTX(1U)
738c2ecf20Sopenharmony_ci
748c2ecf20Sopenharmony_ci#define S_EGRCNTX    0
758c2ecf20Sopenharmony_ci#define M_EGRCNTX    0xffff
768c2ecf20Sopenharmony_ci#define V_EGRCNTX(x) ((x) << S_EGRCNTX)
778c2ecf20Sopenharmony_ci
788c2ecf20Sopenharmony_ci#define A_SG_GTS 0x8
798c2ecf20Sopenharmony_ci
808c2ecf20Sopenharmony_ci#define S_RSPQ    29
818c2ecf20Sopenharmony_ci#define M_RSPQ    0x7
828c2ecf20Sopenharmony_ci#define V_RSPQ(x) ((x) << S_RSPQ)
838c2ecf20Sopenharmony_ci#define G_RSPQ(x) (((x) >> S_RSPQ) & M_RSPQ)
848c2ecf20Sopenharmony_ci
858c2ecf20Sopenharmony_ci#define S_NEWTIMER    16
868c2ecf20Sopenharmony_ci#define M_NEWTIMER    0x1fff
878c2ecf20Sopenharmony_ci#define V_NEWTIMER(x) ((x) << S_NEWTIMER)
888c2ecf20Sopenharmony_ci
898c2ecf20Sopenharmony_ci#define S_NEWINDEX    0
908c2ecf20Sopenharmony_ci#define M_NEWINDEX    0xffff
918c2ecf20Sopenharmony_ci#define V_NEWINDEX(x) ((x) << S_NEWINDEX)
928c2ecf20Sopenharmony_ci
938c2ecf20Sopenharmony_ci#define A_SG_CONTEXT_CMD 0xc
948c2ecf20Sopenharmony_ci
958c2ecf20Sopenharmony_ci#define S_CONTEXT_CMD_OPCODE    28
968c2ecf20Sopenharmony_ci#define M_CONTEXT_CMD_OPCODE    0xf
978c2ecf20Sopenharmony_ci#define V_CONTEXT_CMD_OPCODE(x) ((x) << S_CONTEXT_CMD_OPCODE)
988c2ecf20Sopenharmony_ci
998c2ecf20Sopenharmony_ci#define S_CONTEXT_CMD_BUSY    27
1008c2ecf20Sopenharmony_ci#define V_CONTEXT_CMD_BUSY(x) ((x) << S_CONTEXT_CMD_BUSY)
1018c2ecf20Sopenharmony_ci#define F_CONTEXT_CMD_BUSY    V_CONTEXT_CMD_BUSY(1U)
1028c2ecf20Sopenharmony_ci
1038c2ecf20Sopenharmony_ci#define S_CQ_CREDIT    20
1048c2ecf20Sopenharmony_ci
1058c2ecf20Sopenharmony_ci#define M_CQ_CREDIT    0x7f
1068c2ecf20Sopenharmony_ci
1078c2ecf20Sopenharmony_ci#define V_CQ_CREDIT(x) ((x) << S_CQ_CREDIT)
1088c2ecf20Sopenharmony_ci
1098c2ecf20Sopenharmony_ci#define G_CQ_CREDIT(x) (((x) >> S_CQ_CREDIT) & M_CQ_CREDIT)
1108c2ecf20Sopenharmony_ci
1118c2ecf20Sopenharmony_ci#define S_CQ    19
1128c2ecf20Sopenharmony_ci
1138c2ecf20Sopenharmony_ci#define V_CQ(x) ((x) << S_CQ)
1148c2ecf20Sopenharmony_ci#define F_CQ    V_CQ(1U)
1158c2ecf20Sopenharmony_ci
1168c2ecf20Sopenharmony_ci#define S_RESPONSEQ    18
1178c2ecf20Sopenharmony_ci#define V_RESPONSEQ(x) ((x) << S_RESPONSEQ)
1188c2ecf20Sopenharmony_ci#define F_RESPONSEQ    V_RESPONSEQ(1U)
1198c2ecf20Sopenharmony_ci
1208c2ecf20Sopenharmony_ci#define S_EGRESS    17
1218c2ecf20Sopenharmony_ci#define V_EGRESS(x) ((x) << S_EGRESS)
1228c2ecf20Sopenharmony_ci#define F_EGRESS    V_EGRESS(1U)
1238c2ecf20Sopenharmony_ci
1248c2ecf20Sopenharmony_ci#define S_FREELIST    16
1258c2ecf20Sopenharmony_ci#define V_FREELIST(x) ((x) << S_FREELIST)
1268c2ecf20Sopenharmony_ci#define F_FREELIST    V_FREELIST(1U)
1278c2ecf20Sopenharmony_ci
1288c2ecf20Sopenharmony_ci#define S_CONTEXT    0
1298c2ecf20Sopenharmony_ci#define M_CONTEXT    0xffff
1308c2ecf20Sopenharmony_ci#define V_CONTEXT(x) ((x) << S_CONTEXT)
1318c2ecf20Sopenharmony_ci
1328c2ecf20Sopenharmony_ci#define G_CONTEXT(x) (((x) >> S_CONTEXT) & M_CONTEXT)
1338c2ecf20Sopenharmony_ci
1348c2ecf20Sopenharmony_ci#define A_SG_CONTEXT_DATA0 0x10
1358c2ecf20Sopenharmony_ci
1368c2ecf20Sopenharmony_ci#define A_SG_CONTEXT_DATA1 0x14
1378c2ecf20Sopenharmony_ci
1388c2ecf20Sopenharmony_ci#define A_SG_CONTEXT_DATA2 0x18
1398c2ecf20Sopenharmony_ci
1408c2ecf20Sopenharmony_ci#define A_SG_CONTEXT_DATA3 0x1c
1418c2ecf20Sopenharmony_ci
1428c2ecf20Sopenharmony_ci#define A_SG_CONTEXT_MASK0 0x20
1438c2ecf20Sopenharmony_ci
1448c2ecf20Sopenharmony_ci#define A_SG_CONTEXT_MASK1 0x24
1458c2ecf20Sopenharmony_ci
1468c2ecf20Sopenharmony_ci#define A_SG_CONTEXT_MASK2 0x28
1478c2ecf20Sopenharmony_ci
1488c2ecf20Sopenharmony_ci#define A_SG_CONTEXT_MASK3 0x2c
1498c2ecf20Sopenharmony_ci
1508c2ecf20Sopenharmony_ci#define A_SG_RSPQ_CREDIT_RETURN 0x30
1518c2ecf20Sopenharmony_ci
1528c2ecf20Sopenharmony_ci#define S_CREDITS    0
1538c2ecf20Sopenharmony_ci#define M_CREDITS    0xffff
1548c2ecf20Sopenharmony_ci#define V_CREDITS(x) ((x) << S_CREDITS)
1558c2ecf20Sopenharmony_ci
1568c2ecf20Sopenharmony_ci#define A_SG_DATA_INTR 0x34
1578c2ecf20Sopenharmony_ci
1588c2ecf20Sopenharmony_ci#define S_ERRINTR    31
1598c2ecf20Sopenharmony_ci#define V_ERRINTR(x) ((x) << S_ERRINTR)
1608c2ecf20Sopenharmony_ci#define F_ERRINTR    V_ERRINTR(1U)
1618c2ecf20Sopenharmony_ci
1628c2ecf20Sopenharmony_ci#define A_SG_HI_DRB_HI_THRSH 0x38
1638c2ecf20Sopenharmony_ci
1648c2ecf20Sopenharmony_ci#define A_SG_HI_DRB_LO_THRSH 0x3c
1658c2ecf20Sopenharmony_ci
1668c2ecf20Sopenharmony_ci#define A_SG_LO_DRB_HI_THRSH 0x40
1678c2ecf20Sopenharmony_ci
1688c2ecf20Sopenharmony_ci#define A_SG_LO_DRB_LO_THRSH 0x44
1698c2ecf20Sopenharmony_ci
1708c2ecf20Sopenharmony_ci#define A_SG_RSPQ_FL_STATUS 0x4c
1718c2ecf20Sopenharmony_ci
1728c2ecf20Sopenharmony_ci#define S_RSPQ0DISABLED    8
1738c2ecf20Sopenharmony_ci
1748c2ecf20Sopenharmony_ci#define S_FL0EMPTY    16
1758c2ecf20Sopenharmony_ci#define V_FL0EMPTY(x) ((x) << S_FL0EMPTY)
1768c2ecf20Sopenharmony_ci#define F_FL0EMPTY    V_FL0EMPTY(1U)
1778c2ecf20Sopenharmony_ci
1788c2ecf20Sopenharmony_ci#define A_SG_EGR_RCQ_DRB_THRSH 0x54
1798c2ecf20Sopenharmony_ci
1808c2ecf20Sopenharmony_ci#define S_HIRCQDRBTHRSH    16
1818c2ecf20Sopenharmony_ci#define M_HIRCQDRBTHRSH    0x7ff
1828c2ecf20Sopenharmony_ci#define V_HIRCQDRBTHRSH(x) ((x) << S_HIRCQDRBTHRSH)
1838c2ecf20Sopenharmony_ci
1848c2ecf20Sopenharmony_ci#define S_LORCQDRBTHRSH    0
1858c2ecf20Sopenharmony_ci#define M_LORCQDRBTHRSH    0x7ff
1868c2ecf20Sopenharmony_ci#define V_LORCQDRBTHRSH(x) ((x) << S_LORCQDRBTHRSH)
1878c2ecf20Sopenharmony_ci
1888c2ecf20Sopenharmony_ci#define A_SG_EGR_CNTX_BADDR 0x58
1898c2ecf20Sopenharmony_ci
1908c2ecf20Sopenharmony_ci#define A_SG_INT_CAUSE 0x5c
1918c2ecf20Sopenharmony_ci
1928c2ecf20Sopenharmony_ci#define S_HIRCQPARITYERROR    31
1938c2ecf20Sopenharmony_ci#define V_HIRCQPARITYERROR(x) ((x) << S_HIRCQPARITYERROR)
1948c2ecf20Sopenharmony_ci#define F_HIRCQPARITYERROR    V_HIRCQPARITYERROR(1U)
1958c2ecf20Sopenharmony_ci
1968c2ecf20Sopenharmony_ci#define S_LORCQPARITYERROR    30
1978c2ecf20Sopenharmony_ci#define V_LORCQPARITYERROR(x) ((x) << S_LORCQPARITYERROR)
1988c2ecf20Sopenharmony_ci#define F_LORCQPARITYERROR    V_LORCQPARITYERROR(1U)
1998c2ecf20Sopenharmony_ci
2008c2ecf20Sopenharmony_ci#define S_HIDRBPARITYERROR    29
2018c2ecf20Sopenharmony_ci#define V_HIDRBPARITYERROR(x) ((x) << S_HIDRBPARITYERROR)
2028c2ecf20Sopenharmony_ci#define F_HIDRBPARITYERROR    V_HIDRBPARITYERROR(1U)
2038c2ecf20Sopenharmony_ci
2048c2ecf20Sopenharmony_ci#define S_LODRBPARITYERROR    28
2058c2ecf20Sopenharmony_ci#define V_LODRBPARITYERROR(x) ((x) << S_LODRBPARITYERROR)
2068c2ecf20Sopenharmony_ci#define F_LODRBPARITYERROR    V_LODRBPARITYERROR(1U)
2078c2ecf20Sopenharmony_ci
2088c2ecf20Sopenharmony_ci#define S_FLPARITYERROR    22
2098c2ecf20Sopenharmony_ci#define M_FLPARITYERROR    0x3f
2108c2ecf20Sopenharmony_ci#define V_FLPARITYERROR(x) ((x) << S_FLPARITYERROR)
2118c2ecf20Sopenharmony_ci#define G_FLPARITYERROR(x) (((x) >> S_FLPARITYERROR) & M_FLPARITYERROR)
2128c2ecf20Sopenharmony_ci
2138c2ecf20Sopenharmony_ci#define S_ITPARITYERROR    20
2148c2ecf20Sopenharmony_ci#define M_ITPARITYERROR    0x3
2158c2ecf20Sopenharmony_ci#define V_ITPARITYERROR(x) ((x) << S_ITPARITYERROR)
2168c2ecf20Sopenharmony_ci#define G_ITPARITYERROR(x) (((x) >> S_ITPARITYERROR) & M_ITPARITYERROR)
2178c2ecf20Sopenharmony_ci
2188c2ecf20Sopenharmony_ci#define S_IRPARITYERROR    19
2198c2ecf20Sopenharmony_ci#define V_IRPARITYERROR(x) ((x) << S_IRPARITYERROR)
2208c2ecf20Sopenharmony_ci#define F_IRPARITYERROR    V_IRPARITYERROR(1U)
2218c2ecf20Sopenharmony_ci
2228c2ecf20Sopenharmony_ci#define S_RCPARITYERROR    18
2238c2ecf20Sopenharmony_ci#define V_RCPARITYERROR(x) ((x) << S_RCPARITYERROR)
2248c2ecf20Sopenharmony_ci#define F_RCPARITYERROR    V_RCPARITYERROR(1U)
2258c2ecf20Sopenharmony_ci
2268c2ecf20Sopenharmony_ci#define S_OCPARITYERROR    17
2278c2ecf20Sopenharmony_ci#define V_OCPARITYERROR(x) ((x) << S_OCPARITYERROR)
2288c2ecf20Sopenharmony_ci#define F_OCPARITYERROR    V_OCPARITYERROR(1U)
2298c2ecf20Sopenharmony_ci
2308c2ecf20Sopenharmony_ci#define S_CPPARITYERROR    16
2318c2ecf20Sopenharmony_ci#define V_CPPARITYERROR(x) ((x) << S_CPPARITYERROR)
2328c2ecf20Sopenharmony_ci#define F_CPPARITYERROR    V_CPPARITYERROR(1U)
2338c2ecf20Sopenharmony_ci
2348c2ecf20Sopenharmony_ci#define S_R_REQ_FRAMINGERROR    15
2358c2ecf20Sopenharmony_ci#define V_R_REQ_FRAMINGERROR(x) ((x) << S_R_REQ_FRAMINGERROR)
2368c2ecf20Sopenharmony_ci#define F_R_REQ_FRAMINGERROR    V_R_REQ_FRAMINGERROR(1U)
2378c2ecf20Sopenharmony_ci
2388c2ecf20Sopenharmony_ci#define S_UC_REQ_FRAMINGERROR    14
2398c2ecf20Sopenharmony_ci#define V_UC_REQ_FRAMINGERROR(x) ((x) << S_UC_REQ_FRAMINGERROR)
2408c2ecf20Sopenharmony_ci#define F_UC_REQ_FRAMINGERROR    V_UC_REQ_FRAMINGERROR(1U)
2418c2ecf20Sopenharmony_ci
2428c2ecf20Sopenharmony_ci#define S_HICTLDRBDROPERR    13
2438c2ecf20Sopenharmony_ci#define V_HICTLDRBDROPERR(x) ((x) << S_HICTLDRBDROPERR)
2448c2ecf20Sopenharmony_ci#define F_HICTLDRBDROPERR    V_HICTLDRBDROPERR(1U)
2458c2ecf20Sopenharmony_ci
2468c2ecf20Sopenharmony_ci#define S_LOCTLDRBDROPERR    12
2478c2ecf20Sopenharmony_ci#define V_LOCTLDRBDROPERR(x) ((x) << S_LOCTLDRBDROPERR)
2488c2ecf20Sopenharmony_ci#define F_LOCTLDRBDROPERR    V_LOCTLDRBDROPERR(1U)
2498c2ecf20Sopenharmony_ci
2508c2ecf20Sopenharmony_ci#define S_HIPIODRBDROPERR    11
2518c2ecf20Sopenharmony_ci#define V_HIPIODRBDROPERR(x) ((x) << S_HIPIODRBDROPERR)
2528c2ecf20Sopenharmony_ci#define F_HIPIODRBDROPERR    V_HIPIODRBDROPERR(1U)
2538c2ecf20Sopenharmony_ci
2548c2ecf20Sopenharmony_ci#define S_LOPIODRBDROPERR    10
2558c2ecf20Sopenharmony_ci#define V_LOPIODRBDROPERR(x) ((x) << S_LOPIODRBDROPERR)
2568c2ecf20Sopenharmony_ci#define F_LOPIODRBDROPERR    V_LOPIODRBDROPERR(1U)
2578c2ecf20Sopenharmony_ci
2588c2ecf20Sopenharmony_ci#define S_HIPRIORITYDBFULL    7
2598c2ecf20Sopenharmony_ci#define V_HIPRIORITYDBFULL(x) ((x) << S_HIPRIORITYDBFULL)
2608c2ecf20Sopenharmony_ci#define F_HIPRIORITYDBFULL    V_HIPRIORITYDBFULL(1U)
2618c2ecf20Sopenharmony_ci
2628c2ecf20Sopenharmony_ci#define S_HIPRIORITYDBEMPTY   6
2638c2ecf20Sopenharmony_ci#define V_HIPRIORITYDBEMPTY(x) ((x) << S_HIPRIORITYDBEMPTY)
2648c2ecf20Sopenharmony_ci#define F_HIPRIORITYDBEMPTY    V_HIPRIORITYDBEMPTY(1U)
2658c2ecf20Sopenharmony_ci
2668c2ecf20Sopenharmony_ci#define S_LOPRIORITYDBFULL    5
2678c2ecf20Sopenharmony_ci#define V_LOPRIORITYDBFULL(x) ((x) << S_LOPRIORITYDBFULL)
2688c2ecf20Sopenharmony_ci#define F_LOPRIORITYDBFULL    V_LOPRIORITYDBFULL(1U)
2698c2ecf20Sopenharmony_ci
2708c2ecf20Sopenharmony_ci#define S_LOPRIORITYDBEMPTY   4
2718c2ecf20Sopenharmony_ci#define V_LOPRIORITYDBEMPTY(x) ((x) << S_LOPRIORITYDBEMPTY)
2728c2ecf20Sopenharmony_ci#define F_LOPRIORITYDBEMPTY    V_LOPRIORITYDBEMPTY(1U)
2738c2ecf20Sopenharmony_ci
2748c2ecf20Sopenharmony_ci#define S_RSPQDISABLED    3
2758c2ecf20Sopenharmony_ci#define V_RSPQDISABLED(x) ((x) << S_RSPQDISABLED)
2768c2ecf20Sopenharmony_ci#define F_RSPQDISABLED    V_RSPQDISABLED(1U)
2778c2ecf20Sopenharmony_ci
2788c2ecf20Sopenharmony_ci#define S_RSPQCREDITOVERFOW    2
2798c2ecf20Sopenharmony_ci#define V_RSPQCREDITOVERFOW(x) ((x) << S_RSPQCREDITOVERFOW)
2808c2ecf20Sopenharmony_ci#define F_RSPQCREDITOVERFOW    V_RSPQCREDITOVERFOW(1U)
2818c2ecf20Sopenharmony_ci
2828c2ecf20Sopenharmony_ci#define S_FLEMPTY    1
2838c2ecf20Sopenharmony_ci#define V_FLEMPTY(x) ((x) << S_FLEMPTY)
2848c2ecf20Sopenharmony_ci#define F_FLEMPTY    V_FLEMPTY(1U)
2858c2ecf20Sopenharmony_ci
2868c2ecf20Sopenharmony_ci#define A_SG_INT_ENABLE 0x60
2878c2ecf20Sopenharmony_ci
2888c2ecf20Sopenharmony_ci#define A_SG_CMDQ_CREDIT_TH 0x64
2898c2ecf20Sopenharmony_ci
2908c2ecf20Sopenharmony_ci#define S_TIMEOUT    8
2918c2ecf20Sopenharmony_ci#define M_TIMEOUT    0xffffff
2928c2ecf20Sopenharmony_ci#define V_TIMEOUT(x) ((x) << S_TIMEOUT)
2938c2ecf20Sopenharmony_ci
2948c2ecf20Sopenharmony_ci#define S_THRESHOLD    0
2958c2ecf20Sopenharmony_ci#define M_THRESHOLD    0xff
2968c2ecf20Sopenharmony_ci#define V_THRESHOLD(x) ((x) << S_THRESHOLD)
2978c2ecf20Sopenharmony_ci
2988c2ecf20Sopenharmony_ci#define A_SG_TIMER_TICK 0x68
2998c2ecf20Sopenharmony_ci
3008c2ecf20Sopenharmony_ci#define A_SG_CQ_CONTEXT_BADDR 0x6c
3018c2ecf20Sopenharmony_ci
3028c2ecf20Sopenharmony_ci#define A_SG_OCO_BASE 0x70
3038c2ecf20Sopenharmony_ci
3048c2ecf20Sopenharmony_ci#define S_BASE1    16
3058c2ecf20Sopenharmony_ci#define M_BASE1    0xffff
3068c2ecf20Sopenharmony_ci#define V_BASE1(x) ((x) << S_BASE1)
3078c2ecf20Sopenharmony_ci
3088c2ecf20Sopenharmony_ci#define A_SG_DRB_PRI_THRESH 0x74
3098c2ecf20Sopenharmony_ci
3108c2ecf20Sopenharmony_ci#define A_PCIX_INT_ENABLE 0x80
3118c2ecf20Sopenharmony_ci
3128c2ecf20Sopenharmony_ci#define S_MSIXPARERR    22
3138c2ecf20Sopenharmony_ci#define M_MSIXPARERR    0x7
3148c2ecf20Sopenharmony_ci
3158c2ecf20Sopenharmony_ci#define V_MSIXPARERR(x) ((x) << S_MSIXPARERR)
3168c2ecf20Sopenharmony_ci
3178c2ecf20Sopenharmony_ci#define S_CFPARERR    18
3188c2ecf20Sopenharmony_ci#define M_CFPARERR    0xf
3198c2ecf20Sopenharmony_ci
3208c2ecf20Sopenharmony_ci#define V_CFPARERR(x) ((x) << S_CFPARERR)
3218c2ecf20Sopenharmony_ci
3228c2ecf20Sopenharmony_ci#define S_RFPARERR    14
3238c2ecf20Sopenharmony_ci#define M_RFPARERR    0xf
3248c2ecf20Sopenharmony_ci
3258c2ecf20Sopenharmony_ci#define V_RFPARERR(x) ((x) << S_RFPARERR)
3268c2ecf20Sopenharmony_ci
3278c2ecf20Sopenharmony_ci#define S_WFPARERR    12
3288c2ecf20Sopenharmony_ci#define M_WFPARERR    0x3
3298c2ecf20Sopenharmony_ci
3308c2ecf20Sopenharmony_ci#define V_WFPARERR(x) ((x) << S_WFPARERR)
3318c2ecf20Sopenharmony_ci
3328c2ecf20Sopenharmony_ci#define S_PIOPARERR    11
3338c2ecf20Sopenharmony_ci#define V_PIOPARERR(x) ((x) << S_PIOPARERR)
3348c2ecf20Sopenharmony_ci#define F_PIOPARERR    V_PIOPARERR(1U)
3358c2ecf20Sopenharmony_ci
3368c2ecf20Sopenharmony_ci#define S_DETUNCECCERR    10
3378c2ecf20Sopenharmony_ci#define V_DETUNCECCERR(x) ((x) << S_DETUNCECCERR)
3388c2ecf20Sopenharmony_ci#define F_DETUNCECCERR    V_DETUNCECCERR(1U)
3398c2ecf20Sopenharmony_ci
3408c2ecf20Sopenharmony_ci#define S_DETCORECCERR    9
3418c2ecf20Sopenharmony_ci#define V_DETCORECCERR(x) ((x) << S_DETCORECCERR)
3428c2ecf20Sopenharmony_ci#define F_DETCORECCERR    V_DETCORECCERR(1U)
3438c2ecf20Sopenharmony_ci
3448c2ecf20Sopenharmony_ci#define S_RCVSPLCMPERR    8
3458c2ecf20Sopenharmony_ci#define V_RCVSPLCMPERR(x) ((x) << S_RCVSPLCMPERR)
3468c2ecf20Sopenharmony_ci#define F_RCVSPLCMPERR    V_RCVSPLCMPERR(1U)
3478c2ecf20Sopenharmony_ci
3488c2ecf20Sopenharmony_ci#define S_UNXSPLCMP    7
3498c2ecf20Sopenharmony_ci#define V_UNXSPLCMP(x) ((x) << S_UNXSPLCMP)
3508c2ecf20Sopenharmony_ci#define F_UNXSPLCMP    V_UNXSPLCMP(1U)
3518c2ecf20Sopenharmony_ci
3528c2ecf20Sopenharmony_ci#define S_SPLCMPDIS    6
3538c2ecf20Sopenharmony_ci#define V_SPLCMPDIS(x) ((x) << S_SPLCMPDIS)
3548c2ecf20Sopenharmony_ci#define F_SPLCMPDIS    V_SPLCMPDIS(1U)
3558c2ecf20Sopenharmony_ci
3568c2ecf20Sopenharmony_ci#define S_DETPARERR    5
3578c2ecf20Sopenharmony_ci#define V_DETPARERR(x) ((x) << S_DETPARERR)
3588c2ecf20Sopenharmony_ci#define F_DETPARERR    V_DETPARERR(1U)
3598c2ecf20Sopenharmony_ci
3608c2ecf20Sopenharmony_ci#define S_SIGSYSERR    4
3618c2ecf20Sopenharmony_ci#define V_SIGSYSERR(x) ((x) << S_SIGSYSERR)
3628c2ecf20Sopenharmony_ci#define F_SIGSYSERR    V_SIGSYSERR(1U)
3638c2ecf20Sopenharmony_ci
3648c2ecf20Sopenharmony_ci#define S_RCVMSTABT    3
3658c2ecf20Sopenharmony_ci#define V_RCVMSTABT(x) ((x) << S_RCVMSTABT)
3668c2ecf20Sopenharmony_ci#define F_RCVMSTABT    V_RCVMSTABT(1U)
3678c2ecf20Sopenharmony_ci
3688c2ecf20Sopenharmony_ci#define S_RCVTARABT    2
3698c2ecf20Sopenharmony_ci#define V_RCVTARABT(x) ((x) << S_RCVTARABT)
3708c2ecf20Sopenharmony_ci#define F_RCVTARABT    V_RCVTARABT(1U)
3718c2ecf20Sopenharmony_ci
3728c2ecf20Sopenharmony_ci#define S_SIGTARABT    1
3738c2ecf20Sopenharmony_ci#define V_SIGTARABT(x) ((x) << S_SIGTARABT)
3748c2ecf20Sopenharmony_ci#define F_SIGTARABT    V_SIGTARABT(1U)
3758c2ecf20Sopenharmony_ci
3768c2ecf20Sopenharmony_ci#define S_MSTDETPARERR    0
3778c2ecf20Sopenharmony_ci#define V_MSTDETPARERR(x) ((x) << S_MSTDETPARERR)
3788c2ecf20Sopenharmony_ci#define F_MSTDETPARERR    V_MSTDETPARERR(1U)
3798c2ecf20Sopenharmony_ci
3808c2ecf20Sopenharmony_ci#define A_PCIX_INT_CAUSE 0x84
3818c2ecf20Sopenharmony_ci
3828c2ecf20Sopenharmony_ci#define A_PCIX_CFG 0x88
3838c2ecf20Sopenharmony_ci
3848c2ecf20Sopenharmony_ci#define S_DMASTOPEN    19
3858c2ecf20Sopenharmony_ci#define V_DMASTOPEN(x) ((x) << S_DMASTOPEN)
3868c2ecf20Sopenharmony_ci#define F_DMASTOPEN    V_DMASTOPEN(1U)
3878c2ecf20Sopenharmony_ci
3888c2ecf20Sopenharmony_ci#define S_CLIDECEN    18
3898c2ecf20Sopenharmony_ci#define V_CLIDECEN(x) ((x) << S_CLIDECEN)
3908c2ecf20Sopenharmony_ci#define F_CLIDECEN    V_CLIDECEN(1U)
3918c2ecf20Sopenharmony_ci
3928c2ecf20Sopenharmony_ci#define A_PCIX_MODE 0x8c
3938c2ecf20Sopenharmony_ci
3948c2ecf20Sopenharmony_ci#define S_PCLKRANGE    6
3958c2ecf20Sopenharmony_ci#define M_PCLKRANGE    0x3
3968c2ecf20Sopenharmony_ci#define V_PCLKRANGE(x) ((x) << S_PCLKRANGE)
3978c2ecf20Sopenharmony_ci#define G_PCLKRANGE(x) (((x) >> S_PCLKRANGE) & M_PCLKRANGE)
3988c2ecf20Sopenharmony_ci
3998c2ecf20Sopenharmony_ci#define S_PCIXINITPAT    2
4008c2ecf20Sopenharmony_ci#define M_PCIXINITPAT    0xf
4018c2ecf20Sopenharmony_ci#define V_PCIXINITPAT(x) ((x) << S_PCIXINITPAT)
4028c2ecf20Sopenharmony_ci#define G_PCIXINITPAT(x) (((x) >> S_PCIXINITPAT) & M_PCIXINITPAT)
4038c2ecf20Sopenharmony_ci
4048c2ecf20Sopenharmony_ci#define S_64BIT    0
4058c2ecf20Sopenharmony_ci#define V_64BIT(x) ((x) << S_64BIT)
4068c2ecf20Sopenharmony_ci#define F_64BIT    V_64BIT(1U)
4078c2ecf20Sopenharmony_ci
4088c2ecf20Sopenharmony_ci#define A_PCIE_INT_ENABLE 0x80
4098c2ecf20Sopenharmony_ci
4108c2ecf20Sopenharmony_ci#define S_BISTERR    15
4118c2ecf20Sopenharmony_ci#define M_BISTERR    0xff
4128c2ecf20Sopenharmony_ci
4138c2ecf20Sopenharmony_ci#define V_BISTERR(x) ((x) << S_BISTERR)
4148c2ecf20Sopenharmony_ci
4158c2ecf20Sopenharmony_ci#define S_TXPARERR    18
4168c2ecf20Sopenharmony_ci#define V_TXPARERR(x) ((x) << S_TXPARERR)
4178c2ecf20Sopenharmony_ci#define F_TXPARERR    V_TXPARERR(1U)
4188c2ecf20Sopenharmony_ci
4198c2ecf20Sopenharmony_ci#define S_RXPARERR    17
4208c2ecf20Sopenharmony_ci#define V_RXPARERR(x) ((x) << S_RXPARERR)
4218c2ecf20Sopenharmony_ci#define F_RXPARERR    V_RXPARERR(1U)
4228c2ecf20Sopenharmony_ci
4238c2ecf20Sopenharmony_ci#define S_RETRYLUTPARERR    16
4248c2ecf20Sopenharmony_ci#define V_RETRYLUTPARERR(x) ((x) << S_RETRYLUTPARERR)
4258c2ecf20Sopenharmony_ci#define F_RETRYLUTPARERR    V_RETRYLUTPARERR(1U)
4268c2ecf20Sopenharmony_ci
4278c2ecf20Sopenharmony_ci#define S_RETRYBUFPARERR    15
4288c2ecf20Sopenharmony_ci#define V_RETRYBUFPARERR(x) ((x) << S_RETRYBUFPARERR)
4298c2ecf20Sopenharmony_ci#define F_RETRYBUFPARERR    V_RETRYBUFPARERR(1U)
4308c2ecf20Sopenharmony_ci
4318c2ecf20Sopenharmony_ci#define S_PCIE_MSIXPARERR    12
4328c2ecf20Sopenharmony_ci#define M_PCIE_MSIXPARERR    0x7
4338c2ecf20Sopenharmony_ci
4348c2ecf20Sopenharmony_ci#define V_PCIE_MSIXPARERR(x) ((x) << S_PCIE_MSIXPARERR)
4358c2ecf20Sopenharmony_ci
4368c2ecf20Sopenharmony_ci#define S_PCIE_CFPARERR    11
4378c2ecf20Sopenharmony_ci#define V_PCIE_CFPARERR(x) ((x) << S_PCIE_CFPARERR)
4388c2ecf20Sopenharmony_ci#define F_PCIE_CFPARERR    V_PCIE_CFPARERR(1U)
4398c2ecf20Sopenharmony_ci
4408c2ecf20Sopenharmony_ci#define S_PCIE_RFPARERR    10
4418c2ecf20Sopenharmony_ci#define V_PCIE_RFPARERR(x) ((x) << S_PCIE_RFPARERR)
4428c2ecf20Sopenharmony_ci#define F_PCIE_RFPARERR    V_PCIE_RFPARERR(1U)
4438c2ecf20Sopenharmony_ci
4448c2ecf20Sopenharmony_ci#define S_PCIE_WFPARERR    9
4458c2ecf20Sopenharmony_ci#define V_PCIE_WFPARERR(x) ((x) << S_PCIE_WFPARERR)
4468c2ecf20Sopenharmony_ci#define F_PCIE_WFPARERR    V_PCIE_WFPARERR(1U)
4478c2ecf20Sopenharmony_ci
4488c2ecf20Sopenharmony_ci#define S_PCIE_PIOPARERR    8
4498c2ecf20Sopenharmony_ci#define V_PCIE_PIOPARERR(x) ((x) << S_PCIE_PIOPARERR)
4508c2ecf20Sopenharmony_ci#define F_PCIE_PIOPARERR    V_PCIE_PIOPARERR(1U)
4518c2ecf20Sopenharmony_ci
4528c2ecf20Sopenharmony_ci#define S_UNXSPLCPLERRC    7
4538c2ecf20Sopenharmony_ci#define V_UNXSPLCPLERRC(x) ((x) << S_UNXSPLCPLERRC)
4548c2ecf20Sopenharmony_ci#define F_UNXSPLCPLERRC    V_UNXSPLCPLERRC(1U)
4558c2ecf20Sopenharmony_ci
4568c2ecf20Sopenharmony_ci#define S_UNXSPLCPLERRR    6
4578c2ecf20Sopenharmony_ci#define V_UNXSPLCPLERRR(x) ((x) << S_UNXSPLCPLERRR)
4588c2ecf20Sopenharmony_ci#define F_UNXSPLCPLERRR    V_UNXSPLCPLERRR(1U)
4598c2ecf20Sopenharmony_ci
4608c2ecf20Sopenharmony_ci#define S_PEXERR    0
4618c2ecf20Sopenharmony_ci#define V_PEXERR(x) ((x) << S_PEXERR)
4628c2ecf20Sopenharmony_ci#define F_PEXERR    V_PEXERR(1U)
4638c2ecf20Sopenharmony_ci
4648c2ecf20Sopenharmony_ci#define A_PCIE_INT_CAUSE 0x84
4658c2ecf20Sopenharmony_ci
4668c2ecf20Sopenharmony_ci#define S_PCIE_DMASTOPEN    24
4678c2ecf20Sopenharmony_ci#define V_PCIE_DMASTOPEN(x) ((x) << S_PCIE_DMASTOPEN)
4688c2ecf20Sopenharmony_ci#define F_PCIE_DMASTOPEN    V_PCIE_DMASTOPEN(1U)
4698c2ecf20Sopenharmony_ci
4708c2ecf20Sopenharmony_ci#define A_PCIE_CFG 0x88
4718c2ecf20Sopenharmony_ci
4728c2ecf20Sopenharmony_ci#define S_ENABLELINKDWNDRST    21
4738c2ecf20Sopenharmony_ci#define V_ENABLELINKDWNDRST(x) ((x) << S_ENABLELINKDWNDRST)
4748c2ecf20Sopenharmony_ci#define F_ENABLELINKDWNDRST    V_ENABLELINKDWNDRST(1U)
4758c2ecf20Sopenharmony_ci
4768c2ecf20Sopenharmony_ci#define S_ENABLELINKDOWNRST    20
4778c2ecf20Sopenharmony_ci#define V_ENABLELINKDOWNRST(x) ((x) << S_ENABLELINKDOWNRST)
4788c2ecf20Sopenharmony_ci#define F_ENABLELINKDOWNRST    V_ENABLELINKDOWNRST(1U)
4798c2ecf20Sopenharmony_ci
4808c2ecf20Sopenharmony_ci#define S_PCIE_CLIDECEN    16
4818c2ecf20Sopenharmony_ci#define V_PCIE_CLIDECEN(x) ((x) << S_PCIE_CLIDECEN)
4828c2ecf20Sopenharmony_ci#define F_PCIE_CLIDECEN    V_PCIE_CLIDECEN(1U)
4838c2ecf20Sopenharmony_ci
4848c2ecf20Sopenharmony_ci#define S_CRSTWRMMODE    0
4858c2ecf20Sopenharmony_ci#define V_CRSTWRMMODE(x) ((x) << S_CRSTWRMMODE)
4868c2ecf20Sopenharmony_ci#define F_CRSTWRMMODE    V_CRSTWRMMODE(1U)
4878c2ecf20Sopenharmony_ci
4888c2ecf20Sopenharmony_ci#define A_PCIE_MODE 0x8c
4898c2ecf20Sopenharmony_ci
4908c2ecf20Sopenharmony_ci#define S_NUMFSTTRNSEQRX    10
4918c2ecf20Sopenharmony_ci#define M_NUMFSTTRNSEQRX    0xff
4928c2ecf20Sopenharmony_ci#define V_NUMFSTTRNSEQRX(x) ((x) << S_NUMFSTTRNSEQRX)
4938c2ecf20Sopenharmony_ci#define G_NUMFSTTRNSEQRX(x) (((x) >> S_NUMFSTTRNSEQRX) & M_NUMFSTTRNSEQRX)
4948c2ecf20Sopenharmony_ci
4958c2ecf20Sopenharmony_ci#define A_PCIE_PEX_CTRL0 0x98
4968c2ecf20Sopenharmony_ci
4978c2ecf20Sopenharmony_ci#define S_NUMFSTTRNSEQ    22
4988c2ecf20Sopenharmony_ci#define M_NUMFSTTRNSEQ    0xff
4998c2ecf20Sopenharmony_ci#define V_NUMFSTTRNSEQ(x) ((x) << S_NUMFSTTRNSEQ)
5008c2ecf20Sopenharmony_ci#define G_NUMFSTTRNSEQ(x) (((x) >> S_NUMFSTTRNSEQ) & M_NUMFSTTRNSEQ)
5018c2ecf20Sopenharmony_ci
5028c2ecf20Sopenharmony_ci#define S_REPLAYLMT    2
5038c2ecf20Sopenharmony_ci#define M_REPLAYLMT    0xfffff
5048c2ecf20Sopenharmony_ci
5058c2ecf20Sopenharmony_ci#define V_REPLAYLMT(x) ((x) << S_REPLAYLMT)
5068c2ecf20Sopenharmony_ci
5078c2ecf20Sopenharmony_ci#define A_PCIE_PEX_CTRL1 0x9c
5088c2ecf20Sopenharmony_ci
5098c2ecf20Sopenharmony_ci#define S_T3A_ACKLAT    0
5108c2ecf20Sopenharmony_ci#define M_T3A_ACKLAT    0x7ff
5118c2ecf20Sopenharmony_ci
5128c2ecf20Sopenharmony_ci#define V_T3A_ACKLAT(x) ((x) << S_T3A_ACKLAT)
5138c2ecf20Sopenharmony_ci
5148c2ecf20Sopenharmony_ci#define S_ACKLAT    0
5158c2ecf20Sopenharmony_ci#define M_ACKLAT    0x1fff
5168c2ecf20Sopenharmony_ci
5178c2ecf20Sopenharmony_ci#define V_ACKLAT(x) ((x) << S_ACKLAT)
5188c2ecf20Sopenharmony_ci
5198c2ecf20Sopenharmony_ci#define A_PCIE_PEX_ERR 0xa4
5208c2ecf20Sopenharmony_ci
5218c2ecf20Sopenharmony_ci#define A_T3DBG_GPIO_EN 0xd0
5228c2ecf20Sopenharmony_ci
5238c2ecf20Sopenharmony_ci#define S_GPIO11_OEN    27
5248c2ecf20Sopenharmony_ci#define V_GPIO11_OEN(x) ((x) << S_GPIO11_OEN)
5258c2ecf20Sopenharmony_ci#define F_GPIO11_OEN    V_GPIO11_OEN(1U)
5268c2ecf20Sopenharmony_ci
5278c2ecf20Sopenharmony_ci#define S_GPIO10_OEN    26
5288c2ecf20Sopenharmony_ci#define V_GPIO10_OEN(x) ((x) << S_GPIO10_OEN)
5298c2ecf20Sopenharmony_ci#define F_GPIO10_OEN    V_GPIO10_OEN(1U)
5308c2ecf20Sopenharmony_ci
5318c2ecf20Sopenharmony_ci#define S_GPIO7_OEN    23
5328c2ecf20Sopenharmony_ci#define V_GPIO7_OEN(x) ((x) << S_GPIO7_OEN)
5338c2ecf20Sopenharmony_ci#define F_GPIO7_OEN    V_GPIO7_OEN(1U)
5348c2ecf20Sopenharmony_ci
5358c2ecf20Sopenharmony_ci#define S_GPIO6_OEN    22
5368c2ecf20Sopenharmony_ci#define V_GPIO6_OEN(x) ((x) << S_GPIO6_OEN)
5378c2ecf20Sopenharmony_ci#define F_GPIO6_OEN    V_GPIO6_OEN(1U)
5388c2ecf20Sopenharmony_ci
5398c2ecf20Sopenharmony_ci#define S_GPIO5_OEN    21
5408c2ecf20Sopenharmony_ci#define V_GPIO5_OEN(x) ((x) << S_GPIO5_OEN)
5418c2ecf20Sopenharmony_ci#define F_GPIO5_OEN    V_GPIO5_OEN(1U)
5428c2ecf20Sopenharmony_ci
5438c2ecf20Sopenharmony_ci#define S_GPIO4_OEN    20
5448c2ecf20Sopenharmony_ci#define V_GPIO4_OEN(x) ((x) << S_GPIO4_OEN)
5458c2ecf20Sopenharmony_ci#define F_GPIO4_OEN    V_GPIO4_OEN(1U)
5468c2ecf20Sopenharmony_ci
5478c2ecf20Sopenharmony_ci#define S_GPIO2_OEN    18
5488c2ecf20Sopenharmony_ci#define V_GPIO2_OEN(x) ((x) << S_GPIO2_OEN)
5498c2ecf20Sopenharmony_ci#define F_GPIO2_OEN    V_GPIO2_OEN(1U)
5508c2ecf20Sopenharmony_ci
5518c2ecf20Sopenharmony_ci#define S_GPIO1_OEN    17
5528c2ecf20Sopenharmony_ci#define V_GPIO1_OEN(x) ((x) << S_GPIO1_OEN)
5538c2ecf20Sopenharmony_ci#define F_GPIO1_OEN    V_GPIO1_OEN(1U)
5548c2ecf20Sopenharmony_ci
5558c2ecf20Sopenharmony_ci#define S_GPIO0_OEN    16
5568c2ecf20Sopenharmony_ci#define V_GPIO0_OEN(x) ((x) << S_GPIO0_OEN)
5578c2ecf20Sopenharmony_ci#define F_GPIO0_OEN    V_GPIO0_OEN(1U)
5588c2ecf20Sopenharmony_ci
5598c2ecf20Sopenharmony_ci#define S_GPIO10_OUT_VAL    10
5608c2ecf20Sopenharmony_ci#define V_GPIO10_OUT_VAL(x) ((x) << S_GPIO10_OUT_VAL)
5618c2ecf20Sopenharmony_ci#define F_GPIO10_OUT_VAL    V_GPIO10_OUT_VAL(1U)
5628c2ecf20Sopenharmony_ci
5638c2ecf20Sopenharmony_ci#define S_GPIO7_OUT_VAL    7
5648c2ecf20Sopenharmony_ci#define V_GPIO7_OUT_VAL(x) ((x) << S_GPIO7_OUT_VAL)
5658c2ecf20Sopenharmony_ci#define F_GPIO7_OUT_VAL    V_GPIO7_OUT_VAL(1U)
5668c2ecf20Sopenharmony_ci
5678c2ecf20Sopenharmony_ci#define S_GPIO6_OUT_VAL    6
5688c2ecf20Sopenharmony_ci#define V_GPIO6_OUT_VAL(x) ((x) << S_GPIO6_OUT_VAL)
5698c2ecf20Sopenharmony_ci#define F_GPIO6_OUT_VAL    V_GPIO6_OUT_VAL(1U)
5708c2ecf20Sopenharmony_ci
5718c2ecf20Sopenharmony_ci#define S_GPIO5_OUT_VAL    5
5728c2ecf20Sopenharmony_ci#define V_GPIO5_OUT_VAL(x) ((x) << S_GPIO5_OUT_VAL)
5738c2ecf20Sopenharmony_ci#define F_GPIO5_OUT_VAL    V_GPIO5_OUT_VAL(1U)
5748c2ecf20Sopenharmony_ci
5758c2ecf20Sopenharmony_ci#define S_GPIO4_OUT_VAL    4
5768c2ecf20Sopenharmony_ci#define V_GPIO4_OUT_VAL(x) ((x) << S_GPIO4_OUT_VAL)
5778c2ecf20Sopenharmony_ci#define F_GPIO4_OUT_VAL    V_GPIO4_OUT_VAL(1U)
5788c2ecf20Sopenharmony_ci
5798c2ecf20Sopenharmony_ci#define S_GPIO2_OUT_VAL    2
5808c2ecf20Sopenharmony_ci#define V_GPIO2_OUT_VAL(x) ((x) << S_GPIO2_OUT_VAL)
5818c2ecf20Sopenharmony_ci#define F_GPIO2_OUT_VAL    V_GPIO2_OUT_VAL(1U)
5828c2ecf20Sopenharmony_ci
5838c2ecf20Sopenharmony_ci#define S_GPIO1_OUT_VAL    1
5848c2ecf20Sopenharmony_ci#define V_GPIO1_OUT_VAL(x) ((x) << S_GPIO1_OUT_VAL)
5858c2ecf20Sopenharmony_ci#define F_GPIO1_OUT_VAL    V_GPIO1_OUT_VAL(1U)
5868c2ecf20Sopenharmony_ci
5878c2ecf20Sopenharmony_ci#define S_GPIO0_OUT_VAL    0
5888c2ecf20Sopenharmony_ci#define V_GPIO0_OUT_VAL(x) ((x) << S_GPIO0_OUT_VAL)
5898c2ecf20Sopenharmony_ci#define F_GPIO0_OUT_VAL    V_GPIO0_OUT_VAL(1U)
5908c2ecf20Sopenharmony_ci
5918c2ecf20Sopenharmony_ci#define A_T3DBG_INT_ENABLE 0xd8
5928c2ecf20Sopenharmony_ci
5938c2ecf20Sopenharmony_ci#define S_GPIO11    11
5948c2ecf20Sopenharmony_ci#define V_GPIO11(x) ((x) << S_GPIO11)
5958c2ecf20Sopenharmony_ci#define F_GPIO11    V_GPIO11(1U)
5968c2ecf20Sopenharmony_ci
5978c2ecf20Sopenharmony_ci#define S_GPIO10    10
5988c2ecf20Sopenharmony_ci#define V_GPIO10(x) ((x) << S_GPIO10)
5998c2ecf20Sopenharmony_ci#define F_GPIO10    V_GPIO10(1U)
6008c2ecf20Sopenharmony_ci
6018c2ecf20Sopenharmony_ci#define S_GPIO9    9
6028c2ecf20Sopenharmony_ci#define V_GPIO9(x) ((x) << S_GPIO9)
6038c2ecf20Sopenharmony_ci#define F_GPIO9    V_GPIO9(1U)
6048c2ecf20Sopenharmony_ci
6058c2ecf20Sopenharmony_ci#define S_GPIO7    7
6068c2ecf20Sopenharmony_ci#define V_GPIO7(x) ((x) << S_GPIO7)
6078c2ecf20Sopenharmony_ci#define F_GPIO7    V_GPIO7(1U)
6088c2ecf20Sopenharmony_ci
6098c2ecf20Sopenharmony_ci#define S_GPIO6    6
6108c2ecf20Sopenharmony_ci#define V_GPIO6(x) ((x) << S_GPIO6)
6118c2ecf20Sopenharmony_ci#define F_GPIO6    V_GPIO6(1U)
6128c2ecf20Sopenharmony_ci
6138c2ecf20Sopenharmony_ci#define S_GPIO5    5
6148c2ecf20Sopenharmony_ci#define V_GPIO5(x) ((x) << S_GPIO5)
6158c2ecf20Sopenharmony_ci#define F_GPIO5    V_GPIO5(1U)
6168c2ecf20Sopenharmony_ci
6178c2ecf20Sopenharmony_ci#define S_GPIO4    4
6188c2ecf20Sopenharmony_ci#define V_GPIO4(x) ((x) << S_GPIO4)
6198c2ecf20Sopenharmony_ci#define F_GPIO4    V_GPIO4(1U)
6208c2ecf20Sopenharmony_ci
6218c2ecf20Sopenharmony_ci#define S_GPIO3    3
6228c2ecf20Sopenharmony_ci#define V_GPIO3(x) ((x) << S_GPIO3)
6238c2ecf20Sopenharmony_ci#define F_GPIO3    V_GPIO3(1U)
6248c2ecf20Sopenharmony_ci
6258c2ecf20Sopenharmony_ci#define S_GPIO2    2
6268c2ecf20Sopenharmony_ci#define V_GPIO2(x) ((x) << S_GPIO2)
6278c2ecf20Sopenharmony_ci#define F_GPIO2    V_GPIO2(1U)
6288c2ecf20Sopenharmony_ci
6298c2ecf20Sopenharmony_ci#define S_GPIO1    1
6308c2ecf20Sopenharmony_ci#define V_GPIO1(x) ((x) << S_GPIO1)
6318c2ecf20Sopenharmony_ci#define F_GPIO1    V_GPIO1(1U)
6328c2ecf20Sopenharmony_ci
6338c2ecf20Sopenharmony_ci#define S_GPIO0    0
6348c2ecf20Sopenharmony_ci#define V_GPIO0(x) ((x) << S_GPIO0)
6358c2ecf20Sopenharmony_ci#define F_GPIO0    V_GPIO0(1U)
6368c2ecf20Sopenharmony_ci
6378c2ecf20Sopenharmony_ci#define A_T3DBG_INT_CAUSE 0xdc
6388c2ecf20Sopenharmony_ci
6398c2ecf20Sopenharmony_ci#define A_T3DBG_GPIO_ACT_LOW 0xf0
6408c2ecf20Sopenharmony_ci
6418c2ecf20Sopenharmony_ci#define MC7_PMRX_BASE_ADDR 0x100
6428c2ecf20Sopenharmony_ci
6438c2ecf20Sopenharmony_ci#define A_MC7_CFG 0x100
6448c2ecf20Sopenharmony_ci
6458c2ecf20Sopenharmony_ci#define S_IFEN    13
6468c2ecf20Sopenharmony_ci#define V_IFEN(x) ((x) << S_IFEN)
6478c2ecf20Sopenharmony_ci#define F_IFEN    V_IFEN(1U)
6488c2ecf20Sopenharmony_ci
6498c2ecf20Sopenharmony_ci#define S_TERM150    11
6508c2ecf20Sopenharmony_ci#define V_TERM150(x) ((x) << S_TERM150)
6518c2ecf20Sopenharmony_ci#define F_TERM150    V_TERM150(1U)
6528c2ecf20Sopenharmony_ci
6538c2ecf20Sopenharmony_ci#define S_SLOW    10
6548c2ecf20Sopenharmony_ci#define V_SLOW(x) ((x) << S_SLOW)
6558c2ecf20Sopenharmony_ci#define F_SLOW    V_SLOW(1U)
6568c2ecf20Sopenharmony_ci
6578c2ecf20Sopenharmony_ci#define S_WIDTH    8
6588c2ecf20Sopenharmony_ci#define M_WIDTH    0x3
6598c2ecf20Sopenharmony_ci#define V_WIDTH(x) ((x) << S_WIDTH)
6608c2ecf20Sopenharmony_ci#define G_WIDTH(x) (((x) >> S_WIDTH) & M_WIDTH)
6618c2ecf20Sopenharmony_ci
6628c2ecf20Sopenharmony_ci#define S_BKS    6
6638c2ecf20Sopenharmony_ci#define V_BKS(x) ((x) << S_BKS)
6648c2ecf20Sopenharmony_ci#define F_BKS    V_BKS(1U)
6658c2ecf20Sopenharmony_ci
6668c2ecf20Sopenharmony_ci#define S_ORG    5
6678c2ecf20Sopenharmony_ci#define V_ORG(x) ((x) << S_ORG)
6688c2ecf20Sopenharmony_ci#define F_ORG    V_ORG(1U)
6698c2ecf20Sopenharmony_ci
6708c2ecf20Sopenharmony_ci#define S_DEN    2
6718c2ecf20Sopenharmony_ci#define M_DEN    0x7
6728c2ecf20Sopenharmony_ci#define V_DEN(x) ((x) << S_DEN)
6738c2ecf20Sopenharmony_ci#define G_DEN(x) (((x) >> S_DEN) & M_DEN)
6748c2ecf20Sopenharmony_ci
6758c2ecf20Sopenharmony_ci#define S_RDY    1
6768c2ecf20Sopenharmony_ci#define V_RDY(x) ((x) << S_RDY)
6778c2ecf20Sopenharmony_ci#define F_RDY    V_RDY(1U)
6788c2ecf20Sopenharmony_ci
6798c2ecf20Sopenharmony_ci#define S_CLKEN    0
6808c2ecf20Sopenharmony_ci#define V_CLKEN(x) ((x) << S_CLKEN)
6818c2ecf20Sopenharmony_ci#define F_CLKEN    V_CLKEN(1U)
6828c2ecf20Sopenharmony_ci
6838c2ecf20Sopenharmony_ci#define A_MC7_MODE 0x104
6848c2ecf20Sopenharmony_ci
6858c2ecf20Sopenharmony_ci#define S_BUSY    31
6868c2ecf20Sopenharmony_ci#define V_BUSY(x) ((x) << S_BUSY)
6878c2ecf20Sopenharmony_ci#define F_BUSY    V_BUSY(1U)
6888c2ecf20Sopenharmony_ci
6898c2ecf20Sopenharmony_ci#define A_MC7_EXT_MODE1 0x108
6908c2ecf20Sopenharmony_ci
6918c2ecf20Sopenharmony_ci#define A_MC7_EXT_MODE2 0x10c
6928c2ecf20Sopenharmony_ci
6938c2ecf20Sopenharmony_ci#define A_MC7_EXT_MODE3 0x110
6948c2ecf20Sopenharmony_ci
6958c2ecf20Sopenharmony_ci#define A_MC7_PRE 0x114
6968c2ecf20Sopenharmony_ci
6978c2ecf20Sopenharmony_ci#define A_MC7_REF 0x118
6988c2ecf20Sopenharmony_ci
6998c2ecf20Sopenharmony_ci#define S_PREREFDIV    1
7008c2ecf20Sopenharmony_ci#define M_PREREFDIV    0x3fff
7018c2ecf20Sopenharmony_ci#define V_PREREFDIV(x) ((x) << S_PREREFDIV)
7028c2ecf20Sopenharmony_ci
7038c2ecf20Sopenharmony_ci#define S_PERREFEN    0
7048c2ecf20Sopenharmony_ci#define V_PERREFEN(x) ((x) << S_PERREFEN)
7058c2ecf20Sopenharmony_ci#define F_PERREFEN    V_PERREFEN(1U)
7068c2ecf20Sopenharmony_ci
7078c2ecf20Sopenharmony_ci#define A_MC7_DLL 0x11c
7088c2ecf20Sopenharmony_ci
7098c2ecf20Sopenharmony_ci#define S_DLLENB    1
7108c2ecf20Sopenharmony_ci#define V_DLLENB(x) ((x) << S_DLLENB)
7118c2ecf20Sopenharmony_ci#define F_DLLENB    V_DLLENB(1U)
7128c2ecf20Sopenharmony_ci
7138c2ecf20Sopenharmony_ci#define S_DLLRST    0
7148c2ecf20Sopenharmony_ci#define V_DLLRST(x) ((x) << S_DLLRST)
7158c2ecf20Sopenharmony_ci#define F_DLLRST    V_DLLRST(1U)
7168c2ecf20Sopenharmony_ci
7178c2ecf20Sopenharmony_ci#define A_MC7_PARM 0x120
7188c2ecf20Sopenharmony_ci
7198c2ecf20Sopenharmony_ci#define S_ACTTOPREDLY    26
7208c2ecf20Sopenharmony_ci#define M_ACTTOPREDLY    0xf
7218c2ecf20Sopenharmony_ci#define V_ACTTOPREDLY(x) ((x) << S_ACTTOPREDLY)
7228c2ecf20Sopenharmony_ci
7238c2ecf20Sopenharmony_ci#define S_ACTTORDWRDLY    23
7248c2ecf20Sopenharmony_ci#define M_ACTTORDWRDLY    0x7
7258c2ecf20Sopenharmony_ci#define V_ACTTORDWRDLY(x) ((x) << S_ACTTORDWRDLY)
7268c2ecf20Sopenharmony_ci
7278c2ecf20Sopenharmony_ci#define S_PRECYC    20
7288c2ecf20Sopenharmony_ci#define M_PRECYC    0x7
7298c2ecf20Sopenharmony_ci#define V_PRECYC(x) ((x) << S_PRECYC)
7308c2ecf20Sopenharmony_ci
7318c2ecf20Sopenharmony_ci#define S_REFCYC    13
7328c2ecf20Sopenharmony_ci#define M_REFCYC    0x7f
7338c2ecf20Sopenharmony_ci#define V_REFCYC(x) ((x) << S_REFCYC)
7348c2ecf20Sopenharmony_ci
7358c2ecf20Sopenharmony_ci#define S_BKCYC    8
7368c2ecf20Sopenharmony_ci#define M_BKCYC    0x1f
7378c2ecf20Sopenharmony_ci#define V_BKCYC(x) ((x) << S_BKCYC)
7388c2ecf20Sopenharmony_ci
7398c2ecf20Sopenharmony_ci#define S_WRTORDDLY    4
7408c2ecf20Sopenharmony_ci#define M_WRTORDDLY    0xf
7418c2ecf20Sopenharmony_ci#define V_WRTORDDLY(x) ((x) << S_WRTORDDLY)
7428c2ecf20Sopenharmony_ci
7438c2ecf20Sopenharmony_ci#define S_RDTOWRDLY    0
7448c2ecf20Sopenharmony_ci#define M_RDTOWRDLY    0xf
7458c2ecf20Sopenharmony_ci#define V_RDTOWRDLY(x) ((x) << S_RDTOWRDLY)
7468c2ecf20Sopenharmony_ci
7478c2ecf20Sopenharmony_ci#define A_MC7_CAL 0x128
7488c2ecf20Sopenharmony_ci
7498c2ecf20Sopenharmony_ci#define S_CAL_FAULT    30
7508c2ecf20Sopenharmony_ci#define V_CAL_FAULT(x) ((x) << S_CAL_FAULT)
7518c2ecf20Sopenharmony_ci#define F_CAL_FAULT    V_CAL_FAULT(1U)
7528c2ecf20Sopenharmony_ci
7538c2ecf20Sopenharmony_ci#define S_SGL_CAL_EN    20
7548c2ecf20Sopenharmony_ci#define V_SGL_CAL_EN(x) ((x) << S_SGL_CAL_EN)
7558c2ecf20Sopenharmony_ci#define F_SGL_CAL_EN    V_SGL_CAL_EN(1U)
7568c2ecf20Sopenharmony_ci
7578c2ecf20Sopenharmony_ci#define A_MC7_ERR_ADDR 0x12c
7588c2ecf20Sopenharmony_ci
7598c2ecf20Sopenharmony_ci#define A_MC7_ECC 0x130
7608c2ecf20Sopenharmony_ci
7618c2ecf20Sopenharmony_ci#define S_ECCCHKEN    1
7628c2ecf20Sopenharmony_ci#define V_ECCCHKEN(x) ((x) << S_ECCCHKEN)
7638c2ecf20Sopenharmony_ci#define F_ECCCHKEN    V_ECCCHKEN(1U)
7648c2ecf20Sopenharmony_ci
7658c2ecf20Sopenharmony_ci#define S_ECCGENEN    0
7668c2ecf20Sopenharmony_ci#define V_ECCGENEN(x) ((x) << S_ECCGENEN)
7678c2ecf20Sopenharmony_ci#define F_ECCGENEN    V_ECCGENEN(1U)
7688c2ecf20Sopenharmony_ci
7698c2ecf20Sopenharmony_ci#define A_MC7_CE_ADDR 0x134
7708c2ecf20Sopenharmony_ci
7718c2ecf20Sopenharmony_ci#define A_MC7_CE_DATA0 0x138
7728c2ecf20Sopenharmony_ci
7738c2ecf20Sopenharmony_ci#define A_MC7_CE_DATA1 0x13c
7748c2ecf20Sopenharmony_ci
7758c2ecf20Sopenharmony_ci#define A_MC7_CE_DATA2 0x140
7768c2ecf20Sopenharmony_ci
7778c2ecf20Sopenharmony_ci#define S_DATA    0
7788c2ecf20Sopenharmony_ci#define M_DATA    0xff
7798c2ecf20Sopenharmony_ci
7808c2ecf20Sopenharmony_ci#define G_DATA(x) (((x) >> S_DATA) & M_DATA)
7818c2ecf20Sopenharmony_ci
7828c2ecf20Sopenharmony_ci#define A_MC7_UE_ADDR 0x144
7838c2ecf20Sopenharmony_ci
7848c2ecf20Sopenharmony_ci#define A_MC7_UE_DATA0 0x148
7858c2ecf20Sopenharmony_ci
7868c2ecf20Sopenharmony_ci#define A_MC7_UE_DATA1 0x14c
7878c2ecf20Sopenharmony_ci
7888c2ecf20Sopenharmony_ci#define A_MC7_UE_DATA2 0x150
7898c2ecf20Sopenharmony_ci
7908c2ecf20Sopenharmony_ci#define A_MC7_BD_ADDR 0x154
7918c2ecf20Sopenharmony_ci
7928c2ecf20Sopenharmony_ci#define S_ADDR    3
7938c2ecf20Sopenharmony_ci
7948c2ecf20Sopenharmony_ci#define M_ADDR    0x1fffffff
7958c2ecf20Sopenharmony_ci
7968c2ecf20Sopenharmony_ci#define A_MC7_BD_DATA0 0x158
7978c2ecf20Sopenharmony_ci
7988c2ecf20Sopenharmony_ci#define A_MC7_BD_DATA1 0x15c
7998c2ecf20Sopenharmony_ci
8008c2ecf20Sopenharmony_ci#define A_MC7_BD_OP 0x164
8018c2ecf20Sopenharmony_ci
8028c2ecf20Sopenharmony_ci#define S_OP    0
8038c2ecf20Sopenharmony_ci
8048c2ecf20Sopenharmony_ci#define V_OP(x) ((x) << S_OP)
8058c2ecf20Sopenharmony_ci#define F_OP    V_OP(1U)
8068c2ecf20Sopenharmony_ci
8078c2ecf20Sopenharmony_ci#define A_MC7_BIST_ADDR_BEG 0x168
8088c2ecf20Sopenharmony_ci
8098c2ecf20Sopenharmony_ci#define A_MC7_BIST_ADDR_END 0x16c
8108c2ecf20Sopenharmony_ci
8118c2ecf20Sopenharmony_ci#define A_MC7_BIST_DATA 0x170
8128c2ecf20Sopenharmony_ci
8138c2ecf20Sopenharmony_ci#define A_MC7_BIST_OP 0x174
8148c2ecf20Sopenharmony_ci
8158c2ecf20Sopenharmony_ci#define S_CONT    3
8168c2ecf20Sopenharmony_ci#define V_CONT(x) ((x) << S_CONT)
8178c2ecf20Sopenharmony_ci#define F_CONT    V_CONT(1U)
8188c2ecf20Sopenharmony_ci
8198c2ecf20Sopenharmony_ci#define A_MC7_INT_ENABLE 0x178
8208c2ecf20Sopenharmony_ci
8218c2ecf20Sopenharmony_ci#define S_AE    17
8228c2ecf20Sopenharmony_ci#define V_AE(x) ((x) << S_AE)
8238c2ecf20Sopenharmony_ci#define F_AE    V_AE(1U)
8248c2ecf20Sopenharmony_ci
8258c2ecf20Sopenharmony_ci#define S_PE    2
8268c2ecf20Sopenharmony_ci#define M_PE    0x7fff
8278c2ecf20Sopenharmony_ci
8288c2ecf20Sopenharmony_ci#define V_PE(x) ((x) << S_PE)
8298c2ecf20Sopenharmony_ci
8308c2ecf20Sopenharmony_ci#define G_PE(x) (((x) >> S_PE) & M_PE)
8318c2ecf20Sopenharmony_ci
8328c2ecf20Sopenharmony_ci#define S_UE    1
8338c2ecf20Sopenharmony_ci#define V_UE(x) ((x) << S_UE)
8348c2ecf20Sopenharmony_ci#define F_UE    V_UE(1U)
8358c2ecf20Sopenharmony_ci
8368c2ecf20Sopenharmony_ci#define S_CE    0
8378c2ecf20Sopenharmony_ci#define V_CE(x) ((x) << S_CE)
8388c2ecf20Sopenharmony_ci#define F_CE    V_CE(1U)
8398c2ecf20Sopenharmony_ci
8408c2ecf20Sopenharmony_ci#define A_MC7_INT_CAUSE 0x17c
8418c2ecf20Sopenharmony_ci
8428c2ecf20Sopenharmony_ci#define MC7_PMTX_BASE_ADDR 0x180
8438c2ecf20Sopenharmony_ci
8448c2ecf20Sopenharmony_ci#define MC7_CM_BASE_ADDR 0x200
8458c2ecf20Sopenharmony_ci
8468c2ecf20Sopenharmony_ci#define A_CIM_BOOT_CFG 0x280
8478c2ecf20Sopenharmony_ci
8488c2ecf20Sopenharmony_ci#define S_BOOTADDR    2
8498c2ecf20Sopenharmony_ci#define M_BOOTADDR    0x3fffffff
8508c2ecf20Sopenharmony_ci#define V_BOOTADDR(x) ((x) << S_BOOTADDR)
8518c2ecf20Sopenharmony_ci
8528c2ecf20Sopenharmony_ci#define A_CIM_SDRAM_BASE_ADDR 0x28c
8538c2ecf20Sopenharmony_ci
8548c2ecf20Sopenharmony_ci#define A_CIM_SDRAM_ADDR_SIZE 0x290
8558c2ecf20Sopenharmony_ci
8568c2ecf20Sopenharmony_ci#define A_CIM_HOST_INT_ENABLE 0x298
8578c2ecf20Sopenharmony_ci
8588c2ecf20Sopenharmony_ci#define S_DTAGPARERR    28
8598c2ecf20Sopenharmony_ci#define V_DTAGPARERR(x) ((x) << S_DTAGPARERR)
8608c2ecf20Sopenharmony_ci#define F_DTAGPARERR    V_DTAGPARERR(1U)
8618c2ecf20Sopenharmony_ci
8628c2ecf20Sopenharmony_ci#define S_ITAGPARERR    27
8638c2ecf20Sopenharmony_ci#define V_ITAGPARERR(x) ((x) << S_ITAGPARERR)
8648c2ecf20Sopenharmony_ci#define F_ITAGPARERR    V_ITAGPARERR(1U)
8658c2ecf20Sopenharmony_ci
8668c2ecf20Sopenharmony_ci#define S_IBQTPPARERR    26
8678c2ecf20Sopenharmony_ci#define V_IBQTPPARERR(x) ((x) << S_IBQTPPARERR)
8688c2ecf20Sopenharmony_ci#define F_IBQTPPARERR    V_IBQTPPARERR(1U)
8698c2ecf20Sopenharmony_ci
8708c2ecf20Sopenharmony_ci#define S_IBQULPPARERR    25
8718c2ecf20Sopenharmony_ci#define V_IBQULPPARERR(x) ((x) << S_IBQULPPARERR)
8728c2ecf20Sopenharmony_ci#define F_IBQULPPARERR    V_IBQULPPARERR(1U)
8738c2ecf20Sopenharmony_ci
8748c2ecf20Sopenharmony_ci#define S_IBQSGEHIPARERR    24
8758c2ecf20Sopenharmony_ci#define V_IBQSGEHIPARERR(x) ((x) << S_IBQSGEHIPARERR)
8768c2ecf20Sopenharmony_ci#define F_IBQSGEHIPARERR    V_IBQSGEHIPARERR(1U)
8778c2ecf20Sopenharmony_ci
8788c2ecf20Sopenharmony_ci#define S_IBQSGELOPARERR    23
8798c2ecf20Sopenharmony_ci#define V_IBQSGELOPARERR(x) ((x) << S_IBQSGELOPARERR)
8808c2ecf20Sopenharmony_ci#define F_IBQSGELOPARERR    V_IBQSGELOPARERR(1U)
8818c2ecf20Sopenharmony_ci
8828c2ecf20Sopenharmony_ci#define S_OBQULPLOPARERR    22
8838c2ecf20Sopenharmony_ci#define V_OBQULPLOPARERR(x) ((x) << S_OBQULPLOPARERR)
8848c2ecf20Sopenharmony_ci#define F_OBQULPLOPARERR    V_OBQULPLOPARERR(1U)
8858c2ecf20Sopenharmony_ci
8868c2ecf20Sopenharmony_ci#define S_OBQULPHIPARERR    21
8878c2ecf20Sopenharmony_ci#define V_OBQULPHIPARERR(x) ((x) << S_OBQULPHIPARERR)
8888c2ecf20Sopenharmony_ci#define F_OBQULPHIPARERR    V_OBQULPHIPARERR(1U)
8898c2ecf20Sopenharmony_ci
8908c2ecf20Sopenharmony_ci#define S_OBQSGEPARERR    20
8918c2ecf20Sopenharmony_ci#define V_OBQSGEPARERR(x) ((x) << S_OBQSGEPARERR)
8928c2ecf20Sopenharmony_ci#define F_OBQSGEPARERR    V_OBQSGEPARERR(1U)
8938c2ecf20Sopenharmony_ci
8948c2ecf20Sopenharmony_ci#define S_DCACHEPARERR    19
8958c2ecf20Sopenharmony_ci#define V_DCACHEPARERR(x) ((x) << S_DCACHEPARERR)
8968c2ecf20Sopenharmony_ci#define F_DCACHEPARERR    V_DCACHEPARERR(1U)
8978c2ecf20Sopenharmony_ci
8988c2ecf20Sopenharmony_ci#define S_ICACHEPARERR    18
8998c2ecf20Sopenharmony_ci#define V_ICACHEPARERR(x) ((x) << S_ICACHEPARERR)
9008c2ecf20Sopenharmony_ci#define F_ICACHEPARERR    V_ICACHEPARERR(1U)
9018c2ecf20Sopenharmony_ci
9028c2ecf20Sopenharmony_ci#define S_DRAMPARERR    17
9038c2ecf20Sopenharmony_ci#define V_DRAMPARERR(x) ((x) << S_DRAMPARERR)
9048c2ecf20Sopenharmony_ci#define F_DRAMPARERR    V_DRAMPARERR(1U)
9058c2ecf20Sopenharmony_ci
9068c2ecf20Sopenharmony_ci#define A_CIM_HOST_INT_CAUSE 0x29c
9078c2ecf20Sopenharmony_ci
9088c2ecf20Sopenharmony_ci#define S_BLKWRPLINT    12
9098c2ecf20Sopenharmony_ci#define V_BLKWRPLINT(x) ((x) << S_BLKWRPLINT)
9108c2ecf20Sopenharmony_ci#define F_BLKWRPLINT    V_BLKWRPLINT(1U)
9118c2ecf20Sopenharmony_ci
9128c2ecf20Sopenharmony_ci#define S_BLKRDPLINT    11
9138c2ecf20Sopenharmony_ci#define V_BLKRDPLINT(x) ((x) << S_BLKRDPLINT)
9148c2ecf20Sopenharmony_ci#define F_BLKRDPLINT    V_BLKRDPLINT(1U)
9158c2ecf20Sopenharmony_ci
9168c2ecf20Sopenharmony_ci#define S_BLKWRCTLINT    10
9178c2ecf20Sopenharmony_ci#define V_BLKWRCTLINT(x) ((x) << S_BLKWRCTLINT)
9188c2ecf20Sopenharmony_ci#define F_BLKWRCTLINT    V_BLKWRCTLINT(1U)
9198c2ecf20Sopenharmony_ci
9208c2ecf20Sopenharmony_ci#define S_BLKRDCTLINT    9
9218c2ecf20Sopenharmony_ci#define V_BLKRDCTLINT(x) ((x) << S_BLKRDCTLINT)
9228c2ecf20Sopenharmony_ci#define F_BLKRDCTLINT    V_BLKRDCTLINT(1U)
9238c2ecf20Sopenharmony_ci
9248c2ecf20Sopenharmony_ci#define S_BLKWRFLASHINT    8
9258c2ecf20Sopenharmony_ci#define V_BLKWRFLASHINT(x) ((x) << S_BLKWRFLASHINT)
9268c2ecf20Sopenharmony_ci#define F_BLKWRFLASHINT    V_BLKWRFLASHINT(1U)
9278c2ecf20Sopenharmony_ci
9288c2ecf20Sopenharmony_ci#define S_BLKRDFLASHINT    7
9298c2ecf20Sopenharmony_ci#define V_BLKRDFLASHINT(x) ((x) << S_BLKRDFLASHINT)
9308c2ecf20Sopenharmony_ci#define F_BLKRDFLASHINT    V_BLKRDFLASHINT(1U)
9318c2ecf20Sopenharmony_ci
9328c2ecf20Sopenharmony_ci#define S_SGLWRFLASHINT    6
9338c2ecf20Sopenharmony_ci#define V_SGLWRFLASHINT(x) ((x) << S_SGLWRFLASHINT)
9348c2ecf20Sopenharmony_ci#define F_SGLWRFLASHINT    V_SGLWRFLASHINT(1U)
9358c2ecf20Sopenharmony_ci
9368c2ecf20Sopenharmony_ci#define S_WRBLKFLASHINT    5
9378c2ecf20Sopenharmony_ci#define V_WRBLKFLASHINT(x) ((x) << S_WRBLKFLASHINT)
9388c2ecf20Sopenharmony_ci#define F_WRBLKFLASHINT    V_WRBLKFLASHINT(1U)
9398c2ecf20Sopenharmony_ci
9408c2ecf20Sopenharmony_ci#define S_BLKWRBOOTINT    4
9418c2ecf20Sopenharmony_ci#define V_BLKWRBOOTINT(x) ((x) << S_BLKWRBOOTINT)
9428c2ecf20Sopenharmony_ci#define F_BLKWRBOOTINT    V_BLKWRBOOTINT(1U)
9438c2ecf20Sopenharmony_ci
9448c2ecf20Sopenharmony_ci#define S_FLASHRANGEINT    2
9458c2ecf20Sopenharmony_ci#define V_FLASHRANGEINT(x) ((x) << S_FLASHRANGEINT)
9468c2ecf20Sopenharmony_ci#define F_FLASHRANGEINT    V_FLASHRANGEINT(1U)
9478c2ecf20Sopenharmony_ci
9488c2ecf20Sopenharmony_ci#define S_SDRAMRANGEINT    1
9498c2ecf20Sopenharmony_ci#define V_SDRAMRANGEINT(x) ((x) << S_SDRAMRANGEINT)
9508c2ecf20Sopenharmony_ci#define F_SDRAMRANGEINT    V_SDRAMRANGEINT(1U)
9518c2ecf20Sopenharmony_ci
9528c2ecf20Sopenharmony_ci#define S_RSVDSPACEINT    0
9538c2ecf20Sopenharmony_ci#define V_RSVDSPACEINT(x) ((x) << S_RSVDSPACEINT)
9548c2ecf20Sopenharmony_ci#define F_RSVDSPACEINT    V_RSVDSPACEINT(1U)
9558c2ecf20Sopenharmony_ci
9568c2ecf20Sopenharmony_ci#define A_CIM_HOST_ACC_CTRL 0x2b0
9578c2ecf20Sopenharmony_ci
9588c2ecf20Sopenharmony_ci#define S_HOSTBUSY    17
9598c2ecf20Sopenharmony_ci#define V_HOSTBUSY(x) ((x) << S_HOSTBUSY)
9608c2ecf20Sopenharmony_ci#define F_HOSTBUSY    V_HOSTBUSY(1U)
9618c2ecf20Sopenharmony_ci
9628c2ecf20Sopenharmony_ci#define A_CIM_HOST_ACC_DATA 0x2b4
9638c2ecf20Sopenharmony_ci
9648c2ecf20Sopenharmony_ci#define A_CIM_IBQ_DBG_CFG 0x2c0
9658c2ecf20Sopenharmony_ci
9668c2ecf20Sopenharmony_ci#define S_IBQDBGADDR    16
9678c2ecf20Sopenharmony_ci#define M_IBQDBGADDR    0x1ff
9688c2ecf20Sopenharmony_ci#define V_IBQDBGADDR(x) ((x) << S_IBQDBGADDR)
9698c2ecf20Sopenharmony_ci#define G_IBQDBGADDR(x) (((x) >> S_IBQDBGADDR) & M_IBQDBGADDR)
9708c2ecf20Sopenharmony_ci
9718c2ecf20Sopenharmony_ci#define S_IBQDBGQID    3
9728c2ecf20Sopenharmony_ci#define M_IBQDBGQID    0x3
9738c2ecf20Sopenharmony_ci#define V_IBQDBGQID(x) ((x) << S_IBQDBGQID)
9748c2ecf20Sopenharmony_ci#define G_IBQDBGQID(x) (((x) >> S_IBQDBGQID) & M_IBQDBGQID)
9758c2ecf20Sopenharmony_ci
9768c2ecf20Sopenharmony_ci#define S_IBQDBGWR    2
9778c2ecf20Sopenharmony_ci#define V_IBQDBGWR(x) ((x) << S_IBQDBGWR)
9788c2ecf20Sopenharmony_ci#define F_IBQDBGWR    V_IBQDBGWR(1U)
9798c2ecf20Sopenharmony_ci
9808c2ecf20Sopenharmony_ci#define S_IBQDBGBUSY    1
9818c2ecf20Sopenharmony_ci#define V_IBQDBGBUSY(x) ((x) << S_IBQDBGBUSY)
9828c2ecf20Sopenharmony_ci#define F_IBQDBGBUSY    V_IBQDBGBUSY(1U)
9838c2ecf20Sopenharmony_ci
9848c2ecf20Sopenharmony_ci#define S_IBQDBGEN    0
9858c2ecf20Sopenharmony_ci#define V_IBQDBGEN(x) ((x) << S_IBQDBGEN)
9868c2ecf20Sopenharmony_ci#define F_IBQDBGEN    V_IBQDBGEN(1U)
9878c2ecf20Sopenharmony_ci
9888c2ecf20Sopenharmony_ci#define A_CIM_IBQ_DBG_DATA 0x2c8
9898c2ecf20Sopenharmony_ci
9908c2ecf20Sopenharmony_ci#define A_TP_IN_CONFIG 0x300
9918c2ecf20Sopenharmony_ci
9928c2ecf20Sopenharmony_ci#define S_RXFBARBPRIO    25
9938c2ecf20Sopenharmony_ci#define V_RXFBARBPRIO(x) ((x) << S_RXFBARBPRIO)
9948c2ecf20Sopenharmony_ci#define F_RXFBARBPRIO    V_RXFBARBPRIO(1U)
9958c2ecf20Sopenharmony_ci
9968c2ecf20Sopenharmony_ci#define S_TXFBARBPRIO    24
9978c2ecf20Sopenharmony_ci#define V_TXFBARBPRIO(x) ((x) << S_TXFBARBPRIO)
9988c2ecf20Sopenharmony_ci#define F_TXFBARBPRIO    V_TXFBARBPRIO(1U)
9998c2ecf20Sopenharmony_ci
10008c2ecf20Sopenharmony_ci#define S_NICMODE    14
10018c2ecf20Sopenharmony_ci#define V_NICMODE(x) ((x) << S_NICMODE)
10028c2ecf20Sopenharmony_ci#define F_NICMODE    V_NICMODE(1U)
10038c2ecf20Sopenharmony_ci
10048c2ecf20Sopenharmony_ci#define S_IPV6ENABLE    15
10058c2ecf20Sopenharmony_ci#define V_IPV6ENABLE(x) ((x) << S_IPV6ENABLE)
10068c2ecf20Sopenharmony_ci#define F_IPV6ENABLE    V_IPV6ENABLE(1U)
10078c2ecf20Sopenharmony_ci
10088c2ecf20Sopenharmony_ci#define A_TP_OUT_CONFIG 0x304
10098c2ecf20Sopenharmony_ci
10108c2ecf20Sopenharmony_ci#define S_VLANEXTRACTIONENABLE    12
10118c2ecf20Sopenharmony_ci
10128c2ecf20Sopenharmony_ci#define A_TP_GLOBAL_CONFIG 0x308
10138c2ecf20Sopenharmony_ci
10148c2ecf20Sopenharmony_ci#define S_TXPACINGENABLE    24
10158c2ecf20Sopenharmony_ci#define V_TXPACINGENABLE(x) ((x) << S_TXPACINGENABLE)
10168c2ecf20Sopenharmony_ci#define F_TXPACINGENABLE    V_TXPACINGENABLE(1U)
10178c2ecf20Sopenharmony_ci
10188c2ecf20Sopenharmony_ci#define S_PATHMTU    15
10198c2ecf20Sopenharmony_ci#define V_PATHMTU(x) ((x) << S_PATHMTU)
10208c2ecf20Sopenharmony_ci#define F_PATHMTU    V_PATHMTU(1U)
10218c2ecf20Sopenharmony_ci
10228c2ecf20Sopenharmony_ci#define S_IPCHECKSUMOFFLOAD    13
10238c2ecf20Sopenharmony_ci#define V_IPCHECKSUMOFFLOAD(x) ((x) << S_IPCHECKSUMOFFLOAD)
10248c2ecf20Sopenharmony_ci#define F_IPCHECKSUMOFFLOAD    V_IPCHECKSUMOFFLOAD(1U)
10258c2ecf20Sopenharmony_ci
10268c2ecf20Sopenharmony_ci#define S_UDPCHECKSUMOFFLOAD    12
10278c2ecf20Sopenharmony_ci#define V_UDPCHECKSUMOFFLOAD(x) ((x) << S_UDPCHECKSUMOFFLOAD)
10288c2ecf20Sopenharmony_ci#define F_UDPCHECKSUMOFFLOAD    V_UDPCHECKSUMOFFLOAD(1U)
10298c2ecf20Sopenharmony_ci
10308c2ecf20Sopenharmony_ci#define S_TCPCHECKSUMOFFLOAD    11
10318c2ecf20Sopenharmony_ci#define V_TCPCHECKSUMOFFLOAD(x) ((x) << S_TCPCHECKSUMOFFLOAD)
10328c2ecf20Sopenharmony_ci#define F_TCPCHECKSUMOFFLOAD    V_TCPCHECKSUMOFFLOAD(1U)
10338c2ecf20Sopenharmony_ci
10348c2ecf20Sopenharmony_ci#define S_IPTTL    0
10358c2ecf20Sopenharmony_ci#define M_IPTTL    0xff
10368c2ecf20Sopenharmony_ci#define V_IPTTL(x) ((x) << S_IPTTL)
10378c2ecf20Sopenharmony_ci
10388c2ecf20Sopenharmony_ci#define A_TP_CMM_MM_BASE 0x314
10398c2ecf20Sopenharmony_ci
10408c2ecf20Sopenharmony_ci#define A_TP_CMM_TIMER_BASE 0x318
10418c2ecf20Sopenharmony_ci
10428c2ecf20Sopenharmony_ci#define S_CMTIMERMAXNUM    28
10438c2ecf20Sopenharmony_ci#define M_CMTIMERMAXNUM    0x3
10448c2ecf20Sopenharmony_ci#define V_CMTIMERMAXNUM(x) ((x) << S_CMTIMERMAXNUM)
10458c2ecf20Sopenharmony_ci
10468c2ecf20Sopenharmony_ci#define A_TP_PMM_SIZE 0x31c
10478c2ecf20Sopenharmony_ci
10488c2ecf20Sopenharmony_ci#define A_TP_PMM_TX_BASE 0x320
10498c2ecf20Sopenharmony_ci
10508c2ecf20Sopenharmony_ci#define A_TP_PMM_RX_BASE 0x328
10518c2ecf20Sopenharmony_ci
10528c2ecf20Sopenharmony_ci#define A_TP_PMM_RX_PAGE_SIZE 0x32c
10538c2ecf20Sopenharmony_ci
10548c2ecf20Sopenharmony_ci#define A_TP_PMM_RX_MAX_PAGE 0x330
10558c2ecf20Sopenharmony_ci
10568c2ecf20Sopenharmony_ci#define A_TP_PMM_TX_PAGE_SIZE 0x334
10578c2ecf20Sopenharmony_ci
10588c2ecf20Sopenharmony_ci#define A_TP_PMM_TX_MAX_PAGE 0x338
10598c2ecf20Sopenharmony_ci
10608c2ecf20Sopenharmony_ci#define A_TP_TCP_OPTIONS 0x340
10618c2ecf20Sopenharmony_ci
10628c2ecf20Sopenharmony_ci#define S_MTUDEFAULT    16
10638c2ecf20Sopenharmony_ci#define M_MTUDEFAULT    0xffff
10648c2ecf20Sopenharmony_ci#define V_MTUDEFAULT(x) ((x) << S_MTUDEFAULT)
10658c2ecf20Sopenharmony_ci
10668c2ecf20Sopenharmony_ci#define S_MTUENABLE    10
10678c2ecf20Sopenharmony_ci#define V_MTUENABLE(x) ((x) << S_MTUENABLE)
10688c2ecf20Sopenharmony_ci#define F_MTUENABLE    V_MTUENABLE(1U)
10698c2ecf20Sopenharmony_ci
10708c2ecf20Sopenharmony_ci#define S_SACKRX    8
10718c2ecf20Sopenharmony_ci#define V_SACKRX(x) ((x) << S_SACKRX)
10728c2ecf20Sopenharmony_ci#define F_SACKRX    V_SACKRX(1U)
10738c2ecf20Sopenharmony_ci
10748c2ecf20Sopenharmony_ci#define S_SACKMODE    4
10758c2ecf20Sopenharmony_ci
10768c2ecf20Sopenharmony_ci#define M_SACKMODE    0x3
10778c2ecf20Sopenharmony_ci
10788c2ecf20Sopenharmony_ci#define V_SACKMODE(x) ((x) << S_SACKMODE)
10798c2ecf20Sopenharmony_ci
10808c2ecf20Sopenharmony_ci#define S_WINDOWSCALEMODE    2
10818c2ecf20Sopenharmony_ci#define M_WINDOWSCALEMODE    0x3
10828c2ecf20Sopenharmony_ci#define V_WINDOWSCALEMODE(x) ((x) << S_WINDOWSCALEMODE)
10838c2ecf20Sopenharmony_ci
10848c2ecf20Sopenharmony_ci#define S_TIMESTAMPSMODE    0
10858c2ecf20Sopenharmony_ci
10868c2ecf20Sopenharmony_ci#define M_TIMESTAMPSMODE    0x3
10878c2ecf20Sopenharmony_ci
10888c2ecf20Sopenharmony_ci#define V_TIMESTAMPSMODE(x) ((x) << S_TIMESTAMPSMODE)
10898c2ecf20Sopenharmony_ci
10908c2ecf20Sopenharmony_ci#define A_TP_DACK_CONFIG 0x344
10918c2ecf20Sopenharmony_ci
10928c2ecf20Sopenharmony_ci#define S_AUTOSTATE3    30
10938c2ecf20Sopenharmony_ci#define M_AUTOSTATE3    0x3
10948c2ecf20Sopenharmony_ci#define V_AUTOSTATE3(x) ((x) << S_AUTOSTATE3)
10958c2ecf20Sopenharmony_ci
10968c2ecf20Sopenharmony_ci#define S_AUTOSTATE2    28
10978c2ecf20Sopenharmony_ci#define M_AUTOSTATE2    0x3
10988c2ecf20Sopenharmony_ci#define V_AUTOSTATE2(x) ((x) << S_AUTOSTATE2)
10998c2ecf20Sopenharmony_ci
11008c2ecf20Sopenharmony_ci#define S_AUTOSTATE1    26
11018c2ecf20Sopenharmony_ci#define M_AUTOSTATE1    0x3
11028c2ecf20Sopenharmony_ci#define V_AUTOSTATE1(x) ((x) << S_AUTOSTATE1)
11038c2ecf20Sopenharmony_ci
11048c2ecf20Sopenharmony_ci#define S_BYTETHRESHOLD    5
11058c2ecf20Sopenharmony_ci#define M_BYTETHRESHOLD    0xfffff
11068c2ecf20Sopenharmony_ci#define V_BYTETHRESHOLD(x) ((x) << S_BYTETHRESHOLD)
11078c2ecf20Sopenharmony_ci
11088c2ecf20Sopenharmony_ci#define S_MSSTHRESHOLD    3
11098c2ecf20Sopenharmony_ci#define M_MSSTHRESHOLD    0x3
11108c2ecf20Sopenharmony_ci#define V_MSSTHRESHOLD(x) ((x) << S_MSSTHRESHOLD)
11118c2ecf20Sopenharmony_ci
11128c2ecf20Sopenharmony_ci#define S_AUTOCAREFUL    2
11138c2ecf20Sopenharmony_ci#define V_AUTOCAREFUL(x) ((x) << S_AUTOCAREFUL)
11148c2ecf20Sopenharmony_ci#define F_AUTOCAREFUL    V_AUTOCAREFUL(1U)
11158c2ecf20Sopenharmony_ci
11168c2ecf20Sopenharmony_ci#define S_AUTOENABLE    1
11178c2ecf20Sopenharmony_ci#define V_AUTOENABLE(x) ((x) << S_AUTOENABLE)
11188c2ecf20Sopenharmony_ci#define F_AUTOENABLE    V_AUTOENABLE(1U)
11198c2ecf20Sopenharmony_ci
11208c2ecf20Sopenharmony_ci#define S_DACK_MODE    0
11218c2ecf20Sopenharmony_ci#define V_DACK_MODE(x) ((x) << S_DACK_MODE)
11228c2ecf20Sopenharmony_ci#define F_DACK_MODE    V_DACK_MODE(1U)
11238c2ecf20Sopenharmony_ci
11248c2ecf20Sopenharmony_ci#define A_TP_PC_CONFIG 0x348
11258c2ecf20Sopenharmony_ci
11268c2ecf20Sopenharmony_ci#define S_TXTOSQUEUEMAPMODE    26
11278c2ecf20Sopenharmony_ci#define V_TXTOSQUEUEMAPMODE(x) ((x) << S_TXTOSQUEUEMAPMODE)
11288c2ecf20Sopenharmony_ci#define F_TXTOSQUEUEMAPMODE    V_TXTOSQUEUEMAPMODE(1U)
11298c2ecf20Sopenharmony_ci
11308c2ecf20Sopenharmony_ci#define S_ENABLEEPCMDAFULL    23
11318c2ecf20Sopenharmony_ci#define V_ENABLEEPCMDAFULL(x) ((x) << S_ENABLEEPCMDAFULL)
11328c2ecf20Sopenharmony_ci#define F_ENABLEEPCMDAFULL    V_ENABLEEPCMDAFULL(1U)
11338c2ecf20Sopenharmony_ci
11348c2ecf20Sopenharmony_ci#define S_MODULATEUNIONMODE    22
11358c2ecf20Sopenharmony_ci#define V_MODULATEUNIONMODE(x) ((x) << S_MODULATEUNIONMODE)
11368c2ecf20Sopenharmony_ci#define F_MODULATEUNIONMODE    V_MODULATEUNIONMODE(1U)
11378c2ecf20Sopenharmony_ci
11388c2ecf20Sopenharmony_ci#define S_TXDEFERENABLE    20
11398c2ecf20Sopenharmony_ci#define V_TXDEFERENABLE(x) ((x) << S_TXDEFERENABLE)
11408c2ecf20Sopenharmony_ci#define F_TXDEFERENABLE    V_TXDEFERENABLE(1U)
11418c2ecf20Sopenharmony_ci
11428c2ecf20Sopenharmony_ci#define S_RXCONGESTIONMODE    19
11438c2ecf20Sopenharmony_ci#define V_RXCONGESTIONMODE(x) ((x) << S_RXCONGESTIONMODE)
11448c2ecf20Sopenharmony_ci#define F_RXCONGESTIONMODE    V_RXCONGESTIONMODE(1U)
11458c2ecf20Sopenharmony_ci
11468c2ecf20Sopenharmony_ci#define S_HEARBEATDACK    16
11478c2ecf20Sopenharmony_ci#define V_HEARBEATDACK(x) ((x) << S_HEARBEATDACK)
11488c2ecf20Sopenharmony_ci#define F_HEARBEATDACK    V_HEARBEATDACK(1U)
11498c2ecf20Sopenharmony_ci
11508c2ecf20Sopenharmony_ci#define S_TXCONGESTIONMODE    15
11518c2ecf20Sopenharmony_ci#define V_TXCONGESTIONMODE(x) ((x) << S_TXCONGESTIONMODE)
11528c2ecf20Sopenharmony_ci#define F_TXCONGESTIONMODE    V_TXCONGESTIONMODE(1U)
11538c2ecf20Sopenharmony_ci
11548c2ecf20Sopenharmony_ci#define S_ENABLEOCSPIFULL    30
11558c2ecf20Sopenharmony_ci#define V_ENABLEOCSPIFULL(x) ((x) << S_ENABLEOCSPIFULL)
11568c2ecf20Sopenharmony_ci#define F_ENABLEOCSPIFULL    V_ENABLEOCSPIFULL(1U)
11578c2ecf20Sopenharmony_ci
11588c2ecf20Sopenharmony_ci#define S_LOCKTID    28
11598c2ecf20Sopenharmony_ci#define V_LOCKTID(x) ((x) << S_LOCKTID)
11608c2ecf20Sopenharmony_ci#define F_LOCKTID    V_LOCKTID(1U)
11618c2ecf20Sopenharmony_ci
11628c2ecf20Sopenharmony_ci#define S_TABLELATENCYDELTA    0
11638c2ecf20Sopenharmony_ci#define M_TABLELATENCYDELTA    0xf
11648c2ecf20Sopenharmony_ci#define V_TABLELATENCYDELTA(x) ((x) << S_TABLELATENCYDELTA)
11658c2ecf20Sopenharmony_ci#define G_TABLELATENCYDELTA(x) \
11668c2ecf20Sopenharmony_ci	(((x) >> S_TABLELATENCYDELTA) & M_TABLELATENCYDELTA)
11678c2ecf20Sopenharmony_ci
11688c2ecf20Sopenharmony_ci#define A_TP_PC_CONFIG2 0x34c
11698c2ecf20Sopenharmony_ci
11708c2ecf20Sopenharmony_ci#define S_DISBLEDAPARBIT0    15
11718c2ecf20Sopenharmony_ci#define V_DISBLEDAPARBIT0(x) ((x) << S_DISBLEDAPARBIT0)
11728c2ecf20Sopenharmony_ci#define F_DISBLEDAPARBIT0    V_DISBLEDAPARBIT0(1U)
11738c2ecf20Sopenharmony_ci
11748c2ecf20Sopenharmony_ci#define S_ENABLEARPMISS    13
11758c2ecf20Sopenharmony_ci#define V_ENABLEARPMISS(x) ((x) << S_ENABLEARPMISS)
11768c2ecf20Sopenharmony_ci#define F_ENABLEARPMISS    V_ENABLEARPMISS(1U)
11778c2ecf20Sopenharmony_ci
11788c2ecf20Sopenharmony_ci#define S_ENABLENONOFDTNLSYN    12
11798c2ecf20Sopenharmony_ci#define V_ENABLENONOFDTNLSYN(x) ((x) << S_ENABLENONOFDTNLSYN)
11808c2ecf20Sopenharmony_ci#define F_ENABLENONOFDTNLSYN    V_ENABLENONOFDTNLSYN(1U)
11818c2ecf20Sopenharmony_ci
11828c2ecf20Sopenharmony_ci#define S_ENABLEIPV6RSS    11
11838c2ecf20Sopenharmony_ci#define V_ENABLEIPV6RSS(x) ((x) << S_ENABLEIPV6RSS)
11848c2ecf20Sopenharmony_ci#define F_ENABLEIPV6RSS    V_ENABLEIPV6RSS(1U)
11858c2ecf20Sopenharmony_ci
11868c2ecf20Sopenharmony_ci#define S_CHDRAFULL    4
11878c2ecf20Sopenharmony_ci#define V_CHDRAFULL(x) ((x) << S_CHDRAFULL)
11888c2ecf20Sopenharmony_ci#define F_CHDRAFULL    V_CHDRAFULL(1U)
11898c2ecf20Sopenharmony_ci
11908c2ecf20Sopenharmony_ci#define A_TP_TCP_BACKOFF_REG0 0x350
11918c2ecf20Sopenharmony_ci
11928c2ecf20Sopenharmony_ci#define A_TP_TCP_BACKOFF_REG1 0x354
11938c2ecf20Sopenharmony_ci
11948c2ecf20Sopenharmony_ci#define A_TP_TCP_BACKOFF_REG2 0x358
11958c2ecf20Sopenharmony_ci
11968c2ecf20Sopenharmony_ci#define A_TP_TCP_BACKOFF_REG3 0x35c
11978c2ecf20Sopenharmony_ci
11988c2ecf20Sopenharmony_ci#define A_TP_PARA_REG2 0x368
11998c2ecf20Sopenharmony_ci
12008c2ecf20Sopenharmony_ci#define S_MAXRXDATA    16
12018c2ecf20Sopenharmony_ci#define M_MAXRXDATA    0xffff
12028c2ecf20Sopenharmony_ci#define V_MAXRXDATA(x) ((x) << S_MAXRXDATA)
12038c2ecf20Sopenharmony_ci
12048c2ecf20Sopenharmony_ci#define S_RXCOALESCESIZE    0
12058c2ecf20Sopenharmony_ci#define M_RXCOALESCESIZE    0xffff
12068c2ecf20Sopenharmony_ci#define V_RXCOALESCESIZE(x) ((x) << S_RXCOALESCESIZE)
12078c2ecf20Sopenharmony_ci
12088c2ecf20Sopenharmony_ci#define A_TP_PARA_REG3 0x36c
12098c2ecf20Sopenharmony_ci
12108c2ecf20Sopenharmony_ci#define S_TXDATAACKIDX    16
12118c2ecf20Sopenharmony_ci#define M_TXDATAACKIDX    0xf
12128c2ecf20Sopenharmony_ci
12138c2ecf20Sopenharmony_ci#define V_TXDATAACKIDX(x) ((x) << S_TXDATAACKIDX)
12148c2ecf20Sopenharmony_ci
12158c2ecf20Sopenharmony_ci#define S_TXPACEAUTOSTRICT    10
12168c2ecf20Sopenharmony_ci#define V_TXPACEAUTOSTRICT(x) ((x) << S_TXPACEAUTOSTRICT)
12178c2ecf20Sopenharmony_ci#define F_TXPACEAUTOSTRICT    V_TXPACEAUTOSTRICT(1U)
12188c2ecf20Sopenharmony_ci
12198c2ecf20Sopenharmony_ci#define S_TXPACEFIXED    9
12208c2ecf20Sopenharmony_ci#define V_TXPACEFIXED(x) ((x) << S_TXPACEFIXED)
12218c2ecf20Sopenharmony_ci#define F_TXPACEFIXED    V_TXPACEFIXED(1U)
12228c2ecf20Sopenharmony_ci
12238c2ecf20Sopenharmony_ci#define S_TXPACEAUTO    8
12248c2ecf20Sopenharmony_ci#define V_TXPACEAUTO(x) ((x) << S_TXPACEAUTO)
12258c2ecf20Sopenharmony_ci#define F_TXPACEAUTO    V_TXPACEAUTO(1U)
12268c2ecf20Sopenharmony_ci
12278c2ecf20Sopenharmony_ci#define S_RXCOALESCEENABLE    1
12288c2ecf20Sopenharmony_ci#define V_RXCOALESCEENABLE(x) ((x) << S_RXCOALESCEENABLE)
12298c2ecf20Sopenharmony_ci#define F_RXCOALESCEENABLE    V_RXCOALESCEENABLE(1U)
12308c2ecf20Sopenharmony_ci
12318c2ecf20Sopenharmony_ci#define S_RXCOALESCEPSHEN    0
12328c2ecf20Sopenharmony_ci#define V_RXCOALESCEPSHEN(x) ((x) << S_RXCOALESCEPSHEN)
12338c2ecf20Sopenharmony_ci#define F_RXCOALESCEPSHEN    V_RXCOALESCEPSHEN(1U)
12348c2ecf20Sopenharmony_ci
12358c2ecf20Sopenharmony_ci#define A_TP_PARA_REG4 0x370
12368c2ecf20Sopenharmony_ci
12378c2ecf20Sopenharmony_ci#define A_TP_PARA_REG5 0x374
12388c2ecf20Sopenharmony_ci
12398c2ecf20Sopenharmony_ci#define S_RXDDPOFFINIT    3
12408c2ecf20Sopenharmony_ci#define V_RXDDPOFFINIT(x) ((x) << S_RXDDPOFFINIT)
12418c2ecf20Sopenharmony_ci#define F_RXDDPOFFINIT    V_RXDDPOFFINIT(1U)
12428c2ecf20Sopenharmony_ci
12438c2ecf20Sopenharmony_ci#define A_TP_PARA_REG6 0x378
12448c2ecf20Sopenharmony_ci
12458c2ecf20Sopenharmony_ci#define S_T3A_ENABLEESND    13
12468c2ecf20Sopenharmony_ci#define V_T3A_ENABLEESND(x) ((x) << S_T3A_ENABLEESND)
12478c2ecf20Sopenharmony_ci#define F_T3A_ENABLEESND    V_T3A_ENABLEESND(1U)
12488c2ecf20Sopenharmony_ci
12498c2ecf20Sopenharmony_ci#define S_ENABLEESND    11
12508c2ecf20Sopenharmony_ci#define V_ENABLEESND(x) ((x) << S_ENABLEESND)
12518c2ecf20Sopenharmony_ci#define F_ENABLEESND    V_ENABLEESND(1U)
12528c2ecf20Sopenharmony_ci
12538c2ecf20Sopenharmony_ci#define A_TP_PARA_REG7 0x37c
12548c2ecf20Sopenharmony_ci
12558c2ecf20Sopenharmony_ci#define S_PMMAXXFERLEN1    16
12568c2ecf20Sopenharmony_ci#define M_PMMAXXFERLEN1    0xffff
12578c2ecf20Sopenharmony_ci#define V_PMMAXXFERLEN1(x) ((x) << S_PMMAXXFERLEN1)
12588c2ecf20Sopenharmony_ci
12598c2ecf20Sopenharmony_ci#define S_PMMAXXFERLEN0    0
12608c2ecf20Sopenharmony_ci#define M_PMMAXXFERLEN0    0xffff
12618c2ecf20Sopenharmony_ci#define V_PMMAXXFERLEN0(x) ((x) << S_PMMAXXFERLEN0)
12628c2ecf20Sopenharmony_ci
12638c2ecf20Sopenharmony_ci#define A_TP_TIMER_RESOLUTION 0x390
12648c2ecf20Sopenharmony_ci
12658c2ecf20Sopenharmony_ci#define S_TIMERRESOLUTION    16
12668c2ecf20Sopenharmony_ci#define M_TIMERRESOLUTION    0xff
12678c2ecf20Sopenharmony_ci#define V_TIMERRESOLUTION(x) ((x) << S_TIMERRESOLUTION)
12688c2ecf20Sopenharmony_ci
12698c2ecf20Sopenharmony_ci#define S_TIMESTAMPRESOLUTION    8
12708c2ecf20Sopenharmony_ci#define M_TIMESTAMPRESOLUTION    0xff
12718c2ecf20Sopenharmony_ci#define V_TIMESTAMPRESOLUTION(x) ((x) << S_TIMESTAMPRESOLUTION)
12728c2ecf20Sopenharmony_ci
12738c2ecf20Sopenharmony_ci#define S_DELAYEDACKRESOLUTION    0
12748c2ecf20Sopenharmony_ci#define M_DELAYEDACKRESOLUTION    0xff
12758c2ecf20Sopenharmony_ci#define V_DELAYEDACKRESOLUTION(x) ((x) << S_DELAYEDACKRESOLUTION)
12768c2ecf20Sopenharmony_ci
12778c2ecf20Sopenharmony_ci#define A_TP_MSL 0x394
12788c2ecf20Sopenharmony_ci
12798c2ecf20Sopenharmony_ci#define A_TP_RXT_MIN 0x398
12808c2ecf20Sopenharmony_ci
12818c2ecf20Sopenharmony_ci#define A_TP_RXT_MAX 0x39c
12828c2ecf20Sopenharmony_ci
12838c2ecf20Sopenharmony_ci#define A_TP_PERS_MIN 0x3a0
12848c2ecf20Sopenharmony_ci
12858c2ecf20Sopenharmony_ci#define A_TP_PERS_MAX 0x3a4
12868c2ecf20Sopenharmony_ci
12878c2ecf20Sopenharmony_ci#define A_TP_KEEP_IDLE 0x3a8
12888c2ecf20Sopenharmony_ci
12898c2ecf20Sopenharmony_ci#define A_TP_KEEP_INTVL 0x3ac
12908c2ecf20Sopenharmony_ci
12918c2ecf20Sopenharmony_ci#define A_TP_INIT_SRTT 0x3b0
12928c2ecf20Sopenharmony_ci
12938c2ecf20Sopenharmony_ci#define A_TP_DACK_TIMER 0x3b4
12948c2ecf20Sopenharmony_ci
12958c2ecf20Sopenharmony_ci#define A_TP_FINWAIT2_TIMER 0x3b8
12968c2ecf20Sopenharmony_ci
12978c2ecf20Sopenharmony_ci#define A_TP_SHIFT_CNT 0x3c0
12988c2ecf20Sopenharmony_ci
12998c2ecf20Sopenharmony_ci#define S_SYNSHIFTMAX    24
13008c2ecf20Sopenharmony_ci
13018c2ecf20Sopenharmony_ci#define M_SYNSHIFTMAX    0xff
13028c2ecf20Sopenharmony_ci
13038c2ecf20Sopenharmony_ci#define V_SYNSHIFTMAX(x) ((x) << S_SYNSHIFTMAX)
13048c2ecf20Sopenharmony_ci
13058c2ecf20Sopenharmony_ci#define S_RXTSHIFTMAXR1    20
13068c2ecf20Sopenharmony_ci
13078c2ecf20Sopenharmony_ci#define M_RXTSHIFTMAXR1    0xf
13088c2ecf20Sopenharmony_ci
13098c2ecf20Sopenharmony_ci#define V_RXTSHIFTMAXR1(x) ((x) << S_RXTSHIFTMAXR1)
13108c2ecf20Sopenharmony_ci
13118c2ecf20Sopenharmony_ci#define S_RXTSHIFTMAXR2    16
13128c2ecf20Sopenharmony_ci
13138c2ecf20Sopenharmony_ci#define M_RXTSHIFTMAXR2    0xf
13148c2ecf20Sopenharmony_ci
13158c2ecf20Sopenharmony_ci#define V_RXTSHIFTMAXR2(x) ((x) << S_RXTSHIFTMAXR2)
13168c2ecf20Sopenharmony_ci
13178c2ecf20Sopenharmony_ci#define S_PERSHIFTBACKOFFMAX    12
13188c2ecf20Sopenharmony_ci#define M_PERSHIFTBACKOFFMAX    0xf
13198c2ecf20Sopenharmony_ci#define V_PERSHIFTBACKOFFMAX(x) ((x) << S_PERSHIFTBACKOFFMAX)
13208c2ecf20Sopenharmony_ci
13218c2ecf20Sopenharmony_ci#define S_PERSHIFTMAX    8
13228c2ecf20Sopenharmony_ci#define M_PERSHIFTMAX    0xf
13238c2ecf20Sopenharmony_ci#define V_PERSHIFTMAX(x) ((x) << S_PERSHIFTMAX)
13248c2ecf20Sopenharmony_ci
13258c2ecf20Sopenharmony_ci#define S_KEEPALIVEMAX    0
13268c2ecf20Sopenharmony_ci
13278c2ecf20Sopenharmony_ci#define M_KEEPALIVEMAX    0xff
13288c2ecf20Sopenharmony_ci
13298c2ecf20Sopenharmony_ci#define V_KEEPALIVEMAX(x) ((x) << S_KEEPALIVEMAX)
13308c2ecf20Sopenharmony_ci
13318c2ecf20Sopenharmony_ci#define A_TP_MTU_PORT_TABLE 0x3d0
13328c2ecf20Sopenharmony_ci
13338c2ecf20Sopenharmony_ci#define A_TP_CCTRL_TABLE 0x3dc
13348c2ecf20Sopenharmony_ci
13358c2ecf20Sopenharmony_ci#define A_TP_MTU_TABLE 0x3e4
13368c2ecf20Sopenharmony_ci
13378c2ecf20Sopenharmony_ci#define A_TP_RSS_MAP_TABLE 0x3e8
13388c2ecf20Sopenharmony_ci
13398c2ecf20Sopenharmony_ci#define A_TP_RSS_LKP_TABLE 0x3ec
13408c2ecf20Sopenharmony_ci
13418c2ecf20Sopenharmony_ci#define A_TP_RSS_CONFIG 0x3f0
13428c2ecf20Sopenharmony_ci
13438c2ecf20Sopenharmony_ci#define S_TNL4TUPEN    29
13448c2ecf20Sopenharmony_ci#define V_TNL4TUPEN(x) ((x) << S_TNL4TUPEN)
13458c2ecf20Sopenharmony_ci#define F_TNL4TUPEN    V_TNL4TUPEN(1U)
13468c2ecf20Sopenharmony_ci
13478c2ecf20Sopenharmony_ci#define S_TNL2TUPEN    28
13488c2ecf20Sopenharmony_ci#define V_TNL2TUPEN(x) ((x) << S_TNL2TUPEN)
13498c2ecf20Sopenharmony_ci#define F_TNL2TUPEN    V_TNL2TUPEN(1U)
13508c2ecf20Sopenharmony_ci
13518c2ecf20Sopenharmony_ci#define S_TNLPRTEN    26
13528c2ecf20Sopenharmony_ci#define V_TNLPRTEN(x) ((x) << S_TNLPRTEN)
13538c2ecf20Sopenharmony_ci#define F_TNLPRTEN    V_TNLPRTEN(1U)
13548c2ecf20Sopenharmony_ci
13558c2ecf20Sopenharmony_ci#define S_TNLMAPEN    25
13568c2ecf20Sopenharmony_ci#define V_TNLMAPEN(x) ((x) << S_TNLMAPEN)
13578c2ecf20Sopenharmony_ci#define F_TNLMAPEN    V_TNLMAPEN(1U)
13588c2ecf20Sopenharmony_ci
13598c2ecf20Sopenharmony_ci#define S_TNLLKPEN    24
13608c2ecf20Sopenharmony_ci#define V_TNLLKPEN(x) ((x) << S_TNLLKPEN)
13618c2ecf20Sopenharmony_ci#define F_TNLLKPEN    V_TNLLKPEN(1U)
13628c2ecf20Sopenharmony_ci
13638c2ecf20Sopenharmony_ci#define S_RRCPLMAPEN    7
13648c2ecf20Sopenharmony_ci#define V_RRCPLMAPEN(x) ((x) << S_RRCPLMAPEN)
13658c2ecf20Sopenharmony_ci#define F_RRCPLMAPEN    V_RRCPLMAPEN(1U)
13668c2ecf20Sopenharmony_ci
13678c2ecf20Sopenharmony_ci#define S_RRCPLCPUSIZE    4
13688c2ecf20Sopenharmony_ci#define M_RRCPLCPUSIZE    0x7
13698c2ecf20Sopenharmony_ci#define V_RRCPLCPUSIZE(x) ((x) << S_RRCPLCPUSIZE)
13708c2ecf20Sopenharmony_ci
13718c2ecf20Sopenharmony_ci#define S_RQFEEDBACKENABLE    3
13728c2ecf20Sopenharmony_ci#define V_RQFEEDBACKENABLE(x) ((x) << S_RQFEEDBACKENABLE)
13738c2ecf20Sopenharmony_ci#define F_RQFEEDBACKENABLE    V_RQFEEDBACKENABLE(1U)
13748c2ecf20Sopenharmony_ci
13758c2ecf20Sopenharmony_ci#define S_HASHTOEPLITZ    2
13768c2ecf20Sopenharmony_ci#define V_HASHTOEPLITZ(x) ((x) << S_HASHTOEPLITZ)
13778c2ecf20Sopenharmony_ci#define F_HASHTOEPLITZ    V_HASHTOEPLITZ(1U)
13788c2ecf20Sopenharmony_ci
13798c2ecf20Sopenharmony_ci#define S_DISABLE    0
13808c2ecf20Sopenharmony_ci
13818c2ecf20Sopenharmony_ci#define A_TP_TM_PIO_ADDR 0x418
13828c2ecf20Sopenharmony_ci
13838c2ecf20Sopenharmony_ci#define A_TP_TM_PIO_DATA 0x41c
13848c2ecf20Sopenharmony_ci
13858c2ecf20Sopenharmony_ci#define A_TP_TX_MOD_QUE_TABLE 0x420
13868c2ecf20Sopenharmony_ci
13878c2ecf20Sopenharmony_ci#define A_TP_TX_RESOURCE_LIMIT 0x424
13888c2ecf20Sopenharmony_ci
13898c2ecf20Sopenharmony_ci#define A_TP_TX_MOD_QUEUE_REQ_MAP 0x428
13908c2ecf20Sopenharmony_ci
13918c2ecf20Sopenharmony_ci#define S_TX_MOD_QUEUE_REQ_MAP    0
13928c2ecf20Sopenharmony_ci#define M_TX_MOD_QUEUE_REQ_MAP    0xff
13938c2ecf20Sopenharmony_ci#define V_TX_MOD_QUEUE_REQ_MAP(x) ((x) << S_TX_MOD_QUEUE_REQ_MAP)
13948c2ecf20Sopenharmony_ci
13958c2ecf20Sopenharmony_ci#define A_TP_TX_MOD_QUEUE_WEIGHT1 0x42c
13968c2ecf20Sopenharmony_ci
13978c2ecf20Sopenharmony_ci#define A_TP_TX_MOD_QUEUE_WEIGHT0 0x430
13988c2ecf20Sopenharmony_ci
13998c2ecf20Sopenharmony_ci#define A_TP_MOD_CHANNEL_WEIGHT 0x434
14008c2ecf20Sopenharmony_ci
14018c2ecf20Sopenharmony_ci#define A_TP_MOD_RATE_LIMIT 0x438
14028c2ecf20Sopenharmony_ci
14038c2ecf20Sopenharmony_ci#define A_TP_PIO_ADDR 0x440
14048c2ecf20Sopenharmony_ci
14058c2ecf20Sopenharmony_ci#define A_TP_PIO_DATA 0x444
14068c2ecf20Sopenharmony_ci
14078c2ecf20Sopenharmony_ci#define A_TP_RESET 0x44c
14088c2ecf20Sopenharmony_ci
14098c2ecf20Sopenharmony_ci#define S_FLSTINITENABLE    1
14108c2ecf20Sopenharmony_ci#define V_FLSTINITENABLE(x) ((x) << S_FLSTINITENABLE)
14118c2ecf20Sopenharmony_ci#define F_FLSTINITENABLE    V_FLSTINITENABLE(1U)
14128c2ecf20Sopenharmony_ci
14138c2ecf20Sopenharmony_ci#define S_TPRESET    0
14148c2ecf20Sopenharmony_ci#define V_TPRESET(x) ((x) << S_TPRESET)
14158c2ecf20Sopenharmony_ci#define F_TPRESET    V_TPRESET(1U)
14168c2ecf20Sopenharmony_ci
14178c2ecf20Sopenharmony_ci#define A_TP_CMM_MM_RX_FLST_BASE 0x460
14188c2ecf20Sopenharmony_ci
14198c2ecf20Sopenharmony_ci#define A_TP_CMM_MM_TX_FLST_BASE 0x464
14208c2ecf20Sopenharmony_ci
14218c2ecf20Sopenharmony_ci#define A_TP_CMM_MM_PS_FLST_BASE 0x468
14228c2ecf20Sopenharmony_ci
14238c2ecf20Sopenharmony_ci#define A_TP_MIB_INDEX 0x450
14248c2ecf20Sopenharmony_ci
14258c2ecf20Sopenharmony_ci#define A_TP_MIB_RDATA 0x454
14268c2ecf20Sopenharmony_ci
14278c2ecf20Sopenharmony_ci#define A_TP_CMM_MM_MAX_PSTRUCT 0x46c
14288c2ecf20Sopenharmony_ci
14298c2ecf20Sopenharmony_ci#define A_TP_INT_ENABLE 0x470
14308c2ecf20Sopenharmony_ci
14318c2ecf20Sopenharmony_ci#define S_FLMTXFLSTEMPTY    30
14328c2ecf20Sopenharmony_ci#define V_FLMTXFLSTEMPTY(x) ((x) << S_FLMTXFLSTEMPTY)
14338c2ecf20Sopenharmony_ci#define F_FLMTXFLSTEMPTY    V_FLMTXFLSTEMPTY(1U)
14348c2ecf20Sopenharmony_ci
14358c2ecf20Sopenharmony_ci#define S_FLMRXFLSTEMPTY    29
14368c2ecf20Sopenharmony_ci#define V_FLMRXFLSTEMPTY(x) ((x) << S_FLMRXFLSTEMPTY)
14378c2ecf20Sopenharmony_ci#define F_FLMRXFLSTEMPTY    V_FLMRXFLSTEMPTY(1U)
14388c2ecf20Sopenharmony_ci
14398c2ecf20Sopenharmony_ci#define S_ARPLUTPERR    26
14408c2ecf20Sopenharmony_ci#define V_ARPLUTPERR(x) ((x) << S_ARPLUTPERR)
14418c2ecf20Sopenharmony_ci#define F_ARPLUTPERR    V_ARPLUTPERR(1U)
14428c2ecf20Sopenharmony_ci
14438c2ecf20Sopenharmony_ci#define S_CMCACHEPERR    24
14448c2ecf20Sopenharmony_ci#define V_CMCACHEPERR(x) ((x) << S_CMCACHEPERR)
14458c2ecf20Sopenharmony_ci#define F_CMCACHEPERR    V_CMCACHEPERR(1U)
14468c2ecf20Sopenharmony_ci
14478c2ecf20Sopenharmony_ci#define A_TP_INT_CAUSE 0x474
14488c2ecf20Sopenharmony_ci
14498c2ecf20Sopenharmony_ci#define A_TP_TX_MOD_Q1_Q0_RATE_LIMIT 0x8
14508c2ecf20Sopenharmony_ci
14518c2ecf20Sopenharmony_ci#define A_TP_TX_DROP_CFG_CH0 0x12b
14528c2ecf20Sopenharmony_ci
14538c2ecf20Sopenharmony_ci#define A_TP_TX_DROP_MODE 0x12f
14548c2ecf20Sopenharmony_ci
14558c2ecf20Sopenharmony_ci#define A_TP_EGRESS_CONFIG 0x145
14568c2ecf20Sopenharmony_ci
14578c2ecf20Sopenharmony_ci#define S_REWRITEFORCETOSIZE    0
14588c2ecf20Sopenharmony_ci#define V_REWRITEFORCETOSIZE(x) ((x) << S_REWRITEFORCETOSIZE)
14598c2ecf20Sopenharmony_ci#define F_REWRITEFORCETOSIZE    V_REWRITEFORCETOSIZE(1U)
14608c2ecf20Sopenharmony_ci
14618c2ecf20Sopenharmony_ci#define A_TP_TX_TRC_KEY0 0x20
14628c2ecf20Sopenharmony_ci
14638c2ecf20Sopenharmony_ci#define A_TP_RX_TRC_KEY0 0x120
14648c2ecf20Sopenharmony_ci
14658c2ecf20Sopenharmony_ci#define A_TP_TX_DROP_CNT_CH0 0x12d
14668c2ecf20Sopenharmony_ci
14678c2ecf20Sopenharmony_ci#define S_TXDROPCNTCH0RCVD    0
14688c2ecf20Sopenharmony_ci#define M_TXDROPCNTCH0RCVD    0xffff
14698c2ecf20Sopenharmony_ci#define V_TXDROPCNTCH0RCVD(x) ((x) << S_TXDROPCNTCH0RCVD)
14708c2ecf20Sopenharmony_ci#define G_TXDROPCNTCH0RCVD(x) (((x) >> S_TXDROPCNTCH0RCVD) & \
14718c2ecf20Sopenharmony_ci			       M_TXDROPCNTCH0RCVD)
14728c2ecf20Sopenharmony_ci
14738c2ecf20Sopenharmony_ci#define A_TP_PROXY_FLOW_CNTL 0x4b0
14748c2ecf20Sopenharmony_ci
14758c2ecf20Sopenharmony_ci#define A_TP_EMBED_OP_FIELD0 0x4e8
14768c2ecf20Sopenharmony_ci#define A_TP_EMBED_OP_FIELD1 0x4ec
14778c2ecf20Sopenharmony_ci#define A_TP_EMBED_OP_FIELD2 0x4f0
14788c2ecf20Sopenharmony_ci#define A_TP_EMBED_OP_FIELD3 0x4f4
14798c2ecf20Sopenharmony_ci#define A_TP_EMBED_OP_FIELD4 0x4f8
14808c2ecf20Sopenharmony_ci#define A_TP_EMBED_OP_FIELD5 0x4fc
14818c2ecf20Sopenharmony_ci
14828c2ecf20Sopenharmony_ci#define A_ULPRX_CTL 0x500
14838c2ecf20Sopenharmony_ci
14848c2ecf20Sopenharmony_ci#define S_ROUND_ROBIN    4
14858c2ecf20Sopenharmony_ci#define V_ROUND_ROBIN(x) ((x) << S_ROUND_ROBIN)
14868c2ecf20Sopenharmony_ci#define F_ROUND_ROBIN    V_ROUND_ROBIN(1U)
14878c2ecf20Sopenharmony_ci
14888c2ecf20Sopenharmony_ci#define A_ULPRX_INT_ENABLE 0x504
14898c2ecf20Sopenharmony_ci
14908c2ecf20Sopenharmony_ci#define S_DATASELFRAMEERR0    7
14918c2ecf20Sopenharmony_ci#define V_DATASELFRAMEERR0(x) ((x) << S_DATASELFRAMEERR0)
14928c2ecf20Sopenharmony_ci#define F_DATASELFRAMEERR0    V_DATASELFRAMEERR0(1U)
14938c2ecf20Sopenharmony_ci
14948c2ecf20Sopenharmony_ci#define S_DATASELFRAMEERR1    6
14958c2ecf20Sopenharmony_ci#define V_DATASELFRAMEERR1(x) ((x) << S_DATASELFRAMEERR1)
14968c2ecf20Sopenharmony_ci#define F_DATASELFRAMEERR1    V_DATASELFRAMEERR1(1U)
14978c2ecf20Sopenharmony_ci
14988c2ecf20Sopenharmony_ci#define S_PCMDMUXPERR    5
14998c2ecf20Sopenharmony_ci#define V_PCMDMUXPERR(x) ((x) << S_PCMDMUXPERR)
15008c2ecf20Sopenharmony_ci#define F_PCMDMUXPERR    V_PCMDMUXPERR(1U)
15018c2ecf20Sopenharmony_ci
15028c2ecf20Sopenharmony_ci#define S_ARBFPERR    4
15038c2ecf20Sopenharmony_ci#define V_ARBFPERR(x) ((x) << S_ARBFPERR)
15048c2ecf20Sopenharmony_ci#define F_ARBFPERR    V_ARBFPERR(1U)
15058c2ecf20Sopenharmony_ci
15068c2ecf20Sopenharmony_ci#define S_ARBPF0PERR    3
15078c2ecf20Sopenharmony_ci#define V_ARBPF0PERR(x) ((x) << S_ARBPF0PERR)
15088c2ecf20Sopenharmony_ci#define F_ARBPF0PERR    V_ARBPF0PERR(1U)
15098c2ecf20Sopenharmony_ci
15108c2ecf20Sopenharmony_ci#define S_ARBPF1PERR    2
15118c2ecf20Sopenharmony_ci#define V_ARBPF1PERR(x) ((x) << S_ARBPF1PERR)
15128c2ecf20Sopenharmony_ci#define F_ARBPF1PERR    V_ARBPF1PERR(1U)
15138c2ecf20Sopenharmony_ci
15148c2ecf20Sopenharmony_ci#define S_PARERRPCMD    1
15158c2ecf20Sopenharmony_ci#define V_PARERRPCMD(x) ((x) << S_PARERRPCMD)
15168c2ecf20Sopenharmony_ci#define F_PARERRPCMD    V_PARERRPCMD(1U)
15178c2ecf20Sopenharmony_ci
15188c2ecf20Sopenharmony_ci#define S_PARERRDATA    0
15198c2ecf20Sopenharmony_ci#define V_PARERRDATA(x) ((x) << S_PARERRDATA)
15208c2ecf20Sopenharmony_ci#define F_PARERRDATA    V_PARERRDATA(1U)
15218c2ecf20Sopenharmony_ci
15228c2ecf20Sopenharmony_ci#define A_ULPRX_INT_CAUSE 0x508
15238c2ecf20Sopenharmony_ci
15248c2ecf20Sopenharmony_ci#define A_ULPRX_ISCSI_LLIMIT 0x50c
15258c2ecf20Sopenharmony_ci
15268c2ecf20Sopenharmony_ci#define A_ULPRX_ISCSI_ULIMIT 0x510
15278c2ecf20Sopenharmony_ci
15288c2ecf20Sopenharmony_ci#define A_ULPRX_ISCSI_TAGMASK 0x514
15298c2ecf20Sopenharmony_ci
15308c2ecf20Sopenharmony_ci#define A_ULPRX_ISCSI_PSZ 0x518
15318c2ecf20Sopenharmony_ci
15328c2ecf20Sopenharmony_ci#define A_ULPRX_TDDP_LLIMIT 0x51c
15338c2ecf20Sopenharmony_ci
15348c2ecf20Sopenharmony_ci#define A_ULPRX_TDDP_ULIMIT 0x520
15358c2ecf20Sopenharmony_ci#define A_ULPRX_TDDP_PSZ 0x528
15368c2ecf20Sopenharmony_ci
15378c2ecf20Sopenharmony_ci#define S_HPZ0    0
15388c2ecf20Sopenharmony_ci#define M_HPZ0    0xf
15398c2ecf20Sopenharmony_ci#define V_HPZ0(x) ((x) << S_HPZ0)
15408c2ecf20Sopenharmony_ci#define G_HPZ0(x) (((x) >> S_HPZ0) & M_HPZ0)
15418c2ecf20Sopenharmony_ci
15428c2ecf20Sopenharmony_ci#define A_ULPRX_STAG_LLIMIT 0x52c
15438c2ecf20Sopenharmony_ci
15448c2ecf20Sopenharmony_ci#define A_ULPRX_STAG_ULIMIT 0x530
15458c2ecf20Sopenharmony_ci
15468c2ecf20Sopenharmony_ci#define A_ULPRX_RQ_LLIMIT 0x534
15478c2ecf20Sopenharmony_ci
15488c2ecf20Sopenharmony_ci#define A_ULPRX_RQ_ULIMIT 0x538
15498c2ecf20Sopenharmony_ci
15508c2ecf20Sopenharmony_ci#define A_ULPRX_PBL_LLIMIT 0x53c
15518c2ecf20Sopenharmony_ci
15528c2ecf20Sopenharmony_ci#define A_ULPRX_PBL_ULIMIT 0x540
15538c2ecf20Sopenharmony_ci
15548c2ecf20Sopenharmony_ci#define A_ULPRX_TDDP_TAGMASK 0x524
15558c2ecf20Sopenharmony_ci
15568c2ecf20Sopenharmony_ci#define A_ULPTX_CONFIG 0x580
15578c2ecf20Sopenharmony_ci
15588c2ecf20Sopenharmony_ci#define S_CFG_CQE_SOP_MASK    1
15598c2ecf20Sopenharmony_ci#define V_CFG_CQE_SOP_MASK(x) ((x) << S_CFG_CQE_SOP_MASK)
15608c2ecf20Sopenharmony_ci#define F_CFG_CQE_SOP_MASK    V_CFG_CQE_SOP_MASK(1U)
15618c2ecf20Sopenharmony_ci
15628c2ecf20Sopenharmony_ci#define S_CFG_RR_ARB    0
15638c2ecf20Sopenharmony_ci#define V_CFG_RR_ARB(x) ((x) << S_CFG_RR_ARB)
15648c2ecf20Sopenharmony_ci#define F_CFG_RR_ARB    V_CFG_RR_ARB(1U)
15658c2ecf20Sopenharmony_ci
15668c2ecf20Sopenharmony_ci#define A_ULPTX_INT_ENABLE 0x584
15678c2ecf20Sopenharmony_ci
15688c2ecf20Sopenharmony_ci#define S_PBL_BOUND_ERR_CH1    1
15698c2ecf20Sopenharmony_ci#define V_PBL_BOUND_ERR_CH1(x) ((x) << S_PBL_BOUND_ERR_CH1)
15708c2ecf20Sopenharmony_ci#define F_PBL_BOUND_ERR_CH1    V_PBL_BOUND_ERR_CH1(1U)
15718c2ecf20Sopenharmony_ci
15728c2ecf20Sopenharmony_ci#define S_PBL_BOUND_ERR_CH0    0
15738c2ecf20Sopenharmony_ci#define V_PBL_BOUND_ERR_CH0(x) ((x) << S_PBL_BOUND_ERR_CH0)
15748c2ecf20Sopenharmony_ci#define F_PBL_BOUND_ERR_CH0    V_PBL_BOUND_ERR_CH0(1U)
15758c2ecf20Sopenharmony_ci
15768c2ecf20Sopenharmony_ci#define A_ULPTX_INT_CAUSE 0x588
15778c2ecf20Sopenharmony_ci
15788c2ecf20Sopenharmony_ci#define A_ULPTX_TPT_LLIMIT 0x58c
15798c2ecf20Sopenharmony_ci
15808c2ecf20Sopenharmony_ci#define A_ULPTX_TPT_ULIMIT 0x590
15818c2ecf20Sopenharmony_ci
15828c2ecf20Sopenharmony_ci#define A_ULPTX_PBL_LLIMIT 0x594
15838c2ecf20Sopenharmony_ci
15848c2ecf20Sopenharmony_ci#define A_ULPTX_PBL_ULIMIT 0x598
15858c2ecf20Sopenharmony_ci
15868c2ecf20Sopenharmony_ci#define A_ULPTX_DMA_WEIGHT 0x5ac
15878c2ecf20Sopenharmony_ci
15888c2ecf20Sopenharmony_ci#define S_D1_WEIGHT    16
15898c2ecf20Sopenharmony_ci#define M_D1_WEIGHT    0xffff
15908c2ecf20Sopenharmony_ci#define V_D1_WEIGHT(x) ((x) << S_D1_WEIGHT)
15918c2ecf20Sopenharmony_ci
15928c2ecf20Sopenharmony_ci#define S_D0_WEIGHT    0
15938c2ecf20Sopenharmony_ci#define M_D0_WEIGHT    0xffff
15948c2ecf20Sopenharmony_ci#define V_D0_WEIGHT(x) ((x) << S_D0_WEIGHT)
15958c2ecf20Sopenharmony_ci
15968c2ecf20Sopenharmony_ci#define A_PM1_RX_CFG 0x5c0
15978c2ecf20Sopenharmony_ci#define A_PM1_RX_MODE 0x5c4
15988c2ecf20Sopenharmony_ci
15998c2ecf20Sopenharmony_ci#define A_PM1_RX_INT_ENABLE 0x5d8
16008c2ecf20Sopenharmony_ci
16018c2ecf20Sopenharmony_ci#define S_ZERO_E_CMD_ERROR    18
16028c2ecf20Sopenharmony_ci#define V_ZERO_E_CMD_ERROR(x) ((x) << S_ZERO_E_CMD_ERROR)
16038c2ecf20Sopenharmony_ci#define F_ZERO_E_CMD_ERROR    V_ZERO_E_CMD_ERROR(1U)
16048c2ecf20Sopenharmony_ci
16058c2ecf20Sopenharmony_ci#define S_IESPI0_FIFO2X_RX_FRAMING_ERROR    17
16068c2ecf20Sopenharmony_ci#define V_IESPI0_FIFO2X_RX_FRAMING_ERROR(x) ((x) << S_IESPI0_FIFO2X_RX_FRAMING_ERROR)
16078c2ecf20Sopenharmony_ci#define F_IESPI0_FIFO2X_RX_FRAMING_ERROR    V_IESPI0_FIFO2X_RX_FRAMING_ERROR(1U)
16088c2ecf20Sopenharmony_ci
16098c2ecf20Sopenharmony_ci#define S_IESPI1_FIFO2X_RX_FRAMING_ERROR    16
16108c2ecf20Sopenharmony_ci#define V_IESPI1_FIFO2X_RX_FRAMING_ERROR(x) ((x) << S_IESPI1_FIFO2X_RX_FRAMING_ERROR)
16118c2ecf20Sopenharmony_ci#define F_IESPI1_FIFO2X_RX_FRAMING_ERROR    V_IESPI1_FIFO2X_RX_FRAMING_ERROR(1U)
16128c2ecf20Sopenharmony_ci
16138c2ecf20Sopenharmony_ci#define S_IESPI0_RX_FRAMING_ERROR    15
16148c2ecf20Sopenharmony_ci#define V_IESPI0_RX_FRAMING_ERROR(x) ((x) << S_IESPI0_RX_FRAMING_ERROR)
16158c2ecf20Sopenharmony_ci#define F_IESPI0_RX_FRAMING_ERROR    V_IESPI0_RX_FRAMING_ERROR(1U)
16168c2ecf20Sopenharmony_ci
16178c2ecf20Sopenharmony_ci#define S_IESPI1_RX_FRAMING_ERROR    14
16188c2ecf20Sopenharmony_ci#define V_IESPI1_RX_FRAMING_ERROR(x) ((x) << S_IESPI1_RX_FRAMING_ERROR)
16198c2ecf20Sopenharmony_ci#define F_IESPI1_RX_FRAMING_ERROR    V_IESPI1_RX_FRAMING_ERROR(1U)
16208c2ecf20Sopenharmony_ci
16218c2ecf20Sopenharmony_ci#define S_IESPI0_TX_FRAMING_ERROR    13
16228c2ecf20Sopenharmony_ci#define V_IESPI0_TX_FRAMING_ERROR(x) ((x) << S_IESPI0_TX_FRAMING_ERROR)
16238c2ecf20Sopenharmony_ci#define F_IESPI0_TX_FRAMING_ERROR    V_IESPI0_TX_FRAMING_ERROR(1U)
16248c2ecf20Sopenharmony_ci
16258c2ecf20Sopenharmony_ci#define S_IESPI1_TX_FRAMING_ERROR    12
16268c2ecf20Sopenharmony_ci#define V_IESPI1_TX_FRAMING_ERROR(x) ((x) << S_IESPI1_TX_FRAMING_ERROR)
16278c2ecf20Sopenharmony_ci#define F_IESPI1_TX_FRAMING_ERROR    V_IESPI1_TX_FRAMING_ERROR(1U)
16288c2ecf20Sopenharmony_ci
16298c2ecf20Sopenharmony_ci#define S_OCSPI0_RX_FRAMING_ERROR    11
16308c2ecf20Sopenharmony_ci#define V_OCSPI0_RX_FRAMING_ERROR(x) ((x) << S_OCSPI0_RX_FRAMING_ERROR)
16318c2ecf20Sopenharmony_ci#define F_OCSPI0_RX_FRAMING_ERROR    V_OCSPI0_RX_FRAMING_ERROR(1U)
16328c2ecf20Sopenharmony_ci
16338c2ecf20Sopenharmony_ci#define S_OCSPI1_RX_FRAMING_ERROR    10
16348c2ecf20Sopenharmony_ci#define V_OCSPI1_RX_FRAMING_ERROR(x) ((x) << S_OCSPI1_RX_FRAMING_ERROR)
16358c2ecf20Sopenharmony_ci#define F_OCSPI1_RX_FRAMING_ERROR    V_OCSPI1_RX_FRAMING_ERROR(1U)
16368c2ecf20Sopenharmony_ci
16378c2ecf20Sopenharmony_ci#define S_OCSPI0_TX_FRAMING_ERROR    9
16388c2ecf20Sopenharmony_ci#define V_OCSPI0_TX_FRAMING_ERROR(x) ((x) << S_OCSPI0_TX_FRAMING_ERROR)
16398c2ecf20Sopenharmony_ci#define F_OCSPI0_TX_FRAMING_ERROR    V_OCSPI0_TX_FRAMING_ERROR(1U)
16408c2ecf20Sopenharmony_ci
16418c2ecf20Sopenharmony_ci#define S_OCSPI1_TX_FRAMING_ERROR    8
16428c2ecf20Sopenharmony_ci#define V_OCSPI1_TX_FRAMING_ERROR(x) ((x) << S_OCSPI1_TX_FRAMING_ERROR)
16438c2ecf20Sopenharmony_ci#define F_OCSPI1_TX_FRAMING_ERROR    V_OCSPI1_TX_FRAMING_ERROR(1U)
16448c2ecf20Sopenharmony_ci
16458c2ecf20Sopenharmony_ci#define S_OCSPI0_OFIFO2X_TX_FRAMING_ERROR    7
16468c2ecf20Sopenharmony_ci#define V_OCSPI0_OFIFO2X_TX_FRAMING_ERROR(x) ((x) << S_OCSPI0_OFIFO2X_TX_FRAMING_ERROR)
16478c2ecf20Sopenharmony_ci#define F_OCSPI0_OFIFO2X_TX_FRAMING_ERROR    V_OCSPI0_OFIFO2X_TX_FRAMING_ERROR(1U)
16488c2ecf20Sopenharmony_ci
16498c2ecf20Sopenharmony_ci#define S_OCSPI1_OFIFO2X_TX_FRAMING_ERROR    6
16508c2ecf20Sopenharmony_ci#define V_OCSPI1_OFIFO2X_TX_FRAMING_ERROR(x) ((x) << S_OCSPI1_OFIFO2X_TX_FRAMING_ERROR)
16518c2ecf20Sopenharmony_ci#define F_OCSPI1_OFIFO2X_TX_FRAMING_ERROR    V_OCSPI1_OFIFO2X_TX_FRAMING_ERROR(1U)
16528c2ecf20Sopenharmony_ci
16538c2ecf20Sopenharmony_ci#define S_IESPI_PAR_ERROR    3
16548c2ecf20Sopenharmony_ci#define M_IESPI_PAR_ERROR    0x7
16558c2ecf20Sopenharmony_ci
16568c2ecf20Sopenharmony_ci#define V_IESPI_PAR_ERROR(x) ((x) << S_IESPI_PAR_ERROR)
16578c2ecf20Sopenharmony_ci
16588c2ecf20Sopenharmony_ci#define S_OCSPI_PAR_ERROR    0
16598c2ecf20Sopenharmony_ci#define M_OCSPI_PAR_ERROR    0x7
16608c2ecf20Sopenharmony_ci
16618c2ecf20Sopenharmony_ci#define V_OCSPI_PAR_ERROR(x) ((x) << S_OCSPI_PAR_ERROR)
16628c2ecf20Sopenharmony_ci
16638c2ecf20Sopenharmony_ci#define A_PM1_RX_INT_CAUSE 0x5dc
16648c2ecf20Sopenharmony_ci
16658c2ecf20Sopenharmony_ci#define A_PM1_TX_CFG 0x5e0
16668c2ecf20Sopenharmony_ci#define A_PM1_TX_MODE 0x5e4
16678c2ecf20Sopenharmony_ci
16688c2ecf20Sopenharmony_ci#define A_PM1_TX_INT_ENABLE 0x5f8
16698c2ecf20Sopenharmony_ci
16708c2ecf20Sopenharmony_ci#define S_ZERO_C_CMD_ERROR    18
16718c2ecf20Sopenharmony_ci#define V_ZERO_C_CMD_ERROR(x) ((x) << S_ZERO_C_CMD_ERROR)
16728c2ecf20Sopenharmony_ci#define F_ZERO_C_CMD_ERROR    V_ZERO_C_CMD_ERROR(1U)
16738c2ecf20Sopenharmony_ci
16748c2ecf20Sopenharmony_ci#define S_ICSPI0_FIFO2X_RX_FRAMING_ERROR    17
16758c2ecf20Sopenharmony_ci#define V_ICSPI0_FIFO2X_RX_FRAMING_ERROR(x) ((x) << S_ICSPI0_FIFO2X_RX_FRAMING_ERROR)
16768c2ecf20Sopenharmony_ci#define F_ICSPI0_FIFO2X_RX_FRAMING_ERROR    V_ICSPI0_FIFO2X_RX_FRAMING_ERROR(1U)
16778c2ecf20Sopenharmony_ci
16788c2ecf20Sopenharmony_ci#define S_ICSPI1_FIFO2X_RX_FRAMING_ERROR    16
16798c2ecf20Sopenharmony_ci#define V_ICSPI1_FIFO2X_RX_FRAMING_ERROR(x) ((x) << S_ICSPI1_FIFO2X_RX_FRAMING_ERROR)
16808c2ecf20Sopenharmony_ci#define F_ICSPI1_FIFO2X_RX_FRAMING_ERROR    V_ICSPI1_FIFO2X_RX_FRAMING_ERROR(1U)
16818c2ecf20Sopenharmony_ci
16828c2ecf20Sopenharmony_ci#define S_ICSPI0_RX_FRAMING_ERROR    15
16838c2ecf20Sopenharmony_ci#define V_ICSPI0_RX_FRAMING_ERROR(x) ((x) << S_ICSPI0_RX_FRAMING_ERROR)
16848c2ecf20Sopenharmony_ci#define F_ICSPI0_RX_FRAMING_ERROR    V_ICSPI0_RX_FRAMING_ERROR(1U)
16858c2ecf20Sopenharmony_ci
16868c2ecf20Sopenharmony_ci#define S_ICSPI1_RX_FRAMING_ERROR    14
16878c2ecf20Sopenharmony_ci#define V_ICSPI1_RX_FRAMING_ERROR(x) ((x) << S_ICSPI1_RX_FRAMING_ERROR)
16888c2ecf20Sopenharmony_ci#define F_ICSPI1_RX_FRAMING_ERROR    V_ICSPI1_RX_FRAMING_ERROR(1U)
16898c2ecf20Sopenharmony_ci
16908c2ecf20Sopenharmony_ci#define S_ICSPI0_TX_FRAMING_ERROR    13
16918c2ecf20Sopenharmony_ci#define V_ICSPI0_TX_FRAMING_ERROR(x) ((x) << S_ICSPI0_TX_FRAMING_ERROR)
16928c2ecf20Sopenharmony_ci#define F_ICSPI0_TX_FRAMING_ERROR    V_ICSPI0_TX_FRAMING_ERROR(1U)
16938c2ecf20Sopenharmony_ci
16948c2ecf20Sopenharmony_ci#define S_ICSPI1_TX_FRAMING_ERROR    12
16958c2ecf20Sopenharmony_ci#define V_ICSPI1_TX_FRAMING_ERROR(x) ((x) << S_ICSPI1_TX_FRAMING_ERROR)
16968c2ecf20Sopenharmony_ci#define F_ICSPI1_TX_FRAMING_ERROR    V_ICSPI1_TX_FRAMING_ERROR(1U)
16978c2ecf20Sopenharmony_ci
16988c2ecf20Sopenharmony_ci#define S_OESPI0_RX_FRAMING_ERROR    11
16998c2ecf20Sopenharmony_ci#define V_OESPI0_RX_FRAMING_ERROR(x) ((x) << S_OESPI0_RX_FRAMING_ERROR)
17008c2ecf20Sopenharmony_ci#define F_OESPI0_RX_FRAMING_ERROR    V_OESPI0_RX_FRAMING_ERROR(1U)
17018c2ecf20Sopenharmony_ci
17028c2ecf20Sopenharmony_ci#define S_OESPI1_RX_FRAMING_ERROR    10
17038c2ecf20Sopenharmony_ci#define V_OESPI1_RX_FRAMING_ERROR(x) ((x) << S_OESPI1_RX_FRAMING_ERROR)
17048c2ecf20Sopenharmony_ci#define F_OESPI1_RX_FRAMING_ERROR    V_OESPI1_RX_FRAMING_ERROR(1U)
17058c2ecf20Sopenharmony_ci
17068c2ecf20Sopenharmony_ci#define S_OESPI0_TX_FRAMING_ERROR    9
17078c2ecf20Sopenharmony_ci#define V_OESPI0_TX_FRAMING_ERROR(x) ((x) << S_OESPI0_TX_FRAMING_ERROR)
17088c2ecf20Sopenharmony_ci#define F_OESPI0_TX_FRAMING_ERROR    V_OESPI0_TX_FRAMING_ERROR(1U)
17098c2ecf20Sopenharmony_ci
17108c2ecf20Sopenharmony_ci#define S_OESPI1_TX_FRAMING_ERROR    8
17118c2ecf20Sopenharmony_ci#define V_OESPI1_TX_FRAMING_ERROR(x) ((x) << S_OESPI1_TX_FRAMING_ERROR)
17128c2ecf20Sopenharmony_ci#define F_OESPI1_TX_FRAMING_ERROR    V_OESPI1_TX_FRAMING_ERROR(1U)
17138c2ecf20Sopenharmony_ci
17148c2ecf20Sopenharmony_ci#define S_OESPI0_OFIFO2X_TX_FRAMING_ERROR    7
17158c2ecf20Sopenharmony_ci#define V_OESPI0_OFIFO2X_TX_FRAMING_ERROR(x) ((x) << S_OESPI0_OFIFO2X_TX_FRAMING_ERROR)
17168c2ecf20Sopenharmony_ci#define F_OESPI0_OFIFO2X_TX_FRAMING_ERROR    V_OESPI0_OFIFO2X_TX_FRAMING_ERROR(1U)
17178c2ecf20Sopenharmony_ci
17188c2ecf20Sopenharmony_ci#define S_OESPI1_OFIFO2X_TX_FRAMING_ERROR    6
17198c2ecf20Sopenharmony_ci#define V_OESPI1_OFIFO2X_TX_FRAMING_ERROR(x) ((x) << S_OESPI1_OFIFO2X_TX_FRAMING_ERROR)
17208c2ecf20Sopenharmony_ci#define F_OESPI1_OFIFO2X_TX_FRAMING_ERROR    V_OESPI1_OFIFO2X_TX_FRAMING_ERROR(1U)
17218c2ecf20Sopenharmony_ci
17228c2ecf20Sopenharmony_ci#define S_ICSPI_PAR_ERROR    3
17238c2ecf20Sopenharmony_ci#define M_ICSPI_PAR_ERROR    0x7
17248c2ecf20Sopenharmony_ci
17258c2ecf20Sopenharmony_ci#define V_ICSPI_PAR_ERROR(x) ((x) << S_ICSPI_PAR_ERROR)
17268c2ecf20Sopenharmony_ci
17278c2ecf20Sopenharmony_ci#define S_OESPI_PAR_ERROR    0
17288c2ecf20Sopenharmony_ci#define M_OESPI_PAR_ERROR    0x7
17298c2ecf20Sopenharmony_ci
17308c2ecf20Sopenharmony_ci#define V_OESPI_PAR_ERROR(x) ((x) << S_OESPI_PAR_ERROR)
17318c2ecf20Sopenharmony_ci
17328c2ecf20Sopenharmony_ci#define A_PM1_TX_INT_CAUSE 0x5fc
17338c2ecf20Sopenharmony_ci
17348c2ecf20Sopenharmony_ci#define A_MPS_CFG 0x600
17358c2ecf20Sopenharmony_ci
17368c2ecf20Sopenharmony_ci#define S_TPRXPORTEN    4
17378c2ecf20Sopenharmony_ci#define V_TPRXPORTEN(x) ((x) << S_TPRXPORTEN)
17388c2ecf20Sopenharmony_ci#define F_TPRXPORTEN    V_TPRXPORTEN(1U)
17398c2ecf20Sopenharmony_ci
17408c2ecf20Sopenharmony_ci#define S_TPTXPORT1EN    3
17418c2ecf20Sopenharmony_ci#define V_TPTXPORT1EN(x) ((x) << S_TPTXPORT1EN)
17428c2ecf20Sopenharmony_ci#define F_TPTXPORT1EN    V_TPTXPORT1EN(1U)
17438c2ecf20Sopenharmony_ci
17448c2ecf20Sopenharmony_ci#define S_TPTXPORT0EN    2
17458c2ecf20Sopenharmony_ci#define V_TPTXPORT0EN(x) ((x) << S_TPTXPORT0EN)
17468c2ecf20Sopenharmony_ci#define F_TPTXPORT0EN    V_TPTXPORT0EN(1U)
17478c2ecf20Sopenharmony_ci
17488c2ecf20Sopenharmony_ci#define S_PORT1ACTIVE    1
17498c2ecf20Sopenharmony_ci#define V_PORT1ACTIVE(x) ((x) << S_PORT1ACTIVE)
17508c2ecf20Sopenharmony_ci#define F_PORT1ACTIVE    V_PORT1ACTIVE(1U)
17518c2ecf20Sopenharmony_ci
17528c2ecf20Sopenharmony_ci#define S_PORT0ACTIVE    0
17538c2ecf20Sopenharmony_ci#define V_PORT0ACTIVE(x) ((x) << S_PORT0ACTIVE)
17548c2ecf20Sopenharmony_ci#define F_PORT0ACTIVE    V_PORT0ACTIVE(1U)
17558c2ecf20Sopenharmony_ci
17568c2ecf20Sopenharmony_ci#define S_ENFORCEPKT    11
17578c2ecf20Sopenharmony_ci#define V_ENFORCEPKT(x) ((x) << S_ENFORCEPKT)
17588c2ecf20Sopenharmony_ci#define F_ENFORCEPKT    V_ENFORCEPKT(1U)
17598c2ecf20Sopenharmony_ci
17608c2ecf20Sopenharmony_ci#define A_MPS_INT_ENABLE 0x61c
17618c2ecf20Sopenharmony_ci
17628c2ecf20Sopenharmony_ci#define S_MCAPARERRENB    6
17638c2ecf20Sopenharmony_ci#define M_MCAPARERRENB    0x7
17648c2ecf20Sopenharmony_ci
17658c2ecf20Sopenharmony_ci#define V_MCAPARERRENB(x) ((x) << S_MCAPARERRENB)
17668c2ecf20Sopenharmony_ci
17678c2ecf20Sopenharmony_ci#define S_RXTPPARERRENB    4
17688c2ecf20Sopenharmony_ci#define M_RXTPPARERRENB    0x3
17698c2ecf20Sopenharmony_ci
17708c2ecf20Sopenharmony_ci#define V_RXTPPARERRENB(x) ((x) << S_RXTPPARERRENB)
17718c2ecf20Sopenharmony_ci
17728c2ecf20Sopenharmony_ci#define S_TX1TPPARERRENB    2
17738c2ecf20Sopenharmony_ci#define M_TX1TPPARERRENB    0x3
17748c2ecf20Sopenharmony_ci
17758c2ecf20Sopenharmony_ci#define V_TX1TPPARERRENB(x) ((x) << S_TX1TPPARERRENB)
17768c2ecf20Sopenharmony_ci
17778c2ecf20Sopenharmony_ci#define S_TX0TPPARERRENB    0
17788c2ecf20Sopenharmony_ci#define M_TX0TPPARERRENB    0x3
17798c2ecf20Sopenharmony_ci
17808c2ecf20Sopenharmony_ci#define V_TX0TPPARERRENB(x) ((x) << S_TX0TPPARERRENB)
17818c2ecf20Sopenharmony_ci
17828c2ecf20Sopenharmony_ci#define A_MPS_INT_CAUSE 0x620
17838c2ecf20Sopenharmony_ci
17848c2ecf20Sopenharmony_ci#define S_MCAPARERR    6
17858c2ecf20Sopenharmony_ci#define M_MCAPARERR    0x7
17868c2ecf20Sopenharmony_ci
17878c2ecf20Sopenharmony_ci#define V_MCAPARERR(x) ((x) << S_MCAPARERR)
17888c2ecf20Sopenharmony_ci
17898c2ecf20Sopenharmony_ci#define S_RXTPPARERR    4
17908c2ecf20Sopenharmony_ci#define M_RXTPPARERR    0x3
17918c2ecf20Sopenharmony_ci
17928c2ecf20Sopenharmony_ci#define V_RXTPPARERR(x) ((x) << S_RXTPPARERR)
17938c2ecf20Sopenharmony_ci
17948c2ecf20Sopenharmony_ci#define S_TX1TPPARERR    2
17958c2ecf20Sopenharmony_ci#define M_TX1TPPARERR    0x3
17968c2ecf20Sopenharmony_ci
17978c2ecf20Sopenharmony_ci#define V_TX1TPPARERR(x) ((x) << S_TX1TPPARERR)
17988c2ecf20Sopenharmony_ci
17998c2ecf20Sopenharmony_ci#define S_TX0TPPARERR    0
18008c2ecf20Sopenharmony_ci#define M_TX0TPPARERR    0x3
18018c2ecf20Sopenharmony_ci
18028c2ecf20Sopenharmony_ci#define V_TX0TPPARERR(x) ((x) << S_TX0TPPARERR)
18038c2ecf20Sopenharmony_ci
18048c2ecf20Sopenharmony_ci#define A_CPL_SWITCH_CNTRL 0x640
18058c2ecf20Sopenharmony_ci
18068c2ecf20Sopenharmony_ci#define A_CPL_INTR_ENABLE 0x650
18078c2ecf20Sopenharmony_ci
18088c2ecf20Sopenharmony_ci#define S_CIM_OP_MAP_PERR    5
18098c2ecf20Sopenharmony_ci#define V_CIM_OP_MAP_PERR(x) ((x) << S_CIM_OP_MAP_PERR)
18108c2ecf20Sopenharmony_ci#define F_CIM_OP_MAP_PERR    V_CIM_OP_MAP_PERR(1U)
18118c2ecf20Sopenharmony_ci
18128c2ecf20Sopenharmony_ci#define S_CIM_OVFL_ERROR    4
18138c2ecf20Sopenharmony_ci#define V_CIM_OVFL_ERROR(x) ((x) << S_CIM_OVFL_ERROR)
18148c2ecf20Sopenharmony_ci#define F_CIM_OVFL_ERROR    V_CIM_OVFL_ERROR(1U)
18158c2ecf20Sopenharmony_ci
18168c2ecf20Sopenharmony_ci#define S_TP_FRAMING_ERROR    3
18178c2ecf20Sopenharmony_ci#define V_TP_FRAMING_ERROR(x) ((x) << S_TP_FRAMING_ERROR)
18188c2ecf20Sopenharmony_ci#define F_TP_FRAMING_ERROR    V_TP_FRAMING_ERROR(1U)
18198c2ecf20Sopenharmony_ci
18208c2ecf20Sopenharmony_ci#define S_SGE_FRAMING_ERROR    2
18218c2ecf20Sopenharmony_ci#define V_SGE_FRAMING_ERROR(x) ((x) << S_SGE_FRAMING_ERROR)
18228c2ecf20Sopenharmony_ci#define F_SGE_FRAMING_ERROR    V_SGE_FRAMING_ERROR(1U)
18238c2ecf20Sopenharmony_ci
18248c2ecf20Sopenharmony_ci#define S_CIM_FRAMING_ERROR    1
18258c2ecf20Sopenharmony_ci#define V_CIM_FRAMING_ERROR(x) ((x) << S_CIM_FRAMING_ERROR)
18268c2ecf20Sopenharmony_ci#define F_CIM_FRAMING_ERROR    V_CIM_FRAMING_ERROR(1U)
18278c2ecf20Sopenharmony_ci
18288c2ecf20Sopenharmony_ci#define S_ZERO_SWITCH_ERROR    0
18298c2ecf20Sopenharmony_ci#define V_ZERO_SWITCH_ERROR(x) ((x) << S_ZERO_SWITCH_ERROR)
18308c2ecf20Sopenharmony_ci#define F_ZERO_SWITCH_ERROR    V_ZERO_SWITCH_ERROR(1U)
18318c2ecf20Sopenharmony_ci
18328c2ecf20Sopenharmony_ci#define A_CPL_INTR_CAUSE 0x654
18338c2ecf20Sopenharmony_ci
18348c2ecf20Sopenharmony_ci#define A_CPL_MAP_TBL_DATA 0x65c
18358c2ecf20Sopenharmony_ci
18368c2ecf20Sopenharmony_ci#define A_SMB_GLOBAL_TIME_CFG 0x660
18378c2ecf20Sopenharmony_ci
18388c2ecf20Sopenharmony_ci#define A_I2C_CFG 0x6a0
18398c2ecf20Sopenharmony_ci
18408c2ecf20Sopenharmony_ci#define S_I2C_CLKDIV    0
18418c2ecf20Sopenharmony_ci#define M_I2C_CLKDIV    0xfff
18428c2ecf20Sopenharmony_ci#define V_I2C_CLKDIV(x) ((x) << S_I2C_CLKDIV)
18438c2ecf20Sopenharmony_ci
18448c2ecf20Sopenharmony_ci#define A_MI1_CFG 0x6b0
18458c2ecf20Sopenharmony_ci
18468c2ecf20Sopenharmony_ci#define S_CLKDIV    5
18478c2ecf20Sopenharmony_ci#define M_CLKDIV    0xff
18488c2ecf20Sopenharmony_ci#define V_CLKDIV(x) ((x) << S_CLKDIV)
18498c2ecf20Sopenharmony_ci
18508c2ecf20Sopenharmony_ci#define S_ST    3
18518c2ecf20Sopenharmony_ci
18528c2ecf20Sopenharmony_ci#define M_ST    0x3
18538c2ecf20Sopenharmony_ci
18548c2ecf20Sopenharmony_ci#define V_ST(x) ((x) << S_ST)
18558c2ecf20Sopenharmony_ci
18568c2ecf20Sopenharmony_ci#define G_ST(x) (((x) >> S_ST) & M_ST)
18578c2ecf20Sopenharmony_ci
18588c2ecf20Sopenharmony_ci#define S_PREEN    2
18598c2ecf20Sopenharmony_ci#define V_PREEN(x) ((x) << S_PREEN)
18608c2ecf20Sopenharmony_ci#define F_PREEN    V_PREEN(1U)
18618c2ecf20Sopenharmony_ci
18628c2ecf20Sopenharmony_ci#define S_MDIINV    1
18638c2ecf20Sopenharmony_ci#define V_MDIINV(x) ((x) << S_MDIINV)
18648c2ecf20Sopenharmony_ci#define F_MDIINV    V_MDIINV(1U)
18658c2ecf20Sopenharmony_ci
18668c2ecf20Sopenharmony_ci#define S_MDIEN    0
18678c2ecf20Sopenharmony_ci#define V_MDIEN(x) ((x) << S_MDIEN)
18688c2ecf20Sopenharmony_ci#define F_MDIEN    V_MDIEN(1U)
18698c2ecf20Sopenharmony_ci
18708c2ecf20Sopenharmony_ci#define A_MI1_ADDR 0x6b4
18718c2ecf20Sopenharmony_ci
18728c2ecf20Sopenharmony_ci#define S_PHYADDR    5
18738c2ecf20Sopenharmony_ci#define M_PHYADDR    0x1f
18748c2ecf20Sopenharmony_ci#define V_PHYADDR(x) ((x) << S_PHYADDR)
18758c2ecf20Sopenharmony_ci
18768c2ecf20Sopenharmony_ci#define S_REGADDR    0
18778c2ecf20Sopenharmony_ci#define M_REGADDR    0x1f
18788c2ecf20Sopenharmony_ci#define V_REGADDR(x) ((x) << S_REGADDR)
18798c2ecf20Sopenharmony_ci
18808c2ecf20Sopenharmony_ci#define A_MI1_DATA 0x6b8
18818c2ecf20Sopenharmony_ci
18828c2ecf20Sopenharmony_ci#define A_MI1_OP 0x6bc
18838c2ecf20Sopenharmony_ci
18848c2ecf20Sopenharmony_ci#define S_MDI_OP    0
18858c2ecf20Sopenharmony_ci#define M_MDI_OP    0x3
18868c2ecf20Sopenharmony_ci#define V_MDI_OP(x) ((x) << S_MDI_OP)
18878c2ecf20Sopenharmony_ci
18888c2ecf20Sopenharmony_ci#define A_SF_DATA 0x6d8
18898c2ecf20Sopenharmony_ci
18908c2ecf20Sopenharmony_ci#define A_SF_OP 0x6dc
18918c2ecf20Sopenharmony_ci
18928c2ecf20Sopenharmony_ci#define S_BYTECNT    1
18938c2ecf20Sopenharmony_ci#define M_BYTECNT    0x3
18948c2ecf20Sopenharmony_ci#define V_BYTECNT(x) ((x) << S_BYTECNT)
18958c2ecf20Sopenharmony_ci
18968c2ecf20Sopenharmony_ci#define A_PL_INT_ENABLE0 0x6e0
18978c2ecf20Sopenharmony_ci
18988c2ecf20Sopenharmony_ci#define S_T3DBG    23
18998c2ecf20Sopenharmony_ci#define V_T3DBG(x) ((x) << S_T3DBG)
19008c2ecf20Sopenharmony_ci#define F_T3DBG    V_T3DBG(1U)
19018c2ecf20Sopenharmony_ci
19028c2ecf20Sopenharmony_ci#define S_XGMAC0_1    20
19038c2ecf20Sopenharmony_ci#define V_XGMAC0_1(x) ((x) << S_XGMAC0_1)
19048c2ecf20Sopenharmony_ci#define F_XGMAC0_1    V_XGMAC0_1(1U)
19058c2ecf20Sopenharmony_ci
19068c2ecf20Sopenharmony_ci#define S_XGMAC0_0    19
19078c2ecf20Sopenharmony_ci#define V_XGMAC0_0(x) ((x) << S_XGMAC0_0)
19088c2ecf20Sopenharmony_ci#define F_XGMAC0_0    V_XGMAC0_0(1U)
19098c2ecf20Sopenharmony_ci
19108c2ecf20Sopenharmony_ci#define S_MC5A    18
19118c2ecf20Sopenharmony_ci#define V_MC5A(x) ((x) << S_MC5A)
19128c2ecf20Sopenharmony_ci#define F_MC5A    V_MC5A(1U)
19138c2ecf20Sopenharmony_ci
19148c2ecf20Sopenharmony_ci#define S_CPL_SWITCH    12
19158c2ecf20Sopenharmony_ci#define V_CPL_SWITCH(x) ((x) << S_CPL_SWITCH)
19168c2ecf20Sopenharmony_ci#define F_CPL_SWITCH    V_CPL_SWITCH(1U)
19178c2ecf20Sopenharmony_ci
19188c2ecf20Sopenharmony_ci#define S_MPS0    11
19198c2ecf20Sopenharmony_ci#define V_MPS0(x) ((x) << S_MPS0)
19208c2ecf20Sopenharmony_ci#define F_MPS0    V_MPS0(1U)
19218c2ecf20Sopenharmony_ci
19228c2ecf20Sopenharmony_ci#define S_PM1_TX    10
19238c2ecf20Sopenharmony_ci#define V_PM1_TX(x) ((x) << S_PM1_TX)
19248c2ecf20Sopenharmony_ci#define F_PM1_TX    V_PM1_TX(1U)
19258c2ecf20Sopenharmony_ci
19268c2ecf20Sopenharmony_ci#define S_PM1_RX    9
19278c2ecf20Sopenharmony_ci#define V_PM1_RX(x) ((x) << S_PM1_RX)
19288c2ecf20Sopenharmony_ci#define F_PM1_RX    V_PM1_RX(1U)
19298c2ecf20Sopenharmony_ci
19308c2ecf20Sopenharmony_ci#define S_ULP2_TX    8
19318c2ecf20Sopenharmony_ci#define V_ULP2_TX(x) ((x) << S_ULP2_TX)
19328c2ecf20Sopenharmony_ci#define F_ULP2_TX    V_ULP2_TX(1U)
19338c2ecf20Sopenharmony_ci
19348c2ecf20Sopenharmony_ci#define S_ULP2_RX    7
19358c2ecf20Sopenharmony_ci#define V_ULP2_RX(x) ((x) << S_ULP2_RX)
19368c2ecf20Sopenharmony_ci#define F_ULP2_RX    V_ULP2_RX(1U)
19378c2ecf20Sopenharmony_ci
19388c2ecf20Sopenharmony_ci#define S_TP1    6
19398c2ecf20Sopenharmony_ci#define V_TP1(x) ((x) << S_TP1)
19408c2ecf20Sopenharmony_ci#define F_TP1    V_TP1(1U)
19418c2ecf20Sopenharmony_ci
19428c2ecf20Sopenharmony_ci#define S_CIM    5
19438c2ecf20Sopenharmony_ci#define V_CIM(x) ((x) << S_CIM)
19448c2ecf20Sopenharmony_ci#define F_CIM    V_CIM(1U)
19458c2ecf20Sopenharmony_ci
19468c2ecf20Sopenharmony_ci#define S_MC7_CM    4
19478c2ecf20Sopenharmony_ci#define V_MC7_CM(x) ((x) << S_MC7_CM)
19488c2ecf20Sopenharmony_ci#define F_MC7_CM    V_MC7_CM(1U)
19498c2ecf20Sopenharmony_ci
19508c2ecf20Sopenharmony_ci#define S_MC7_PMTX    3
19518c2ecf20Sopenharmony_ci#define V_MC7_PMTX(x) ((x) << S_MC7_PMTX)
19528c2ecf20Sopenharmony_ci#define F_MC7_PMTX    V_MC7_PMTX(1U)
19538c2ecf20Sopenharmony_ci
19548c2ecf20Sopenharmony_ci#define S_MC7_PMRX    2
19558c2ecf20Sopenharmony_ci#define V_MC7_PMRX(x) ((x) << S_MC7_PMRX)
19568c2ecf20Sopenharmony_ci#define F_MC7_PMRX    V_MC7_PMRX(1U)
19578c2ecf20Sopenharmony_ci
19588c2ecf20Sopenharmony_ci#define S_PCIM0    1
19598c2ecf20Sopenharmony_ci#define V_PCIM0(x) ((x) << S_PCIM0)
19608c2ecf20Sopenharmony_ci#define F_PCIM0    V_PCIM0(1U)
19618c2ecf20Sopenharmony_ci
19628c2ecf20Sopenharmony_ci#define S_SGE3    0
19638c2ecf20Sopenharmony_ci#define V_SGE3(x) ((x) << S_SGE3)
19648c2ecf20Sopenharmony_ci#define F_SGE3    V_SGE3(1U)
19658c2ecf20Sopenharmony_ci
19668c2ecf20Sopenharmony_ci#define A_PL_INT_CAUSE0 0x6e4
19678c2ecf20Sopenharmony_ci
19688c2ecf20Sopenharmony_ci#define A_PL_RST 0x6f0
19698c2ecf20Sopenharmony_ci
19708c2ecf20Sopenharmony_ci#define S_FATALPERREN    4
19718c2ecf20Sopenharmony_ci#define V_FATALPERREN(x) ((x) << S_FATALPERREN)
19728c2ecf20Sopenharmony_ci#define F_FATALPERREN    V_FATALPERREN(1U)
19738c2ecf20Sopenharmony_ci
19748c2ecf20Sopenharmony_ci#define S_CRSTWRM    1
19758c2ecf20Sopenharmony_ci#define V_CRSTWRM(x) ((x) << S_CRSTWRM)
19768c2ecf20Sopenharmony_ci#define F_CRSTWRM    V_CRSTWRM(1U)
19778c2ecf20Sopenharmony_ci
19788c2ecf20Sopenharmony_ci#define A_PL_REV 0x6f4
19798c2ecf20Sopenharmony_ci
19808c2ecf20Sopenharmony_ci#define A_PL_CLI 0x6f8
19818c2ecf20Sopenharmony_ci
19828c2ecf20Sopenharmony_ci#define A_MC5_DB_CONFIG 0x704
19838c2ecf20Sopenharmony_ci
19848c2ecf20Sopenharmony_ci#define S_TMTYPEHI    30
19858c2ecf20Sopenharmony_ci#define V_TMTYPEHI(x) ((x) << S_TMTYPEHI)
19868c2ecf20Sopenharmony_ci#define F_TMTYPEHI    V_TMTYPEHI(1U)
19878c2ecf20Sopenharmony_ci
19888c2ecf20Sopenharmony_ci#define S_TMPARTSIZE    28
19898c2ecf20Sopenharmony_ci#define M_TMPARTSIZE    0x3
19908c2ecf20Sopenharmony_ci#define V_TMPARTSIZE(x) ((x) << S_TMPARTSIZE)
19918c2ecf20Sopenharmony_ci#define G_TMPARTSIZE(x) (((x) >> S_TMPARTSIZE) & M_TMPARTSIZE)
19928c2ecf20Sopenharmony_ci
19938c2ecf20Sopenharmony_ci#define S_TMTYPE    26
19948c2ecf20Sopenharmony_ci#define M_TMTYPE    0x3
19958c2ecf20Sopenharmony_ci#define V_TMTYPE(x) ((x) << S_TMTYPE)
19968c2ecf20Sopenharmony_ci#define G_TMTYPE(x) (((x) >> S_TMTYPE) & M_TMTYPE)
19978c2ecf20Sopenharmony_ci
19988c2ecf20Sopenharmony_ci#define S_COMPEN    17
19998c2ecf20Sopenharmony_ci#define V_COMPEN(x) ((x) << S_COMPEN)
20008c2ecf20Sopenharmony_ci#define F_COMPEN    V_COMPEN(1U)
20018c2ecf20Sopenharmony_ci
20028c2ecf20Sopenharmony_ci#define S_PRTYEN    6
20038c2ecf20Sopenharmony_ci#define V_PRTYEN(x) ((x) << S_PRTYEN)
20048c2ecf20Sopenharmony_ci#define F_PRTYEN    V_PRTYEN(1U)
20058c2ecf20Sopenharmony_ci
20068c2ecf20Sopenharmony_ci#define S_MBUSEN    5
20078c2ecf20Sopenharmony_ci#define V_MBUSEN(x) ((x) << S_MBUSEN)
20088c2ecf20Sopenharmony_ci#define F_MBUSEN    V_MBUSEN(1U)
20098c2ecf20Sopenharmony_ci
20108c2ecf20Sopenharmony_ci#define S_DBGIEN    4
20118c2ecf20Sopenharmony_ci#define V_DBGIEN(x) ((x) << S_DBGIEN)
20128c2ecf20Sopenharmony_ci#define F_DBGIEN    V_DBGIEN(1U)
20138c2ecf20Sopenharmony_ci
20148c2ecf20Sopenharmony_ci#define S_TMRDY    2
20158c2ecf20Sopenharmony_ci#define V_TMRDY(x) ((x) << S_TMRDY)
20168c2ecf20Sopenharmony_ci#define F_TMRDY    V_TMRDY(1U)
20178c2ecf20Sopenharmony_ci
20188c2ecf20Sopenharmony_ci#define S_TMRST    1
20198c2ecf20Sopenharmony_ci#define V_TMRST(x) ((x) << S_TMRST)
20208c2ecf20Sopenharmony_ci#define F_TMRST    V_TMRST(1U)
20218c2ecf20Sopenharmony_ci
20228c2ecf20Sopenharmony_ci#define S_TMMODE    0
20238c2ecf20Sopenharmony_ci#define V_TMMODE(x) ((x) << S_TMMODE)
20248c2ecf20Sopenharmony_ci#define F_TMMODE    V_TMMODE(1U)
20258c2ecf20Sopenharmony_ci
20268c2ecf20Sopenharmony_ci#define A_MC5_DB_ROUTING_TABLE_INDEX 0x70c
20278c2ecf20Sopenharmony_ci
20288c2ecf20Sopenharmony_ci#define A_MC5_DB_FILTER_TABLE 0x710
20298c2ecf20Sopenharmony_ci
20308c2ecf20Sopenharmony_ci#define A_MC5_DB_SERVER_INDEX 0x714
20318c2ecf20Sopenharmony_ci
20328c2ecf20Sopenharmony_ci#define A_MC5_DB_RSP_LATENCY 0x720
20338c2ecf20Sopenharmony_ci
20348c2ecf20Sopenharmony_ci#define S_RDLAT    16
20358c2ecf20Sopenharmony_ci#define M_RDLAT    0x1f
20368c2ecf20Sopenharmony_ci#define V_RDLAT(x) ((x) << S_RDLAT)
20378c2ecf20Sopenharmony_ci
20388c2ecf20Sopenharmony_ci#define S_LRNLAT    8
20398c2ecf20Sopenharmony_ci#define M_LRNLAT    0x1f
20408c2ecf20Sopenharmony_ci#define V_LRNLAT(x) ((x) << S_LRNLAT)
20418c2ecf20Sopenharmony_ci
20428c2ecf20Sopenharmony_ci#define S_SRCHLAT    0
20438c2ecf20Sopenharmony_ci#define M_SRCHLAT    0x1f
20448c2ecf20Sopenharmony_ci#define V_SRCHLAT(x) ((x) << S_SRCHLAT)
20458c2ecf20Sopenharmony_ci
20468c2ecf20Sopenharmony_ci#define A_MC5_DB_PART_ID_INDEX 0x72c
20478c2ecf20Sopenharmony_ci
20488c2ecf20Sopenharmony_ci#define A_MC5_DB_INT_ENABLE 0x740
20498c2ecf20Sopenharmony_ci
20508c2ecf20Sopenharmony_ci#define S_DELACTEMPTY    18
20518c2ecf20Sopenharmony_ci#define V_DELACTEMPTY(x) ((x) << S_DELACTEMPTY)
20528c2ecf20Sopenharmony_ci#define F_DELACTEMPTY    V_DELACTEMPTY(1U)
20538c2ecf20Sopenharmony_ci
20548c2ecf20Sopenharmony_ci#define S_DISPQPARERR    17
20558c2ecf20Sopenharmony_ci#define V_DISPQPARERR(x) ((x) << S_DISPQPARERR)
20568c2ecf20Sopenharmony_ci#define F_DISPQPARERR    V_DISPQPARERR(1U)
20578c2ecf20Sopenharmony_ci
20588c2ecf20Sopenharmony_ci#define S_REQQPARERR    16
20598c2ecf20Sopenharmony_ci#define V_REQQPARERR(x) ((x) << S_REQQPARERR)
20608c2ecf20Sopenharmony_ci#define F_REQQPARERR    V_REQQPARERR(1U)
20618c2ecf20Sopenharmony_ci
20628c2ecf20Sopenharmony_ci#define S_UNKNOWNCMD    15
20638c2ecf20Sopenharmony_ci#define V_UNKNOWNCMD(x) ((x) << S_UNKNOWNCMD)
20648c2ecf20Sopenharmony_ci#define F_UNKNOWNCMD    V_UNKNOWNCMD(1U)
20658c2ecf20Sopenharmony_ci
20668c2ecf20Sopenharmony_ci#define S_NFASRCHFAIL    8
20678c2ecf20Sopenharmony_ci#define V_NFASRCHFAIL(x) ((x) << S_NFASRCHFAIL)
20688c2ecf20Sopenharmony_ci#define F_NFASRCHFAIL    V_NFASRCHFAIL(1U)
20698c2ecf20Sopenharmony_ci
20708c2ecf20Sopenharmony_ci#define S_ACTRGNFULL    7
20718c2ecf20Sopenharmony_ci#define V_ACTRGNFULL(x) ((x) << S_ACTRGNFULL)
20728c2ecf20Sopenharmony_ci#define F_ACTRGNFULL    V_ACTRGNFULL(1U)
20738c2ecf20Sopenharmony_ci
20748c2ecf20Sopenharmony_ci#define S_PARITYERR    6
20758c2ecf20Sopenharmony_ci#define V_PARITYERR(x) ((x) << S_PARITYERR)
20768c2ecf20Sopenharmony_ci#define F_PARITYERR    V_PARITYERR(1U)
20778c2ecf20Sopenharmony_ci
20788c2ecf20Sopenharmony_ci#define A_MC5_DB_INT_CAUSE 0x744
20798c2ecf20Sopenharmony_ci
20808c2ecf20Sopenharmony_ci#define A_MC5_DB_DBGI_CONFIG 0x774
20818c2ecf20Sopenharmony_ci
20828c2ecf20Sopenharmony_ci#define A_MC5_DB_DBGI_REQ_CMD 0x778
20838c2ecf20Sopenharmony_ci
20848c2ecf20Sopenharmony_ci#define A_MC5_DB_DBGI_REQ_ADDR0 0x77c
20858c2ecf20Sopenharmony_ci
20868c2ecf20Sopenharmony_ci#define A_MC5_DB_DBGI_REQ_ADDR1 0x780
20878c2ecf20Sopenharmony_ci
20888c2ecf20Sopenharmony_ci#define A_MC5_DB_DBGI_REQ_ADDR2 0x784
20898c2ecf20Sopenharmony_ci
20908c2ecf20Sopenharmony_ci#define A_MC5_DB_DBGI_REQ_DATA0 0x788
20918c2ecf20Sopenharmony_ci
20928c2ecf20Sopenharmony_ci#define A_MC5_DB_DBGI_REQ_DATA1 0x78c
20938c2ecf20Sopenharmony_ci
20948c2ecf20Sopenharmony_ci#define A_MC5_DB_DBGI_REQ_DATA2 0x790
20958c2ecf20Sopenharmony_ci
20968c2ecf20Sopenharmony_ci#define A_MC5_DB_DBGI_RSP_STATUS 0x7b0
20978c2ecf20Sopenharmony_ci
20988c2ecf20Sopenharmony_ci#define S_DBGIRSPVALID    0
20998c2ecf20Sopenharmony_ci#define V_DBGIRSPVALID(x) ((x) << S_DBGIRSPVALID)
21008c2ecf20Sopenharmony_ci#define F_DBGIRSPVALID    V_DBGIRSPVALID(1U)
21018c2ecf20Sopenharmony_ci
21028c2ecf20Sopenharmony_ci#define A_MC5_DB_DBGI_RSP_DATA0 0x7b4
21038c2ecf20Sopenharmony_ci
21048c2ecf20Sopenharmony_ci#define A_MC5_DB_DBGI_RSP_DATA1 0x7b8
21058c2ecf20Sopenharmony_ci
21068c2ecf20Sopenharmony_ci#define A_MC5_DB_DBGI_RSP_DATA2 0x7bc
21078c2ecf20Sopenharmony_ci
21088c2ecf20Sopenharmony_ci#define A_MC5_DB_POPEN_DATA_WR_CMD 0x7cc
21098c2ecf20Sopenharmony_ci
21108c2ecf20Sopenharmony_ci#define A_MC5_DB_POPEN_MASK_WR_CMD 0x7d0
21118c2ecf20Sopenharmony_ci
21128c2ecf20Sopenharmony_ci#define A_MC5_DB_AOPEN_SRCH_CMD 0x7d4
21138c2ecf20Sopenharmony_ci
21148c2ecf20Sopenharmony_ci#define A_MC5_DB_AOPEN_LRN_CMD 0x7d8
21158c2ecf20Sopenharmony_ci
21168c2ecf20Sopenharmony_ci#define A_MC5_DB_SYN_SRCH_CMD 0x7dc
21178c2ecf20Sopenharmony_ci
21188c2ecf20Sopenharmony_ci#define A_MC5_DB_SYN_LRN_CMD 0x7e0
21198c2ecf20Sopenharmony_ci
21208c2ecf20Sopenharmony_ci#define A_MC5_DB_ACK_SRCH_CMD 0x7e4
21218c2ecf20Sopenharmony_ci
21228c2ecf20Sopenharmony_ci#define A_MC5_DB_ACK_LRN_CMD 0x7e8
21238c2ecf20Sopenharmony_ci
21248c2ecf20Sopenharmony_ci#define A_MC5_DB_ILOOKUP_CMD 0x7ec
21258c2ecf20Sopenharmony_ci
21268c2ecf20Sopenharmony_ci#define A_MC5_DB_ELOOKUP_CMD 0x7f0
21278c2ecf20Sopenharmony_ci
21288c2ecf20Sopenharmony_ci#define A_MC5_DB_DATA_WRITE_CMD 0x7f4
21298c2ecf20Sopenharmony_ci
21308c2ecf20Sopenharmony_ci#define A_MC5_DB_DATA_READ_CMD 0x7f8
21318c2ecf20Sopenharmony_ci
21328c2ecf20Sopenharmony_ci#define XGMAC0_0_BASE_ADDR 0x800
21338c2ecf20Sopenharmony_ci
21348c2ecf20Sopenharmony_ci#define A_XGM_TX_CTRL 0x800
21358c2ecf20Sopenharmony_ci
21368c2ecf20Sopenharmony_ci#define S_TXEN    0
21378c2ecf20Sopenharmony_ci#define V_TXEN(x) ((x) << S_TXEN)
21388c2ecf20Sopenharmony_ci#define F_TXEN    V_TXEN(1U)
21398c2ecf20Sopenharmony_ci
21408c2ecf20Sopenharmony_ci#define A_XGM_TX_CFG 0x804
21418c2ecf20Sopenharmony_ci
21428c2ecf20Sopenharmony_ci#define S_TXPAUSEEN    0
21438c2ecf20Sopenharmony_ci#define V_TXPAUSEEN(x) ((x) << S_TXPAUSEEN)
21448c2ecf20Sopenharmony_ci#define F_TXPAUSEEN    V_TXPAUSEEN(1U)
21458c2ecf20Sopenharmony_ci
21468c2ecf20Sopenharmony_ci#define A_XGM_TX_PAUSE_QUANTA 0x808
21478c2ecf20Sopenharmony_ci
21488c2ecf20Sopenharmony_ci#define A_XGM_RX_CTRL 0x80c
21498c2ecf20Sopenharmony_ci
21508c2ecf20Sopenharmony_ci#define S_RXEN    0
21518c2ecf20Sopenharmony_ci#define V_RXEN(x) ((x) << S_RXEN)
21528c2ecf20Sopenharmony_ci#define F_RXEN    V_RXEN(1U)
21538c2ecf20Sopenharmony_ci
21548c2ecf20Sopenharmony_ci#define A_XGM_RX_CFG 0x810
21558c2ecf20Sopenharmony_ci
21568c2ecf20Sopenharmony_ci#define S_DISPAUSEFRAMES    9
21578c2ecf20Sopenharmony_ci#define V_DISPAUSEFRAMES(x) ((x) << S_DISPAUSEFRAMES)
21588c2ecf20Sopenharmony_ci#define F_DISPAUSEFRAMES    V_DISPAUSEFRAMES(1U)
21598c2ecf20Sopenharmony_ci
21608c2ecf20Sopenharmony_ci#define S_EN1536BFRAMES    8
21618c2ecf20Sopenharmony_ci#define V_EN1536BFRAMES(x) ((x) << S_EN1536BFRAMES)
21628c2ecf20Sopenharmony_ci#define F_EN1536BFRAMES    V_EN1536BFRAMES(1U)
21638c2ecf20Sopenharmony_ci
21648c2ecf20Sopenharmony_ci#define S_ENJUMBO    7
21658c2ecf20Sopenharmony_ci#define V_ENJUMBO(x) ((x) << S_ENJUMBO)
21668c2ecf20Sopenharmony_ci#define F_ENJUMBO    V_ENJUMBO(1U)
21678c2ecf20Sopenharmony_ci
21688c2ecf20Sopenharmony_ci#define S_RMFCS    6
21698c2ecf20Sopenharmony_ci#define V_RMFCS(x) ((x) << S_RMFCS)
21708c2ecf20Sopenharmony_ci#define F_RMFCS    V_RMFCS(1U)
21718c2ecf20Sopenharmony_ci
21728c2ecf20Sopenharmony_ci#define S_ENHASHMCAST    2
21738c2ecf20Sopenharmony_ci#define V_ENHASHMCAST(x) ((x) << S_ENHASHMCAST)
21748c2ecf20Sopenharmony_ci#define F_ENHASHMCAST    V_ENHASHMCAST(1U)
21758c2ecf20Sopenharmony_ci
21768c2ecf20Sopenharmony_ci#define S_COPYALLFRAMES    0
21778c2ecf20Sopenharmony_ci#define V_COPYALLFRAMES(x) ((x) << S_COPYALLFRAMES)
21788c2ecf20Sopenharmony_ci#define F_COPYALLFRAMES    V_COPYALLFRAMES(1U)
21798c2ecf20Sopenharmony_ci
21808c2ecf20Sopenharmony_ci#define S_DISBCAST    1
21818c2ecf20Sopenharmony_ci#define V_DISBCAST(x) ((x) << S_DISBCAST)
21828c2ecf20Sopenharmony_ci#define F_DISBCAST    V_DISBCAST(1U)
21838c2ecf20Sopenharmony_ci
21848c2ecf20Sopenharmony_ci#define A_XGM_RX_HASH_LOW 0x814
21858c2ecf20Sopenharmony_ci
21868c2ecf20Sopenharmony_ci#define A_XGM_RX_HASH_HIGH 0x818
21878c2ecf20Sopenharmony_ci
21888c2ecf20Sopenharmony_ci#define A_XGM_RX_EXACT_MATCH_LOW_1 0x81c
21898c2ecf20Sopenharmony_ci
21908c2ecf20Sopenharmony_ci#define A_XGM_RX_EXACT_MATCH_HIGH_1 0x820
21918c2ecf20Sopenharmony_ci
21928c2ecf20Sopenharmony_ci#define A_XGM_RX_EXACT_MATCH_LOW_2 0x824
21938c2ecf20Sopenharmony_ci
21948c2ecf20Sopenharmony_ci#define A_XGM_RX_EXACT_MATCH_LOW_3 0x82c
21958c2ecf20Sopenharmony_ci
21968c2ecf20Sopenharmony_ci#define A_XGM_RX_EXACT_MATCH_LOW_4 0x834
21978c2ecf20Sopenharmony_ci
21988c2ecf20Sopenharmony_ci#define A_XGM_RX_EXACT_MATCH_LOW_5 0x83c
21998c2ecf20Sopenharmony_ci
22008c2ecf20Sopenharmony_ci#define A_XGM_RX_EXACT_MATCH_LOW_6 0x844
22018c2ecf20Sopenharmony_ci
22028c2ecf20Sopenharmony_ci#define A_XGM_RX_EXACT_MATCH_LOW_7 0x84c
22038c2ecf20Sopenharmony_ci
22048c2ecf20Sopenharmony_ci#define A_XGM_RX_EXACT_MATCH_LOW_8 0x854
22058c2ecf20Sopenharmony_ci
22068c2ecf20Sopenharmony_ci#define A_XGM_INT_STATUS 0x86c
22078c2ecf20Sopenharmony_ci
22088c2ecf20Sopenharmony_ci#define S_LINKFAULTCHANGE    9
22098c2ecf20Sopenharmony_ci#define V_LINKFAULTCHANGE(x) ((x) << S_LINKFAULTCHANGE)
22108c2ecf20Sopenharmony_ci#define F_LINKFAULTCHANGE    V_LINKFAULTCHANGE(1U)
22118c2ecf20Sopenharmony_ci
22128c2ecf20Sopenharmony_ci#define A_XGM_XGM_INT_ENABLE 0x874
22138c2ecf20Sopenharmony_ci#define A_XGM_XGM_INT_DISABLE 0x878
22148c2ecf20Sopenharmony_ci
22158c2ecf20Sopenharmony_ci#define A_XGM_STAT_CTRL 0x880
22168c2ecf20Sopenharmony_ci
22178c2ecf20Sopenharmony_ci#define S_CLRSTATS    2
22188c2ecf20Sopenharmony_ci#define V_CLRSTATS(x) ((x) << S_CLRSTATS)
22198c2ecf20Sopenharmony_ci#define F_CLRSTATS    V_CLRSTATS(1U)
22208c2ecf20Sopenharmony_ci
22218c2ecf20Sopenharmony_ci#define A_XGM_RXFIFO_CFG 0x884
22228c2ecf20Sopenharmony_ci
22238c2ecf20Sopenharmony_ci#define S_RXFIFO_EMPTY    31
22248c2ecf20Sopenharmony_ci#define V_RXFIFO_EMPTY(x) ((x) << S_RXFIFO_EMPTY)
22258c2ecf20Sopenharmony_ci#define F_RXFIFO_EMPTY    V_RXFIFO_EMPTY(1U)
22268c2ecf20Sopenharmony_ci
22278c2ecf20Sopenharmony_ci#define S_RXFIFOPAUSEHWM    17
22288c2ecf20Sopenharmony_ci#define M_RXFIFOPAUSEHWM    0xfff
22298c2ecf20Sopenharmony_ci
22308c2ecf20Sopenharmony_ci#define V_RXFIFOPAUSEHWM(x) ((x) << S_RXFIFOPAUSEHWM)
22318c2ecf20Sopenharmony_ci
22328c2ecf20Sopenharmony_ci#define G_RXFIFOPAUSEHWM(x) (((x) >> S_RXFIFOPAUSEHWM) & M_RXFIFOPAUSEHWM)
22338c2ecf20Sopenharmony_ci
22348c2ecf20Sopenharmony_ci#define S_RXFIFOPAUSELWM    5
22358c2ecf20Sopenharmony_ci#define M_RXFIFOPAUSELWM    0xfff
22368c2ecf20Sopenharmony_ci
22378c2ecf20Sopenharmony_ci#define V_RXFIFOPAUSELWM(x) ((x) << S_RXFIFOPAUSELWM)
22388c2ecf20Sopenharmony_ci
22398c2ecf20Sopenharmony_ci#define G_RXFIFOPAUSELWM(x) (((x) >> S_RXFIFOPAUSELWM) & M_RXFIFOPAUSELWM)
22408c2ecf20Sopenharmony_ci
22418c2ecf20Sopenharmony_ci#define S_RXSTRFRWRD    1
22428c2ecf20Sopenharmony_ci#define V_RXSTRFRWRD(x) ((x) << S_RXSTRFRWRD)
22438c2ecf20Sopenharmony_ci#define F_RXSTRFRWRD    V_RXSTRFRWRD(1U)
22448c2ecf20Sopenharmony_ci
22458c2ecf20Sopenharmony_ci#define S_DISERRFRAMES    0
22468c2ecf20Sopenharmony_ci#define V_DISERRFRAMES(x) ((x) << S_DISERRFRAMES)
22478c2ecf20Sopenharmony_ci#define F_DISERRFRAMES    V_DISERRFRAMES(1U)
22488c2ecf20Sopenharmony_ci
22498c2ecf20Sopenharmony_ci#define A_XGM_TXFIFO_CFG 0x888
22508c2ecf20Sopenharmony_ci
22518c2ecf20Sopenharmony_ci#define S_UNDERUNFIX    22
22528c2ecf20Sopenharmony_ci#define V_UNDERUNFIX(x) ((x) << S_UNDERUNFIX)
22538c2ecf20Sopenharmony_ci#define F_UNDERUNFIX    V_UNDERUNFIX(1U)
22548c2ecf20Sopenharmony_ci
22558c2ecf20Sopenharmony_ci#define S_TXIPG    13
22568c2ecf20Sopenharmony_ci#define M_TXIPG    0xff
22578c2ecf20Sopenharmony_ci#define V_TXIPG(x) ((x) << S_TXIPG)
22588c2ecf20Sopenharmony_ci#define G_TXIPG(x) (((x) >> S_TXIPG) & M_TXIPG)
22598c2ecf20Sopenharmony_ci
22608c2ecf20Sopenharmony_ci#define S_TXFIFOTHRESH    4
22618c2ecf20Sopenharmony_ci#define M_TXFIFOTHRESH    0x1ff
22628c2ecf20Sopenharmony_ci
22638c2ecf20Sopenharmony_ci#define V_TXFIFOTHRESH(x) ((x) << S_TXFIFOTHRESH)
22648c2ecf20Sopenharmony_ci
22658c2ecf20Sopenharmony_ci#define S_ENDROPPKT    21
22668c2ecf20Sopenharmony_ci#define V_ENDROPPKT(x) ((x) << S_ENDROPPKT)
22678c2ecf20Sopenharmony_ci#define F_ENDROPPKT    V_ENDROPPKT(1U)
22688c2ecf20Sopenharmony_ci
22698c2ecf20Sopenharmony_ci#define A_XGM_SERDES_CTRL 0x890
22708c2ecf20Sopenharmony_ci#define A_XGM_SERDES_CTRL0 0x8e0
22718c2ecf20Sopenharmony_ci
22728c2ecf20Sopenharmony_ci#define S_SERDESRESET_    24
22738c2ecf20Sopenharmony_ci#define V_SERDESRESET_(x) ((x) << S_SERDESRESET_)
22748c2ecf20Sopenharmony_ci#define F_SERDESRESET_    V_SERDESRESET_(1U)
22758c2ecf20Sopenharmony_ci
22768c2ecf20Sopenharmony_ci#define S_RXENABLE    4
22778c2ecf20Sopenharmony_ci#define V_RXENABLE(x) ((x) << S_RXENABLE)
22788c2ecf20Sopenharmony_ci#define F_RXENABLE    V_RXENABLE(1U)
22798c2ecf20Sopenharmony_ci
22808c2ecf20Sopenharmony_ci#define S_TXENABLE    3
22818c2ecf20Sopenharmony_ci#define V_TXENABLE(x) ((x) << S_TXENABLE)
22828c2ecf20Sopenharmony_ci#define F_TXENABLE    V_TXENABLE(1U)
22838c2ecf20Sopenharmony_ci
22848c2ecf20Sopenharmony_ci#define A_XGM_PAUSE_TIMER 0x890
22858c2ecf20Sopenharmony_ci
22868c2ecf20Sopenharmony_ci#define A_XGM_RGMII_IMP 0x89c
22878c2ecf20Sopenharmony_ci
22888c2ecf20Sopenharmony_ci#define S_XGM_IMPSETUPDATE    6
22898c2ecf20Sopenharmony_ci#define V_XGM_IMPSETUPDATE(x) ((x) << S_XGM_IMPSETUPDATE)
22908c2ecf20Sopenharmony_ci#define F_XGM_IMPSETUPDATE    V_XGM_IMPSETUPDATE(1U)
22918c2ecf20Sopenharmony_ci
22928c2ecf20Sopenharmony_ci#define S_RGMIIIMPPD    3
22938c2ecf20Sopenharmony_ci#define M_RGMIIIMPPD    0x7
22948c2ecf20Sopenharmony_ci#define V_RGMIIIMPPD(x) ((x) << S_RGMIIIMPPD)
22958c2ecf20Sopenharmony_ci
22968c2ecf20Sopenharmony_ci#define S_RGMIIIMPPU    0
22978c2ecf20Sopenharmony_ci#define M_RGMIIIMPPU    0x7
22988c2ecf20Sopenharmony_ci#define V_RGMIIIMPPU(x) ((x) << S_RGMIIIMPPU)
22998c2ecf20Sopenharmony_ci
23008c2ecf20Sopenharmony_ci#define S_CALRESET    8
23018c2ecf20Sopenharmony_ci#define V_CALRESET(x) ((x) << S_CALRESET)
23028c2ecf20Sopenharmony_ci#define F_CALRESET    V_CALRESET(1U)
23038c2ecf20Sopenharmony_ci
23048c2ecf20Sopenharmony_ci#define S_CALUPDATE    7
23058c2ecf20Sopenharmony_ci#define V_CALUPDATE(x) ((x) << S_CALUPDATE)
23068c2ecf20Sopenharmony_ci#define F_CALUPDATE    V_CALUPDATE(1U)
23078c2ecf20Sopenharmony_ci
23088c2ecf20Sopenharmony_ci#define A_XGM_XAUI_IMP 0x8a0
23098c2ecf20Sopenharmony_ci
23108c2ecf20Sopenharmony_ci#define S_CALBUSY    31
23118c2ecf20Sopenharmony_ci#define V_CALBUSY(x) ((x) << S_CALBUSY)
23128c2ecf20Sopenharmony_ci#define F_CALBUSY    V_CALBUSY(1U)
23138c2ecf20Sopenharmony_ci
23148c2ecf20Sopenharmony_ci#define S_XGM_CALFAULT    29
23158c2ecf20Sopenharmony_ci#define V_XGM_CALFAULT(x) ((x) << S_XGM_CALFAULT)
23168c2ecf20Sopenharmony_ci#define F_XGM_CALFAULT    V_XGM_CALFAULT(1U)
23178c2ecf20Sopenharmony_ci
23188c2ecf20Sopenharmony_ci#define S_CALIMP    24
23198c2ecf20Sopenharmony_ci#define M_CALIMP    0x1f
23208c2ecf20Sopenharmony_ci#define V_CALIMP(x) ((x) << S_CALIMP)
23218c2ecf20Sopenharmony_ci#define G_CALIMP(x) (((x) >> S_CALIMP) & M_CALIMP)
23228c2ecf20Sopenharmony_ci
23238c2ecf20Sopenharmony_ci#define S_XAUIIMP    0
23248c2ecf20Sopenharmony_ci#define M_XAUIIMP    0x7
23258c2ecf20Sopenharmony_ci#define V_XAUIIMP(x) ((x) << S_XAUIIMP)
23268c2ecf20Sopenharmony_ci
23278c2ecf20Sopenharmony_ci#define A_XGM_RX_MAX_PKT_SIZE 0x8a8
23288c2ecf20Sopenharmony_ci
23298c2ecf20Sopenharmony_ci#define S_RXMAXFRAMERSIZE    17
23308c2ecf20Sopenharmony_ci#define M_RXMAXFRAMERSIZE    0x3fff
23318c2ecf20Sopenharmony_ci#define V_RXMAXFRAMERSIZE(x) ((x) << S_RXMAXFRAMERSIZE)
23328c2ecf20Sopenharmony_ci#define G_RXMAXFRAMERSIZE(x) (((x) >> S_RXMAXFRAMERSIZE) & M_RXMAXFRAMERSIZE)
23338c2ecf20Sopenharmony_ci
23348c2ecf20Sopenharmony_ci#define S_RXENFRAMER    14
23358c2ecf20Sopenharmony_ci#define V_RXENFRAMER(x) ((x) << S_RXENFRAMER)
23368c2ecf20Sopenharmony_ci#define F_RXENFRAMER    V_RXENFRAMER(1U)
23378c2ecf20Sopenharmony_ci
23388c2ecf20Sopenharmony_ci#define S_RXMAXPKTSIZE    0
23398c2ecf20Sopenharmony_ci#define M_RXMAXPKTSIZE    0x3fff
23408c2ecf20Sopenharmony_ci#define V_RXMAXPKTSIZE(x) ((x) << S_RXMAXPKTSIZE)
23418c2ecf20Sopenharmony_ci#define G_RXMAXPKTSIZE(x) (((x) >> S_RXMAXPKTSIZE) & M_RXMAXPKTSIZE)
23428c2ecf20Sopenharmony_ci
23438c2ecf20Sopenharmony_ci#define A_XGM_RESET_CTRL 0x8ac
23448c2ecf20Sopenharmony_ci
23458c2ecf20Sopenharmony_ci#define S_XGMAC_STOP_EN    4
23468c2ecf20Sopenharmony_ci#define V_XGMAC_STOP_EN(x) ((x) << S_XGMAC_STOP_EN)
23478c2ecf20Sopenharmony_ci#define F_XGMAC_STOP_EN    V_XGMAC_STOP_EN(1U)
23488c2ecf20Sopenharmony_ci
23498c2ecf20Sopenharmony_ci#define S_XG2G_RESET_    3
23508c2ecf20Sopenharmony_ci#define V_XG2G_RESET_(x) ((x) << S_XG2G_RESET_)
23518c2ecf20Sopenharmony_ci#define F_XG2G_RESET_    V_XG2G_RESET_(1U)
23528c2ecf20Sopenharmony_ci
23538c2ecf20Sopenharmony_ci#define S_RGMII_RESET_    2
23548c2ecf20Sopenharmony_ci#define V_RGMII_RESET_(x) ((x) << S_RGMII_RESET_)
23558c2ecf20Sopenharmony_ci#define F_RGMII_RESET_    V_RGMII_RESET_(1U)
23568c2ecf20Sopenharmony_ci
23578c2ecf20Sopenharmony_ci#define S_PCS_RESET_    1
23588c2ecf20Sopenharmony_ci#define V_PCS_RESET_(x) ((x) << S_PCS_RESET_)
23598c2ecf20Sopenharmony_ci#define F_PCS_RESET_    V_PCS_RESET_(1U)
23608c2ecf20Sopenharmony_ci
23618c2ecf20Sopenharmony_ci#define S_MAC_RESET_    0
23628c2ecf20Sopenharmony_ci#define V_MAC_RESET_(x) ((x) << S_MAC_RESET_)
23638c2ecf20Sopenharmony_ci#define F_MAC_RESET_    V_MAC_RESET_(1U)
23648c2ecf20Sopenharmony_ci
23658c2ecf20Sopenharmony_ci#define A_XGM_PORT_CFG 0x8b8
23668c2ecf20Sopenharmony_ci
23678c2ecf20Sopenharmony_ci#define S_CLKDIVRESET_    3
23688c2ecf20Sopenharmony_ci#define V_CLKDIVRESET_(x) ((x) << S_CLKDIVRESET_)
23698c2ecf20Sopenharmony_ci#define F_CLKDIVRESET_    V_CLKDIVRESET_(1U)
23708c2ecf20Sopenharmony_ci
23718c2ecf20Sopenharmony_ci#define S_PORTSPEED    1
23728c2ecf20Sopenharmony_ci#define M_PORTSPEED    0x3
23738c2ecf20Sopenharmony_ci
23748c2ecf20Sopenharmony_ci#define V_PORTSPEED(x) ((x) << S_PORTSPEED)
23758c2ecf20Sopenharmony_ci
23768c2ecf20Sopenharmony_ci#define S_ENRGMII    0
23778c2ecf20Sopenharmony_ci#define V_ENRGMII(x) ((x) << S_ENRGMII)
23788c2ecf20Sopenharmony_ci#define F_ENRGMII    V_ENRGMII(1U)
23798c2ecf20Sopenharmony_ci
23808c2ecf20Sopenharmony_ci#define A_XGM_INT_ENABLE 0x8d4
23818c2ecf20Sopenharmony_ci
23828c2ecf20Sopenharmony_ci#define S_TXFIFO_PRTY_ERR    17
23838c2ecf20Sopenharmony_ci#define M_TXFIFO_PRTY_ERR    0x7
23848c2ecf20Sopenharmony_ci
23858c2ecf20Sopenharmony_ci#define V_TXFIFO_PRTY_ERR(x) ((x) << S_TXFIFO_PRTY_ERR)
23868c2ecf20Sopenharmony_ci
23878c2ecf20Sopenharmony_ci#define S_RXFIFO_PRTY_ERR    14
23888c2ecf20Sopenharmony_ci#define M_RXFIFO_PRTY_ERR    0x7
23898c2ecf20Sopenharmony_ci
23908c2ecf20Sopenharmony_ci#define V_RXFIFO_PRTY_ERR(x) ((x) << S_RXFIFO_PRTY_ERR)
23918c2ecf20Sopenharmony_ci
23928c2ecf20Sopenharmony_ci#define S_TXFIFO_UNDERRUN    13
23938c2ecf20Sopenharmony_ci#define V_TXFIFO_UNDERRUN(x) ((x) << S_TXFIFO_UNDERRUN)
23948c2ecf20Sopenharmony_ci#define F_TXFIFO_UNDERRUN    V_TXFIFO_UNDERRUN(1U)
23958c2ecf20Sopenharmony_ci
23968c2ecf20Sopenharmony_ci#define S_RXFIFO_OVERFLOW    12
23978c2ecf20Sopenharmony_ci#define V_RXFIFO_OVERFLOW(x) ((x) << S_RXFIFO_OVERFLOW)
23988c2ecf20Sopenharmony_ci#define F_RXFIFO_OVERFLOW    V_RXFIFO_OVERFLOW(1U)
23998c2ecf20Sopenharmony_ci
24008c2ecf20Sopenharmony_ci#define S_SERDES_LOS    4
24018c2ecf20Sopenharmony_ci#define M_SERDES_LOS    0xf
24028c2ecf20Sopenharmony_ci
24038c2ecf20Sopenharmony_ci#define V_SERDES_LOS(x) ((x) << S_SERDES_LOS)
24048c2ecf20Sopenharmony_ci
24058c2ecf20Sopenharmony_ci#define S_XAUIPCSCTCERR    3
24068c2ecf20Sopenharmony_ci#define V_XAUIPCSCTCERR(x) ((x) << S_XAUIPCSCTCERR)
24078c2ecf20Sopenharmony_ci#define F_XAUIPCSCTCERR    V_XAUIPCSCTCERR(1U)
24088c2ecf20Sopenharmony_ci
24098c2ecf20Sopenharmony_ci#define S_XAUIPCSALIGNCHANGE    2
24108c2ecf20Sopenharmony_ci#define V_XAUIPCSALIGNCHANGE(x) ((x) << S_XAUIPCSALIGNCHANGE)
24118c2ecf20Sopenharmony_ci#define F_XAUIPCSALIGNCHANGE    V_XAUIPCSALIGNCHANGE(1U)
24128c2ecf20Sopenharmony_ci
24138c2ecf20Sopenharmony_ci#define S_XGM_INT    0
24148c2ecf20Sopenharmony_ci#define V_XGM_INT(x) ((x) << S_XGM_INT)
24158c2ecf20Sopenharmony_ci#define F_XGM_INT    V_XGM_INT(1U)
24168c2ecf20Sopenharmony_ci
24178c2ecf20Sopenharmony_ci#define A_XGM_INT_CAUSE 0x8d8
24188c2ecf20Sopenharmony_ci
24198c2ecf20Sopenharmony_ci#define A_XGM_XAUI_ACT_CTRL 0x8dc
24208c2ecf20Sopenharmony_ci
24218c2ecf20Sopenharmony_ci#define S_TXACTENABLE    1
24228c2ecf20Sopenharmony_ci#define V_TXACTENABLE(x) ((x) << S_TXACTENABLE)
24238c2ecf20Sopenharmony_ci#define F_TXACTENABLE    V_TXACTENABLE(1U)
24248c2ecf20Sopenharmony_ci
24258c2ecf20Sopenharmony_ci#define S_RESET3    23
24268c2ecf20Sopenharmony_ci#define V_RESET3(x) ((x) << S_RESET3)
24278c2ecf20Sopenharmony_ci#define F_RESET3    V_RESET3(1U)
24288c2ecf20Sopenharmony_ci
24298c2ecf20Sopenharmony_ci#define S_RESET2    22
24308c2ecf20Sopenharmony_ci#define V_RESET2(x) ((x) << S_RESET2)
24318c2ecf20Sopenharmony_ci#define F_RESET2    V_RESET2(1U)
24328c2ecf20Sopenharmony_ci
24338c2ecf20Sopenharmony_ci#define S_RESET1    21
24348c2ecf20Sopenharmony_ci#define V_RESET1(x) ((x) << S_RESET1)
24358c2ecf20Sopenharmony_ci#define F_RESET1    V_RESET1(1U)
24368c2ecf20Sopenharmony_ci
24378c2ecf20Sopenharmony_ci#define S_RESET0    20
24388c2ecf20Sopenharmony_ci#define V_RESET0(x) ((x) << S_RESET0)
24398c2ecf20Sopenharmony_ci#define F_RESET0    V_RESET0(1U)
24408c2ecf20Sopenharmony_ci
24418c2ecf20Sopenharmony_ci#define S_PWRDN3    19
24428c2ecf20Sopenharmony_ci#define V_PWRDN3(x) ((x) << S_PWRDN3)
24438c2ecf20Sopenharmony_ci#define F_PWRDN3    V_PWRDN3(1U)
24448c2ecf20Sopenharmony_ci
24458c2ecf20Sopenharmony_ci#define S_PWRDN2    18
24468c2ecf20Sopenharmony_ci#define V_PWRDN2(x) ((x) << S_PWRDN2)
24478c2ecf20Sopenharmony_ci#define F_PWRDN2    V_PWRDN2(1U)
24488c2ecf20Sopenharmony_ci
24498c2ecf20Sopenharmony_ci#define S_PWRDN1    17
24508c2ecf20Sopenharmony_ci#define V_PWRDN1(x) ((x) << S_PWRDN1)
24518c2ecf20Sopenharmony_ci#define F_PWRDN1    V_PWRDN1(1U)
24528c2ecf20Sopenharmony_ci
24538c2ecf20Sopenharmony_ci#define S_PWRDN0    16
24548c2ecf20Sopenharmony_ci#define V_PWRDN0(x) ((x) << S_PWRDN0)
24558c2ecf20Sopenharmony_ci#define F_PWRDN0    V_PWRDN0(1U)
24568c2ecf20Sopenharmony_ci
24578c2ecf20Sopenharmony_ci#define S_RESETPLL23    15
24588c2ecf20Sopenharmony_ci#define V_RESETPLL23(x) ((x) << S_RESETPLL23)
24598c2ecf20Sopenharmony_ci#define F_RESETPLL23    V_RESETPLL23(1U)
24608c2ecf20Sopenharmony_ci
24618c2ecf20Sopenharmony_ci#define S_RESETPLL01    14
24628c2ecf20Sopenharmony_ci#define V_RESETPLL01(x) ((x) << S_RESETPLL01)
24638c2ecf20Sopenharmony_ci#define F_RESETPLL01    V_RESETPLL01(1U)
24648c2ecf20Sopenharmony_ci
24658c2ecf20Sopenharmony_ci#define A_XGM_SERDES_STAT0 0x8f0
24668c2ecf20Sopenharmony_ci#define A_XGM_SERDES_STAT1 0x8f4
24678c2ecf20Sopenharmony_ci#define A_XGM_SERDES_STAT2 0x8f8
24688c2ecf20Sopenharmony_ci
24698c2ecf20Sopenharmony_ci#define S_LOWSIG0    0
24708c2ecf20Sopenharmony_ci#define V_LOWSIG0(x) ((x) << S_LOWSIG0)
24718c2ecf20Sopenharmony_ci#define F_LOWSIG0    V_LOWSIG0(1U)
24728c2ecf20Sopenharmony_ci
24738c2ecf20Sopenharmony_ci#define A_XGM_SERDES_STAT3 0x8fc
24748c2ecf20Sopenharmony_ci
24758c2ecf20Sopenharmony_ci#define A_XGM_STAT_TX_BYTE_LOW 0x900
24768c2ecf20Sopenharmony_ci
24778c2ecf20Sopenharmony_ci#define A_XGM_STAT_TX_BYTE_HIGH 0x904
24788c2ecf20Sopenharmony_ci
24798c2ecf20Sopenharmony_ci#define A_XGM_STAT_TX_FRAME_LOW 0x908
24808c2ecf20Sopenharmony_ci
24818c2ecf20Sopenharmony_ci#define A_XGM_STAT_TX_FRAME_HIGH 0x90c
24828c2ecf20Sopenharmony_ci
24838c2ecf20Sopenharmony_ci#define A_XGM_STAT_TX_BCAST 0x910
24848c2ecf20Sopenharmony_ci
24858c2ecf20Sopenharmony_ci#define A_XGM_STAT_TX_MCAST 0x914
24868c2ecf20Sopenharmony_ci
24878c2ecf20Sopenharmony_ci#define A_XGM_STAT_TX_PAUSE 0x918
24888c2ecf20Sopenharmony_ci
24898c2ecf20Sopenharmony_ci#define A_XGM_STAT_TX_64B_FRAMES 0x91c
24908c2ecf20Sopenharmony_ci
24918c2ecf20Sopenharmony_ci#define A_XGM_STAT_TX_65_127B_FRAMES 0x920
24928c2ecf20Sopenharmony_ci
24938c2ecf20Sopenharmony_ci#define A_XGM_STAT_TX_128_255B_FRAMES 0x924
24948c2ecf20Sopenharmony_ci
24958c2ecf20Sopenharmony_ci#define A_XGM_STAT_TX_256_511B_FRAMES 0x928
24968c2ecf20Sopenharmony_ci
24978c2ecf20Sopenharmony_ci#define A_XGM_STAT_TX_512_1023B_FRAMES 0x92c
24988c2ecf20Sopenharmony_ci
24998c2ecf20Sopenharmony_ci#define A_XGM_STAT_TX_1024_1518B_FRAMES 0x930
25008c2ecf20Sopenharmony_ci
25018c2ecf20Sopenharmony_ci#define A_XGM_STAT_TX_1519_MAXB_FRAMES 0x934
25028c2ecf20Sopenharmony_ci
25038c2ecf20Sopenharmony_ci#define A_XGM_STAT_TX_ERR_FRAMES 0x938
25048c2ecf20Sopenharmony_ci
25058c2ecf20Sopenharmony_ci#define A_XGM_STAT_RX_BYTES_LOW 0x93c
25068c2ecf20Sopenharmony_ci
25078c2ecf20Sopenharmony_ci#define A_XGM_STAT_RX_BYTES_HIGH 0x940
25088c2ecf20Sopenharmony_ci
25098c2ecf20Sopenharmony_ci#define A_XGM_STAT_RX_FRAMES_LOW 0x944
25108c2ecf20Sopenharmony_ci
25118c2ecf20Sopenharmony_ci#define A_XGM_STAT_RX_FRAMES_HIGH 0x948
25128c2ecf20Sopenharmony_ci
25138c2ecf20Sopenharmony_ci#define A_XGM_STAT_RX_BCAST_FRAMES 0x94c
25148c2ecf20Sopenharmony_ci
25158c2ecf20Sopenharmony_ci#define A_XGM_STAT_RX_MCAST_FRAMES 0x950
25168c2ecf20Sopenharmony_ci
25178c2ecf20Sopenharmony_ci#define A_XGM_STAT_RX_PAUSE_FRAMES 0x954
25188c2ecf20Sopenharmony_ci
25198c2ecf20Sopenharmony_ci#define A_XGM_STAT_RX_64B_FRAMES 0x958
25208c2ecf20Sopenharmony_ci
25218c2ecf20Sopenharmony_ci#define A_XGM_STAT_RX_65_127B_FRAMES 0x95c
25228c2ecf20Sopenharmony_ci
25238c2ecf20Sopenharmony_ci#define A_XGM_STAT_RX_128_255B_FRAMES 0x960
25248c2ecf20Sopenharmony_ci
25258c2ecf20Sopenharmony_ci#define A_XGM_STAT_RX_256_511B_FRAMES 0x964
25268c2ecf20Sopenharmony_ci
25278c2ecf20Sopenharmony_ci#define A_XGM_STAT_RX_512_1023B_FRAMES 0x968
25288c2ecf20Sopenharmony_ci
25298c2ecf20Sopenharmony_ci#define A_XGM_STAT_RX_1024_1518B_FRAMES 0x96c
25308c2ecf20Sopenharmony_ci
25318c2ecf20Sopenharmony_ci#define A_XGM_STAT_RX_1519_MAXB_FRAMES 0x970
25328c2ecf20Sopenharmony_ci
25338c2ecf20Sopenharmony_ci#define A_XGM_STAT_RX_SHORT_FRAMES 0x974
25348c2ecf20Sopenharmony_ci
25358c2ecf20Sopenharmony_ci#define A_XGM_STAT_RX_OVERSIZE_FRAMES 0x978
25368c2ecf20Sopenharmony_ci
25378c2ecf20Sopenharmony_ci#define A_XGM_STAT_RX_JABBER_FRAMES 0x97c
25388c2ecf20Sopenharmony_ci
25398c2ecf20Sopenharmony_ci#define A_XGM_STAT_RX_CRC_ERR_FRAMES 0x980
25408c2ecf20Sopenharmony_ci
25418c2ecf20Sopenharmony_ci#define A_XGM_STAT_RX_LENGTH_ERR_FRAMES 0x984
25428c2ecf20Sopenharmony_ci
25438c2ecf20Sopenharmony_ci#define A_XGM_STAT_RX_SYM_CODE_ERR_FRAMES 0x988
25448c2ecf20Sopenharmony_ci
25458c2ecf20Sopenharmony_ci#define A_XGM_SERDES_STATUS0 0x98c
25468c2ecf20Sopenharmony_ci
25478c2ecf20Sopenharmony_ci#define A_XGM_SERDES_STATUS1 0x990
25488c2ecf20Sopenharmony_ci
25498c2ecf20Sopenharmony_ci#define S_CMULOCK    31
25508c2ecf20Sopenharmony_ci#define V_CMULOCK(x) ((x) << S_CMULOCK)
25518c2ecf20Sopenharmony_ci#define F_CMULOCK    V_CMULOCK(1U)
25528c2ecf20Sopenharmony_ci
25538c2ecf20Sopenharmony_ci#define A_XGM_RX_MAX_PKT_SIZE_ERR_CNT 0x9a4
25548c2ecf20Sopenharmony_ci
25558c2ecf20Sopenharmony_ci#define A_XGM_TX_SPI4_SOP_EOP_CNT 0x9a8
25568c2ecf20Sopenharmony_ci
25578c2ecf20Sopenharmony_ci#define S_TXSPI4SOPCNT    16
25588c2ecf20Sopenharmony_ci#define M_TXSPI4SOPCNT    0xffff
25598c2ecf20Sopenharmony_ci#define V_TXSPI4SOPCNT(x) ((x) << S_TXSPI4SOPCNT)
25608c2ecf20Sopenharmony_ci#define G_TXSPI4SOPCNT(x) (((x) >> S_TXSPI4SOPCNT) & M_TXSPI4SOPCNT)
25618c2ecf20Sopenharmony_ci
25628c2ecf20Sopenharmony_ci#define A_XGM_RX_SPI4_SOP_EOP_CNT 0x9ac
25638c2ecf20Sopenharmony_ci
25648c2ecf20Sopenharmony_ci#define XGMAC0_1_BASE_ADDR 0xa00
2565