18c2ecf20Sopenharmony_ci/* bnx2x_reg.h: Qlogic Everest network driver.
28c2ecf20Sopenharmony_ci *
38c2ecf20Sopenharmony_ci * Copyright (c) 2007-2013 Broadcom Corporation
48c2ecf20Sopenharmony_ci * Copyright (c) 2014 QLogic Corporation
58c2ecf20Sopenharmony_ci * All rights reserved
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci * This program is free software; you can redistribute it and/or modify
88c2ecf20Sopenharmony_ci * it under the terms of the GNU General Public License as published by
98c2ecf20Sopenharmony_ci * the Free Software Foundation.
108c2ecf20Sopenharmony_ci *
118c2ecf20Sopenharmony_ci * The registers description starts with the register Access type followed
128c2ecf20Sopenharmony_ci * by size in bits. For example [RW 32]. The access types are:
138c2ecf20Sopenharmony_ci * R  - Read only
148c2ecf20Sopenharmony_ci * RC - Clear on read
158c2ecf20Sopenharmony_ci * RW - Read/Write
168c2ecf20Sopenharmony_ci * ST - Statistics register (clear on read)
178c2ecf20Sopenharmony_ci * W  - Write only
188c2ecf20Sopenharmony_ci * WB - Wide bus register - the size is over 32 bits and it should be
198c2ecf20Sopenharmony_ci *      read/write in consecutive 32 bits accesses
208c2ecf20Sopenharmony_ci * WR - Write Clear (write 1 to clear the bit)
218c2ecf20Sopenharmony_ci *
228c2ecf20Sopenharmony_ci */
238c2ecf20Sopenharmony_ci#ifndef BNX2X_REG_H
248c2ecf20Sopenharmony_ci#define BNX2X_REG_H
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ci#define ATC_ATC_INT_STS_REG_ADDRESS_ERROR			 (0x1<<0)
278c2ecf20Sopenharmony_ci#define ATC_ATC_INT_STS_REG_ATC_GPA_MULTIPLE_HITS		 (0x1<<2)
288c2ecf20Sopenharmony_ci#define ATC_ATC_INT_STS_REG_ATC_IREQ_LESS_THAN_STU		 (0x1<<5)
298c2ecf20Sopenharmony_ci#define ATC_ATC_INT_STS_REG_ATC_RCPL_TO_EMPTY_CNT		 (0x1<<3)
308c2ecf20Sopenharmony_ci#define ATC_ATC_INT_STS_REG_ATC_TCPL_ERROR			 (0x1<<4)
318c2ecf20Sopenharmony_ci#define ATC_ATC_INT_STS_REG_ATC_TCPL_TO_NOT_PEND		 (0x1<<1)
328c2ecf20Sopenharmony_ci/* [RW 1] Initiate the ATC array - reset all the valid bits */
338c2ecf20Sopenharmony_ci#define ATC_REG_ATC_INIT_ARRAY					 0x1100b8
348c2ecf20Sopenharmony_ci/* [R 1] ATC initialization done */
358c2ecf20Sopenharmony_ci#define ATC_REG_ATC_INIT_DONE					 0x1100bc
368c2ecf20Sopenharmony_ci/* [RC 6] Interrupt register #0 read clear */
378c2ecf20Sopenharmony_ci#define ATC_REG_ATC_INT_STS_CLR					 0x1101c0
388c2ecf20Sopenharmony_ci/* [RW 5] Parity mask register #0 read/write */
398c2ecf20Sopenharmony_ci#define ATC_REG_ATC_PRTY_MASK					 0x1101d8
408c2ecf20Sopenharmony_ci/* [R 5] Parity register #0 read */
418c2ecf20Sopenharmony_ci#define ATC_REG_ATC_PRTY_STS					 0x1101cc
428c2ecf20Sopenharmony_ci/* [RC 5] Parity register #0 read clear */
438c2ecf20Sopenharmony_ci#define ATC_REG_ATC_PRTY_STS_CLR				 0x1101d0
448c2ecf20Sopenharmony_ci/* [RW 19] Interrupt mask register #0 read/write */
458c2ecf20Sopenharmony_ci#define BRB1_REG_BRB1_INT_MASK					 0x60128
468c2ecf20Sopenharmony_ci/* [R 19] Interrupt register #0 read */
478c2ecf20Sopenharmony_ci#define BRB1_REG_BRB1_INT_STS					 0x6011c
488c2ecf20Sopenharmony_ci/* [RW 4] Parity mask register #0 read/write */
498c2ecf20Sopenharmony_ci#define BRB1_REG_BRB1_PRTY_MASK 				 0x60138
508c2ecf20Sopenharmony_ci/* [R 4] Parity register #0 read */
518c2ecf20Sopenharmony_ci#define BRB1_REG_BRB1_PRTY_STS					 0x6012c
528c2ecf20Sopenharmony_ci/* [RC 4] Parity register #0 read clear */
538c2ecf20Sopenharmony_ci#define BRB1_REG_BRB1_PRTY_STS_CLR				 0x60130
548c2ecf20Sopenharmony_ci/* [RW 10] At address BRB1_IND_FREE_LIST_PRS_CRDT initialize free head. At
558c2ecf20Sopenharmony_ci * address BRB1_IND_FREE_LIST_PRS_CRDT+1 initialize free tail. At address
568c2ecf20Sopenharmony_ci * BRB1_IND_FREE_LIST_PRS_CRDT+2 initialize parser initial credit. Warning -
578c2ecf20Sopenharmony_ci * following reset the first rbc access to this reg must be write; there can
588c2ecf20Sopenharmony_ci * be no more rbc writes after the first one; there can be any number of rbc
598c2ecf20Sopenharmony_ci * read following the first write; rbc access not following these rules will
608c2ecf20Sopenharmony_ci * result in hang condition. */
618c2ecf20Sopenharmony_ci#define BRB1_REG_FREE_LIST_PRS_CRDT				 0x60200
628c2ecf20Sopenharmony_ci/* [RW 10] The number of free blocks below which the full signal to class 0
638c2ecf20Sopenharmony_ci * is asserted */
648c2ecf20Sopenharmony_ci#define BRB1_REG_FULL_0_XOFF_THRESHOLD_0			 0x601d0
658c2ecf20Sopenharmony_ci#define BRB1_REG_FULL_0_XOFF_THRESHOLD_1			 0x60230
668c2ecf20Sopenharmony_ci/* [RW 11] The number of free blocks above which the full signal to class 0
678c2ecf20Sopenharmony_ci * is de-asserted */
688c2ecf20Sopenharmony_ci#define BRB1_REG_FULL_0_XON_THRESHOLD_0				 0x601d4
698c2ecf20Sopenharmony_ci#define BRB1_REG_FULL_0_XON_THRESHOLD_1				 0x60234
708c2ecf20Sopenharmony_ci/* [RW 11] The number of free blocks below which the full signal to class 1
718c2ecf20Sopenharmony_ci * is asserted */
728c2ecf20Sopenharmony_ci#define BRB1_REG_FULL_1_XOFF_THRESHOLD_0			 0x601d8
738c2ecf20Sopenharmony_ci#define BRB1_REG_FULL_1_XOFF_THRESHOLD_1			 0x60238
748c2ecf20Sopenharmony_ci/* [RW 11] The number of free blocks above which the full signal to class 1
758c2ecf20Sopenharmony_ci * is de-asserted */
768c2ecf20Sopenharmony_ci#define BRB1_REG_FULL_1_XON_THRESHOLD_0				 0x601dc
778c2ecf20Sopenharmony_ci#define BRB1_REG_FULL_1_XON_THRESHOLD_1				 0x6023c
788c2ecf20Sopenharmony_ci/* [RW 11] The number of free blocks below which the full signal to the LB
798c2ecf20Sopenharmony_ci * port is asserted */
808c2ecf20Sopenharmony_ci#define BRB1_REG_FULL_LB_XOFF_THRESHOLD				 0x601e0
818c2ecf20Sopenharmony_ci/* [RW 10] The number of free blocks above which the full signal to the LB
828c2ecf20Sopenharmony_ci * port is de-asserted */
838c2ecf20Sopenharmony_ci#define BRB1_REG_FULL_LB_XON_THRESHOLD				 0x601e4
848c2ecf20Sopenharmony_ci/* [RW 10] The number of free blocks above which the High_llfc signal to
858c2ecf20Sopenharmony_ci   interface #n is de-asserted. */
868c2ecf20Sopenharmony_ci#define BRB1_REG_HIGH_LLFC_HIGH_THRESHOLD_0			 0x6014c
878c2ecf20Sopenharmony_ci/* [RW 10] The number of free blocks below which the High_llfc signal to
888c2ecf20Sopenharmony_ci   interface #n is asserted. */
898c2ecf20Sopenharmony_ci#define BRB1_REG_HIGH_LLFC_LOW_THRESHOLD_0			 0x6013c
908c2ecf20Sopenharmony_ci/* [RW 11] The number of blocks guarantied for the LB port */
918c2ecf20Sopenharmony_ci#define BRB1_REG_LB_GUARANTIED					 0x601ec
928c2ecf20Sopenharmony_ci/* [RW 11] The hysteresis on the guarantied buffer space for the Lb port
938c2ecf20Sopenharmony_ci * before signaling XON. */
948c2ecf20Sopenharmony_ci#define BRB1_REG_LB_GUARANTIED_HYST				 0x60264
958c2ecf20Sopenharmony_ci/* [RW 24] LL RAM data. */
968c2ecf20Sopenharmony_ci#define BRB1_REG_LL_RAM						 0x61000
978c2ecf20Sopenharmony_ci/* [RW 10] The number of free blocks above which the Low_llfc signal to
988c2ecf20Sopenharmony_ci   interface #n is de-asserted. */
998c2ecf20Sopenharmony_ci#define BRB1_REG_LOW_LLFC_HIGH_THRESHOLD_0			 0x6016c
1008c2ecf20Sopenharmony_ci/* [RW 10] The number of free blocks below which the Low_llfc signal to
1018c2ecf20Sopenharmony_ci   interface #n is asserted. */
1028c2ecf20Sopenharmony_ci#define BRB1_REG_LOW_LLFC_LOW_THRESHOLD_0			 0x6015c
1038c2ecf20Sopenharmony_ci/* [RW 11] The number of blocks guarantied for class 0 in MAC 0. The
1048c2ecf20Sopenharmony_ci * register is applicable only when per_class_guaranty_mode is set. */
1058c2ecf20Sopenharmony_ci#define BRB1_REG_MAC_0_CLASS_0_GUARANTIED			 0x60244
1068c2ecf20Sopenharmony_ci/* [RW 11] The hysteresis on the guarantied buffer space for class 0 in MAC
1078c2ecf20Sopenharmony_ci * 1 before signaling XON. The register is applicable only when
1088c2ecf20Sopenharmony_ci * per_class_guaranty_mode is set. */
1098c2ecf20Sopenharmony_ci#define BRB1_REG_MAC_0_CLASS_0_GUARANTIED_HYST			 0x60254
1108c2ecf20Sopenharmony_ci/* [RW 11] The number of blocks guarantied for class 1 in MAC 0. The
1118c2ecf20Sopenharmony_ci * register is applicable only when per_class_guaranty_mode is set. */
1128c2ecf20Sopenharmony_ci#define BRB1_REG_MAC_0_CLASS_1_GUARANTIED			 0x60248
1138c2ecf20Sopenharmony_ci/* [RW 11] The hysteresis on the guarantied buffer space for class 1in MAC 0
1148c2ecf20Sopenharmony_ci * before signaling XON. The register is applicable only when
1158c2ecf20Sopenharmony_ci * per_class_guaranty_mode is set. */
1168c2ecf20Sopenharmony_ci#define BRB1_REG_MAC_0_CLASS_1_GUARANTIED_HYST			 0x60258
1178c2ecf20Sopenharmony_ci/* [RW 11] The number of blocks guarantied for class 0in MAC1.The register
1188c2ecf20Sopenharmony_ci * is applicable only when per_class_guaranty_mode is set. */
1198c2ecf20Sopenharmony_ci#define BRB1_REG_MAC_1_CLASS_0_GUARANTIED			 0x6024c
1208c2ecf20Sopenharmony_ci/* [RW 11] The hysteresis on the guarantied buffer space for class 0 in MAC
1218c2ecf20Sopenharmony_ci * 1 before signaling XON. The register is applicable only when
1228c2ecf20Sopenharmony_ci * per_class_guaranty_mode is set. */
1238c2ecf20Sopenharmony_ci#define BRB1_REG_MAC_1_CLASS_0_GUARANTIED_HYST			 0x6025c
1248c2ecf20Sopenharmony_ci/* [RW 11] The number of blocks guarantied for class 1 in MAC 1. The
1258c2ecf20Sopenharmony_ci * register is applicable only when per_class_guaranty_mode is set. */
1268c2ecf20Sopenharmony_ci#define BRB1_REG_MAC_1_CLASS_1_GUARANTIED			 0x60250
1278c2ecf20Sopenharmony_ci/* [RW 11] The hysteresis on the guarantied buffer space for class 1 in MAC
1288c2ecf20Sopenharmony_ci * 1 before signaling XON. The register is applicable only when
1298c2ecf20Sopenharmony_ci * per_class_guaranty_mode is set. */
1308c2ecf20Sopenharmony_ci#define BRB1_REG_MAC_1_CLASS_1_GUARANTIED_HYST			 0x60260
1318c2ecf20Sopenharmony_ci/* [RW 11] The number of blocks guarantied for the MAC port. The register is
1328c2ecf20Sopenharmony_ci * applicable only when per_class_guaranty_mode is reset. */
1338c2ecf20Sopenharmony_ci#define BRB1_REG_MAC_GUARANTIED_0				 0x601e8
1348c2ecf20Sopenharmony_ci#define BRB1_REG_MAC_GUARANTIED_1				 0x60240
1358c2ecf20Sopenharmony_ci/* [R 24] The number of full blocks. */
1368c2ecf20Sopenharmony_ci#define BRB1_REG_NUM_OF_FULL_BLOCKS				 0x60090
1378c2ecf20Sopenharmony_ci/* [ST 32] The number of cycles that the write_full signal towards MAC #0
1388c2ecf20Sopenharmony_ci   was asserted. */
1398c2ecf20Sopenharmony_ci#define BRB1_REG_NUM_OF_FULL_CYCLES_0				 0x600c8
1408c2ecf20Sopenharmony_ci#define BRB1_REG_NUM_OF_FULL_CYCLES_1				 0x600cc
1418c2ecf20Sopenharmony_ci#define BRB1_REG_NUM_OF_FULL_CYCLES_4				 0x600d8
1428c2ecf20Sopenharmony_ci/* [ST 32] The number of cycles that the pause signal towards MAC #0 was
1438c2ecf20Sopenharmony_ci   asserted. */
1448c2ecf20Sopenharmony_ci#define BRB1_REG_NUM_OF_PAUSE_CYCLES_0				 0x600b8
1458c2ecf20Sopenharmony_ci#define BRB1_REG_NUM_OF_PAUSE_CYCLES_1				 0x600bc
1468c2ecf20Sopenharmony_ci/* [RW 10] The number of free blocks below which the pause signal to class 0
1478c2ecf20Sopenharmony_ci * is asserted */
1488c2ecf20Sopenharmony_ci#define BRB1_REG_PAUSE_0_XOFF_THRESHOLD_0			 0x601c0
1498c2ecf20Sopenharmony_ci#define BRB1_REG_PAUSE_0_XOFF_THRESHOLD_1			 0x60220
1508c2ecf20Sopenharmony_ci/* [RW 11] The number of free blocks above which the pause signal to class 0
1518c2ecf20Sopenharmony_ci * is de-asserted */
1528c2ecf20Sopenharmony_ci#define BRB1_REG_PAUSE_0_XON_THRESHOLD_0			 0x601c4
1538c2ecf20Sopenharmony_ci#define BRB1_REG_PAUSE_0_XON_THRESHOLD_1			 0x60224
1548c2ecf20Sopenharmony_ci/* [RW 11] The number of free blocks below which the pause signal to class 1
1558c2ecf20Sopenharmony_ci * is asserted */
1568c2ecf20Sopenharmony_ci#define BRB1_REG_PAUSE_1_XOFF_THRESHOLD_0			 0x601c8
1578c2ecf20Sopenharmony_ci#define BRB1_REG_PAUSE_1_XOFF_THRESHOLD_1			 0x60228
1588c2ecf20Sopenharmony_ci/* [RW 11] The number of free blocks above which the pause signal to class 1
1598c2ecf20Sopenharmony_ci * is de-asserted */
1608c2ecf20Sopenharmony_ci#define BRB1_REG_PAUSE_1_XON_THRESHOLD_0			 0x601cc
1618c2ecf20Sopenharmony_ci#define BRB1_REG_PAUSE_1_XON_THRESHOLD_1			 0x6022c
1628c2ecf20Sopenharmony_ci/* [RW 10] Write client 0: De-assert pause threshold. Not Functional */
1638c2ecf20Sopenharmony_ci#define BRB1_REG_PAUSE_HIGH_THRESHOLD_0 			 0x60078
1648c2ecf20Sopenharmony_ci#define BRB1_REG_PAUSE_HIGH_THRESHOLD_1 			 0x6007c
1658c2ecf20Sopenharmony_ci/* [RW 10] Write client 0: Assert pause threshold. */
1668c2ecf20Sopenharmony_ci#define BRB1_REG_PAUSE_LOW_THRESHOLD_0				 0x60068
1678c2ecf20Sopenharmony_ci/* [RW 1] Indicates if to use per-class guaranty mode (new mode) or per-MAC
1688c2ecf20Sopenharmony_ci * guaranty mode (backwards-compatible mode). 0=per-MAC guaranty mode (BC
1698c2ecf20Sopenharmony_ci * mode). 1=per-class guaranty mode (new mode). */
1708c2ecf20Sopenharmony_ci#define BRB1_REG_PER_CLASS_GUARANTY_MODE			 0x60268
1718c2ecf20Sopenharmony_ci/* [R 24] The number of full blocks occpied by port. */
1728c2ecf20Sopenharmony_ci#define BRB1_REG_PORT_NUM_OCC_BLOCKS_0				 0x60094
1738c2ecf20Sopenharmony_ci/* [RW 1] Reset the design by software. */
1748c2ecf20Sopenharmony_ci#define BRB1_REG_SOFT_RESET					 0x600dc
1758c2ecf20Sopenharmony_ci/* [R 5] Used to read the value of the XX protection CAM occupancy counter. */
1768c2ecf20Sopenharmony_ci#define CCM_REG_CAM_OCCUP					 0xd0188
1778c2ecf20Sopenharmony_ci/* [RW 1] CM - CFC Interface enable. If 0 - the valid input is disregarded;
1788c2ecf20Sopenharmony_ci   acknowledge output is deasserted; all other signals are treated as usual;
1798c2ecf20Sopenharmony_ci   if 1 - normal activity. */
1808c2ecf20Sopenharmony_ci#define CCM_REG_CCM_CFC_IFEN					 0xd003c
1818c2ecf20Sopenharmony_ci/* [RW 1] CM - QM Interface enable. If 0 - the acknowledge input is
1828c2ecf20Sopenharmony_ci   disregarded; valid is deasserted; all other signals are treated as usual;
1838c2ecf20Sopenharmony_ci   if 1 - normal activity. */
1848c2ecf20Sopenharmony_ci#define CCM_REG_CCM_CQM_IFEN					 0xd000c
1858c2ecf20Sopenharmony_ci/* [RW 1] If set the Q index; received from the QM is inserted to event ID.
1868c2ecf20Sopenharmony_ci   Otherwise 0 is inserted. */
1878c2ecf20Sopenharmony_ci#define CCM_REG_CCM_CQM_USE_Q					 0xd00c0
1888c2ecf20Sopenharmony_ci/* [RW 11] Interrupt mask register #0 read/write */
1898c2ecf20Sopenharmony_ci#define CCM_REG_CCM_INT_MASK					 0xd01e4
1908c2ecf20Sopenharmony_ci/* [R 11] Interrupt register #0 read */
1918c2ecf20Sopenharmony_ci#define CCM_REG_CCM_INT_STS					 0xd01d8
1928c2ecf20Sopenharmony_ci/* [RW 27] Parity mask register #0 read/write */
1938c2ecf20Sopenharmony_ci#define CCM_REG_CCM_PRTY_MASK					 0xd01f4
1948c2ecf20Sopenharmony_ci/* [R 27] Parity register #0 read */
1958c2ecf20Sopenharmony_ci#define CCM_REG_CCM_PRTY_STS					 0xd01e8
1968c2ecf20Sopenharmony_ci/* [RC 27] Parity register #0 read clear */
1978c2ecf20Sopenharmony_ci#define CCM_REG_CCM_PRTY_STS_CLR				 0xd01ec
1988c2ecf20Sopenharmony_ci/* [RW 3] The size of AG context region 0 in REG-pairs. Designates the MS
1998c2ecf20Sopenharmony_ci   REG-pair number (e.g. if region 0 is 6 REG-pairs; the value should be 5).
2008c2ecf20Sopenharmony_ci   Is used to determine the number of the AG context REG-pairs written back;
2018c2ecf20Sopenharmony_ci   when the input message Reg1WbFlg isn't set. */
2028c2ecf20Sopenharmony_ci#define CCM_REG_CCM_REG0_SZ					 0xd00c4
2038c2ecf20Sopenharmony_ci/* [RW 1] CM - STORM 0 Interface enable. If 0 - the acknowledge input is
2048c2ecf20Sopenharmony_ci   disregarded; valid is deasserted; all other signals are treated as usual;
2058c2ecf20Sopenharmony_ci   if 1 - normal activity. */
2068c2ecf20Sopenharmony_ci#define CCM_REG_CCM_STORM0_IFEN 				 0xd0004
2078c2ecf20Sopenharmony_ci/* [RW 1] CM - STORM 1 Interface enable. If 0 - the acknowledge input is
2088c2ecf20Sopenharmony_ci   disregarded; valid is deasserted; all other signals are treated as usual;
2098c2ecf20Sopenharmony_ci   if 1 - normal activity. */
2108c2ecf20Sopenharmony_ci#define CCM_REG_CCM_STORM1_IFEN 				 0xd0008
2118c2ecf20Sopenharmony_ci/* [RW 1] CDU AG read Interface enable. If 0 - the request input is
2128c2ecf20Sopenharmony_ci   disregarded; valid output is deasserted; all other signals are treated as
2138c2ecf20Sopenharmony_ci   usual; if 1 - normal activity. */
2148c2ecf20Sopenharmony_ci#define CCM_REG_CDU_AG_RD_IFEN					 0xd0030
2158c2ecf20Sopenharmony_ci/* [RW 1] CDU AG write Interface enable. If 0 - the request and valid input
2168c2ecf20Sopenharmony_ci   are disregarded; all other signals are treated as usual; if 1 - normal
2178c2ecf20Sopenharmony_ci   activity. */
2188c2ecf20Sopenharmony_ci#define CCM_REG_CDU_AG_WR_IFEN					 0xd002c
2198c2ecf20Sopenharmony_ci/* [RW 1] CDU STORM read Interface enable. If 0 - the request input is
2208c2ecf20Sopenharmony_ci   disregarded; valid output is deasserted; all other signals are treated as
2218c2ecf20Sopenharmony_ci   usual; if 1 - normal activity. */
2228c2ecf20Sopenharmony_ci#define CCM_REG_CDU_SM_RD_IFEN					 0xd0038
2238c2ecf20Sopenharmony_ci/* [RW 1] CDU STORM write Interface enable. If 0 - the request and valid
2248c2ecf20Sopenharmony_ci   input is disregarded; all other signals are treated as usual; if 1 -
2258c2ecf20Sopenharmony_ci   normal activity. */
2268c2ecf20Sopenharmony_ci#define CCM_REG_CDU_SM_WR_IFEN					 0xd0034
2278c2ecf20Sopenharmony_ci/* [RW 4] CFC output initial credit. Max credit available - 15.Write writes
2288c2ecf20Sopenharmony_ci   the initial credit value; read returns the current value of the credit
2298c2ecf20Sopenharmony_ci   counter. Must be initialized to 1 at start-up. */
2308c2ecf20Sopenharmony_ci#define CCM_REG_CFC_INIT_CRD					 0xd0204
2318c2ecf20Sopenharmony_ci/* [RW 2] Auxiliary counter flag Q number 1. */
2328c2ecf20Sopenharmony_ci#define CCM_REG_CNT_AUX1_Q					 0xd00c8
2338c2ecf20Sopenharmony_ci/* [RW 2] Auxiliary counter flag Q number 2. */
2348c2ecf20Sopenharmony_ci#define CCM_REG_CNT_AUX2_Q					 0xd00cc
2358c2ecf20Sopenharmony_ci/* [RW 28] The CM header value for QM request (primary). */
2368c2ecf20Sopenharmony_ci#define CCM_REG_CQM_CCM_HDR_P					 0xd008c
2378c2ecf20Sopenharmony_ci/* [RW 28] The CM header value for QM request (secondary). */
2388c2ecf20Sopenharmony_ci#define CCM_REG_CQM_CCM_HDR_S					 0xd0090
2398c2ecf20Sopenharmony_ci/* [RW 1] QM - CM Interface enable. If 0 - the valid input is disregarded;
2408c2ecf20Sopenharmony_ci   acknowledge output is deasserted; all other signals are treated as usual;
2418c2ecf20Sopenharmony_ci   if 1 - normal activity. */
2428c2ecf20Sopenharmony_ci#define CCM_REG_CQM_CCM_IFEN					 0xd0014
2438c2ecf20Sopenharmony_ci/* [RW 6] QM output initial credit. Max credit available - 32. Write writes
2448c2ecf20Sopenharmony_ci   the initial credit value; read returns the current value of the credit
2458c2ecf20Sopenharmony_ci   counter. Must be initialized to 32 at start-up. */
2468c2ecf20Sopenharmony_ci#define CCM_REG_CQM_INIT_CRD					 0xd020c
2478c2ecf20Sopenharmony_ci/* [RW 3] The weight of the QM (primary) input in the WRR mechanism. 0
2488c2ecf20Sopenharmony_ci   stands for weight 8 (the most prioritised); 1 stands for weight 1(least
2498c2ecf20Sopenharmony_ci   prioritised); 2 stands for weight 2; tc. */
2508c2ecf20Sopenharmony_ci#define CCM_REG_CQM_P_WEIGHT					 0xd00b8
2518c2ecf20Sopenharmony_ci/* [RW 3] The weight of the QM (secondary) input in the WRR mechanism. 0
2528c2ecf20Sopenharmony_ci   stands for weight 8 (the most prioritised); 1 stands for weight 1(least
2538c2ecf20Sopenharmony_ci   prioritised); 2 stands for weight 2; tc. */
2548c2ecf20Sopenharmony_ci#define CCM_REG_CQM_S_WEIGHT					 0xd00bc
2558c2ecf20Sopenharmony_ci/* [RW 1] Input SDM Interface enable. If 0 - the valid input is disregarded;
2568c2ecf20Sopenharmony_ci   acknowledge output is deasserted; all other signals are treated as usual;
2578c2ecf20Sopenharmony_ci   if 1 - normal activity. */
2588c2ecf20Sopenharmony_ci#define CCM_REG_CSDM_IFEN					 0xd0018
2598c2ecf20Sopenharmony_ci/* [RC 1] Set when the message length mismatch (relative to last indication)
2608c2ecf20Sopenharmony_ci   at the SDM interface is detected. */
2618c2ecf20Sopenharmony_ci#define CCM_REG_CSDM_LENGTH_MIS 				 0xd0170
2628c2ecf20Sopenharmony_ci/* [RW 3] The weight of the SDM input in the WRR mechanism. 0 stands for
2638c2ecf20Sopenharmony_ci   weight 8 (the most prioritised); 1 stands for weight 1(least
2648c2ecf20Sopenharmony_ci   prioritised); 2 stands for weight 2; tc. */
2658c2ecf20Sopenharmony_ci#define CCM_REG_CSDM_WEIGHT					 0xd00b4
2668c2ecf20Sopenharmony_ci/* [RW 28] The CM header for QM formatting in case of an error in the QM
2678c2ecf20Sopenharmony_ci   inputs. */
2688c2ecf20Sopenharmony_ci#define CCM_REG_ERR_CCM_HDR					 0xd0094
2698c2ecf20Sopenharmony_ci/* [RW 8] The Event ID in case the input message ErrorFlg is set. */
2708c2ecf20Sopenharmony_ci#define CCM_REG_ERR_EVNT_ID					 0xd0098
2718c2ecf20Sopenharmony_ci/* [RW 8] FIC0 output initial credit. Max credit available - 255. Write
2728c2ecf20Sopenharmony_ci   writes the initial credit value; read returns the current value of the
2738c2ecf20Sopenharmony_ci   credit counter. Must be initialized to 64 at start-up. */
2748c2ecf20Sopenharmony_ci#define CCM_REG_FIC0_INIT_CRD					 0xd0210
2758c2ecf20Sopenharmony_ci/* [RW 8] FIC1 output initial credit. Max credit available - 255.Write
2768c2ecf20Sopenharmony_ci   writes the initial credit value; read returns the current value of the
2778c2ecf20Sopenharmony_ci   credit counter. Must be initialized to 64 at start-up. */
2788c2ecf20Sopenharmony_ci#define CCM_REG_FIC1_INIT_CRD					 0xd0214
2798c2ecf20Sopenharmony_ci/* [RW 1] Arbitration between Input Arbiter groups: 0 - fair Round-Robin; 1
2808c2ecf20Sopenharmony_ci   - strict priority defined by ~ccm_registers_gr_ag_pr.gr_ag_pr;
2818c2ecf20Sopenharmony_ci   ~ccm_registers_gr_ld0_pr.gr_ld0_pr and
2828c2ecf20Sopenharmony_ci   ~ccm_registers_gr_ld1_pr.gr_ld1_pr. Groups are according to channels and
2838c2ecf20Sopenharmony_ci   outputs to STORM: aggregation; load FIC0; load FIC1 and store. */
2848c2ecf20Sopenharmony_ci#define CCM_REG_GR_ARB_TYPE					 0xd015c
2858c2ecf20Sopenharmony_ci/* [RW 2] Load (FIC0) channel group priority. The lowest priority is 0; the
2868c2ecf20Sopenharmony_ci   highest priority is 3. It is supposed; that the Store channel priority is
2878c2ecf20Sopenharmony_ci   the complement to 4 of the rest priorities - Aggregation channel; Load
2888c2ecf20Sopenharmony_ci   (FIC0) channel and Load (FIC1). */
2898c2ecf20Sopenharmony_ci#define CCM_REG_GR_LD0_PR					 0xd0164
2908c2ecf20Sopenharmony_ci/* [RW 2] Load (FIC1) channel group priority. The lowest priority is 0; the
2918c2ecf20Sopenharmony_ci   highest priority is 3. It is supposed; that the Store channel priority is
2928c2ecf20Sopenharmony_ci   the complement to 4 of the rest priorities - Aggregation channel; Load
2938c2ecf20Sopenharmony_ci   (FIC0) channel and Load (FIC1). */
2948c2ecf20Sopenharmony_ci#define CCM_REG_GR_LD1_PR					 0xd0168
2958c2ecf20Sopenharmony_ci/* [RW 2] General flags index. */
2968c2ecf20Sopenharmony_ci#define CCM_REG_INV_DONE_Q					 0xd0108
2978c2ecf20Sopenharmony_ci/* [RW 4] The number of double REG-pairs(128 bits); loaded from the STORM
2988c2ecf20Sopenharmony_ci   context and sent to STORM; for a specific connection type. The double
2998c2ecf20Sopenharmony_ci   REG-pairs are used in order to align to STORM context row size of 128
3008c2ecf20Sopenharmony_ci   bits. The offset of these data in the STORM context is always 0. Index
3018c2ecf20Sopenharmony_ci   _(0..15) stands for the connection type (one of 16). */
3028c2ecf20Sopenharmony_ci#define CCM_REG_N_SM_CTX_LD_0					 0xd004c
3038c2ecf20Sopenharmony_ci#define CCM_REG_N_SM_CTX_LD_1					 0xd0050
3048c2ecf20Sopenharmony_ci#define CCM_REG_N_SM_CTX_LD_2					 0xd0054
3058c2ecf20Sopenharmony_ci#define CCM_REG_N_SM_CTX_LD_3					 0xd0058
3068c2ecf20Sopenharmony_ci#define CCM_REG_N_SM_CTX_LD_4					 0xd005c
3078c2ecf20Sopenharmony_ci/* [RW 1] Input pbf Interface enable. If 0 - the valid input is disregarded;
3088c2ecf20Sopenharmony_ci   acknowledge output is deasserted; all other signals are treated as usual;
3098c2ecf20Sopenharmony_ci   if 1 - normal activity. */
3108c2ecf20Sopenharmony_ci#define CCM_REG_PBF_IFEN					 0xd0028
3118c2ecf20Sopenharmony_ci/* [RC 1] Set when the message length mismatch (relative to last indication)
3128c2ecf20Sopenharmony_ci   at the pbf interface is detected. */
3138c2ecf20Sopenharmony_ci#define CCM_REG_PBF_LENGTH_MIS					 0xd0180
3148c2ecf20Sopenharmony_ci/* [RW 3] The weight of the input pbf in the WRR mechanism. 0 stands for
3158c2ecf20Sopenharmony_ci   weight 8 (the most prioritised); 1 stands for weight 1(least
3168c2ecf20Sopenharmony_ci   prioritised); 2 stands for weight 2; tc. */
3178c2ecf20Sopenharmony_ci#define CCM_REG_PBF_WEIGHT					 0xd00ac
3188c2ecf20Sopenharmony_ci#define CCM_REG_PHYS_QNUM1_0					 0xd0134
3198c2ecf20Sopenharmony_ci#define CCM_REG_PHYS_QNUM1_1					 0xd0138
3208c2ecf20Sopenharmony_ci#define CCM_REG_PHYS_QNUM2_0					 0xd013c
3218c2ecf20Sopenharmony_ci#define CCM_REG_PHYS_QNUM2_1					 0xd0140
3228c2ecf20Sopenharmony_ci#define CCM_REG_PHYS_QNUM3_0					 0xd0144
3238c2ecf20Sopenharmony_ci#define CCM_REG_PHYS_QNUM3_1					 0xd0148
3248c2ecf20Sopenharmony_ci#define CCM_REG_QOS_PHYS_QNUM0_0				 0xd0114
3258c2ecf20Sopenharmony_ci#define CCM_REG_QOS_PHYS_QNUM0_1				 0xd0118
3268c2ecf20Sopenharmony_ci#define CCM_REG_QOS_PHYS_QNUM1_0				 0xd011c
3278c2ecf20Sopenharmony_ci#define CCM_REG_QOS_PHYS_QNUM1_1				 0xd0120
3288c2ecf20Sopenharmony_ci#define CCM_REG_QOS_PHYS_QNUM2_0				 0xd0124
3298c2ecf20Sopenharmony_ci#define CCM_REG_QOS_PHYS_QNUM2_1				 0xd0128
3308c2ecf20Sopenharmony_ci#define CCM_REG_QOS_PHYS_QNUM3_0				 0xd012c
3318c2ecf20Sopenharmony_ci#define CCM_REG_QOS_PHYS_QNUM3_1				 0xd0130
3328c2ecf20Sopenharmony_ci/* [RW 1] STORM - CM Interface enable. If 0 - the valid input is
3338c2ecf20Sopenharmony_ci   disregarded; acknowledge output is deasserted; all other signals are
3348c2ecf20Sopenharmony_ci   treated as usual; if 1 - normal activity. */
3358c2ecf20Sopenharmony_ci#define CCM_REG_STORM_CCM_IFEN					 0xd0010
3368c2ecf20Sopenharmony_ci/* [RC 1] Set when the message length mismatch (relative to last indication)
3378c2ecf20Sopenharmony_ci   at the STORM interface is detected. */
3388c2ecf20Sopenharmony_ci#define CCM_REG_STORM_LENGTH_MIS				 0xd016c
3398c2ecf20Sopenharmony_ci/* [RW 3] The weight of the STORM input in the WRR (Weighted Round robin)
3408c2ecf20Sopenharmony_ci   mechanism. 0 stands for weight 8 (the most prioritised); 1 stands for
3418c2ecf20Sopenharmony_ci   weight 1(least prioritised); 2 stands for weight 2 (more prioritised);
3428c2ecf20Sopenharmony_ci   tc. */
3438c2ecf20Sopenharmony_ci#define CCM_REG_STORM_WEIGHT					 0xd009c
3448c2ecf20Sopenharmony_ci/* [RW 1] Input tsem Interface enable. If 0 - the valid input is
3458c2ecf20Sopenharmony_ci   disregarded; acknowledge output is deasserted; all other signals are
3468c2ecf20Sopenharmony_ci   treated as usual; if 1 - normal activity. */
3478c2ecf20Sopenharmony_ci#define CCM_REG_TSEM_IFEN					 0xd001c
3488c2ecf20Sopenharmony_ci/* [RC 1] Set when the message length mismatch (relative to last indication)
3498c2ecf20Sopenharmony_ci   at the tsem interface is detected. */
3508c2ecf20Sopenharmony_ci#define CCM_REG_TSEM_LENGTH_MIS 				 0xd0174
3518c2ecf20Sopenharmony_ci/* [RW 3] The weight of the input tsem in the WRR mechanism. 0 stands for
3528c2ecf20Sopenharmony_ci   weight 8 (the most prioritised); 1 stands for weight 1(least
3538c2ecf20Sopenharmony_ci   prioritised); 2 stands for weight 2; tc. */
3548c2ecf20Sopenharmony_ci#define CCM_REG_TSEM_WEIGHT					 0xd00a0
3558c2ecf20Sopenharmony_ci/* [RW 1] Input usem Interface enable. If 0 - the valid input is
3568c2ecf20Sopenharmony_ci   disregarded; acknowledge output is deasserted; all other signals are
3578c2ecf20Sopenharmony_ci   treated as usual; if 1 - normal activity. */
3588c2ecf20Sopenharmony_ci#define CCM_REG_USEM_IFEN					 0xd0024
3598c2ecf20Sopenharmony_ci/* [RC 1] Set when message length mismatch (relative to last indication) at
3608c2ecf20Sopenharmony_ci   the usem interface is detected. */
3618c2ecf20Sopenharmony_ci#define CCM_REG_USEM_LENGTH_MIS 				 0xd017c
3628c2ecf20Sopenharmony_ci/* [RW 3] The weight of the input usem in the WRR mechanism. 0 stands for
3638c2ecf20Sopenharmony_ci   weight 8 (the most prioritised); 1 stands for weight 1(least
3648c2ecf20Sopenharmony_ci   prioritised); 2 stands for weight 2; tc. */
3658c2ecf20Sopenharmony_ci#define CCM_REG_USEM_WEIGHT					 0xd00a8
3668c2ecf20Sopenharmony_ci/* [RW 1] Input xsem Interface enable. If 0 - the valid input is
3678c2ecf20Sopenharmony_ci   disregarded; acknowledge output is deasserted; all other signals are
3688c2ecf20Sopenharmony_ci   treated as usual; if 1 - normal activity. */
3698c2ecf20Sopenharmony_ci#define CCM_REG_XSEM_IFEN					 0xd0020
3708c2ecf20Sopenharmony_ci/* [RC 1] Set when the message length mismatch (relative to last indication)
3718c2ecf20Sopenharmony_ci   at the xsem interface is detected. */
3728c2ecf20Sopenharmony_ci#define CCM_REG_XSEM_LENGTH_MIS 				 0xd0178
3738c2ecf20Sopenharmony_ci/* [RW 3] The weight of the input xsem in the WRR mechanism. 0 stands for
3748c2ecf20Sopenharmony_ci   weight 8 (the most prioritised); 1 stands for weight 1(least
3758c2ecf20Sopenharmony_ci   prioritised); 2 stands for weight 2; tc. */
3768c2ecf20Sopenharmony_ci#define CCM_REG_XSEM_WEIGHT					 0xd00a4
3778c2ecf20Sopenharmony_ci/* [RW 19] Indirect access to the descriptor table of the XX protection
3788c2ecf20Sopenharmony_ci   mechanism. The fields are: [5:0] - message length; [12:6] - message
3798c2ecf20Sopenharmony_ci   pointer; 18:13] - next pointer. */
3808c2ecf20Sopenharmony_ci#define CCM_REG_XX_DESCR_TABLE					 0xd0300
3818c2ecf20Sopenharmony_ci#define CCM_REG_XX_DESCR_TABLE_SIZE				 24
3828c2ecf20Sopenharmony_ci/* [R 7] Used to read the value of XX protection Free counter. */
3838c2ecf20Sopenharmony_ci#define CCM_REG_XX_FREE 					 0xd0184
3848c2ecf20Sopenharmony_ci/* [RW 6] Initial value for the credit counter; responsible for fulfilling
3858c2ecf20Sopenharmony_ci   of the Input Stage XX protection buffer by the XX protection pending
3868c2ecf20Sopenharmony_ci   messages. Max credit available - 127. Write writes the initial credit
3878c2ecf20Sopenharmony_ci   value; read returns the current value of the credit counter. Must be
3888c2ecf20Sopenharmony_ci   initialized to maximum XX protected message size - 2 at start-up. */
3898c2ecf20Sopenharmony_ci#define CCM_REG_XX_INIT_CRD					 0xd0220
3908c2ecf20Sopenharmony_ci/* [RW 7] The maximum number of pending messages; which may be stored in XX
3918c2ecf20Sopenharmony_ci   protection. At read the ~ccm_registers_xx_free.xx_free counter is read.
3928c2ecf20Sopenharmony_ci   At write comprises the start value of the ~ccm_registers_xx_free.xx_free
3938c2ecf20Sopenharmony_ci   counter. */
3948c2ecf20Sopenharmony_ci#define CCM_REG_XX_MSG_NUM					 0xd0224
3958c2ecf20Sopenharmony_ci/* [RW 8] The Event ID; sent to the STORM in case of XX overflow. */
3968c2ecf20Sopenharmony_ci#define CCM_REG_XX_OVFL_EVNT_ID 				 0xd0044
3978c2ecf20Sopenharmony_ci/* [RW 18] Indirect access to the XX table of the XX protection mechanism.
3988c2ecf20Sopenharmony_ci   The fields are: [5:0] - tail pointer; 11:6] - Link List size; 17:12] -
3998c2ecf20Sopenharmony_ci   header pointer. */
4008c2ecf20Sopenharmony_ci#define CCM_REG_XX_TABLE					 0xd0280
4018c2ecf20Sopenharmony_ci#define CDU_REG_CDU_CHK_MASK0					 0x101000
4028c2ecf20Sopenharmony_ci#define CDU_REG_CDU_CHK_MASK1					 0x101004
4038c2ecf20Sopenharmony_ci#define CDU_REG_CDU_CONTROL0					 0x101008
4048c2ecf20Sopenharmony_ci#define CDU_REG_CDU_DEBUG					 0x101010
4058c2ecf20Sopenharmony_ci#define CDU_REG_CDU_GLOBAL_PARAMS				 0x101020
4068c2ecf20Sopenharmony_ci/* [RW 7] Interrupt mask register #0 read/write */
4078c2ecf20Sopenharmony_ci#define CDU_REG_CDU_INT_MASK					 0x10103c
4088c2ecf20Sopenharmony_ci/* [R 7] Interrupt register #0 read */
4098c2ecf20Sopenharmony_ci#define CDU_REG_CDU_INT_STS					 0x101030
4108c2ecf20Sopenharmony_ci/* [RW 5] Parity mask register #0 read/write */
4118c2ecf20Sopenharmony_ci#define CDU_REG_CDU_PRTY_MASK					 0x10104c
4128c2ecf20Sopenharmony_ci/* [R 5] Parity register #0 read */
4138c2ecf20Sopenharmony_ci#define CDU_REG_CDU_PRTY_STS					 0x101040
4148c2ecf20Sopenharmony_ci/* [RC 5] Parity register #0 read clear */
4158c2ecf20Sopenharmony_ci#define CDU_REG_CDU_PRTY_STS_CLR				 0x101044
4168c2ecf20Sopenharmony_ci/* [RC 32] logging of error data in case of a CDU load error:
4178c2ecf20Sopenharmony_ci   {expected_cid[15:0]; xpected_type[2:0]; xpected_region[2:0]; ctive_error;
4188c2ecf20Sopenharmony_ci   ype_error; ctual_active; ctual_compressed_context}; */
4198c2ecf20Sopenharmony_ci#define CDU_REG_ERROR_DATA					 0x101014
4208c2ecf20Sopenharmony_ci/* [WB 216] L1TT ram access. each entry has the following format :
4218c2ecf20Sopenharmony_ci   {mrege_regions[7:0]; ffset12[5:0]...offset0[5:0];
4228c2ecf20Sopenharmony_ci   ength12[5:0]...length0[5:0]; d12[3:0]...id0[3:0]} */
4238c2ecf20Sopenharmony_ci#define CDU_REG_L1TT						 0x101800
4248c2ecf20Sopenharmony_ci/* [WB 24] MATT ram access. each entry has the following
4258c2ecf20Sopenharmony_ci   format:{RegionLength[11:0]; egionOffset[11:0]} */
4268c2ecf20Sopenharmony_ci#define CDU_REG_MATT						 0x101100
4278c2ecf20Sopenharmony_ci/* [RW 1] when this bit is set the CDU operates in e1hmf mode */
4288c2ecf20Sopenharmony_ci#define CDU_REG_MF_MODE 					 0x101050
4298c2ecf20Sopenharmony_ci/* [R 1] indication the initializing the activity counter by the hardware
4308c2ecf20Sopenharmony_ci   was done. */
4318c2ecf20Sopenharmony_ci#define CFC_REG_AC_INIT_DONE					 0x104078
4328c2ecf20Sopenharmony_ci/* [RW 13] activity counter ram access */
4338c2ecf20Sopenharmony_ci#define CFC_REG_ACTIVITY_COUNTER				 0x104400
4348c2ecf20Sopenharmony_ci#define CFC_REG_ACTIVITY_COUNTER_SIZE				 256
4358c2ecf20Sopenharmony_ci/* [R 1] indication the initializing the cams by the hardware was done. */
4368c2ecf20Sopenharmony_ci#define CFC_REG_CAM_INIT_DONE					 0x10407c
4378c2ecf20Sopenharmony_ci/* [RW 2] Interrupt mask register #0 read/write */
4388c2ecf20Sopenharmony_ci#define CFC_REG_CFC_INT_MASK					 0x104108
4398c2ecf20Sopenharmony_ci/* [R 2] Interrupt register #0 read */
4408c2ecf20Sopenharmony_ci#define CFC_REG_CFC_INT_STS					 0x1040fc
4418c2ecf20Sopenharmony_ci/* [RC 2] Interrupt register #0 read clear */
4428c2ecf20Sopenharmony_ci#define CFC_REG_CFC_INT_STS_CLR 				 0x104100
4438c2ecf20Sopenharmony_ci/* [RW 4] Parity mask register #0 read/write */
4448c2ecf20Sopenharmony_ci#define CFC_REG_CFC_PRTY_MASK					 0x104118
4458c2ecf20Sopenharmony_ci/* [R 4] Parity register #0 read */
4468c2ecf20Sopenharmony_ci#define CFC_REG_CFC_PRTY_STS					 0x10410c
4478c2ecf20Sopenharmony_ci/* [RC 4] Parity register #0 read clear */
4488c2ecf20Sopenharmony_ci#define CFC_REG_CFC_PRTY_STS_CLR				 0x104110
4498c2ecf20Sopenharmony_ci/* [RW 21] CID cam access (21:1 - Data; alid - 0) */
4508c2ecf20Sopenharmony_ci#define CFC_REG_CID_CAM 					 0x104800
4518c2ecf20Sopenharmony_ci#define CFC_REG_CONTROL0					 0x104028
4528c2ecf20Sopenharmony_ci#define CFC_REG_DEBUG0						 0x104050
4538c2ecf20Sopenharmony_ci/* [RW 14] indicates per error (in #cfc_registers_cfc_error_vector.cfc_error
4548c2ecf20Sopenharmony_ci   vector) whether the cfc should be disabled upon it */
4558c2ecf20Sopenharmony_ci#define CFC_REG_DISABLE_ON_ERROR				 0x104044
4568c2ecf20Sopenharmony_ci/* [RC 14] CFC error vector. when the CFC detects an internal error it will
4578c2ecf20Sopenharmony_ci   set one of these bits. the bit description can be found in CFC
4588c2ecf20Sopenharmony_ci   specifications */
4598c2ecf20Sopenharmony_ci#define CFC_REG_ERROR_VECTOR					 0x10403c
4608c2ecf20Sopenharmony_ci/* [WB 93] LCID info ram access */
4618c2ecf20Sopenharmony_ci#define CFC_REG_INFO_RAM					 0x105000
4628c2ecf20Sopenharmony_ci#define CFC_REG_INFO_RAM_SIZE					 1024
4638c2ecf20Sopenharmony_ci#define CFC_REG_INIT_REG					 0x10404c
4648c2ecf20Sopenharmony_ci#define CFC_REG_INTERFACES					 0x104058
4658c2ecf20Sopenharmony_ci/* [RW 24] {weight_load_client7[2:0] to weight_load_client0[2:0]}. this
4668c2ecf20Sopenharmony_ci   field allows changing the priorities of the weighted-round-robin arbiter
4678c2ecf20Sopenharmony_ci   which selects which CFC load client should be served next */
4688c2ecf20Sopenharmony_ci#define CFC_REG_LCREQ_WEIGHTS					 0x104084
4698c2ecf20Sopenharmony_ci/* [RW 16] Link List ram access; data = {prev_lcid; ext_lcid} */
4708c2ecf20Sopenharmony_ci#define CFC_REG_LINK_LIST					 0x104c00
4718c2ecf20Sopenharmony_ci#define CFC_REG_LINK_LIST_SIZE					 256
4728c2ecf20Sopenharmony_ci/* [R 1] indication the initializing the link list by the hardware was done. */
4738c2ecf20Sopenharmony_ci#define CFC_REG_LL_INIT_DONE					 0x104074
4748c2ecf20Sopenharmony_ci/* [R 9] Number of allocated LCIDs which are at empty state */
4758c2ecf20Sopenharmony_ci#define CFC_REG_NUM_LCIDS_ALLOC 				 0x104020
4768c2ecf20Sopenharmony_ci/* [R 9] Number of Arriving LCIDs in Link List Block */
4778c2ecf20Sopenharmony_ci#define CFC_REG_NUM_LCIDS_ARRIVING				 0x104004
4788c2ecf20Sopenharmony_ci#define CFC_REG_NUM_LCIDS_INSIDE_PF				 0x104120
4798c2ecf20Sopenharmony_ci/* [R 9] Number of Leaving LCIDs in Link List Block */
4808c2ecf20Sopenharmony_ci#define CFC_REG_NUM_LCIDS_LEAVING				 0x104018
4818c2ecf20Sopenharmony_ci#define CFC_REG_WEAK_ENABLE_PF					 0x104124
4828c2ecf20Sopenharmony_ci/* [RW 8] The event id for aggregated interrupt 0 */
4838c2ecf20Sopenharmony_ci#define CSDM_REG_AGG_INT_EVENT_0				 0xc2038
4848c2ecf20Sopenharmony_ci#define CSDM_REG_AGG_INT_EVENT_10				 0xc2060
4858c2ecf20Sopenharmony_ci#define CSDM_REG_AGG_INT_EVENT_11				 0xc2064
4868c2ecf20Sopenharmony_ci#define CSDM_REG_AGG_INT_EVENT_12				 0xc2068
4878c2ecf20Sopenharmony_ci#define CSDM_REG_AGG_INT_EVENT_13				 0xc206c
4888c2ecf20Sopenharmony_ci#define CSDM_REG_AGG_INT_EVENT_14				 0xc2070
4898c2ecf20Sopenharmony_ci#define CSDM_REG_AGG_INT_EVENT_15				 0xc2074
4908c2ecf20Sopenharmony_ci#define CSDM_REG_AGG_INT_EVENT_16				 0xc2078
4918c2ecf20Sopenharmony_ci#define CSDM_REG_AGG_INT_EVENT_2				 0xc2040
4928c2ecf20Sopenharmony_ci#define CSDM_REG_AGG_INT_EVENT_3				 0xc2044
4938c2ecf20Sopenharmony_ci#define CSDM_REG_AGG_INT_EVENT_4				 0xc2048
4948c2ecf20Sopenharmony_ci#define CSDM_REG_AGG_INT_EVENT_5				 0xc204c
4958c2ecf20Sopenharmony_ci#define CSDM_REG_AGG_INT_EVENT_6				 0xc2050
4968c2ecf20Sopenharmony_ci#define CSDM_REG_AGG_INT_EVENT_7				 0xc2054
4978c2ecf20Sopenharmony_ci#define CSDM_REG_AGG_INT_EVENT_8				 0xc2058
4988c2ecf20Sopenharmony_ci#define CSDM_REG_AGG_INT_EVENT_9				 0xc205c
4998c2ecf20Sopenharmony_ci/* [RW 1] For each aggregated interrupt index whether the mode is normal (0)
5008c2ecf20Sopenharmony_ci   or auto-mask-mode (1) */
5018c2ecf20Sopenharmony_ci#define CSDM_REG_AGG_INT_MODE_10				 0xc21e0
5028c2ecf20Sopenharmony_ci#define CSDM_REG_AGG_INT_MODE_11				 0xc21e4
5038c2ecf20Sopenharmony_ci#define CSDM_REG_AGG_INT_MODE_12				 0xc21e8
5048c2ecf20Sopenharmony_ci#define CSDM_REG_AGG_INT_MODE_13				 0xc21ec
5058c2ecf20Sopenharmony_ci#define CSDM_REG_AGG_INT_MODE_14				 0xc21f0
5068c2ecf20Sopenharmony_ci#define CSDM_REG_AGG_INT_MODE_15				 0xc21f4
5078c2ecf20Sopenharmony_ci#define CSDM_REG_AGG_INT_MODE_16				 0xc21f8
5088c2ecf20Sopenharmony_ci#define CSDM_REG_AGG_INT_MODE_6 				 0xc21d0
5098c2ecf20Sopenharmony_ci#define CSDM_REG_AGG_INT_MODE_7 				 0xc21d4
5108c2ecf20Sopenharmony_ci#define CSDM_REG_AGG_INT_MODE_8 				 0xc21d8
5118c2ecf20Sopenharmony_ci#define CSDM_REG_AGG_INT_MODE_9 				 0xc21dc
5128c2ecf20Sopenharmony_ci/* [RW 13] The start address in the internal RAM for the cfc_rsp lcid */
5138c2ecf20Sopenharmony_ci#define CSDM_REG_CFC_RSP_START_ADDR				 0xc2008
5148c2ecf20Sopenharmony_ci/* [RW 16] The maximum value of the completion counter #0 */
5158c2ecf20Sopenharmony_ci#define CSDM_REG_CMP_COUNTER_MAX0				 0xc201c
5168c2ecf20Sopenharmony_ci/* [RW 16] The maximum value of the completion counter #1 */
5178c2ecf20Sopenharmony_ci#define CSDM_REG_CMP_COUNTER_MAX1				 0xc2020
5188c2ecf20Sopenharmony_ci/* [RW 16] The maximum value of the completion counter #2 */
5198c2ecf20Sopenharmony_ci#define CSDM_REG_CMP_COUNTER_MAX2				 0xc2024
5208c2ecf20Sopenharmony_ci/* [RW 16] The maximum value of the completion counter #3 */
5218c2ecf20Sopenharmony_ci#define CSDM_REG_CMP_COUNTER_MAX3				 0xc2028
5228c2ecf20Sopenharmony_ci/* [RW 13] The start address in the internal RAM for the completion
5238c2ecf20Sopenharmony_ci   counters. */
5248c2ecf20Sopenharmony_ci#define CSDM_REG_CMP_COUNTER_START_ADDR 			 0xc200c
5258c2ecf20Sopenharmony_ci/* [RW 32] Interrupt mask register #0 read/write */
5268c2ecf20Sopenharmony_ci#define CSDM_REG_CSDM_INT_MASK_0				 0xc229c
5278c2ecf20Sopenharmony_ci#define CSDM_REG_CSDM_INT_MASK_1				 0xc22ac
5288c2ecf20Sopenharmony_ci/* [R 32] Interrupt register #0 read */
5298c2ecf20Sopenharmony_ci#define CSDM_REG_CSDM_INT_STS_0 				 0xc2290
5308c2ecf20Sopenharmony_ci#define CSDM_REG_CSDM_INT_STS_1 				 0xc22a0
5318c2ecf20Sopenharmony_ci/* [RW 11] Parity mask register #0 read/write */
5328c2ecf20Sopenharmony_ci#define CSDM_REG_CSDM_PRTY_MASK 				 0xc22bc
5338c2ecf20Sopenharmony_ci/* [R 11] Parity register #0 read */
5348c2ecf20Sopenharmony_ci#define CSDM_REG_CSDM_PRTY_STS					 0xc22b0
5358c2ecf20Sopenharmony_ci/* [RC 11] Parity register #0 read clear */
5368c2ecf20Sopenharmony_ci#define CSDM_REG_CSDM_PRTY_STS_CLR				 0xc22b4
5378c2ecf20Sopenharmony_ci#define CSDM_REG_ENABLE_IN1					 0xc2238
5388c2ecf20Sopenharmony_ci#define CSDM_REG_ENABLE_IN2					 0xc223c
5398c2ecf20Sopenharmony_ci#define CSDM_REG_ENABLE_OUT1					 0xc2240
5408c2ecf20Sopenharmony_ci#define CSDM_REG_ENABLE_OUT2					 0xc2244
5418c2ecf20Sopenharmony_ci/* [RW 4] The initial number of messages that can be sent to the pxp control
5428c2ecf20Sopenharmony_ci   interface without receiving any ACK. */
5438c2ecf20Sopenharmony_ci#define CSDM_REG_INIT_CREDIT_PXP_CTRL				 0xc24bc
5448c2ecf20Sopenharmony_ci/* [ST 32] The number of ACK after placement messages received */
5458c2ecf20Sopenharmony_ci#define CSDM_REG_NUM_OF_ACK_AFTER_PLACE 			 0xc227c
5468c2ecf20Sopenharmony_ci/* [ST 32] The number of packet end messages received from the parser */
5478c2ecf20Sopenharmony_ci#define CSDM_REG_NUM_OF_PKT_END_MSG				 0xc2274
5488c2ecf20Sopenharmony_ci/* [ST 32] The number of requests received from the pxp async if */
5498c2ecf20Sopenharmony_ci#define CSDM_REG_NUM_OF_PXP_ASYNC_REQ				 0xc2278
5508c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 0 */
5518c2ecf20Sopenharmony_ci#define CSDM_REG_NUM_OF_Q0_CMD					 0xc2248
5528c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 10 */
5538c2ecf20Sopenharmony_ci#define CSDM_REG_NUM_OF_Q10_CMD 				 0xc226c
5548c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 11 */
5558c2ecf20Sopenharmony_ci#define CSDM_REG_NUM_OF_Q11_CMD 				 0xc2270
5568c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 1 */
5578c2ecf20Sopenharmony_ci#define CSDM_REG_NUM_OF_Q1_CMD					 0xc224c
5588c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 3 */
5598c2ecf20Sopenharmony_ci#define CSDM_REG_NUM_OF_Q3_CMD					 0xc2250
5608c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 4 */
5618c2ecf20Sopenharmony_ci#define CSDM_REG_NUM_OF_Q4_CMD					 0xc2254
5628c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 5 */
5638c2ecf20Sopenharmony_ci#define CSDM_REG_NUM_OF_Q5_CMD					 0xc2258
5648c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 6 */
5658c2ecf20Sopenharmony_ci#define CSDM_REG_NUM_OF_Q6_CMD					 0xc225c
5668c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 7 */
5678c2ecf20Sopenharmony_ci#define CSDM_REG_NUM_OF_Q7_CMD					 0xc2260
5688c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 8 */
5698c2ecf20Sopenharmony_ci#define CSDM_REG_NUM_OF_Q8_CMD					 0xc2264
5708c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 9 */
5718c2ecf20Sopenharmony_ci#define CSDM_REG_NUM_OF_Q9_CMD					 0xc2268
5728c2ecf20Sopenharmony_ci/* [RW 13] The start address in the internal RAM for queue counters */
5738c2ecf20Sopenharmony_ci#define CSDM_REG_Q_COUNTER_START_ADDR				 0xc2010
5748c2ecf20Sopenharmony_ci/* [R 1] pxp_ctrl rd_data fifo empty in sdm_dma_rsp block */
5758c2ecf20Sopenharmony_ci#define CSDM_REG_RSP_PXP_CTRL_RDATA_EMPTY			 0xc2548
5768c2ecf20Sopenharmony_ci/* [R 1] parser fifo empty in sdm_sync block */
5778c2ecf20Sopenharmony_ci#define CSDM_REG_SYNC_PARSER_EMPTY				 0xc2550
5788c2ecf20Sopenharmony_ci/* [R 1] parser serial fifo empty in sdm_sync block */
5798c2ecf20Sopenharmony_ci#define CSDM_REG_SYNC_SYNC_EMPTY				 0xc2558
5808c2ecf20Sopenharmony_ci/* [RW 32] Tick for timer counter. Applicable only when
5818c2ecf20Sopenharmony_ci   ~csdm_registers_timer_tick_enable.timer_tick_enable =1 */
5828c2ecf20Sopenharmony_ci#define CSDM_REG_TIMER_TICK					 0xc2000
5838c2ecf20Sopenharmony_ci/* [RW 5] The number of time_slots in the arbitration cycle */
5848c2ecf20Sopenharmony_ci#define CSEM_REG_ARB_CYCLE_SIZE 				 0x200034
5858c2ecf20Sopenharmony_ci/* [RW 3] The source that is associated with arbitration element 0. Source
5868c2ecf20Sopenharmony_ci   decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
5878c2ecf20Sopenharmony_ci   sleeping thread with priority 1; 4- sleeping thread with priority 2 */
5888c2ecf20Sopenharmony_ci#define CSEM_REG_ARB_ELEMENT0					 0x200020
5898c2ecf20Sopenharmony_ci/* [RW 3] The source that is associated with arbitration element 1. Source
5908c2ecf20Sopenharmony_ci   decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
5918c2ecf20Sopenharmony_ci   sleeping thread with priority 1; 4- sleeping thread with priority 2.
5928c2ecf20Sopenharmony_ci   Could not be equal to register ~csem_registers_arb_element0.arb_element0 */
5938c2ecf20Sopenharmony_ci#define CSEM_REG_ARB_ELEMENT1					 0x200024
5948c2ecf20Sopenharmony_ci/* [RW 3] The source that is associated with arbitration element 2. Source
5958c2ecf20Sopenharmony_ci   decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
5968c2ecf20Sopenharmony_ci   sleeping thread with priority 1; 4- sleeping thread with priority 2.
5978c2ecf20Sopenharmony_ci   Could not be equal to register ~csem_registers_arb_element0.arb_element0
5988c2ecf20Sopenharmony_ci   and ~csem_registers_arb_element1.arb_element1 */
5998c2ecf20Sopenharmony_ci#define CSEM_REG_ARB_ELEMENT2					 0x200028
6008c2ecf20Sopenharmony_ci/* [RW 3] The source that is associated with arbitration element 3. Source
6018c2ecf20Sopenharmony_ci   decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
6028c2ecf20Sopenharmony_ci   sleeping thread with priority 1; 4- sleeping thread with priority 2.Could
6038c2ecf20Sopenharmony_ci   not be equal to register ~csem_registers_arb_element0.arb_element0 and
6048c2ecf20Sopenharmony_ci   ~csem_registers_arb_element1.arb_element1 and
6058c2ecf20Sopenharmony_ci   ~csem_registers_arb_element2.arb_element2 */
6068c2ecf20Sopenharmony_ci#define CSEM_REG_ARB_ELEMENT3					 0x20002c
6078c2ecf20Sopenharmony_ci/* [RW 3] The source that is associated with arbitration element 4. Source
6088c2ecf20Sopenharmony_ci   decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
6098c2ecf20Sopenharmony_ci   sleeping thread with priority 1; 4- sleeping thread with priority 2.
6108c2ecf20Sopenharmony_ci   Could not be equal to register ~csem_registers_arb_element0.arb_element0
6118c2ecf20Sopenharmony_ci   and ~csem_registers_arb_element1.arb_element1 and
6128c2ecf20Sopenharmony_ci   ~csem_registers_arb_element2.arb_element2 and
6138c2ecf20Sopenharmony_ci   ~csem_registers_arb_element3.arb_element3 */
6148c2ecf20Sopenharmony_ci#define CSEM_REG_ARB_ELEMENT4					 0x200030
6158c2ecf20Sopenharmony_ci/* [RW 32] Interrupt mask register #0 read/write */
6168c2ecf20Sopenharmony_ci#define CSEM_REG_CSEM_INT_MASK_0				 0x200110
6178c2ecf20Sopenharmony_ci#define CSEM_REG_CSEM_INT_MASK_1				 0x200120
6188c2ecf20Sopenharmony_ci/* [R 32] Interrupt register #0 read */
6198c2ecf20Sopenharmony_ci#define CSEM_REG_CSEM_INT_STS_0 				 0x200104
6208c2ecf20Sopenharmony_ci#define CSEM_REG_CSEM_INT_STS_1 				 0x200114
6218c2ecf20Sopenharmony_ci/* [RW 32] Parity mask register #0 read/write */
6228c2ecf20Sopenharmony_ci#define CSEM_REG_CSEM_PRTY_MASK_0				 0x200130
6238c2ecf20Sopenharmony_ci#define CSEM_REG_CSEM_PRTY_MASK_1				 0x200140
6248c2ecf20Sopenharmony_ci/* [R 32] Parity register #0 read */
6258c2ecf20Sopenharmony_ci#define CSEM_REG_CSEM_PRTY_STS_0				 0x200124
6268c2ecf20Sopenharmony_ci#define CSEM_REG_CSEM_PRTY_STS_1				 0x200134
6278c2ecf20Sopenharmony_ci/* [RC 32] Parity register #0 read clear */
6288c2ecf20Sopenharmony_ci#define CSEM_REG_CSEM_PRTY_STS_CLR_0				 0x200128
6298c2ecf20Sopenharmony_ci#define CSEM_REG_CSEM_PRTY_STS_CLR_1				 0x200138
6308c2ecf20Sopenharmony_ci#define CSEM_REG_ENABLE_IN					 0x2000a4
6318c2ecf20Sopenharmony_ci#define CSEM_REG_ENABLE_OUT					 0x2000a8
6328c2ecf20Sopenharmony_ci/* [RW 32] This address space contains all registers and memories that are
6338c2ecf20Sopenharmony_ci   placed in SEM_FAST block. The SEM_FAST registers are described in
6348c2ecf20Sopenharmony_ci   appendix B. In order to access the sem_fast registers the base address
6358c2ecf20Sopenharmony_ci   ~fast_memory.fast_memory should be added to eachsem_fast register offset. */
6368c2ecf20Sopenharmony_ci#define CSEM_REG_FAST_MEMORY					 0x220000
6378c2ecf20Sopenharmony_ci/* [RW 1] Disables input messages from FIC0 May be updated during run_time
6388c2ecf20Sopenharmony_ci   by the microcode */
6398c2ecf20Sopenharmony_ci#define CSEM_REG_FIC0_DISABLE					 0x200224
6408c2ecf20Sopenharmony_ci/* [RW 1] Disables input messages from FIC1 May be updated during run_time
6418c2ecf20Sopenharmony_ci   by the microcode */
6428c2ecf20Sopenharmony_ci#define CSEM_REG_FIC1_DISABLE					 0x200234
6438c2ecf20Sopenharmony_ci/* [RW 15] Interrupt table Read and write access to it is not possible in
6448c2ecf20Sopenharmony_ci   the middle of the work */
6458c2ecf20Sopenharmony_ci#define CSEM_REG_INT_TABLE					 0x200400
6468c2ecf20Sopenharmony_ci/* [ST 24] Statistics register. The number of messages that entered through
6478c2ecf20Sopenharmony_ci   FIC0 */
6488c2ecf20Sopenharmony_ci#define CSEM_REG_MSG_NUM_FIC0					 0x200000
6498c2ecf20Sopenharmony_ci/* [ST 24] Statistics register. The number of messages that entered through
6508c2ecf20Sopenharmony_ci   FIC1 */
6518c2ecf20Sopenharmony_ci#define CSEM_REG_MSG_NUM_FIC1					 0x200004
6528c2ecf20Sopenharmony_ci/* [ST 24] Statistics register. The number of messages that were sent to
6538c2ecf20Sopenharmony_ci   FOC0 */
6548c2ecf20Sopenharmony_ci#define CSEM_REG_MSG_NUM_FOC0					 0x200008
6558c2ecf20Sopenharmony_ci/* [ST 24] Statistics register. The number of messages that were sent to
6568c2ecf20Sopenharmony_ci   FOC1 */
6578c2ecf20Sopenharmony_ci#define CSEM_REG_MSG_NUM_FOC1					 0x20000c
6588c2ecf20Sopenharmony_ci/* [ST 24] Statistics register. The number of messages that were sent to
6598c2ecf20Sopenharmony_ci   FOC2 */
6608c2ecf20Sopenharmony_ci#define CSEM_REG_MSG_NUM_FOC2					 0x200010
6618c2ecf20Sopenharmony_ci/* [ST 24] Statistics register. The number of messages that were sent to
6628c2ecf20Sopenharmony_ci   FOC3 */
6638c2ecf20Sopenharmony_ci#define CSEM_REG_MSG_NUM_FOC3					 0x200014
6648c2ecf20Sopenharmony_ci/* [RW 1] Disables input messages from the passive buffer May be updated
6658c2ecf20Sopenharmony_ci   during run_time by the microcode */
6668c2ecf20Sopenharmony_ci#define CSEM_REG_PAS_DISABLE					 0x20024c
6678c2ecf20Sopenharmony_ci/* [WB 128] Debug only. Passive buffer memory */
6688c2ecf20Sopenharmony_ci#define CSEM_REG_PASSIVE_BUFFER 				 0x202000
6698c2ecf20Sopenharmony_ci/* [WB 46] pram memory. B45 is parity; b[44:0] - data. */
6708c2ecf20Sopenharmony_ci#define CSEM_REG_PRAM						 0x240000
6718c2ecf20Sopenharmony_ci/* [R 16] Valid sleeping threads indication have bit per thread */
6728c2ecf20Sopenharmony_ci#define CSEM_REG_SLEEP_THREADS_VALID				 0x20026c
6738c2ecf20Sopenharmony_ci/* [R 1] EXT_STORE FIFO is empty in sem_slow_ls_ext */
6748c2ecf20Sopenharmony_ci#define CSEM_REG_SLOW_EXT_STORE_EMPTY				 0x2002a0
6758c2ecf20Sopenharmony_ci/* [RW 16] List of free threads . There is a bit per thread. */
6768c2ecf20Sopenharmony_ci#define CSEM_REG_THREADS_LIST					 0x2002e4
6778c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 0 */
6788c2ecf20Sopenharmony_ci#define CSEM_REG_TS_0_AS					 0x200038
6798c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 10 */
6808c2ecf20Sopenharmony_ci#define CSEM_REG_TS_10_AS					 0x200060
6818c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 11 */
6828c2ecf20Sopenharmony_ci#define CSEM_REG_TS_11_AS					 0x200064
6838c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 12 */
6848c2ecf20Sopenharmony_ci#define CSEM_REG_TS_12_AS					 0x200068
6858c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 13 */
6868c2ecf20Sopenharmony_ci#define CSEM_REG_TS_13_AS					 0x20006c
6878c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 14 */
6888c2ecf20Sopenharmony_ci#define CSEM_REG_TS_14_AS					 0x200070
6898c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 15 */
6908c2ecf20Sopenharmony_ci#define CSEM_REG_TS_15_AS					 0x200074
6918c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 16 */
6928c2ecf20Sopenharmony_ci#define CSEM_REG_TS_16_AS					 0x200078
6938c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 17 */
6948c2ecf20Sopenharmony_ci#define CSEM_REG_TS_17_AS					 0x20007c
6958c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 18 */
6968c2ecf20Sopenharmony_ci#define CSEM_REG_TS_18_AS					 0x200080
6978c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 1 */
6988c2ecf20Sopenharmony_ci#define CSEM_REG_TS_1_AS					 0x20003c
6998c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 2 */
7008c2ecf20Sopenharmony_ci#define CSEM_REG_TS_2_AS					 0x200040
7018c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 3 */
7028c2ecf20Sopenharmony_ci#define CSEM_REG_TS_3_AS					 0x200044
7038c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 4 */
7048c2ecf20Sopenharmony_ci#define CSEM_REG_TS_4_AS					 0x200048
7058c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 5 */
7068c2ecf20Sopenharmony_ci#define CSEM_REG_TS_5_AS					 0x20004c
7078c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 6 */
7088c2ecf20Sopenharmony_ci#define CSEM_REG_TS_6_AS					 0x200050
7098c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 7 */
7108c2ecf20Sopenharmony_ci#define CSEM_REG_TS_7_AS					 0x200054
7118c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 8 */
7128c2ecf20Sopenharmony_ci#define CSEM_REG_TS_8_AS					 0x200058
7138c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 9 */
7148c2ecf20Sopenharmony_ci#define CSEM_REG_TS_9_AS					 0x20005c
7158c2ecf20Sopenharmony_ci/* [W 7] VF or PF ID for reset error bit. Values 0-63 reset error bit for 64
7168c2ecf20Sopenharmony_ci * VF; values 64-67 reset error for 4 PF; values 68-127 are not valid. */
7178c2ecf20Sopenharmony_ci#define CSEM_REG_VFPF_ERR_NUM					 0x200380
7188c2ecf20Sopenharmony_ci/* [RW 1] Parity mask register #0 read/write */
7198c2ecf20Sopenharmony_ci#define DBG_REG_DBG_PRTY_MASK					 0xc0a8
7208c2ecf20Sopenharmony_ci/* [R 1] Parity register #0 read */
7218c2ecf20Sopenharmony_ci#define DBG_REG_DBG_PRTY_STS					 0xc09c
7228c2ecf20Sopenharmony_ci/* [RC 1] Parity register #0 read clear */
7238c2ecf20Sopenharmony_ci#define DBG_REG_DBG_PRTY_STS_CLR				 0xc0a0
7248c2ecf20Sopenharmony_ci/* [RW 1] When set the DMAE will process the commands as in E1.5. 1.The
7258c2ecf20Sopenharmony_ci * function that is used is always SRC-PCI; 2.VF_Valid = 0; 3.VFID=0;
7268c2ecf20Sopenharmony_ci * 4.Completion function=0; 5.Error handling=0 */
7278c2ecf20Sopenharmony_ci#define DMAE_REG_BACKWARD_COMP_EN				 0x10207c
7288c2ecf20Sopenharmony_ci/* [RW 32] Commands memory. The address to command X; row Y is to calculated
7298c2ecf20Sopenharmony_ci   as 14*X+Y. */
7308c2ecf20Sopenharmony_ci#define DMAE_REG_CMD_MEM					 0x102400
7318c2ecf20Sopenharmony_ci#define DMAE_REG_CMD_MEM_SIZE					 224
7328c2ecf20Sopenharmony_ci/* [RW 1] If 0 - the CRC-16c initial value is all zeroes; if 1 - the CRC-16c
7338c2ecf20Sopenharmony_ci   initial value is all ones. */
7348c2ecf20Sopenharmony_ci#define DMAE_REG_CRC16C_INIT					 0x10201c
7358c2ecf20Sopenharmony_ci/* [RW 1] If 0 - the CRC-16 T10 initial value is all zeroes; if 1 - the
7368c2ecf20Sopenharmony_ci   CRC-16 T10 initial value is all ones. */
7378c2ecf20Sopenharmony_ci#define DMAE_REG_CRC16T10_INIT					 0x102020
7388c2ecf20Sopenharmony_ci/* [RW 2] Interrupt mask register #0 read/write */
7398c2ecf20Sopenharmony_ci#define DMAE_REG_DMAE_INT_MASK					 0x102054
7408c2ecf20Sopenharmony_ci/* [RW 4] Parity mask register #0 read/write */
7418c2ecf20Sopenharmony_ci#define DMAE_REG_DMAE_PRTY_MASK 				 0x102064
7428c2ecf20Sopenharmony_ci/* [R 4] Parity register #0 read */
7438c2ecf20Sopenharmony_ci#define DMAE_REG_DMAE_PRTY_STS					 0x102058
7448c2ecf20Sopenharmony_ci/* [RC 4] Parity register #0 read clear */
7458c2ecf20Sopenharmony_ci#define DMAE_REG_DMAE_PRTY_STS_CLR				 0x10205c
7468c2ecf20Sopenharmony_ci/* [RW 1] Command 0 go. */
7478c2ecf20Sopenharmony_ci#define DMAE_REG_GO_C0						 0x102080
7488c2ecf20Sopenharmony_ci/* [RW 1] Command 1 go. */
7498c2ecf20Sopenharmony_ci#define DMAE_REG_GO_C1						 0x102084
7508c2ecf20Sopenharmony_ci/* [RW 1] Command 10 go. */
7518c2ecf20Sopenharmony_ci#define DMAE_REG_GO_C10 					 0x102088
7528c2ecf20Sopenharmony_ci/* [RW 1] Command 11 go. */
7538c2ecf20Sopenharmony_ci#define DMAE_REG_GO_C11 					 0x10208c
7548c2ecf20Sopenharmony_ci/* [RW 1] Command 12 go. */
7558c2ecf20Sopenharmony_ci#define DMAE_REG_GO_C12 					 0x102090
7568c2ecf20Sopenharmony_ci/* [RW 1] Command 13 go. */
7578c2ecf20Sopenharmony_ci#define DMAE_REG_GO_C13 					 0x102094
7588c2ecf20Sopenharmony_ci/* [RW 1] Command 14 go. */
7598c2ecf20Sopenharmony_ci#define DMAE_REG_GO_C14 					 0x102098
7608c2ecf20Sopenharmony_ci/* [RW 1] Command 15 go. */
7618c2ecf20Sopenharmony_ci#define DMAE_REG_GO_C15 					 0x10209c
7628c2ecf20Sopenharmony_ci/* [RW 1] Command 2 go. */
7638c2ecf20Sopenharmony_ci#define DMAE_REG_GO_C2						 0x1020a0
7648c2ecf20Sopenharmony_ci/* [RW 1] Command 3 go. */
7658c2ecf20Sopenharmony_ci#define DMAE_REG_GO_C3						 0x1020a4
7668c2ecf20Sopenharmony_ci/* [RW 1] Command 4 go. */
7678c2ecf20Sopenharmony_ci#define DMAE_REG_GO_C4						 0x1020a8
7688c2ecf20Sopenharmony_ci/* [RW 1] Command 5 go. */
7698c2ecf20Sopenharmony_ci#define DMAE_REG_GO_C5						 0x1020ac
7708c2ecf20Sopenharmony_ci/* [RW 1] Command 6 go. */
7718c2ecf20Sopenharmony_ci#define DMAE_REG_GO_C6						 0x1020b0
7728c2ecf20Sopenharmony_ci/* [RW 1] Command 7 go. */
7738c2ecf20Sopenharmony_ci#define DMAE_REG_GO_C7						 0x1020b4
7748c2ecf20Sopenharmony_ci/* [RW 1] Command 8 go. */
7758c2ecf20Sopenharmony_ci#define DMAE_REG_GO_C8						 0x1020b8
7768c2ecf20Sopenharmony_ci/* [RW 1] Command 9 go. */
7778c2ecf20Sopenharmony_ci#define DMAE_REG_GO_C9						 0x1020bc
7788c2ecf20Sopenharmony_ci/* [RW 1] DMAE GRC Interface (Target; aster) enable. If 0 - the acknowledge
7798c2ecf20Sopenharmony_ci   input is disregarded; valid is deasserted; all other signals are treated
7808c2ecf20Sopenharmony_ci   as usual; if 1 - normal activity. */
7818c2ecf20Sopenharmony_ci#define DMAE_REG_GRC_IFEN					 0x102008
7828c2ecf20Sopenharmony_ci/* [RW 1] DMAE PCI Interface (Request; ead; rite) enable. If 0 - the
7838c2ecf20Sopenharmony_ci   acknowledge input is disregarded; valid is deasserted; full is asserted;
7848c2ecf20Sopenharmony_ci   all other signals are treated as usual; if 1 - normal activity. */
7858c2ecf20Sopenharmony_ci#define DMAE_REG_PCI_IFEN					 0x102004
7868c2ecf20Sopenharmony_ci/* [RW 4] DMAE- PCI Request Interface initial credit. Write writes the
7878c2ecf20Sopenharmony_ci   initial value to the credit counter; related to the address. Read returns
7888c2ecf20Sopenharmony_ci   the current value of the counter. */
7898c2ecf20Sopenharmony_ci#define DMAE_REG_PXP_REQ_INIT_CRD				 0x1020c0
7908c2ecf20Sopenharmony_ci/* [RW 8] Aggregation command. */
7918c2ecf20Sopenharmony_ci#define DORQ_REG_AGG_CMD0					 0x170060
7928c2ecf20Sopenharmony_ci/* [RW 8] Aggregation command. */
7938c2ecf20Sopenharmony_ci#define DORQ_REG_AGG_CMD1					 0x170064
7948c2ecf20Sopenharmony_ci/* [RW 8] Aggregation command. */
7958c2ecf20Sopenharmony_ci#define DORQ_REG_AGG_CMD2					 0x170068
7968c2ecf20Sopenharmony_ci/* [RW 8] Aggregation command. */
7978c2ecf20Sopenharmony_ci#define DORQ_REG_AGG_CMD3					 0x17006c
7988c2ecf20Sopenharmony_ci/* [RW 28] UCM Header. */
7998c2ecf20Sopenharmony_ci#define DORQ_REG_CMHEAD_RX					 0x170050
8008c2ecf20Sopenharmony_ci/* [RW 32] Doorbell address for RBC doorbells (function 0). */
8018c2ecf20Sopenharmony_ci#define DORQ_REG_DB_ADDR0					 0x17008c
8028c2ecf20Sopenharmony_ci/* [RW 5] Interrupt mask register #0 read/write */
8038c2ecf20Sopenharmony_ci#define DORQ_REG_DORQ_INT_MASK					 0x170180
8048c2ecf20Sopenharmony_ci/* [R 5] Interrupt register #0 read */
8058c2ecf20Sopenharmony_ci#define DORQ_REG_DORQ_INT_STS					 0x170174
8068c2ecf20Sopenharmony_ci/* [RC 5] Interrupt register #0 read clear */
8078c2ecf20Sopenharmony_ci#define DORQ_REG_DORQ_INT_STS_CLR				 0x170178
8088c2ecf20Sopenharmony_ci/* [RW 2] Parity mask register #0 read/write */
8098c2ecf20Sopenharmony_ci#define DORQ_REG_DORQ_PRTY_MASK 				 0x170190
8108c2ecf20Sopenharmony_ci/* [R 2] Parity register #0 read */
8118c2ecf20Sopenharmony_ci#define DORQ_REG_DORQ_PRTY_STS					 0x170184
8128c2ecf20Sopenharmony_ci/* [RC 2] Parity register #0 read clear */
8138c2ecf20Sopenharmony_ci#define DORQ_REG_DORQ_PRTY_STS_CLR				 0x170188
8148c2ecf20Sopenharmony_ci/* [RW 8] The address to write the DPM CID to STORM. */
8158c2ecf20Sopenharmony_ci#define DORQ_REG_DPM_CID_ADDR					 0x170044
8168c2ecf20Sopenharmony_ci/* [RW 5] The DPM mode CID extraction offset. */
8178c2ecf20Sopenharmony_ci#define DORQ_REG_DPM_CID_OFST					 0x170030
8188c2ecf20Sopenharmony_ci/* [RW 12] The threshold of the DQ FIFO to send the almost full interrupt. */
8198c2ecf20Sopenharmony_ci#define DORQ_REG_DQ_FIFO_AFULL_TH				 0x17007c
8208c2ecf20Sopenharmony_ci/* [RW 12] The threshold of the DQ FIFO to send the full interrupt. */
8218c2ecf20Sopenharmony_ci#define DORQ_REG_DQ_FIFO_FULL_TH				 0x170078
8228c2ecf20Sopenharmony_ci/* [R 13] Current value of the DQ FIFO fill level according to following
8238c2ecf20Sopenharmony_ci   pointer. The range is 0 - 256 FIFO rows; where each row stands for the
8248c2ecf20Sopenharmony_ci   doorbell. */
8258c2ecf20Sopenharmony_ci#define DORQ_REG_DQ_FILL_LVLF					 0x1700a4
8268c2ecf20Sopenharmony_ci/* [R 1] DQ FIFO full status. Is set; when FIFO filling level is more or
8278c2ecf20Sopenharmony_ci   equal to full threshold; reset on full clear. */
8288c2ecf20Sopenharmony_ci#define DORQ_REG_DQ_FULL_ST					 0x1700c0
8298c2ecf20Sopenharmony_ci/* [RW 28] The value sent to CM header in the case of CFC load error. */
8308c2ecf20Sopenharmony_ci#define DORQ_REG_ERR_CMHEAD					 0x170058
8318c2ecf20Sopenharmony_ci#define DORQ_REG_IF_EN						 0x170004
8328c2ecf20Sopenharmony_ci#define DORQ_REG_MAX_RVFID_SIZE				 0x1701ec
8338c2ecf20Sopenharmony_ci#define DORQ_REG_MODE_ACT					 0x170008
8348c2ecf20Sopenharmony_ci/* [RW 5] The normal mode CID extraction offset. */
8358c2ecf20Sopenharmony_ci#define DORQ_REG_NORM_CID_OFST					 0x17002c
8368c2ecf20Sopenharmony_ci/* [RW 28] TCM Header when only TCP context is loaded. */
8378c2ecf20Sopenharmony_ci#define DORQ_REG_NORM_CMHEAD_TX 				 0x17004c
8388c2ecf20Sopenharmony_ci/* [RW 3] The number of simultaneous outstanding requests to Context Fetch
8398c2ecf20Sopenharmony_ci   Interface. */
8408c2ecf20Sopenharmony_ci#define DORQ_REG_OUTST_REQ					 0x17003c
8418c2ecf20Sopenharmony_ci#define DORQ_REG_PF_USAGE_CNT					 0x1701d0
8428c2ecf20Sopenharmony_ci#define DORQ_REG_REGN						 0x170038
8438c2ecf20Sopenharmony_ci/* [R 4] Current value of response A counter credit. Initial credit is
8448c2ecf20Sopenharmony_ci   configured through write to ~dorq_registers_rsp_init_crd.rsp_init_crd
8458c2ecf20Sopenharmony_ci   register. */
8468c2ecf20Sopenharmony_ci#define DORQ_REG_RSPA_CRD_CNT					 0x1700ac
8478c2ecf20Sopenharmony_ci/* [R 4] Current value of response B counter credit. Initial credit is
8488c2ecf20Sopenharmony_ci   configured through write to ~dorq_registers_rsp_init_crd.rsp_init_crd
8498c2ecf20Sopenharmony_ci   register. */
8508c2ecf20Sopenharmony_ci#define DORQ_REG_RSPB_CRD_CNT					 0x1700b0
8518c2ecf20Sopenharmony_ci/* [RW 4] The initial credit at the Doorbell Response Interface. The write
8528c2ecf20Sopenharmony_ci   writes the same initial credit to the rspa_crd_cnt and rspb_crd_cnt. The
8538c2ecf20Sopenharmony_ci   read reads this written value. */
8548c2ecf20Sopenharmony_ci#define DORQ_REG_RSP_INIT_CRD					 0x170048
8558c2ecf20Sopenharmony_ci#define DORQ_REG_RSPB_CRD_CNT					 0x1700b0
8568c2ecf20Sopenharmony_ci#define DORQ_REG_VF_NORM_CID_BASE				 0x1701a0
8578c2ecf20Sopenharmony_ci#define DORQ_REG_VF_NORM_CID_OFST				 0x1701f4
8588c2ecf20Sopenharmony_ci#define DORQ_REG_VF_NORM_CID_WND_SIZE				 0x1701a4
8598c2ecf20Sopenharmony_ci#define DORQ_REG_VF_NORM_MAX_CID_COUNT				 0x1701e4
8608c2ecf20Sopenharmony_ci#define DORQ_REG_VF_NORM_VF_BASE				 0x1701a8
8618c2ecf20Sopenharmony_ci/* [RW 10] VF type validation mask value */
8628c2ecf20Sopenharmony_ci#define DORQ_REG_VF_TYPE_MASK_0					 0x170218
8638c2ecf20Sopenharmony_ci/* [RW 17] VF type validation Min MCID value */
8648c2ecf20Sopenharmony_ci#define DORQ_REG_VF_TYPE_MAX_MCID_0				 0x1702d8
8658c2ecf20Sopenharmony_ci/* [RW 17] VF type validation Max MCID value */
8668c2ecf20Sopenharmony_ci#define DORQ_REG_VF_TYPE_MIN_MCID_0				 0x170298
8678c2ecf20Sopenharmony_ci/* [RW 10] VF type validation comp value */
8688c2ecf20Sopenharmony_ci#define DORQ_REG_VF_TYPE_VALUE_0				 0x170258
8698c2ecf20Sopenharmony_ci#define DORQ_REG_VF_USAGE_CT_LIMIT				 0x170340
8708c2ecf20Sopenharmony_ci
8718c2ecf20Sopenharmony_ci/* [RW 4] Initial activity counter value on the load request; when the
8728c2ecf20Sopenharmony_ci   shortcut is done. */
8738c2ecf20Sopenharmony_ci#define DORQ_REG_SHRT_ACT_CNT					 0x170070
8748c2ecf20Sopenharmony_ci/* [RW 28] TCM Header when both ULP and TCP context is loaded. */
8758c2ecf20Sopenharmony_ci#define DORQ_REG_SHRT_CMHEAD					 0x170054
8768c2ecf20Sopenharmony_ci#define HC_CONFIG_0_REG_ATTN_BIT_EN_0				 (0x1<<4)
8778c2ecf20Sopenharmony_ci#define HC_CONFIG_0_REG_BLOCK_DISABLE_0				 (0x1<<0)
8788c2ecf20Sopenharmony_ci#define HC_CONFIG_0_REG_INT_LINE_EN_0				 (0x1<<3)
8798c2ecf20Sopenharmony_ci#define HC_CONFIG_0_REG_MSI_ATTN_EN_0				 (0x1<<7)
8808c2ecf20Sopenharmony_ci#define HC_CONFIG_0_REG_MSI_MSIX_INT_EN_0			 (0x1<<2)
8818c2ecf20Sopenharmony_ci#define HC_CONFIG_0_REG_SINGLE_ISR_EN_0				 (0x1<<1)
8828c2ecf20Sopenharmony_ci#define HC_CONFIG_1_REG_BLOCK_DISABLE_1				 (0x1<<0)
8838c2ecf20Sopenharmony_ci#define DORQ_REG_VF_USAGE_CNT					 0x170320
8848c2ecf20Sopenharmony_ci#define HC_REG_AGG_INT_0					 0x108050
8858c2ecf20Sopenharmony_ci#define HC_REG_AGG_INT_1					 0x108054
8868c2ecf20Sopenharmony_ci#define HC_REG_ATTN_BIT 					 0x108120
8878c2ecf20Sopenharmony_ci#define HC_REG_ATTN_IDX 					 0x108100
8888c2ecf20Sopenharmony_ci#define HC_REG_ATTN_MSG0_ADDR_L 				 0x108018
8898c2ecf20Sopenharmony_ci#define HC_REG_ATTN_MSG1_ADDR_L 				 0x108020
8908c2ecf20Sopenharmony_ci#define HC_REG_ATTN_NUM_P0					 0x108038
8918c2ecf20Sopenharmony_ci#define HC_REG_ATTN_NUM_P1					 0x10803c
8928c2ecf20Sopenharmony_ci#define HC_REG_COMMAND_REG					 0x108180
8938c2ecf20Sopenharmony_ci#define HC_REG_CONFIG_0 					 0x108000
8948c2ecf20Sopenharmony_ci#define HC_REG_CONFIG_1 					 0x108004
8958c2ecf20Sopenharmony_ci#define HC_REG_FUNC_NUM_P0					 0x1080ac
8968c2ecf20Sopenharmony_ci#define HC_REG_FUNC_NUM_P1					 0x1080b0
8978c2ecf20Sopenharmony_ci/* [RW 3] Parity mask register #0 read/write */
8988c2ecf20Sopenharmony_ci#define HC_REG_HC_PRTY_MASK					 0x1080a0
8998c2ecf20Sopenharmony_ci/* [R 3] Parity register #0 read */
9008c2ecf20Sopenharmony_ci#define HC_REG_HC_PRTY_STS					 0x108094
9018c2ecf20Sopenharmony_ci/* [RC 3] Parity register #0 read clear */
9028c2ecf20Sopenharmony_ci#define HC_REG_HC_PRTY_STS_CLR					 0x108098
9038c2ecf20Sopenharmony_ci#define HC_REG_INT_MASK						 0x108108
9048c2ecf20Sopenharmony_ci#define HC_REG_LEADING_EDGE_0					 0x108040
9058c2ecf20Sopenharmony_ci#define HC_REG_LEADING_EDGE_1					 0x108048
9068c2ecf20Sopenharmony_ci#define HC_REG_MAIN_MEMORY					 0x108800
9078c2ecf20Sopenharmony_ci#define HC_REG_MAIN_MEMORY_SIZE					 152
9088c2ecf20Sopenharmony_ci#define HC_REG_P0_PROD_CONS					 0x108200
9098c2ecf20Sopenharmony_ci#define HC_REG_P1_PROD_CONS					 0x108400
9108c2ecf20Sopenharmony_ci#define HC_REG_PBA_COMMAND					 0x108140
9118c2ecf20Sopenharmony_ci#define HC_REG_PCI_CONFIG_0					 0x108010
9128c2ecf20Sopenharmony_ci#define HC_REG_PCI_CONFIG_1					 0x108014
9138c2ecf20Sopenharmony_ci#define HC_REG_STATISTIC_COUNTERS				 0x109000
9148c2ecf20Sopenharmony_ci#define HC_REG_TRAILING_EDGE_0					 0x108044
9158c2ecf20Sopenharmony_ci#define HC_REG_TRAILING_EDGE_1					 0x10804c
9168c2ecf20Sopenharmony_ci#define HC_REG_UC_RAM_ADDR_0					 0x108028
9178c2ecf20Sopenharmony_ci#define HC_REG_UC_RAM_ADDR_1					 0x108030
9188c2ecf20Sopenharmony_ci#define HC_REG_USTORM_ADDR_FOR_COALESCE 			 0x108068
9198c2ecf20Sopenharmony_ci#define HC_REG_VQID_0						 0x108008
9208c2ecf20Sopenharmony_ci#define HC_REG_VQID_1						 0x10800c
9218c2ecf20Sopenharmony_ci#define IGU_BLOCK_CONFIGURATION_REG_BACKWARD_COMP_EN		 (0x1<<1)
9228c2ecf20Sopenharmony_ci#define IGU_BLOCK_CONFIGURATION_REG_BLOCK_ENABLE		 (0x1<<0)
9238c2ecf20Sopenharmony_ci#define IGU_REG_ATTENTION_ACK_BITS				 0x130108
9248c2ecf20Sopenharmony_ci/* [R 4] Debug: attn_fsm */
9258c2ecf20Sopenharmony_ci#define IGU_REG_ATTN_FSM					 0x130054
9268c2ecf20Sopenharmony_ci#define IGU_REG_ATTN_MSG_ADDR_H				 0x13011c
9278c2ecf20Sopenharmony_ci#define IGU_REG_ATTN_MSG_ADDR_L				 0x130120
9288c2ecf20Sopenharmony_ci/* [R 4] Debug: [3] - attention write done message is pending (0-no pending;
9298c2ecf20Sopenharmony_ci * 1-pending). [2:0] = PFID. Pending means attention message was sent; but
9308c2ecf20Sopenharmony_ci * write done didn't receive. */
9318c2ecf20Sopenharmony_ci#define IGU_REG_ATTN_WRITE_DONE_PENDING			 0x130030
9328c2ecf20Sopenharmony_ci#define IGU_REG_BLOCK_CONFIGURATION				 0x130000
9338c2ecf20Sopenharmony_ci#define IGU_REG_COMMAND_REG_32LSB_DATA				 0x130124
9348c2ecf20Sopenharmony_ci#define IGU_REG_COMMAND_REG_CTRL				 0x13012c
9358c2ecf20Sopenharmony_ci/* [WB_R 32] Cleanup bit status per SB. 1 = cleanup is set. 0 = cleanup bit
9368c2ecf20Sopenharmony_ci * is clear. The bits in this registers are set and clear via the producer
9378c2ecf20Sopenharmony_ci * command. Data valid only in addresses 0-4. all the rest are zero. */
9388c2ecf20Sopenharmony_ci#define IGU_REG_CSTORM_TYPE_0_SB_CLEANUP			 0x130200
9398c2ecf20Sopenharmony_ci/* [R 5] Debug: ctrl_fsm */
9408c2ecf20Sopenharmony_ci#define IGU_REG_CTRL_FSM					 0x130064
9418c2ecf20Sopenharmony_ci/* [R 1] data available for error memory. If this bit is clear do not red
9428c2ecf20Sopenharmony_ci * from error_handling_memory. */
9438c2ecf20Sopenharmony_ci#define IGU_REG_ERROR_HANDLING_DATA_VALID			 0x130130
9448c2ecf20Sopenharmony_ci/* [RW 11] Parity mask register #0 read/write */
9458c2ecf20Sopenharmony_ci#define IGU_REG_IGU_PRTY_MASK					 0x1300a8
9468c2ecf20Sopenharmony_ci/* [R 11] Parity register #0 read */
9478c2ecf20Sopenharmony_ci#define IGU_REG_IGU_PRTY_STS					 0x13009c
9488c2ecf20Sopenharmony_ci/* [RC 11] Parity register #0 read clear */
9498c2ecf20Sopenharmony_ci#define IGU_REG_IGU_PRTY_STS_CLR				 0x1300a0
9508c2ecf20Sopenharmony_ci/* [R 4] Debug: int_handle_fsm */
9518c2ecf20Sopenharmony_ci#define IGU_REG_INT_HANDLE_FSM					 0x130050
9528c2ecf20Sopenharmony_ci#define IGU_REG_LEADING_EDGE_LATCH				 0x130134
9538c2ecf20Sopenharmony_ci/* [RW 14] mapping CAM; relevant for E2 operating mode only. [0] - valid.
9548c2ecf20Sopenharmony_ci * [6:1] - vector number; [13:7] - FID (if VF - [13] = 0; [12:7] = VF
9558c2ecf20Sopenharmony_ci * number; if PF - [13] = 1; [12:10] = 0; [9:7] = PF number); */
9568c2ecf20Sopenharmony_ci#define IGU_REG_MAPPING_MEMORY					 0x131000
9578c2ecf20Sopenharmony_ci#define IGU_REG_MAPPING_MEMORY_SIZE				 136
9588c2ecf20Sopenharmony_ci#define IGU_REG_PBA_STATUS_LSB					 0x130138
9598c2ecf20Sopenharmony_ci#define IGU_REG_PBA_STATUS_MSB					 0x13013c
9608c2ecf20Sopenharmony_ci#define IGU_REG_PCI_PF_MSI_EN					 0x130140
9618c2ecf20Sopenharmony_ci#define IGU_REG_PCI_PF_MSIX_EN					 0x130144
9628c2ecf20Sopenharmony_ci#define IGU_REG_PCI_PF_MSIX_FUNC_MASK				 0x130148
9638c2ecf20Sopenharmony_ci/* [WB_R 32] Each bit represent the pending bits status for that SB. 0 = no
9648c2ecf20Sopenharmony_ci * pending; 1 = pending. Pendings means interrupt was asserted; and write
9658c2ecf20Sopenharmony_ci * done was not received. Data valid only in addresses 0-4. all the rest are
9668c2ecf20Sopenharmony_ci * zero. */
9678c2ecf20Sopenharmony_ci#define IGU_REG_PENDING_BITS_STATUS				 0x130300
9688c2ecf20Sopenharmony_ci#define IGU_REG_PF_CONFIGURATION				 0x130154
9698c2ecf20Sopenharmony_ci/* [RW 20] producers only. E2 mode: address 0-135 match to the mapping
9708c2ecf20Sopenharmony_ci * memory; 136 - PF0 default prod; 137 PF1 default prod; 138 - PF2 default
9718c2ecf20Sopenharmony_ci * prod; 139 PF3 default prod; 140 - PF0 - ATTN prod; 141 - PF1 - ATTN prod;
9728c2ecf20Sopenharmony_ci * 142 - PF2 - ATTN prod; 143 - PF3 - ATTN prod; 144-147 reserved. E1.5 mode
9738c2ecf20Sopenharmony_ci * - In backward compatible mode; for non default SB; each even line in the
9748c2ecf20Sopenharmony_ci * memory holds the U producer and each odd line hold the C producer. The
9758c2ecf20Sopenharmony_ci * first 128 producer are for NDSB (PF0 - 0-31; PF1 - 32-63 and so on). The
9768c2ecf20Sopenharmony_ci * last 20 producers are for the DSB for each PF. each PF has five segments
9778c2ecf20Sopenharmony_ci * (the order inside each segment is PF0; PF1; PF2; PF3) - 128-131 U prods;
9788c2ecf20Sopenharmony_ci * 132-135 C prods; 136-139 X prods; 140-143 T prods; 144-147 ATTN prods; */
9798c2ecf20Sopenharmony_ci#define IGU_REG_PROD_CONS_MEMORY				 0x132000
9808c2ecf20Sopenharmony_ci/* [R 3] Debug: pxp_arb_fsm */
9818c2ecf20Sopenharmony_ci#define IGU_REG_PXP_ARB_FSM					 0x130068
9828c2ecf20Sopenharmony_ci/* [RW 6] Write one for each bit will reset the appropriate memory. When the
9838c2ecf20Sopenharmony_ci * memory reset finished the appropriate bit will be clear. Bit 0 - mapping
9848c2ecf20Sopenharmony_ci * memory; Bit 1 - SB memory; Bit 2 - SB interrupt and mask register; Bit 3
9858c2ecf20Sopenharmony_ci * - MSIX memory; Bit 4 - PBA memory; Bit 5 - statistics; */
9868c2ecf20Sopenharmony_ci#define IGU_REG_RESET_MEMORIES					 0x130158
9878c2ecf20Sopenharmony_ci/* [R 4] Debug: sb_ctrl_fsm */
9888c2ecf20Sopenharmony_ci#define IGU_REG_SB_CTRL_FSM					 0x13004c
9898c2ecf20Sopenharmony_ci#define IGU_REG_SB_INT_BEFORE_MASK_LSB				 0x13015c
9908c2ecf20Sopenharmony_ci#define IGU_REG_SB_INT_BEFORE_MASK_MSB				 0x130160
9918c2ecf20Sopenharmony_ci#define IGU_REG_SB_MASK_LSB					 0x130164
9928c2ecf20Sopenharmony_ci#define IGU_REG_SB_MASK_MSB					 0x130168
9938c2ecf20Sopenharmony_ci/* [RW 16] Number of command that were dropped without causing an interrupt
9948c2ecf20Sopenharmony_ci * due to: read access for WO BAR address; or write access for RO BAR
9958c2ecf20Sopenharmony_ci * address or any access for reserved address or PCI function error is set
9968c2ecf20Sopenharmony_ci * and address is not MSIX; PBA or cleanup */
9978c2ecf20Sopenharmony_ci#define IGU_REG_SILENT_DROP					 0x13016c
9988c2ecf20Sopenharmony_ci/* [RW 10] Number of MSI/MSIX/ATTN messages sent for the function: 0-63 -
9998c2ecf20Sopenharmony_ci * number of MSIX messages per VF; 64-67 - number of MSI/MSIX messages per
10008c2ecf20Sopenharmony_ci * PF; 68-71 number of ATTN messages per PF */
10018c2ecf20Sopenharmony_ci#define IGU_REG_STATISTIC_NUM_MESSAGE_SENT			 0x130800
10028c2ecf20Sopenharmony_ci/* [RW 32] Number of cycles the timer mask masking the IGU interrupt when a
10038c2ecf20Sopenharmony_ci * timer mask command arrives. Value must be bigger than 100. */
10048c2ecf20Sopenharmony_ci#define IGU_REG_TIMER_MASKING_VALUE				 0x13003c
10058c2ecf20Sopenharmony_ci#define IGU_REG_TRAILING_EDGE_LATCH				 0x130104
10068c2ecf20Sopenharmony_ci#define IGU_REG_VF_CONFIGURATION				 0x130170
10078c2ecf20Sopenharmony_ci/* [WB_R 32] Each bit represent write done pending bits status for that SB
10088c2ecf20Sopenharmony_ci * (MSI/MSIX message was sent and write done was not received yet). 0 =
10098c2ecf20Sopenharmony_ci * clear; 1 = set. Data valid only in addresses 0-4. all the rest are zero. */
10108c2ecf20Sopenharmony_ci#define IGU_REG_WRITE_DONE_PENDING				 0x130480
10118c2ecf20Sopenharmony_ci#define MCP_A_REG_MCPR_SCRATCH					 0x3a0000
10128c2ecf20Sopenharmony_ci#define MCP_REG_MCPR_ACCESS_LOCK				 0x8009c
10138c2ecf20Sopenharmony_ci#define MCP_REG_MCPR_CPU_PROGRAM_COUNTER			 0x8501c
10148c2ecf20Sopenharmony_ci#define MCP_REG_MCPR_GP_INPUTS					 0x800c0
10158c2ecf20Sopenharmony_ci#define MCP_REG_MCPR_GP_OENABLE					 0x800c8
10168c2ecf20Sopenharmony_ci#define MCP_REG_MCPR_GP_OUTPUTS					 0x800c4
10178c2ecf20Sopenharmony_ci#define MCP_REG_MCPR_IMC_COMMAND				 0x85900
10188c2ecf20Sopenharmony_ci#define MCP_REG_MCPR_IMC_DATAREG0				 0x85920
10198c2ecf20Sopenharmony_ci#define MCP_REG_MCPR_IMC_SLAVE_CONTROL				 0x85904
10208c2ecf20Sopenharmony_ci#define MCP_REG_MCPR_CPU_PROGRAM_COUNTER			 0x8501c
10218c2ecf20Sopenharmony_ci#define MCP_REG_MCPR_NVM_ACCESS_ENABLE				 0x86424
10228c2ecf20Sopenharmony_ci#define MCP_REG_MCPR_NVM_ADDR					 0x8640c
10238c2ecf20Sopenharmony_ci#define MCP_REG_MCPR_NVM_CFG4					 0x8642c
10248c2ecf20Sopenharmony_ci#define MCP_REG_MCPR_NVM_COMMAND				 0x86400
10258c2ecf20Sopenharmony_ci#define MCP_REG_MCPR_NVM_READ					 0x86410
10268c2ecf20Sopenharmony_ci#define MCP_REG_MCPR_NVM_SW_ARB 				 0x86420
10278c2ecf20Sopenharmony_ci#define MCP_REG_MCPR_NVM_WRITE					 0x86408
10288c2ecf20Sopenharmony_ci#define MCP_REG_MCPR_SCRATCH					 0xa0000
10298c2ecf20Sopenharmony_ci#define MISC_AEU_GENERAL_MASK_REG_AEU_NIG_CLOSE_MASK		 (0x1<<1)
10308c2ecf20Sopenharmony_ci#define MISC_AEU_GENERAL_MASK_REG_AEU_PXP_CLOSE_MASK		 (0x1<<0)
10318c2ecf20Sopenharmony_ci/* [R 32] read first 32 bit after inversion of function 0. mapped as
10328c2ecf20Sopenharmony_ci   follows: [0] NIG attention for function0; [1] NIG attention for
10338c2ecf20Sopenharmony_ci   function1; [2] GPIO1 mcp; [3] GPIO2 mcp; [4] GPIO3 mcp; [5] GPIO4 mcp;
10348c2ecf20Sopenharmony_ci   [6] GPIO1 function 1; [7] GPIO2 function 1; [8] GPIO3 function 1; [9]
10358c2ecf20Sopenharmony_ci   GPIO4 function 1; [10] PCIE glue/PXP VPD event function0; [11] PCIE
10368c2ecf20Sopenharmony_ci   glue/PXP VPD event function1; [12] PCIE glue/PXP Expansion ROM event0;
10378c2ecf20Sopenharmony_ci   [13] PCIE glue/PXP Expansion ROM event1; [14] SPIO4; [15] SPIO5; [16]
10388c2ecf20Sopenharmony_ci   MSI/X indication for mcp; [17] MSI/X indication for function 1; [18] BRB
10398c2ecf20Sopenharmony_ci   Parity error; [19] BRB Hw interrupt; [20] PRS Parity error; [21] PRS Hw
10408c2ecf20Sopenharmony_ci   interrupt; [22] SRC Parity error; [23] SRC Hw interrupt; [24] TSDM Parity
10418c2ecf20Sopenharmony_ci   error; [25] TSDM Hw interrupt; [26] TCM Parity error; [27] TCM Hw
10428c2ecf20Sopenharmony_ci   interrupt; [28] TSEMI Parity error; [29] TSEMI Hw interrupt; [30] PBF
10438c2ecf20Sopenharmony_ci   Parity error; [31] PBF Hw interrupt; */
10448c2ecf20Sopenharmony_ci#define MISC_REG_AEU_AFTER_INVERT_1_FUNC_0			 0xa42c
10458c2ecf20Sopenharmony_ci#define MISC_REG_AEU_AFTER_INVERT_1_FUNC_1			 0xa430
10468c2ecf20Sopenharmony_ci/* [R 32] read first 32 bit after inversion of mcp. mapped as follows: [0]
10478c2ecf20Sopenharmony_ci   NIG attention for function0; [1] NIG attention for function1; [2] GPIO1
10488c2ecf20Sopenharmony_ci   mcp; [3] GPIO2 mcp; [4] GPIO3 mcp; [5] GPIO4 mcp; [6] GPIO1 function 1;
10498c2ecf20Sopenharmony_ci   [7] GPIO2 function 1; [8] GPIO3 function 1; [9] GPIO4 function 1; [10]
10508c2ecf20Sopenharmony_ci   PCIE glue/PXP VPD event function0; [11] PCIE glue/PXP VPD event
10518c2ecf20Sopenharmony_ci   function1; [12] PCIE glue/PXP Expansion ROM event0; [13] PCIE glue/PXP
10528c2ecf20Sopenharmony_ci   Expansion ROM event1; [14] SPIO4; [15] SPIO5; [16] MSI/X indication for
10538c2ecf20Sopenharmony_ci   mcp; [17] MSI/X indication for function 1; [18] BRB Parity error; [19]
10548c2ecf20Sopenharmony_ci   BRB Hw interrupt; [20] PRS Parity error; [21] PRS Hw interrupt; [22] SRC
10558c2ecf20Sopenharmony_ci   Parity error; [23] SRC Hw interrupt; [24] TSDM Parity error; [25] TSDM Hw
10568c2ecf20Sopenharmony_ci   interrupt; [26] TCM Parity error; [27] TCM Hw interrupt; [28] TSEMI
10578c2ecf20Sopenharmony_ci   Parity error; [29] TSEMI Hw interrupt; [30] PBF Parity error; [31] PBF Hw
10588c2ecf20Sopenharmony_ci   interrupt; */
10598c2ecf20Sopenharmony_ci#define MISC_REG_AEU_AFTER_INVERT_1_MCP 			 0xa434
10608c2ecf20Sopenharmony_ci/* [R 32] read second 32 bit after inversion of function 0. mapped as
10618c2ecf20Sopenharmony_ci   follows: [0] PBClient Parity error; [1] PBClient Hw interrupt; [2] QM
10628c2ecf20Sopenharmony_ci   Parity error; [3] QM Hw interrupt; [4] Timers Parity error; [5] Timers Hw
10638c2ecf20Sopenharmony_ci   interrupt; [6] XSDM Parity error; [7] XSDM Hw interrupt; [8] XCM Parity
10648c2ecf20Sopenharmony_ci   error; [9] XCM Hw interrupt; [10] XSEMI Parity error; [11] XSEMI Hw
10658c2ecf20Sopenharmony_ci   interrupt; [12] DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14]
10668c2ecf20Sopenharmony_ci   NIG Parity error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error;
10678c2ecf20Sopenharmony_ci   [17] Vaux PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw
10688c2ecf20Sopenharmony_ci   interrupt; [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM
10698c2ecf20Sopenharmony_ci   Parity error; [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI
10708c2ecf20Sopenharmony_ci   Hw interrupt; [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM
10718c2ecf20Sopenharmony_ci   Parity error; [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw
10728c2ecf20Sopenharmony_ci   interrupt; */
10738c2ecf20Sopenharmony_ci#define MISC_REG_AEU_AFTER_INVERT_2_FUNC_0			 0xa438
10748c2ecf20Sopenharmony_ci#define MISC_REG_AEU_AFTER_INVERT_2_FUNC_1			 0xa43c
10758c2ecf20Sopenharmony_ci/* [R 32] read second 32 bit after inversion of mcp. mapped as follows: [0]
10768c2ecf20Sopenharmony_ci   PBClient Parity error; [1] PBClient Hw interrupt; [2] QM Parity error;
10778c2ecf20Sopenharmony_ci   [3] QM Hw interrupt; [4] Timers Parity error; [5] Timers Hw interrupt;
10788c2ecf20Sopenharmony_ci   [6] XSDM Parity error; [7] XSDM Hw interrupt; [8] XCM Parity error; [9]
10798c2ecf20Sopenharmony_ci   XCM Hw interrupt; [10] XSEMI Parity error; [11] XSEMI Hw interrupt; [12]
10808c2ecf20Sopenharmony_ci   DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14] NIG Parity
10818c2ecf20Sopenharmony_ci   error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error; [17] Vaux
10828c2ecf20Sopenharmony_ci   PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw interrupt;
10838c2ecf20Sopenharmony_ci   [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM Parity error;
10848c2ecf20Sopenharmony_ci   [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI Hw interrupt;
10858c2ecf20Sopenharmony_ci   [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM Parity error;
10868c2ecf20Sopenharmony_ci   [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw interrupt; */
10878c2ecf20Sopenharmony_ci#define MISC_REG_AEU_AFTER_INVERT_2_MCP 			 0xa440
10888c2ecf20Sopenharmony_ci/* [R 32] read third 32 bit after inversion of function 0. mapped as
10898c2ecf20Sopenharmony_ci   follows: [0] CSEMI Parity error; [1] CSEMI Hw interrupt; [2] PXP Parity
10908c2ecf20Sopenharmony_ci   error; [3] PXP Hw interrupt; [4] PXPpciClockClient Parity error; [5]
10918c2ecf20Sopenharmony_ci   PXPpciClockClient Hw interrupt; [6] CFC Parity error; [7] CFC Hw
10928c2ecf20Sopenharmony_ci   interrupt; [8] CDU Parity error; [9] CDU Hw interrupt; [10] DMAE Parity
10938c2ecf20Sopenharmony_ci   error; [11] DMAE Hw interrupt; [12] IGU (HC) Parity error; [13] IGU (HC)
10948c2ecf20Sopenharmony_ci   Hw interrupt; [14] MISC Parity error; [15] MISC Hw interrupt; [16]
10958c2ecf20Sopenharmony_ci   pxp_misc_mps_attn; [17] Flash event; [18] SMB event; [19] MCP attn0; [20]
10968c2ecf20Sopenharmony_ci   MCP attn1; [21] SW timers attn_1 func0; [22] SW timers attn_2 func0; [23]
10978c2ecf20Sopenharmony_ci   SW timers attn_3 func0; [24] SW timers attn_4 func0; [25] PERST; [26] SW
10988c2ecf20Sopenharmony_ci   timers attn_1 func1; [27] SW timers attn_2 func1; [28] SW timers attn_3
10998c2ecf20Sopenharmony_ci   func1; [29] SW timers attn_4 func1; [30] General attn0; [31] General
11008c2ecf20Sopenharmony_ci   attn1; */
11018c2ecf20Sopenharmony_ci#define MISC_REG_AEU_AFTER_INVERT_3_FUNC_0			 0xa444
11028c2ecf20Sopenharmony_ci#define MISC_REG_AEU_AFTER_INVERT_3_FUNC_1			 0xa448
11038c2ecf20Sopenharmony_ci/* [R 32] read third 32 bit after inversion of mcp. mapped as follows: [0]
11048c2ecf20Sopenharmony_ci   CSEMI Parity error; [1] CSEMI Hw interrupt; [2] PXP Parity error; [3] PXP
11058c2ecf20Sopenharmony_ci   Hw interrupt; [4] PXPpciClockClient Parity error; [5] PXPpciClockClient
11068c2ecf20Sopenharmony_ci   Hw interrupt; [6] CFC Parity error; [7] CFC Hw interrupt; [8] CDU Parity
11078c2ecf20Sopenharmony_ci   error; [9] CDU Hw interrupt; [10] DMAE Parity error; [11] DMAE Hw
11088c2ecf20Sopenharmony_ci   interrupt; [12] IGU (HC) Parity error; [13] IGU (HC) Hw interrupt; [14]
11098c2ecf20Sopenharmony_ci   MISC Parity error; [15] MISC Hw interrupt; [16] pxp_misc_mps_attn; [17]
11108c2ecf20Sopenharmony_ci   Flash event; [18] SMB event; [19] MCP attn0; [20] MCP attn1; [21] SW
11118c2ecf20Sopenharmony_ci   timers attn_1 func0; [22] SW timers attn_2 func0; [23] SW timers attn_3
11128c2ecf20Sopenharmony_ci   func0; [24] SW timers attn_4 func0; [25] PERST; [26] SW timers attn_1
11138c2ecf20Sopenharmony_ci   func1; [27] SW timers attn_2 func1; [28] SW timers attn_3 func1; [29] SW
11148c2ecf20Sopenharmony_ci   timers attn_4 func1; [30] General attn0; [31] General attn1; */
11158c2ecf20Sopenharmony_ci#define MISC_REG_AEU_AFTER_INVERT_3_MCP 			 0xa44c
11168c2ecf20Sopenharmony_ci/* [R 32] read fourth 32 bit after inversion of function 0. mapped as
11178c2ecf20Sopenharmony_ci   follows: [0] General attn2; [1] General attn3; [2] General attn4; [3]
11188c2ecf20Sopenharmony_ci   General attn5; [4] General attn6; [5] General attn7; [6] General attn8;
11198c2ecf20Sopenharmony_ci   [7] General attn9; [8] General attn10; [9] General attn11; [10] General
11208c2ecf20Sopenharmony_ci   attn12; [11] General attn13; [12] General attn14; [13] General attn15;
11218c2ecf20Sopenharmony_ci   [14] General attn16; [15] General attn17; [16] General attn18; [17]
11228c2ecf20Sopenharmony_ci   General attn19; [18] General attn20; [19] General attn21; [20] Main power
11238c2ecf20Sopenharmony_ci   interrupt; [21] RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN
11248c2ecf20Sopenharmony_ci   Latched attn; [24] RBCU Latched attn; [25] RBCP Latched attn; [26] GRC
11258c2ecf20Sopenharmony_ci   Latched timeout attention; [27] GRC Latched reserved access attention;
11268c2ecf20Sopenharmony_ci   [28] MCP Latched rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP
11278c2ecf20Sopenharmony_ci   Latched ump_tx_parity; [31] MCP Latched scpad_parity; */
11288c2ecf20Sopenharmony_ci#define MISC_REG_AEU_AFTER_INVERT_4_FUNC_0			 0xa450
11298c2ecf20Sopenharmony_ci#define MISC_REG_AEU_AFTER_INVERT_4_FUNC_1			 0xa454
11308c2ecf20Sopenharmony_ci/* [R 32] read fourth 32 bit after inversion of mcp. mapped as follows: [0]
11318c2ecf20Sopenharmony_ci   General attn2; [1] General attn3; [2] General attn4; [3] General attn5;
11328c2ecf20Sopenharmony_ci   [4] General attn6; [5] General attn7; [6] General attn8; [7] General
11338c2ecf20Sopenharmony_ci   attn9; [8] General attn10; [9] General attn11; [10] General attn12; [11]
11348c2ecf20Sopenharmony_ci   General attn13; [12] General attn14; [13] General attn15; [14] General
11358c2ecf20Sopenharmony_ci   attn16; [15] General attn17; [16] General attn18; [17] General attn19;
11368c2ecf20Sopenharmony_ci   [18] General attn20; [19] General attn21; [20] Main power interrupt; [21]
11378c2ecf20Sopenharmony_ci   RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN Latched attn; [24]
11388c2ecf20Sopenharmony_ci   RBCU Latched attn; [25] RBCP Latched attn; [26] GRC Latched timeout
11398c2ecf20Sopenharmony_ci   attention; [27] GRC Latched reserved access attention; [28] MCP Latched
11408c2ecf20Sopenharmony_ci   rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP Latched
11418c2ecf20Sopenharmony_ci   ump_tx_parity; [31] MCP Latched scpad_parity; */
11428c2ecf20Sopenharmony_ci#define MISC_REG_AEU_AFTER_INVERT_4_MCP 			 0xa458
11438c2ecf20Sopenharmony_ci/* [R 32] Read fifth 32 bit after inversion of function 0. Mapped as
11448c2ecf20Sopenharmony_ci * follows: [0] PGLUE config_space; [1] PGLUE misc_flr; [2] PGLUE B RBC
11458c2ecf20Sopenharmony_ci * attention [3] PGLUE B RBC parity; [4] ATC attention; [5] ATC parity; [6]
11468c2ecf20Sopenharmony_ci * CNIG attention (reserved); [7] CNIG parity (reserved); [31-8] Reserved; */
11478c2ecf20Sopenharmony_ci#define MISC_REG_AEU_AFTER_INVERT_5_FUNC_0			 0xa700
11488c2ecf20Sopenharmony_ci/* [W 14] write to this register results with the clear of the latched
11498c2ecf20Sopenharmony_ci   signals; one in d0 clears RBCR latch; one in d1 clears RBCT latch; one in
11508c2ecf20Sopenharmony_ci   d2 clears RBCN latch; one in d3 clears RBCU latch; one in d4 clears RBCP
11518c2ecf20Sopenharmony_ci   latch; one in d5 clears GRC Latched timeout attention; one in d6 clears
11528c2ecf20Sopenharmony_ci   GRC Latched reserved access attention; one in d7 clears Latched
11538c2ecf20Sopenharmony_ci   rom_parity; one in d8 clears Latched ump_rx_parity; one in d9 clears
11548c2ecf20Sopenharmony_ci   Latched ump_tx_parity; one in d10 clears Latched scpad_parity (both
11558c2ecf20Sopenharmony_ci   ports); one in d11 clears pxpv_misc_mps_attn; one in d12 clears
11568c2ecf20Sopenharmony_ci   pxp_misc_exp_rom_attn0; one in d13 clears pxp_misc_exp_rom_attn1; read
11578c2ecf20Sopenharmony_ci   from this register return zero */
11588c2ecf20Sopenharmony_ci#define MISC_REG_AEU_CLR_LATCH_SIGNAL				 0xa45c
11598c2ecf20Sopenharmony_ci/* [RW 32] first 32b for enabling the output for function 0 output0. mapped
11608c2ecf20Sopenharmony_ci   as follows: [0] NIG attention for function0; [1] NIG attention for
11618c2ecf20Sopenharmony_ci   function1; [2] GPIO1 function 0; [3] GPIO2 function 0; [4] GPIO3 function
11628c2ecf20Sopenharmony_ci   0; [5] GPIO4 function 0; [6] GPIO1 function 1; [7] GPIO2 function 1; [8]
11638c2ecf20Sopenharmony_ci   GPIO3 function 1; [9] GPIO4 function 1; [10] PCIE glue/PXP VPD event
11648c2ecf20Sopenharmony_ci   function0; [11] PCIE glue/PXP VPD event function1; [12] PCIE glue/PXP
11658c2ecf20Sopenharmony_ci   Expansion ROM event0; [13] PCIE glue/PXP Expansion ROM event1; [14]
11668c2ecf20Sopenharmony_ci   SPIO4; [15] SPIO5; [16] MSI/X indication for function 0; [17] MSI/X
11678c2ecf20Sopenharmony_ci   indication for function 1; [18] BRB Parity error; [19] BRB Hw interrupt;
11688c2ecf20Sopenharmony_ci   [20] PRS Parity error; [21] PRS Hw interrupt; [22] SRC Parity error; [23]
11698c2ecf20Sopenharmony_ci   SRC Hw interrupt; [24] TSDM Parity error; [25] TSDM Hw interrupt; [26]
11708c2ecf20Sopenharmony_ci   TCM Parity error; [27] TCM Hw interrupt; [28] TSEMI Parity error; [29]
11718c2ecf20Sopenharmony_ci   TSEMI Hw interrupt; [30] PBF Parity error; [31] PBF Hw interrupt; */
11728c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_0			 0xa06c
11738c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_1			 0xa07c
11748c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_2			 0xa08c
11758c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_3			 0xa09c
11768c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_5			 0xa0bc
11778c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_6			 0xa0cc
11788c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE1_FUNC_0_OUT_7			 0xa0dc
11798c2ecf20Sopenharmony_ci/* [RW 32] first 32b for enabling the output for function 1 output0. mapped
11808c2ecf20Sopenharmony_ci   as follows: [0] NIG attention for function0; [1] NIG attention for
11818c2ecf20Sopenharmony_ci   function1; [2] GPIO1 function 1; [3] GPIO2 function 1; [4] GPIO3 function
11828c2ecf20Sopenharmony_ci   1; [5] GPIO4 function 1; [6] GPIO1 function 1; [7] GPIO2 function 1; [8]
11838c2ecf20Sopenharmony_ci   GPIO3 function 1; [9] GPIO4 function 1; [10] PCIE glue/PXP VPD event
11848c2ecf20Sopenharmony_ci   function0; [11] PCIE glue/PXP VPD event function1; [12] PCIE glue/PXP
11858c2ecf20Sopenharmony_ci   Expansion ROM event0; [13] PCIE glue/PXP Expansion ROM event1; [14]
11868c2ecf20Sopenharmony_ci   SPIO4; [15] SPIO5; [16] MSI/X indication for function 1; [17] MSI/X
11878c2ecf20Sopenharmony_ci   indication for function 1; [18] BRB Parity error; [19] BRB Hw interrupt;
11888c2ecf20Sopenharmony_ci   [20] PRS Parity error; [21] PRS Hw interrupt; [22] SRC Parity error; [23]
11898c2ecf20Sopenharmony_ci   SRC Hw interrupt; [24] TSDM Parity error; [25] TSDM Hw interrupt; [26]
11908c2ecf20Sopenharmony_ci   TCM Parity error; [27] TCM Hw interrupt; [28] TSEMI Parity error; [29]
11918c2ecf20Sopenharmony_ci   TSEMI Hw interrupt; [30] PBF Parity error; [31] PBF Hw interrupt; */
11928c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_0			 0xa10c
11938c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_1			 0xa11c
11948c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_2			 0xa12c
11958c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_3			 0xa13c
11968c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_5			 0xa15c
11978c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_6			 0xa16c
11988c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE1_FUNC_1_OUT_7			 0xa17c
11998c2ecf20Sopenharmony_ci/* [RW 32] first 32b for enabling the output for close the gate nig. mapped
12008c2ecf20Sopenharmony_ci   as follows: [0] NIG attention for function0; [1] NIG attention for
12018c2ecf20Sopenharmony_ci   function1; [2] GPIO1 function 0; [3] GPIO2 function 0; [4] GPIO3 function
12028c2ecf20Sopenharmony_ci   0; [5] GPIO4 function 0; [6] GPIO1 function 1; [7] GPIO2 function 1; [8]
12038c2ecf20Sopenharmony_ci   GPIO3 function 1; [9] GPIO4 function 1; [10] PCIE glue/PXP VPD event
12048c2ecf20Sopenharmony_ci   function0; [11] PCIE glue/PXP VPD event function1; [12] PCIE glue/PXP
12058c2ecf20Sopenharmony_ci   Expansion ROM event0; [13] PCIE glue/PXP Expansion ROM event1; [14]
12068c2ecf20Sopenharmony_ci   SPIO4; [15] SPIO5; [16] MSI/X indication for function 0; [17] MSI/X
12078c2ecf20Sopenharmony_ci   indication for function 1; [18] BRB Parity error; [19] BRB Hw interrupt;
12088c2ecf20Sopenharmony_ci   [20] PRS Parity error; [21] PRS Hw interrupt; [22] SRC Parity error; [23]
12098c2ecf20Sopenharmony_ci   SRC Hw interrupt; [24] TSDM Parity error; [25] TSDM Hw interrupt; [26]
12108c2ecf20Sopenharmony_ci   TCM Parity error; [27] TCM Hw interrupt; [28] TSEMI Parity error; [29]
12118c2ecf20Sopenharmony_ci   TSEMI Hw interrupt; [30] PBF Parity error; [31] PBF Hw interrupt; */
12128c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE1_NIG_0				 0xa0ec
12138c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE1_NIG_1				 0xa18c
12148c2ecf20Sopenharmony_ci/* [RW 32] first 32b for enabling the output for close the gate pxp. mapped
12158c2ecf20Sopenharmony_ci   as follows: [0] NIG attention for function0; [1] NIG attention for
12168c2ecf20Sopenharmony_ci   function1; [2] GPIO1 function 0; [3] GPIO2 function 0; [4] GPIO3 function
12178c2ecf20Sopenharmony_ci   0; [5] GPIO4 function 0; [6] GPIO1 function 1; [7] GPIO2 function 1; [8]
12188c2ecf20Sopenharmony_ci   GPIO3 function 1; [9] GPIO4 function 1; [10] PCIE glue/PXP VPD event
12198c2ecf20Sopenharmony_ci   function0; [11] PCIE glue/PXP VPD event function1; [12] PCIE glue/PXP
12208c2ecf20Sopenharmony_ci   Expansion ROM event0; [13] PCIE glue/PXP Expansion ROM event1; [14]
12218c2ecf20Sopenharmony_ci   SPIO4; [15] SPIO5; [16] MSI/X indication for function 0; [17] MSI/X
12228c2ecf20Sopenharmony_ci   indication for function 1; [18] BRB Parity error; [19] BRB Hw interrupt;
12238c2ecf20Sopenharmony_ci   [20] PRS Parity error; [21] PRS Hw interrupt; [22] SRC Parity error; [23]
12248c2ecf20Sopenharmony_ci   SRC Hw interrupt; [24] TSDM Parity error; [25] TSDM Hw interrupt; [26]
12258c2ecf20Sopenharmony_ci   TCM Parity error; [27] TCM Hw interrupt; [28] TSEMI Parity error; [29]
12268c2ecf20Sopenharmony_ci   TSEMI Hw interrupt; [30] PBF Parity error; [31] PBF Hw interrupt; */
12278c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE1_PXP_0				 0xa0fc
12288c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE1_PXP_1				 0xa19c
12298c2ecf20Sopenharmony_ci/* [RW 32] second 32b for enabling the output for function 0 output0. mapped
12308c2ecf20Sopenharmony_ci   as follows: [0] PBClient Parity error; [1] PBClient Hw interrupt; [2] QM
12318c2ecf20Sopenharmony_ci   Parity error; [3] QM Hw interrupt; [4] Timers Parity error; [5] Timers Hw
12328c2ecf20Sopenharmony_ci   interrupt; [6] XSDM Parity error; [7] XSDM Hw interrupt; [8] XCM Parity
12338c2ecf20Sopenharmony_ci   error; [9] XCM Hw interrupt; [10] XSEMI Parity error; [11] XSEMI Hw
12348c2ecf20Sopenharmony_ci   interrupt; [12] DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14]
12358c2ecf20Sopenharmony_ci   NIG Parity error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error;
12368c2ecf20Sopenharmony_ci   [17] Vaux PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw
12378c2ecf20Sopenharmony_ci   interrupt; [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM
12388c2ecf20Sopenharmony_ci   Parity error; [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI
12398c2ecf20Sopenharmony_ci   Hw interrupt; [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM
12408c2ecf20Sopenharmony_ci   Parity error; [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw
12418c2ecf20Sopenharmony_ci   interrupt; */
12428c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE2_FUNC_0_OUT_0			 0xa070
12438c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE2_FUNC_0_OUT_1			 0xa080
12448c2ecf20Sopenharmony_ci/* [RW 32] second 32b for enabling the output for function 1 output0. mapped
12458c2ecf20Sopenharmony_ci   as follows: [0] PBClient Parity error; [1] PBClient Hw interrupt; [2] QM
12468c2ecf20Sopenharmony_ci   Parity error; [3] QM Hw interrupt; [4] Timers Parity error; [5] Timers Hw
12478c2ecf20Sopenharmony_ci   interrupt; [6] XSDM Parity error; [7] XSDM Hw interrupt; [8] XCM Parity
12488c2ecf20Sopenharmony_ci   error; [9] XCM Hw interrupt; [10] XSEMI Parity error; [11] XSEMI Hw
12498c2ecf20Sopenharmony_ci   interrupt; [12] DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14]
12508c2ecf20Sopenharmony_ci   NIG Parity error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error;
12518c2ecf20Sopenharmony_ci   [17] Vaux PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw
12528c2ecf20Sopenharmony_ci   interrupt; [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM
12538c2ecf20Sopenharmony_ci   Parity error; [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI
12548c2ecf20Sopenharmony_ci   Hw interrupt; [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM
12558c2ecf20Sopenharmony_ci   Parity error; [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw
12568c2ecf20Sopenharmony_ci   interrupt; */
12578c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE2_FUNC_1_OUT_0			 0xa110
12588c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE2_FUNC_1_OUT_1			 0xa120
12598c2ecf20Sopenharmony_ci/* [RW 32] second 32b for enabling the output for close the gate nig. mapped
12608c2ecf20Sopenharmony_ci   as follows: [0] PBClient Parity error; [1] PBClient Hw interrupt; [2] QM
12618c2ecf20Sopenharmony_ci   Parity error; [3] QM Hw interrupt; [4] Timers Parity error; [5] Timers Hw
12628c2ecf20Sopenharmony_ci   interrupt; [6] XSDM Parity error; [7] XSDM Hw interrupt; [8] XCM Parity
12638c2ecf20Sopenharmony_ci   error; [9] XCM Hw interrupt; [10] XSEMI Parity error; [11] XSEMI Hw
12648c2ecf20Sopenharmony_ci   interrupt; [12] DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14]
12658c2ecf20Sopenharmony_ci   NIG Parity error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error;
12668c2ecf20Sopenharmony_ci   [17] Vaux PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw
12678c2ecf20Sopenharmony_ci   interrupt; [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM
12688c2ecf20Sopenharmony_ci   Parity error; [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI
12698c2ecf20Sopenharmony_ci   Hw interrupt; [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM
12708c2ecf20Sopenharmony_ci   Parity error; [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw
12718c2ecf20Sopenharmony_ci   interrupt; */
12728c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE2_NIG_0				 0xa0f0
12738c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE2_NIG_1				 0xa190
12748c2ecf20Sopenharmony_ci/* [RW 32] second 32b for enabling the output for close the gate pxp. mapped
12758c2ecf20Sopenharmony_ci   as follows: [0] PBClient Parity error; [1] PBClient Hw interrupt; [2] QM
12768c2ecf20Sopenharmony_ci   Parity error; [3] QM Hw interrupt; [4] Timers Parity error; [5] Timers Hw
12778c2ecf20Sopenharmony_ci   interrupt; [6] XSDM Parity error; [7] XSDM Hw interrupt; [8] XCM Parity
12788c2ecf20Sopenharmony_ci   error; [9] XCM Hw interrupt; [10] XSEMI Parity error; [11] XSEMI Hw
12798c2ecf20Sopenharmony_ci   interrupt; [12] DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14]
12808c2ecf20Sopenharmony_ci   NIG Parity error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error;
12818c2ecf20Sopenharmony_ci   [17] Vaux PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw
12828c2ecf20Sopenharmony_ci   interrupt; [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM
12838c2ecf20Sopenharmony_ci   Parity error; [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI
12848c2ecf20Sopenharmony_ci   Hw interrupt; [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM
12858c2ecf20Sopenharmony_ci   Parity error; [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw
12868c2ecf20Sopenharmony_ci   interrupt; */
12878c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE2_PXP_0				 0xa100
12888c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE2_PXP_1				 0xa1a0
12898c2ecf20Sopenharmony_ci/* [RW 32] third 32b for enabling the output for function 0 output0. mapped
12908c2ecf20Sopenharmony_ci   as follows: [0] CSEMI Parity error; [1] CSEMI Hw interrupt; [2] PXP
12918c2ecf20Sopenharmony_ci   Parity error; [3] PXP Hw interrupt; [4] PXPpciClockClient Parity error;
12928c2ecf20Sopenharmony_ci   [5] PXPpciClockClient Hw interrupt; [6] CFC Parity error; [7] CFC Hw
12938c2ecf20Sopenharmony_ci   interrupt; [8] CDU Parity error; [9] CDU Hw interrupt; [10] DMAE Parity
12948c2ecf20Sopenharmony_ci   error; [11] DMAE Hw interrupt; [12] IGU (HC) Parity error; [13] IGU (HC)
12958c2ecf20Sopenharmony_ci   Hw interrupt; [14] MISC Parity error; [15] MISC Hw interrupt; [16]
12968c2ecf20Sopenharmony_ci   pxp_misc_mps_attn; [17] Flash event; [18] SMB event; [19] MCP attn0; [20]
12978c2ecf20Sopenharmony_ci   MCP attn1; [21] SW timers attn_1 func0; [22] SW timers attn_2 func0; [23]
12988c2ecf20Sopenharmony_ci   SW timers attn_3 func0; [24] SW timers attn_4 func0; [25] PERST; [26] SW
12998c2ecf20Sopenharmony_ci   timers attn_1 func1; [27] SW timers attn_2 func1; [28] SW timers attn_3
13008c2ecf20Sopenharmony_ci   func1; [29] SW timers attn_4 func1; [30] General attn0; [31] General
13018c2ecf20Sopenharmony_ci   attn1; */
13028c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE3_FUNC_0_OUT_0			 0xa074
13038c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE3_FUNC_0_OUT_1			 0xa084
13048c2ecf20Sopenharmony_ci/* [RW 32] third 32b for enabling the output for function 1 output0. mapped
13058c2ecf20Sopenharmony_ci   as follows: [0] CSEMI Parity error; [1] CSEMI Hw interrupt; [2] PXP
13068c2ecf20Sopenharmony_ci   Parity error; [3] PXP Hw interrupt; [4] PXPpciClockClient Parity error;
13078c2ecf20Sopenharmony_ci   [5] PXPpciClockClient Hw interrupt; [6] CFC Parity error; [7] CFC Hw
13088c2ecf20Sopenharmony_ci   interrupt; [8] CDU Parity error; [9] CDU Hw interrupt; [10] DMAE Parity
13098c2ecf20Sopenharmony_ci   error; [11] DMAE Hw interrupt; [12] IGU (HC) Parity error; [13] IGU (HC)
13108c2ecf20Sopenharmony_ci   Hw interrupt; [14] MISC Parity error; [15] MISC Hw interrupt; [16]
13118c2ecf20Sopenharmony_ci   pxp_misc_mps_attn; [17] Flash event; [18] SMB event; [19] MCP attn0; [20]
13128c2ecf20Sopenharmony_ci   MCP attn1; [21] SW timers attn_1 func0; [22] SW timers attn_2 func0; [23]
13138c2ecf20Sopenharmony_ci   SW timers attn_3 func0; [24] SW timers attn_4 func0; [25] PERST; [26] SW
13148c2ecf20Sopenharmony_ci   timers attn_1 func1; [27] SW timers attn_2 func1; [28] SW timers attn_3
13158c2ecf20Sopenharmony_ci   func1; [29] SW timers attn_4 func1; [30] General attn0; [31] General
13168c2ecf20Sopenharmony_ci   attn1; */
13178c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE3_FUNC_1_OUT_0			 0xa114
13188c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE3_FUNC_1_OUT_1			 0xa124
13198c2ecf20Sopenharmony_ci/* [RW 32] third 32b for enabling the output for close the gate nig. mapped
13208c2ecf20Sopenharmony_ci   as follows: [0] CSEMI Parity error; [1] CSEMI Hw interrupt; [2] PXP
13218c2ecf20Sopenharmony_ci   Parity error; [3] PXP Hw interrupt; [4] PXPpciClockClient Parity error;
13228c2ecf20Sopenharmony_ci   [5] PXPpciClockClient Hw interrupt; [6] CFC Parity error; [7] CFC Hw
13238c2ecf20Sopenharmony_ci   interrupt; [8] CDU Parity error; [9] CDU Hw interrupt; [10] DMAE Parity
13248c2ecf20Sopenharmony_ci   error; [11] DMAE Hw interrupt; [12] IGU (HC) Parity error; [13] IGU (HC)
13258c2ecf20Sopenharmony_ci   Hw interrupt; [14] MISC Parity error; [15] MISC Hw interrupt; [16]
13268c2ecf20Sopenharmony_ci   pxp_misc_mps_attn; [17] Flash event; [18] SMB event; [19] MCP attn0; [20]
13278c2ecf20Sopenharmony_ci   MCP attn1; [21] SW timers attn_1 func0; [22] SW timers attn_2 func0; [23]
13288c2ecf20Sopenharmony_ci   SW timers attn_3 func0; [24] SW timers attn_4 func0; [25] PERST; [26] SW
13298c2ecf20Sopenharmony_ci   timers attn_1 func1; [27] SW timers attn_2 func1; [28] SW timers attn_3
13308c2ecf20Sopenharmony_ci   func1; [29] SW timers attn_4 func1; [30] General attn0; [31] General
13318c2ecf20Sopenharmony_ci   attn1; */
13328c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE3_NIG_0				 0xa0f4
13338c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE3_NIG_1				 0xa194
13348c2ecf20Sopenharmony_ci/* [RW 32] third 32b for enabling the output for close the gate pxp. mapped
13358c2ecf20Sopenharmony_ci   as follows: [0] CSEMI Parity error; [1] CSEMI Hw interrupt; [2] PXP
13368c2ecf20Sopenharmony_ci   Parity error; [3] PXP Hw interrupt; [4] PXPpciClockClient Parity error;
13378c2ecf20Sopenharmony_ci   [5] PXPpciClockClient Hw interrupt; [6] CFC Parity error; [7] CFC Hw
13388c2ecf20Sopenharmony_ci   interrupt; [8] CDU Parity error; [9] CDU Hw interrupt; [10] DMAE Parity
13398c2ecf20Sopenharmony_ci   error; [11] DMAE Hw interrupt; [12] IGU (HC) Parity error; [13] IGU (HC)
13408c2ecf20Sopenharmony_ci   Hw interrupt; [14] MISC Parity error; [15] MISC Hw interrupt; [16]
13418c2ecf20Sopenharmony_ci   pxp_misc_mps_attn; [17] Flash event; [18] SMB event; [19] MCP attn0; [20]
13428c2ecf20Sopenharmony_ci   MCP attn1; [21] SW timers attn_1 func0; [22] SW timers attn_2 func0; [23]
13438c2ecf20Sopenharmony_ci   SW timers attn_3 func0; [24] SW timers attn_4 func0; [25] PERST; [26] SW
13448c2ecf20Sopenharmony_ci   timers attn_1 func1; [27] SW timers attn_2 func1; [28] SW timers attn_3
13458c2ecf20Sopenharmony_ci   func1; [29] SW timers attn_4 func1; [30] General attn0; [31] General
13468c2ecf20Sopenharmony_ci   attn1; */
13478c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE3_PXP_0				 0xa104
13488c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE3_PXP_1				 0xa1a4
13498c2ecf20Sopenharmony_ci/* [RW 32] fourth 32b for enabling the output for function 0 output0.mapped
13508c2ecf20Sopenharmony_ci   as follows: [0] General attn2; [1] General attn3; [2] General attn4; [3]
13518c2ecf20Sopenharmony_ci   General attn5; [4] General attn6; [5] General attn7; [6] General attn8;
13528c2ecf20Sopenharmony_ci   [7] General attn9; [8] General attn10; [9] General attn11; [10] General
13538c2ecf20Sopenharmony_ci   attn12; [11] General attn13; [12] General attn14; [13] General attn15;
13548c2ecf20Sopenharmony_ci   [14] General attn16; [15] General attn17; [16] General attn18; [17]
13558c2ecf20Sopenharmony_ci   General attn19; [18] General attn20; [19] General attn21; [20] Main power
13568c2ecf20Sopenharmony_ci   interrupt; [21] RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN
13578c2ecf20Sopenharmony_ci   Latched attn; [24] RBCU Latched attn; [25] RBCP Latched attn; [26] GRC
13588c2ecf20Sopenharmony_ci   Latched timeout attention; [27] GRC Latched reserved access attention;
13598c2ecf20Sopenharmony_ci   [28] MCP Latched rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP
13608c2ecf20Sopenharmony_ci   Latched ump_tx_parity; [31] MCP Latched scpad_parity; */
13618c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE4_FUNC_0_OUT_0			 0xa078
13628c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE4_FUNC_0_OUT_2			 0xa098
13638c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE4_FUNC_0_OUT_4			 0xa0b8
13648c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE4_FUNC_0_OUT_5			 0xa0c8
13658c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE4_FUNC_0_OUT_6			 0xa0d8
13668c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE4_FUNC_0_OUT_7			 0xa0e8
13678c2ecf20Sopenharmony_ci/* [RW 32] fourth 32b for enabling the output for function 1 output0.mapped
13688c2ecf20Sopenharmony_ci   as follows: [0] General attn2; [1] General attn3; [2] General attn4; [3]
13698c2ecf20Sopenharmony_ci   General attn5; [4] General attn6; [5] General attn7; [6] General attn8;
13708c2ecf20Sopenharmony_ci   [7] General attn9; [8] General attn10; [9] General attn11; [10] General
13718c2ecf20Sopenharmony_ci   attn12; [11] General attn13; [12] General attn14; [13] General attn15;
13728c2ecf20Sopenharmony_ci   [14] General attn16; [15] General attn17; [16] General attn18; [17]
13738c2ecf20Sopenharmony_ci   General attn19; [18] General attn20; [19] General attn21; [20] Main power
13748c2ecf20Sopenharmony_ci   interrupt; [21] RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN
13758c2ecf20Sopenharmony_ci   Latched attn; [24] RBCU Latched attn; [25] RBCP Latched attn; [26] GRC
13768c2ecf20Sopenharmony_ci   Latched timeout attention; [27] GRC Latched reserved access attention;
13778c2ecf20Sopenharmony_ci   [28] MCP Latched rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP
13788c2ecf20Sopenharmony_ci   Latched ump_tx_parity; [31] MCP Latched scpad_parity; */
13798c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE4_FUNC_1_OUT_0			 0xa118
13808c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE4_FUNC_1_OUT_2			 0xa138
13818c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE4_FUNC_1_OUT_4			 0xa158
13828c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE4_FUNC_1_OUT_5			 0xa168
13838c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE4_FUNC_1_OUT_6			 0xa178
13848c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE4_FUNC_1_OUT_7			 0xa188
13858c2ecf20Sopenharmony_ci/* [RW 32] fourth 32b for enabling the output for close the gate nig.mapped
13868c2ecf20Sopenharmony_ci   as follows: [0] General attn2; [1] General attn3; [2] General attn4; [3]
13878c2ecf20Sopenharmony_ci   General attn5; [4] General attn6; [5] General attn7; [6] General attn8;
13888c2ecf20Sopenharmony_ci   [7] General attn9; [8] General attn10; [9] General attn11; [10] General
13898c2ecf20Sopenharmony_ci   attn12; [11] General attn13; [12] General attn14; [13] General attn15;
13908c2ecf20Sopenharmony_ci   [14] General attn16; [15] General attn17; [16] General attn18; [17]
13918c2ecf20Sopenharmony_ci   General attn19; [18] General attn20; [19] General attn21; [20] Main power
13928c2ecf20Sopenharmony_ci   interrupt; [21] RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN
13938c2ecf20Sopenharmony_ci   Latched attn; [24] RBCU Latched attn; [25] RBCP Latched attn; [26] GRC
13948c2ecf20Sopenharmony_ci   Latched timeout attention; [27] GRC Latched reserved access attention;
13958c2ecf20Sopenharmony_ci   [28] MCP Latched rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP
13968c2ecf20Sopenharmony_ci   Latched ump_tx_parity; [31] MCP Latched scpad_parity; */
13978c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE4_NIG_0				 0xa0f8
13988c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE4_NIG_1				 0xa198
13998c2ecf20Sopenharmony_ci/* [RW 32] fourth 32b for enabling the output for close the gate pxp.mapped
14008c2ecf20Sopenharmony_ci   as follows: [0] General attn2; [1] General attn3; [2] General attn4; [3]
14018c2ecf20Sopenharmony_ci   General attn5; [4] General attn6; [5] General attn7; [6] General attn8;
14028c2ecf20Sopenharmony_ci   [7] General attn9; [8] General attn10; [9] General attn11; [10] General
14038c2ecf20Sopenharmony_ci   attn12; [11] General attn13; [12] General attn14; [13] General attn15;
14048c2ecf20Sopenharmony_ci   [14] General attn16; [15] General attn17; [16] General attn18; [17]
14058c2ecf20Sopenharmony_ci   General attn19; [18] General attn20; [19] General attn21; [20] Main power
14068c2ecf20Sopenharmony_ci   interrupt; [21] RBCR Latched attn; [22] RBCT Latched attn; [23] RBCN
14078c2ecf20Sopenharmony_ci   Latched attn; [24] RBCU Latched attn; [25] RBCP Latched attn; [26] GRC
14088c2ecf20Sopenharmony_ci   Latched timeout attention; [27] GRC Latched reserved access attention;
14098c2ecf20Sopenharmony_ci   [28] MCP Latched rom_parity; [29] MCP Latched ump_rx_parity; [30] MCP
14108c2ecf20Sopenharmony_ci   Latched ump_tx_parity; [31] MCP Latched scpad_parity; */
14118c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE4_PXP_0				 0xa108
14128c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE4_PXP_1				 0xa1a8
14138c2ecf20Sopenharmony_ci/* [RW 32] fifth 32b for enabling the output for function 0 output0. Mapped
14148c2ecf20Sopenharmony_ci * as follows: [0] PGLUE config_space; [1] PGLUE misc_flr; [2] PGLUE B RBC
14158c2ecf20Sopenharmony_ci * attention [3] PGLUE B RBC parity; [4] ATC attention; [5] ATC parity; [6]
14168c2ecf20Sopenharmony_ci * mstat0 attention; [7] mstat0 parity; [8] mstat1 attention; [9] mstat1
14178c2ecf20Sopenharmony_ci * parity; [31-10] Reserved; */
14188c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE5_FUNC_0_OUT_0			 0xa688
14198c2ecf20Sopenharmony_ci/* [RW 32] Fifth 32b for enabling the output for function 1 output0. Mapped
14208c2ecf20Sopenharmony_ci * as follows: [0] PGLUE config_space; [1] PGLUE misc_flr; [2] PGLUE B RBC
14218c2ecf20Sopenharmony_ci * attention [3] PGLUE B RBC parity; [4] ATC attention; [5] ATC parity; [6]
14228c2ecf20Sopenharmony_ci * mstat0 attention; [7] mstat0 parity; [8] mstat1 attention; [9] mstat1
14238c2ecf20Sopenharmony_ci * parity; [31-10] Reserved; */
14248c2ecf20Sopenharmony_ci#define MISC_REG_AEU_ENABLE5_FUNC_1_OUT_0			 0xa6b0
14258c2ecf20Sopenharmony_ci/* [RW 1] set/clr general attention 0; this will set/clr bit 94 in the aeu
14268c2ecf20Sopenharmony_ci   128 bit vector */
14278c2ecf20Sopenharmony_ci#define MISC_REG_AEU_GENERAL_ATTN_0				 0xa000
14288c2ecf20Sopenharmony_ci#define MISC_REG_AEU_GENERAL_ATTN_1				 0xa004
14298c2ecf20Sopenharmony_ci#define MISC_REG_AEU_GENERAL_ATTN_10				 0xa028
14308c2ecf20Sopenharmony_ci#define MISC_REG_AEU_GENERAL_ATTN_11				 0xa02c
14318c2ecf20Sopenharmony_ci#define MISC_REG_AEU_GENERAL_ATTN_12				 0xa030
14328c2ecf20Sopenharmony_ci#define MISC_REG_AEU_GENERAL_ATTN_2				 0xa008
14338c2ecf20Sopenharmony_ci#define MISC_REG_AEU_GENERAL_ATTN_3				 0xa00c
14348c2ecf20Sopenharmony_ci#define MISC_REG_AEU_GENERAL_ATTN_4				 0xa010
14358c2ecf20Sopenharmony_ci#define MISC_REG_AEU_GENERAL_ATTN_5				 0xa014
14368c2ecf20Sopenharmony_ci#define MISC_REG_AEU_GENERAL_ATTN_6				 0xa018
14378c2ecf20Sopenharmony_ci#define MISC_REG_AEU_GENERAL_ATTN_7				 0xa01c
14388c2ecf20Sopenharmony_ci#define MISC_REG_AEU_GENERAL_ATTN_8				 0xa020
14398c2ecf20Sopenharmony_ci#define MISC_REG_AEU_GENERAL_ATTN_9				 0xa024
14408c2ecf20Sopenharmony_ci#define MISC_REG_AEU_GENERAL_MASK				 0xa61c
14418c2ecf20Sopenharmony_ci/* [RW 32] first 32b for inverting the input for function 0; for each bit:
14428c2ecf20Sopenharmony_ci   0= do not invert; 1= invert; mapped as follows: [0] NIG attention for
14438c2ecf20Sopenharmony_ci   function0; [1] NIG attention for function1; [2] GPIO1 mcp; [3] GPIO2 mcp;
14448c2ecf20Sopenharmony_ci   [4] GPIO3 mcp; [5] GPIO4 mcp; [6] GPIO1 function 1; [7] GPIO2 function 1;
14458c2ecf20Sopenharmony_ci   [8] GPIO3 function 1; [9] GPIO4 function 1; [10] PCIE glue/PXP VPD event
14468c2ecf20Sopenharmony_ci   function0; [11] PCIE glue/PXP VPD event function1; [12] PCIE glue/PXP
14478c2ecf20Sopenharmony_ci   Expansion ROM event0; [13] PCIE glue/PXP Expansion ROM event1; [14]
14488c2ecf20Sopenharmony_ci   SPIO4; [15] SPIO5; [16] MSI/X indication for mcp; [17] MSI/X indication
14498c2ecf20Sopenharmony_ci   for function 1; [18] BRB Parity error; [19] BRB Hw interrupt; [20] PRS
14508c2ecf20Sopenharmony_ci   Parity error; [21] PRS Hw interrupt; [22] SRC Parity error; [23] SRC Hw
14518c2ecf20Sopenharmony_ci   interrupt; [24] TSDM Parity error; [25] TSDM Hw interrupt; [26] TCM
14528c2ecf20Sopenharmony_ci   Parity error; [27] TCM Hw interrupt; [28] TSEMI Parity error; [29] TSEMI
14538c2ecf20Sopenharmony_ci   Hw interrupt; [30] PBF Parity error; [31] PBF Hw interrupt; */
14548c2ecf20Sopenharmony_ci#define MISC_REG_AEU_INVERTER_1_FUNC_0				 0xa22c
14558c2ecf20Sopenharmony_ci#define MISC_REG_AEU_INVERTER_1_FUNC_1				 0xa23c
14568c2ecf20Sopenharmony_ci/* [RW 32] second 32b for inverting the input for function 0; for each bit:
14578c2ecf20Sopenharmony_ci   0= do not invert; 1= invert. mapped as follows: [0] PBClient Parity
14588c2ecf20Sopenharmony_ci   error; [1] PBClient Hw interrupt; [2] QM Parity error; [3] QM Hw
14598c2ecf20Sopenharmony_ci   interrupt; [4] Timers Parity error; [5] Timers Hw interrupt; [6] XSDM
14608c2ecf20Sopenharmony_ci   Parity error; [7] XSDM Hw interrupt; [8] XCM Parity error; [9] XCM Hw
14618c2ecf20Sopenharmony_ci   interrupt; [10] XSEMI Parity error; [11] XSEMI Hw interrupt; [12]
14628c2ecf20Sopenharmony_ci   DoorbellQ Parity error; [13] DoorbellQ Hw interrupt; [14] NIG Parity
14638c2ecf20Sopenharmony_ci   error; [15] NIG Hw interrupt; [16] Vaux PCI core Parity error; [17] Vaux
14648c2ecf20Sopenharmony_ci   PCI core Hw interrupt; [18] Debug Parity error; [19] Debug Hw interrupt;
14658c2ecf20Sopenharmony_ci   [20] USDM Parity error; [21] USDM Hw interrupt; [22] UCM Parity error;
14668c2ecf20Sopenharmony_ci   [23] UCM Hw interrupt; [24] USEMI Parity error; [25] USEMI Hw interrupt;
14678c2ecf20Sopenharmony_ci   [26] UPB Parity error; [27] UPB Hw interrupt; [28] CSDM Parity error;
14688c2ecf20Sopenharmony_ci   [29] CSDM Hw interrupt; [30] CCM Parity error; [31] CCM Hw interrupt; */
14698c2ecf20Sopenharmony_ci#define MISC_REG_AEU_INVERTER_2_FUNC_0				 0xa230
14708c2ecf20Sopenharmony_ci#define MISC_REG_AEU_INVERTER_2_FUNC_1				 0xa240
14718c2ecf20Sopenharmony_ci/* [RW 10] [7:0] = mask 8 attention output signals toward IGU function0;
14728c2ecf20Sopenharmony_ci   [9:8] = raserved. Zero = mask; one = unmask */
14738c2ecf20Sopenharmony_ci#define MISC_REG_AEU_MASK_ATTN_FUNC_0				 0xa060
14748c2ecf20Sopenharmony_ci#define MISC_REG_AEU_MASK_ATTN_FUNC_1				 0xa064
14758c2ecf20Sopenharmony_ci/* [RW 1] If set a system kill occurred */
14768c2ecf20Sopenharmony_ci#define MISC_REG_AEU_SYS_KILL_OCCURRED				 0xa610
14778c2ecf20Sopenharmony_ci/* [RW 32] Represent the status of the input vector to the AEU when a system
14788c2ecf20Sopenharmony_ci   kill occurred. The register is reset in por reset. Mapped as follows: [0]
14798c2ecf20Sopenharmony_ci   NIG attention for function0; [1] NIG attention for function1; [2] GPIO1
14808c2ecf20Sopenharmony_ci   mcp; [3] GPIO2 mcp; [4] GPIO3 mcp; [5] GPIO4 mcp; [6] GPIO1 function 1;
14818c2ecf20Sopenharmony_ci   [7] GPIO2 function 1; [8] GPIO3 function 1; [9] GPIO4 function 1; [10]
14828c2ecf20Sopenharmony_ci   PCIE glue/PXP VPD event function0; [11] PCIE glue/PXP VPD event
14838c2ecf20Sopenharmony_ci   function1; [12] PCIE glue/PXP Expansion ROM event0; [13] PCIE glue/PXP
14848c2ecf20Sopenharmony_ci   Expansion ROM event1; [14] SPIO4; [15] SPIO5; [16] MSI/X indication for
14858c2ecf20Sopenharmony_ci   mcp; [17] MSI/X indication for function 1; [18] BRB Parity error; [19]
14868c2ecf20Sopenharmony_ci   BRB Hw interrupt; [20] PRS Parity error; [21] PRS Hw interrupt; [22] SRC
14878c2ecf20Sopenharmony_ci   Parity error; [23] SRC Hw interrupt; [24] TSDM Parity error; [25] TSDM Hw
14888c2ecf20Sopenharmony_ci   interrupt; [26] TCM Parity error; [27] TCM Hw interrupt; [28] TSEMI
14898c2ecf20Sopenharmony_ci   Parity error; [29] TSEMI Hw interrupt; [30] PBF Parity error; [31] PBF Hw
14908c2ecf20Sopenharmony_ci   interrupt; */
14918c2ecf20Sopenharmony_ci#define MISC_REG_AEU_SYS_KILL_STATUS_0				 0xa600
14928c2ecf20Sopenharmony_ci#define MISC_REG_AEU_SYS_KILL_STATUS_1				 0xa604
14938c2ecf20Sopenharmony_ci#define MISC_REG_AEU_SYS_KILL_STATUS_2				 0xa608
14948c2ecf20Sopenharmony_ci#define MISC_REG_AEU_SYS_KILL_STATUS_3				 0xa60c
14958c2ecf20Sopenharmony_ci/* [R 4] This field indicates the type of the device. '0' - 2 Ports; '1' - 1
14968c2ecf20Sopenharmony_ci   Port. */
14978c2ecf20Sopenharmony_ci#define MISC_REG_BOND_ID					 0xa400
14988c2ecf20Sopenharmony_ci/* [R 16] These bits indicate the part number for the chip. */
14998c2ecf20Sopenharmony_ci#define MISC_REG_CHIP_NUM					 0xa408
15008c2ecf20Sopenharmony_ci/* [R 4] These bits indicate the base revision of the chip. This value
15018c2ecf20Sopenharmony_ci   starts at 0x0 for the A0 tape-out and increments by one for each
15028c2ecf20Sopenharmony_ci   all-layer tape-out. */
15038c2ecf20Sopenharmony_ci#define MISC_REG_CHIP_REV					 0xa40c
15048c2ecf20Sopenharmony_ci/* [R 14] otp_misc_do[100:0] spare bits collection: 13:11-
15058c2ecf20Sopenharmony_ci * otp_misc_do[100:98]; 10:7 - otp_misc_do[87:84]; 6:3 - otp_misc_do[75:72];
15068c2ecf20Sopenharmony_ci * 2:1 - otp_misc_do[51:50]; 0 - otp_misc_do[1]. */
15078c2ecf20Sopenharmony_ci#define MISC_REG_CHIP_TYPE					 0xac60
15088c2ecf20Sopenharmony_ci#define MISC_REG_CHIP_TYPE_57811_MASK				 (1<<1)
15098c2ecf20Sopenharmony_ci#define MISC_REG_CPMU_LP_DR_ENABLE				 0xa858
15108c2ecf20Sopenharmony_ci/* [RW 1] FW EEE LPI Enable. When 1 indicates that EEE LPI mode is enabled
15118c2ecf20Sopenharmony_ci * by FW. When 0 indicates that the EEE LPI mode is disabled by FW. Clk
15128c2ecf20Sopenharmony_ci * 25MHz. Reset on hard reset. */
15138c2ecf20Sopenharmony_ci#define MISC_REG_CPMU_LP_FW_ENABLE_P0				 0xa84c
15148c2ecf20Sopenharmony_ci/* [RW 32] EEE LPI Idle Threshold. The threshold value for the idle EEE LPI
15158c2ecf20Sopenharmony_ci * counter. Timer tick is 1 us. Clock 25MHz. Reset on hard reset. */
15168c2ecf20Sopenharmony_ci#define MISC_REG_CPMU_LP_IDLE_THR_P0				 0xa8a0
15178c2ecf20Sopenharmony_ci/* [RW 18] LPI entry events mask. [0] - Vmain SM Mask. When 1 indicates that
15188c2ecf20Sopenharmony_ci * the Vmain SM end state is disabled. When 0 indicates that the Vmain SM
15198c2ecf20Sopenharmony_ci * end state is enabled. [1] - FW Queues Empty Mask. When 1 indicates that
15208c2ecf20Sopenharmony_ci * the FW command that all Queues are empty is disabled. When 0 indicates
15218c2ecf20Sopenharmony_ci * that the FW command that all Queues are empty is enabled. [2] - FW Early
15228c2ecf20Sopenharmony_ci * Exit Mask / Reserved (Entry mask). When 1 indicates that the FW Early
15238c2ecf20Sopenharmony_ci * Exit command is disabled. When 0 indicates that the FW Early Exit command
15248c2ecf20Sopenharmony_ci * is enabled. This bit applicable only in the EXIT Events Mask registers.
15258c2ecf20Sopenharmony_ci * [3] - PBF Request Mask. When 1 indicates that the PBF Request indication
15268c2ecf20Sopenharmony_ci * is disabled. When 0 indicates that the PBF Request indication is enabled.
15278c2ecf20Sopenharmony_ci * [4] - Tx Request Mask. When =1 indicates that the Tx other Than PBF
15288c2ecf20Sopenharmony_ci * Request indication is disabled. When 0 indicates that the Tx Other Than
15298c2ecf20Sopenharmony_ci * PBF Request indication is enabled. [5] - Rx EEE LPI Status Mask. When 1
15308c2ecf20Sopenharmony_ci * indicates that the RX EEE LPI Status indication is disabled. When 0
15318c2ecf20Sopenharmony_ci * indicates that the RX EEE LPI Status indication is enabled. In the EXIT
15328c2ecf20Sopenharmony_ci * Events Masks registers; this bit masks the falling edge detect of the LPI
15338c2ecf20Sopenharmony_ci * Status (Rx LPI is on - off). [6] - Tx Pause Mask. When 1 indicates that
15348c2ecf20Sopenharmony_ci * the Tx Pause indication is disabled. When 0 indicates that the Tx Pause
15358c2ecf20Sopenharmony_ci * indication is enabled. [7] - BRB1 Empty Mask. When 1 indicates that the
15368c2ecf20Sopenharmony_ci * BRB1 EMPTY indication is disabled. When 0 indicates that the BRB1 EMPTY
15378c2ecf20Sopenharmony_ci * indication is enabled. [8] - QM Idle Mask. When 1 indicates that the QM
15388c2ecf20Sopenharmony_ci * IDLE indication is disabled. When 0 indicates that the QM IDLE indication
15398c2ecf20Sopenharmony_ci * is enabled. (One bit for both VOQ0 and VOQ1). [9] - QM LB Idle Mask. When
15408c2ecf20Sopenharmony_ci * 1 indicates that the QM IDLE indication for LOOPBACK is disabled. When 0
15418c2ecf20Sopenharmony_ci * indicates that the QM IDLE indication for LOOPBACK is enabled. [10] - L1
15428c2ecf20Sopenharmony_ci * Status Mask. When 1 indicates that the L1 Status indication from the PCIE
15438c2ecf20Sopenharmony_ci * CORE is disabled. When 0 indicates that the RX EEE LPI Status indication
15448c2ecf20Sopenharmony_ci * from the PCIE CORE is enabled. In the EXIT Events Masks registers; this
15458c2ecf20Sopenharmony_ci * bit masks the falling edge detect of the L1 status (L1 is on - off). [11]
15468c2ecf20Sopenharmony_ci * - P0 E0 EEE EEE LPI REQ Mask. When =1 indicates that the P0 E0 EEE EEE
15478c2ecf20Sopenharmony_ci * LPI REQ indication is disabled. When =0 indicates that the P0 E0 EEE LPI
15488c2ecf20Sopenharmony_ci * REQ indication is enabled. [12] - P1 E0 EEE LPI REQ Mask. When =1
15498c2ecf20Sopenharmony_ci * indicates that the P0 EEE LPI REQ indication is disabled. When =0
15508c2ecf20Sopenharmony_ci * indicates that the P0 EEE LPI REQ indication is enabled. [13] - P0 E1 EEE
15518c2ecf20Sopenharmony_ci * LPI REQ Mask. When =1 indicates that the P0 EEE LPI REQ indication is
15528c2ecf20Sopenharmony_ci * disabled. When =0 indicates that the P0 EEE LPI REQ indication is
15538c2ecf20Sopenharmony_ci * enabled. [14] - P1 E1 EEE LPI REQ Mask. When =1 indicates that the P0 EEE
15548c2ecf20Sopenharmony_ci * LPI REQ indication is disabled. When =0 indicates that the P0 EEE LPI REQ
15558c2ecf20Sopenharmony_ci * indication is enabled. [15] - L1 REQ Mask. When =1 indicates that the L1
15568c2ecf20Sopenharmony_ci * REQ indication is disabled. When =0 indicates that the L1 indication is
15578c2ecf20Sopenharmony_ci * enabled. [16] - Rx EEE LPI Status Edge Detect Mask. When =1 indicates
15588c2ecf20Sopenharmony_ci * that the RX EEE LPI Status Falling Edge Detect indication is disabled (Rx
15598c2ecf20Sopenharmony_ci * EEE LPI is on - off). When =0 indicates that the RX EEE LPI Status
15608c2ecf20Sopenharmony_ci * Falling Edge Detec indication is enabled (Rx EEE LPI is on - off). This
15618c2ecf20Sopenharmony_ci * bit is applicable only in the EXIT Events Masks registers. [17] - L1
15628c2ecf20Sopenharmony_ci * Status Edge Detect Mask. When =1 indicates that the L1 Status Falling
15638c2ecf20Sopenharmony_ci * Edge Detect indication from the PCIE CORE is disabled (L1 is on - off).
15648c2ecf20Sopenharmony_ci * When =0 indicates that the L1 Status Falling Edge Detect indication from
15658c2ecf20Sopenharmony_ci * the PCIE CORE is enabled (L1 is on - off). This bit is applicable only in
15668c2ecf20Sopenharmony_ci * the EXIT Events Masks registers. Clock 25MHz. Reset on hard reset. */
15678c2ecf20Sopenharmony_ci#define MISC_REG_CPMU_LP_MASK_ENT_P0				 0xa880
15688c2ecf20Sopenharmony_ci/* [RW 18] EEE LPI exit events mask. [0] - Vmain SM Mask. When 1 indicates
15698c2ecf20Sopenharmony_ci * that the Vmain SM end state is disabled. When 0 indicates that the Vmain
15708c2ecf20Sopenharmony_ci * SM end state is enabled. [1] - FW Queues Empty Mask. When 1 indicates
15718c2ecf20Sopenharmony_ci * that the FW command that all Queues are empty is disabled. When 0
15728c2ecf20Sopenharmony_ci * indicates that the FW command that all Queues are empty is enabled. [2] -
15738c2ecf20Sopenharmony_ci * FW Early Exit Mask / Reserved (Entry mask). When 1 indicates that the FW
15748c2ecf20Sopenharmony_ci * Early Exit command is disabled. When 0 indicates that the FW Early Exit
15758c2ecf20Sopenharmony_ci * command is enabled. This bit applicable only in the EXIT Events Mask
15768c2ecf20Sopenharmony_ci * registers. [3] - PBF Request Mask. When 1 indicates that the PBF Request
15778c2ecf20Sopenharmony_ci * indication is disabled. When 0 indicates that the PBF Request indication
15788c2ecf20Sopenharmony_ci * is enabled. [4] - Tx Request Mask. When =1 indicates that the Tx other
15798c2ecf20Sopenharmony_ci * Than PBF Request indication is disabled. When 0 indicates that the Tx
15808c2ecf20Sopenharmony_ci * Other Than PBF Request indication is enabled. [5] - Rx EEE LPI Status
15818c2ecf20Sopenharmony_ci * Mask. When 1 indicates that the RX EEE LPI Status indication is disabled.
15828c2ecf20Sopenharmony_ci * When 0 indicates that the RX LPI Status indication is enabled. In the
15838c2ecf20Sopenharmony_ci * EXIT Events Masks registers; this bit masks the falling edge detect of
15848c2ecf20Sopenharmony_ci * the EEE LPI Status (Rx EEE LPI is on - off). [6] - Tx Pause Mask. When 1
15858c2ecf20Sopenharmony_ci * indicates that the Tx Pause indication is disabled. When 0 indicates that
15868c2ecf20Sopenharmony_ci * the Tx Pause indication is enabled. [7] - BRB1 Empty Mask. When 1
15878c2ecf20Sopenharmony_ci * indicates that the BRB1 EMPTY indication is disabled. When 0 indicates
15888c2ecf20Sopenharmony_ci * that the BRB1 EMPTY indication is enabled. [8] - QM Idle Mask. When 1
15898c2ecf20Sopenharmony_ci * indicates that the QM IDLE indication is disabled. When 0 indicates that
15908c2ecf20Sopenharmony_ci * the QM IDLE indication is enabled. (One bit for both VOQ0 and VOQ1). [9]
15918c2ecf20Sopenharmony_ci * - QM LB Idle Mask. When 1 indicates that the QM IDLE indication for
15928c2ecf20Sopenharmony_ci * LOOPBACK is disabled. When 0 indicates that the QM IDLE indication for
15938c2ecf20Sopenharmony_ci * LOOPBACK is enabled. [10] - L1 Status Mask. When 1 indicates that the L1
15948c2ecf20Sopenharmony_ci * Status indication from the PCIE CORE is disabled. When 0 indicates that
15958c2ecf20Sopenharmony_ci * the RX EEE LPI Status indication from the PCIE CORE is enabled. In the
15968c2ecf20Sopenharmony_ci * EXIT Events Masks registers; this bit masks the falling edge detect of
15978c2ecf20Sopenharmony_ci * the L1 status (L1 is on - off). [11] - P0 E0 EEE EEE LPI REQ Mask. When
15988c2ecf20Sopenharmony_ci * =1 indicates that the P0 E0 EEE EEE LPI REQ indication is disabled. When
15998c2ecf20Sopenharmony_ci * =0 indicates that the P0 E0 EEE LPI REQ indication is enabled. [12] - P1
16008c2ecf20Sopenharmony_ci * E0 EEE LPI REQ Mask. When =1 indicates that the P0 EEE LPI REQ indication
16018c2ecf20Sopenharmony_ci * is disabled. When =0 indicates that the P0 EEE LPI REQ indication is
16028c2ecf20Sopenharmony_ci * enabled. [13] - P0 E1 EEE LPI REQ Mask. When =1 indicates that the P0 EEE
16038c2ecf20Sopenharmony_ci * LPI REQ indication is disabled. When =0 indicates that the P0 EEE LPI REQ
16048c2ecf20Sopenharmony_ci * indication is enabled. [14] - P1 E1 EEE LPI REQ Mask. When =1 indicates
16058c2ecf20Sopenharmony_ci * that the P0 EEE LPI REQ indication is disabled. When =0 indicates that
16068c2ecf20Sopenharmony_ci * the P0 EEE LPI REQ indication is enabled. [15] - L1 REQ Mask. When =1
16078c2ecf20Sopenharmony_ci * indicates that the L1 REQ indication is disabled. When =0 indicates that
16088c2ecf20Sopenharmony_ci * the L1 indication is enabled. [16] - Rx EEE LPI Status Edge Detect Mask.
16098c2ecf20Sopenharmony_ci * When =1 indicates that the RX EEE LPI Status Falling Edge Detect
16108c2ecf20Sopenharmony_ci * indication is disabled (Rx EEE LPI is on - off). When =0 indicates that
16118c2ecf20Sopenharmony_ci * the RX EEE LPI Status Falling Edge Detec indication is enabled (Rx EEE
16128c2ecf20Sopenharmony_ci * LPI is on - off). This bit is applicable only in the EXIT Events Masks
16138c2ecf20Sopenharmony_ci * registers. [17] - L1 Status Edge Detect Mask. When =1 indicates that the
16148c2ecf20Sopenharmony_ci * L1 Status Falling Edge Detect indication from the PCIE CORE is disabled
16158c2ecf20Sopenharmony_ci * (L1 is on - off). When =0 indicates that the L1 Status Falling Edge
16168c2ecf20Sopenharmony_ci * Detect indication from the PCIE CORE is enabled (L1 is on - off). This
16178c2ecf20Sopenharmony_ci * bit is applicable only in the EXIT Events Masks registers.Clock 25MHz.
16188c2ecf20Sopenharmony_ci * Reset on hard reset. */
16198c2ecf20Sopenharmony_ci#define MISC_REG_CPMU_LP_MASK_EXT_P0				 0xa888
16208c2ecf20Sopenharmony_ci/* [RW 16] EEE LPI Entry Events Counter. A statistic counter with the number
16218c2ecf20Sopenharmony_ci * of counts that the SM entered the EEE LPI state. Clock 25MHz. Read only
16228c2ecf20Sopenharmony_ci * register. Reset on hard reset. */
16238c2ecf20Sopenharmony_ci#define MISC_REG_CPMU_LP_SM_ENT_CNT_P0				 0xa8b8
16248c2ecf20Sopenharmony_ci/* [RW 16] EEE LPI Entry Events Counter. A statistic counter with the number
16258c2ecf20Sopenharmony_ci * of counts that the SM entered the EEE LPI state. Clock 25MHz. Read only
16268c2ecf20Sopenharmony_ci * register. Reset on hard reset. */
16278c2ecf20Sopenharmony_ci#define MISC_REG_CPMU_LP_SM_ENT_CNT_P1				 0xa8bc
16288c2ecf20Sopenharmony_ci/* [RW 32] The following driver registers(1...16) represent 16 drivers and
16298c2ecf20Sopenharmony_ci   32 clients. Each client can be controlled by one driver only. One in each
16308c2ecf20Sopenharmony_ci   bit represent that this driver control the appropriate client (Ex: bit 5
16318c2ecf20Sopenharmony_ci   is set means this driver control client number 5). addr1 = set; addr0 =
16328c2ecf20Sopenharmony_ci   clear; read from both addresses will give the same result = status. write
16338c2ecf20Sopenharmony_ci   to address 1 will set a request to control all the clients that their
16348c2ecf20Sopenharmony_ci   appropriate bit (in the write command) is set. if the client is free (the
16358c2ecf20Sopenharmony_ci   appropriate bit in all the other drivers is clear) one will be written to
16368c2ecf20Sopenharmony_ci   that driver register; if the client isn't free the bit will remain zero.
16378c2ecf20Sopenharmony_ci   if the appropriate bit is set (the driver request to gain control on a
16388c2ecf20Sopenharmony_ci   client it already controls the ~MISC_REGISTERS_INT_STS.GENERIC_SW
16398c2ecf20Sopenharmony_ci   interrupt will be asserted). write to address 0 will set a request to
16408c2ecf20Sopenharmony_ci   free all the clients that their appropriate bit (in the write command) is
16418c2ecf20Sopenharmony_ci   set. if the appropriate bit is clear (the driver request to free a client
16428c2ecf20Sopenharmony_ci   it doesn't controls the ~MISC_REGISTERS_INT_STS.GENERIC_SW interrupt will
16438c2ecf20Sopenharmony_ci   be asserted). */
16448c2ecf20Sopenharmony_ci#define MISC_REG_DRIVER_CONTROL_1				 0xa510
16458c2ecf20Sopenharmony_ci#define MISC_REG_DRIVER_CONTROL_7				 0xa3c8
16468c2ecf20Sopenharmony_ci/* [RW 1] e1hmf for WOL. If clr WOL signal o the PXP will be send on bit 0
16478c2ecf20Sopenharmony_ci   only. */
16488c2ecf20Sopenharmony_ci#define MISC_REG_E1HMF_MODE					 0xa5f8
16498c2ecf20Sopenharmony_ci/* [R 1] Status of four port mode path swap input pin. */
16508c2ecf20Sopenharmony_ci#define MISC_REG_FOUR_PORT_PATH_SWAP				 0xa75c
16518c2ecf20Sopenharmony_ci/* [RW 2] 4 port path swap overwrite.[0] - Overwrite control; if it is 0 -
16528c2ecf20Sopenharmony_ci   the path_swap output is equal to 4 port mode path swap input pin; if it
16538c2ecf20Sopenharmony_ci   is 1 - the path_swap output is equal to bit[1] of this register; [1] -
16548c2ecf20Sopenharmony_ci   Overwrite value. If bit[0] of this register is 1 this is the value that
16558c2ecf20Sopenharmony_ci   receives the path_swap output. Reset on Hard reset. */
16568c2ecf20Sopenharmony_ci#define MISC_REG_FOUR_PORT_PATH_SWAP_OVWR			 0xa738
16578c2ecf20Sopenharmony_ci/* [R 1] Status of 4 port mode port swap input pin. */
16588c2ecf20Sopenharmony_ci#define MISC_REG_FOUR_PORT_PORT_SWAP				 0xa754
16598c2ecf20Sopenharmony_ci/* [RW 2] 4 port port swap overwrite.[0] - Overwrite control; if it is 0 -
16608c2ecf20Sopenharmony_ci   the port_swap output is equal to 4 port mode port swap input pin; if it
16618c2ecf20Sopenharmony_ci   is 1 - the port_swap output is equal to bit[1] of this register; [1] -
16628c2ecf20Sopenharmony_ci   Overwrite value. If bit[0] of this register is 1 this is the value that
16638c2ecf20Sopenharmony_ci   receives the port_swap output. Reset on Hard reset. */
16648c2ecf20Sopenharmony_ci#define MISC_REG_FOUR_PORT_PORT_SWAP_OVWR			 0xa734
16658c2ecf20Sopenharmony_ci/* [RW 32] Debug only: spare RW register reset by core reset */
16668c2ecf20Sopenharmony_ci#define MISC_REG_GENERIC_CR_0					 0xa460
16678c2ecf20Sopenharmony_ci#define MISC_REG_GENERIC_CR_1					 0xa464
16688c2ecf20Sopenharmony_ci/* [RW 32] Debug only: spare RW register reset by por reset */
16698c2ecf20Sopenharmony_ci#define MISC_REG_GENERIC_POR_1					 0xa474
16708c2ecf20Sopenharmony_ci/* [RW 32] Bit[0]: EPIO MODE SEL: Setting this bit to 1 will allow SW/FW to
16718c2ecf20Sopenharmony_ci   use all of the 32 Extended GPIO pins. Without setting this bit; an EPIO
16728c2ecf20Sopenharmony_ci   can not be configured as an output. Each output has its output enable in
16738c2ecf20Sopenharmony_ci   the MCP register space; but this bit needs to be set to make use of that.
16748c2ecf20Sopenharmony_ci   Bit[3:1] spare. Bit[4]: WCVTMON_PWRDN: Powerdown for Warpcore VTMON. When
16758c2ecf20Sopenharmony_ci   set to 1 - Powerdown. Bit[5]: WCVTMON_RESETB: Reset for Warpcore VTMON.
16768c2ecf20Sopenharmony_ci   When set to 0 - vTMON is in reset. Bit[6]: setting this bit will change
16778c2ecf20Sopenharmony_ci   the i/o to an output and will drive the TimeSync output. Bit[31:7]:
16788c2ecf20Sopenharmony_ci   spare. Global register. Reset by hard reset. */
16798c2ecf20Sopenharmony_ci#define MISC_REG_GEN_PURP_HWG					 0xa9a0
16808c2ecf20Sopenharmony_ci/* [RW 32] GPIO. [31-28] FLOAT port 0; [27-24] FLOAT port 0; When any of
16818c2ecf20Sopenharmony_ci   these bits is written as a '1'; the corresponding SPIO bit will turn off
16828c2ecf20Sopenharmony_ci   it's drivers and become an input. This is the reset state of all GPIO
16838c2ecf20Sopenharmony_ci   pins. The read value of these bits will be a '1' if that last command
16848c2ecf20Sopenharmony_ci   (#SET; #CLR; or #FLOAT) for this bit was a #FLOAT. (reset value 0xff).
16858c2ecf20Sopenharmony_ci   [23-20] CLR port 1; 19-16] CLR port 0; When any of these bits is written
16868c2ecf20Sopenharmony_ci   as a '1'; the corresponding GPIO bit will drive low. The read value of
16878c2ecf20Sopenharmony_ci   these bits will be a '1' if that last command (#SET; #CLR; or #FLOAT) for
16888c2ecf20Sopenharmony_ci   this bit was a #CLR. (reset value 0). [15-12] SET port 1; 11-8] port 0;
16898c2ecf20Sopenharmony_ci   SET When any of these bits is written as a '1'; the corresponding GPIO
16908c2ecf20Sopenharmony_ci   bit will drive high (if it has that capability). The read value of these
16918c2ecf20Sopenharmony_ci   bits will be a '1' if that last command (#SET; #CLR; or #FLOAT) for this
16928c2ecf20Sopenharmony_ci   bit was a #SET. (reset value 0). [7-4] VALUE port 1; [3-0] VALUE port 0;
16938c2ecf20Sopenharmony_ci   RO; These bits indicate the read value of each of the eight GPIO pins.
16948c2ecf20Sopenharmony_ci   This is the result value of the pin; not the drive value. Writing these
16958c2ecf20Sopenharmony_ci   bits will have not effect. */
16968c2ecf20Sopenharmony_ci#define MISC_REG_GPIO						 0xa490
16978c2ecf20Sopenharmony_ci/* [RW 8] These bits enable the GPIO_INTs to signals event to the
16988c2ecf20Sopenharmony_ci   IGU/MCP.according to the following map: [0] p0_gpio_0; [1] p0_gpio_1; [2]
16998c2ecf20Sopenharmony_ci   p0_gpio_2; [3] p0_gpio_3; [4] p1_gpio_0; [5] p1_gpio_1; [6] p1_gpio_2;
17008c2ecf20Sopenharmony_ci   [7] p1_gpio_3; */
17018c2ecf20Sopenharmony_ci#define MISC_REG_GPIO_EVENT_EN					 0xa2bc
17028c2ecf20Sopenharmony_ci/* [RW 32] GPIO INT. [31-28] OLD_CLR port1; [27-24] OLD_CLR port0; Writing a
17038c2ecf20Sopenharmony_ci   '1' to these bit clears the corresponding bit in the #OLD_VALUE register.
17048c2ecf20Sopenharmony_ci   This will acknowledge an interrupt on the falling edge of corresponding
17058c2ecf20Sopenharmony_ci   GPIO input (reset value 0). [23-16] OLD_SET [23-16] port1; OLD_SET port0;
17068c2ecf20Sopenharmony_ci   Writing a '1' to these bit sets the corresponding bit in the #OLD_VALUE
17078c2ecf20Sopenharmony_ci   register. This will acknowledge an interrupt on the rising edge of
17088c2ecf20Sopenharmony_ci   corresponding SPIO input (reset value 0). [15-12] OLD_VALUE [11-8] port1;
17098c2ecf20Sopenharmony_ci   OLD_VALUE port0; RO; These bits indicate the old value of the GPIO input
17108c2ecf20Sopenharmony_ci   value. When the ~INT_STATE bit is set; this bit indicates the OLD value
17118c2ecf20Sopenharmony_ci   of the pin such that if ~INT_STATE is set and this bit is '0'; then the
17128c2ecf20Sopenharmony_ci   interrupt is due to a low to high edge. If ~INT_STATE is set and this bit
17138c2ecf20Sopenharmony_ci   is '1'; then the interrupt is due to a high to low edge (reset value 0).
17148c2ecf20Sopenharmony_ci   [7-4] INT_STATE port1; [3-0] INT_STATE RO port0; These bits indicate the
17158c2ecf20Sopenharmony_ci   current GPIO interrupt state for each GPIO pin. This bit is cleared when
17168c2ecf20Sopenharmony_ci   the appropriate #OLD_SET or #OLD_CLR command bit is written. This bit is
17178c2ecf20Sopenharmony_ci   set when the GPIO input does not match the current value in #OLD_VALUE
17188c2ecf20Sopenharmony_ci   (reset value 0). */
17198c2ecf20Sopenharmony_ci#define MISC_REG_GPIO_INT					 0xa494
17208c2ecf20Sopenharmony_ci/* [R 28] this field hold the last information that caused reserved
17218c2ecf20Sopenharmony_ci   attention. bits [19:0] - address; [22:20] function; [23] reserved;
17228c2ecf20Sopenharmony_ci   [27:24] the master that caused the attention - according to the following
17238c2ecf20Sopenharmony_ci   encodeing:1 = pxp; 2 = mcp; 3 = usdm; 4 = tsdm; 5 = xsdm; 6 = csdm; 7 =
17248c2ecf20Sopenharmony_ci   dbu; 8 = dmae */
17258c2ecf20Sopenharmony_ci#define MISC_REG_GRC_RSV_ATTN					 0xa3c0
17268c2ecf20Sopenharmony_ci/* [R 28] this field hold the last information that caused timeout
17278c2ecf20Sopenharmony_ci   attention. bits [19:0] - address; [22:20] function; [23] reserved;
17288c2ecf20Sopenharmony_ci   [27:24] the master that caused the attention - according to the following
17298c2ecf20Sopenharmony_ci   encodeing:1 = pxp; 2 = mcp; 3 = usdm; 4 = tsdm; 5 = xsdm; 6 = csdm; 7 =
17308c2ecf20Sopenharmony_ci   dbu; 8 = dmae */
17318c2ecf20Sopenharmony_ci#define MISC_REG_GRC_TIMEOUT_ATTN				 0xa3c4
17328c2ecf20Sopenharmony_ci/* [RW 1] Setting this bit enables a timer in the GRC block to timeout any
17338c2ecf20Sopenharmony_ci   access that does not finish within
17348c2ecf20Sopenharmony_ci   ~misc_registers_grc_timout_val.grc_timeout_val cycles. When this bit is
17358c2ecf20Sopenharmony_ci   cleared; this timeout is disabled. If this timeout occurs; the GRC shall
17368c2ecf20Sopenharmony_ci   assert it attention output. */
17378c2ecf20Sopenharmony_ci#define MISC_REG_GRC_TIMEOUT_EN 				 0xa280
17388c2ecf20Sopenharmony_ci/* [RW 28] 28 LSB of LCPLL first register; reset val = 521. inside order of
17398c2ecf20Sopenharmony_ci   the bits is: [2:0] OAC reset value 001) CML output buffer bias control;
17408c2ecf20Sopenharmony_ci   111 for +40%; 011 for +20%; 001 for 0%; 000 for -20%. [5:3] Icp_ctrl
17418c2ecf20Sopenharmony_ci   (reset value 001) Charge pump current control; 111 for 720u; 011 for
17428c2ecf20Sopenharmony_ci   600u; 001 for 480u and 000 for 360u. [7:6] Bias_ctrl (reset value 00)
17438c2ecf20Sopenharmony_ci   Global bias control; When bit 7 is high bias current will be 10 0gh; When
17448c2ecf20Sopenharmony_ci   bit 6 is high bias will be 100w; Valid values are 00; 10; 01. [10:8]
17458c2ecf20Sopenharmony_ci   Pll_observe (reset value 010) Bits to control observability. bit 10 is
17468c2ecf20Sopenharmony_ci   for test bias; bit 9 is for test CK; bit 8 is test Vc. [12:11] Vth_ctrl
17478c2ecf20Sopenharmony_ci   (reset value 00) Comparator threshold control. 00 for 0.6V; 01 for 0.54V
17488c2ecf20Sopenharmony_ci   and 10 for 0.66V. [13] pllSeqStart (reset value 0) Enables VCO tuning
17498c2ecf20Sopenharmony_ci   sequencer: 1= sequencer disabled; 0= sequencer enabled (inverted
17508c2ecf20Sopenharmony_ci   internally). [14] reserved (reset value 0) Reset for VCO sequencer is
17518c2ecf20Sopenharmony_ci   connected to RESET input directly. [15] capRetry_en (reset value 0)
17528c2ecf20Sopenharmony_ci   enable retry on cap search failure (inverted). [16] freqMonitor_e (reset
17538c2ecf20Sopenharmony_ci   value 0) bit to continuously monitor vco freq (inverted). [17]
17548c2ecf20Sopenharmony_ci   freqDetRestart_en (reset value 0) bit to enable restart when not freq
17558c2ecf20Sopenharmony_ci   locked (inverted). [18] freqDetRetry_en (reset value 0) bit to enable
17568c2ecf20Sopenharmony_ci   retry on freq det failure(inverted). [19] pllForceFdone_en (reset value
17578c2ecf20Sopenharmony_ci   0) bit to enable pllForceFdone & pllForceFpass into pllSeq. [20]
17588c2ecf20Sopenharmony_ci   pllForceFdone (reset value 0) bit to force freqDone. [21] pllForceFpass
17598c2ecf20Sopenharmony_ci   (reset value 0) bit to force freqPass. [22] pllForceDone_en (reset value
17608c2ecf20Sopenharmony_ci   0) bit to enable pllForceCapDone. [23] pllForceCapDone (reset value 0)
17618c2ecf20Sopenharmony_ci   bit to force capDone. [24] pllForceCapPass_en (reset value 0) bit to
17628c2ecf20Sopenharmony_ci   enable pllForceCapPass. [25] pllForceCapPass (reset value 0) bit to force
17638c2ecf20Sopenharmony_ci   capPass. [26] capRestart (reset value 0) bit to force cap sequencer to
17648c2ecf20Sopenharmony_ci   restart. [27] capSelectM_en (reset value 0) bit to enable cap select
17658c2ecf20Sopenharmony_ci   register bits. */
17668c2ecf20Sopenharmony_ci#define MISC_REG_LCPLL_CTRL_1					 0xa2a4
17678c2ecf20Sopenharmony_ci#define MISC_REG_LCPLL_CTRL_REG_2				 0xa2a8
17688c2ecf20Sopenharmony_ci/* [RW 1] LCPLL power down. Global register. Active High. Reset on POR
17698c2ecf20Sopenharmony_ci * reset. */
17708c2ecf20Sopenharmony_ci#define MISC_REG_LCPLL_E40_PWRDWN				 0xaa74
17718c2ecf20Sopenharmony_ci/* [RW 1] LCPLL VCO reset. Global register. Active Low Reset on POR reset. */
17728c2ecf20Sopenharmony_ci#define MISC_REG_LCPLL_E40_RESETB_ANA				 0xaa78
17738c2ecf20Sopenharmony_ci/* [RW 1] LCPLL post-divider reset. Global register. Active Low Reset on POR
17748c2ecf20Sopenharmony_ci * reset. */
17758c2ecf20Sopenharmony_ci#define MISC_REG_LCPLL_E40_RESETB_DIG				 0xaa7c
17768c2ecf20Sopenharmony_ci/* [RW 4] Interrupt mask register #0 read/write */
17778c2ecf20Sopenharmony_ci#define MISC_REG_MISC_INT_MASK					 0xa388
17788c2ecf20Sopenharmony_ci/* [RW 1] Parity mask register #0 read/write */
17798c2ecf20Sopenharmony_ci#define MISC_REG_MISC_PRTY_MASK 				 0xa398
17808c2ecf20Sopenharmony_ci/* [R 1] Parity register #0 read */
17818c2ecf20Sopenharmony_ci#define MISC_REG_MISC_PRTY_STS					 0xa38c
17828c2ecf20Sopenharmony_ci/* [RC 1] Parity register #0 read clear */
17838c2ecf20Sopenharmony_ci#define MISC_REG_MISC_PRTY_STS_CLR				 0xa390
17848c2ecf20Sopenharmony_ci#define MISC_REG_NIG_WOL_P0					 0xa270
17858c2ecf20Sopenharmony_ci#define MISC_REG_NIG_WOL_P1					 0xa274
17868c2ecf20Sopenharmony_ci/* [R 1] If set indicate that the pcie_rst_b was asserted without perst
17878c2ecf20Sopenharmony_ci   assertion */
17888c2ecf20Sopenharmony_ci#define MISC_REG_PCIE_HOT_RESET 				 0xa618
17898c2ecf20Sopenharmony_ci/* [RW 32] 32 LSB of storm PLL first register; reset val = 0x 071d2911.
17908c2ecf20Sopenharmony_ci   inside order of the bits is: [0] P1 divider[0] (reset value 1); [1] P1
17918c2ecf20Sopenharmony_ci   divider[1] (reset value 0); [2] P1 divider[2] (reset value 0); [3] P1
17928c2ecf20Sopenharmony_ci   divider[3] (reset value 0); [4] P2 divider[0] (reset value 1); [5] P2
17938c2ecf20Sopenharmony_ci   divider[1] (reset value 0); [6] P2 divider[2] (reset value 0); [7] P2
17948c2ecf20Sopenharmony_ci   divider[3] (reset value 0); [8] ph_det_dis (reset value 1); [9]
17958c2ecf20Sopenharmony_ci   freq_det_dis (reset value 0); [10] Icpx[0] (reset value 0); [11] Icpx[1]
17968c2ecf20Sopenharmony_ci   (reset value 1); [12] Icpx[2] (reset value 0); [13] Icpx[3] (reset value
17978c2ecf20Sopenharmony_ci   1); [14] Icpx[4] (reset value 0); [15] Icpx[5] (reset value 0); [16]
17988c2ecf20Sopenharmony_ci   Rx[0] (reset value 1); [17] Rx[1] (reset value 0); [18] vc_en (reset
17998c2ecf20Sopenharmony_ci   value 1); [19] vco_rng[0] (reset value 1); [20] vco_rng[1] (reset value
18008c2ecf20Sopenharmony_ci   1); [21] Kvco_xf[0] (reset value 0); [22] Kvco_xf[1] (reset value 0);
18018c2ecf20Sopenharmony_ci   [23] Kvco_xf[2] (reset value 0); [24] Kvco_xs[0] (reset value 1); [25]
18028c2ecf20Sopenharmony_ci   Kvco_xs[1] (reset value 1); [26] Kvco_xs[2] (reset value 1); [27]
18038c2ecf20Sopenharmony_ci   testd_en (reset value 0); [28] testd_sel[0] (reset value 0); [29]
18048c2ecf20Sopenharmony_ci   testd_sel[1] (reset value 0); [30] testd_sel[2] (reset value 0); [31]
18058c2ecf20Sopenharmony_ci   testa_en (reset value 0); */
18068c2ecf20Sopenharmony_ci#define MISC_REG_PLL_STORM_CTRL_1				 0xa294
18078c2ecf20Sopenharmony_ci#define MISC_REG_PLL_STORM_CTRL_2				 0xa298
18088c2ecf20Sopenharmony_ci#define MISC_REG_PLL_STORM_CTRL_3				 0xa29c
18098c2ecf20Sopenharmony_ci#define MISC_REG_PLL_STORM_CTRL_4				 0xa2a0
18108c2ecf20Sopenharmony_ci/* [R 1] Status of 4 port mode enable input pin. */
18118c2ecf20Sopenharmony_ci#define MISC_REG_PORT4MODE_EN					 0xa750
18128c2ecf20Sopenharmony_ci/* [RW 2] 4 port mode enable overwrite.[0] - Overwrite control; if it is 0 -
18138c2ecf20Sopenharmony_ci * the port4mode_en output is equal to 4 port mode input pin; if it is 1 -
18148c2ecf20Sopenharmony_ci * the port4mode_en output is equal to bit[1] of this register; [1] -
18158c2ecf20Sopenharmony_ci * Overwrite value. If bit[0] of this register is 1 this is the value that
18168c2ecf20Sopenharmony_ci * receives the port4mode_en output . */
18178c2ecf20Sopenharmony_ci#define MISC_REG_PORT4MODE_EN_OVWR				 0xa720
18188c2ecf20Sopenharmony_ci/* [RW 32] reset reg#2; rite/read one = the specific block is out of reset;
18198c2ecf20Sopenharmony_ci   write/read zero = the specific block is in reset; addr 0-wr- the write
18208c2ecf20Sopenharmony_ci   value will be written to the register; addr 1-set - one will be written
18218c2ecf20Sopenharmony_ci   to all the bits that have the value of one in the data written (bits that
18228c2ecf20Sopenharmony_ci   have the value of zero will not be change) ; addr 2-clear - zero will be
18238c2ecf20Sopenharmony_ci   written to all the bits that have the value of one in the data written
18248c2ecf20Sopenharmony_ci   (bits that have the value of zero will not be change); addr 3-ignore;
18258c2ecf20Sopenharmony_ci   read ignore from all addr except addr 00; inside order of the bits is:
18268c2ecf20Sopenharmony_ci   [0] rst_bmac0; [1] rst_bmac1; [2] rst_emac0; [3] rst_emac1; [4] rst_grc;
18278c2ecf20Sopenharmony_ci   [5] rst_mcp_n_reset_reg_hard_core; [6] rst_ mcp_n_hard_core_rst_b; [7]
18288c2ecf20Sopenharmony_ci   rst_ mcp_n_reset_cmn_cpu; [8] rst_ mcp_n_reset_cmn_core; [9] rst_rbcn;
18298c2ecf20Sopenharmony_ci   [10] rst_dbg; [11] rst_misc_core; [12] rst_dbue (UART); [13]
18308c2ecf20Sopenharmony_ci   Pci_resetmdio_n; [14] rst_emac0_hard_core; [15] rst_emac1_hard_core; 16]
18318c2ecf20Sopenharmony_ci   rst_pxp_rq_rd_wr; 31:17] reserved */
18328c2ecf20Sopenharmony_ci#define MISC_REG_RESET_REG_1					 0xa580
18338c2ecf20Sopenharmony_ci#define MISC_REG_RESET_REG_2					 0xa590
18348c2ecf20Sopenharmony_ci/* [RW 20] 20 bit GRC address where the scratch-pad of the MCP that is
18358c2ecf20Sopenharmony_ci   shared with the driver resides */
18368c2ecf20Sopenharmony_ci#define MISC_REG_SHARED_MEM_ADDR				 0xa2b4
18378c2ecf20Sopenharmony_ci/* [RW 32] SPIO. [31-24] FLOAT When any of these bits is written as a '1';
18388c2ecf20Sopenharmony_ci   the corresponding SPIO bit will turn off it's drivers and become an
18398c2ecf20Sopenharmony_ci   input. This is the reset state of all SPIO pins. The read value of these
18408c2ecf20Sopenharmony_ci   bits will be a '1' if that last command (#SET; #CL; or #FLOAT) for this
18418c2ecf20Sopenharmony_ci   bit was a #FLOAT. (reset value 0xff). [23-16] CLR When any of these bits
18428c2ecf20Sopenharmony_ci   is written as a '1'; the corresponding SPIO bit will drive low. The read
18438c2ecf20Sopenharmony_ci   value of these bits will be a '1' if that last command (#SET; #CLR; or
18448c2ecf20Sopenharmony_ci#FLOAT) for this bit was a #CLR. (reset value 0). [15-8] SET When any of
18458c2ecf20Sopenharmony_ci   these bits is written as a '1'; the corresponding SPIO bit will drive
18468c2ecf20Sopenharmony_ci   high (if it has that capability). The read value of these bits will be a
18478c2ecf20Sopenharmony_ci   '1' if that last command (#SET; #CLR; or #FLOAT) for this bit was a #SET.
18488c2ecf20Sopenharmony_ci   (reset value 0). [7-0] VALUE RO; These bits indicate the read value of
18498c2ecf20Sopenharmony_ci   each of the eight SPIO pins. This is the result value of the pin; not the
18508c2ecf20Sopenharmony_ci   drive value. Writing these bits will have not effect. Each 8 bits field
18518c2ecf20Sopenharmony_ci   is divided as follows: [0] VAUX Enable; when pulsed low; enables supply
18528c2ecf20Sopenharmony_ci   from VAUX. (This is an output pin only; the FLOAT field is not applicable
18538c2ecf20Sopenharmony_ci   for this pin); [1] VAUX Disable; when pulsed low; disables supply form
18548c2ecf20Sopenharmony_ci   VAUX. (This is an output pin only; FLOAT field is not applicable for this
18558c2ecf20Sopenharmony_ci   pin); [2] SEL_VAUX_B - Control to power switching logic. Drive low to
18568c2ecf20Sopenharmony_ci   select VAUX supply. (This is an output pin only; it is not controlled by
18578c2ecf20Sopenharmony_ci   the SET and CLR fields; it is controlled by the Main Power SM; the FLOAT
18588c2ecf20Sopenharmony_ci   field is not applicable for this pin; only the VALUE fields is relevant -
18598c2ecf20Sopenharmony_ci   it reflects the output value); [3] port swap [4] spio_4; [5] spio_5; [6]
18608c2ecf20Sopenharmony_ci   Bit 0 of UMP device ID select; read by UMP firmware; [7] Bit 1 of UMP
18618c2ecf20Sopenharmony_ci   device ID select; read by UMP firmware. */
18628c2ecf20Sopenharmony_ci#define MISC_REG_SPIO						 0xa4fc
18638c2ecf20Sopenharmony_ci/* [RW 8] These bits enable the SPIO_INTs to signals event to the IGU/MC.
18648c2ecf20Sopenharmony_ci   according to the following map: [3:0] reserved; [4] spio_4 [5] spio_5;
18658c2ecf20Sopenharmony_ci   [7:0] reserved */
18668c2ecf20Sopenharmony_ci#define MISC_REG_SPIO_EVENT_EN					 0xa2b8
18678c2ecf20Sopenharmony_ci/* [RW 32] SPIO INT. [31-24] OLD_CLR Writing a '1' to these bit clears the
18688c2ecf20Sopenharmony_ci   corresponding bit in the #OLD_VALUE register. This will acknowledge an
18698c2ecf20Sopenharmony_ci   interrupt on the falling edge of corresponding SPIO input (reset value
18708c2ecf20Sopenharmony_ci   0). [23-16] OLD_SET Writing a '1' to these bit sets the corresponding bit
18718c2ecf20Sopenharmony_ci   in the #OLD_VALUE register. This will acknowledge an interrupt on the
18728c2ecf20Sopenharmony_ci   rising edge of corresponding SPIO input (reset value 0). [15-8] OLD_VALUE
18738c2ecf20Sopenharmony_ci   RO; These bits indicate the old value of the SPIO input value. When the
18748c2ecf20Sopenharmony_ci   ~INT_STATE bit is set; this bit indicates the OLD value of the pin such
18758c2ecf20Sopenharmony_ci   that if ~INT_STATE is set and this bit is '0'; then the interrupt is due
18768c2ecf20Sopenharmony_ci   to a low to high edge. If ~INT_STATE is set and this bit is '1'; then the
18778c2ecf20Sopenharmony_ci   interrupt is due to a high to low edge (reset value 0). [7-0] INT_STATE
18788c2ecf20Sopenharmony_ci   RO; These bits indicate the current SPIO interrupt state for each SPIO
18798c2ecf20Sopenharmony_ci   pin. This bit is cleared when the appropriate #OLD_SET or #OLD_CLR
18808c2ecf20Sopenharmony_ci   command bit is written. This bit is set when the SPIO input does not
18818c2ecf20Sopenharmony_ci   match the current value in #OLD_VALUE (reset value 0). */
18828c2ecf20Sopenharmony_ci#define MISC_REG_SPIO_INT					 0xa500
18838c2ecf20Sopenharmony_ci/* [RW 32] reload value for counter 4 if reload; the value will be reload if
18848c2ecf20Sopenharmony_ci   the counter reached zero and the reload bit
18858c2ecf20Sopenharmony_ci   (~misc_registers_sw_timer_cfg_4.sw_timer_cfg_4[1] ) is set */
18868c2ecf20Sopenharmony_ci#define MISC_REG_SW_TIMER_RELOAD_VAL_4				 0xa2fc
18878c2ecf20Sopenharmony_ci/* [RW 32] the value of the counter for sw timers1-8. there are 8 addresses
18888c2ecf20Sopenharmony_ci   in this register. address 0 - timer 1; address 1 - timer 2, ...  address 7 -
18898c2ecf20Sopenharmony_ci   timer 8 */
18908c2ecf20Sopenharmony_ci#define MISC_REG_SW_TIMER_VAL					 0xa5c0
18918c2ecf20Sopenharmony_ci/* [R 1] Status of two port mode path swap input pin. */
18928c2ecf20Sopenharmony_ci#define MISC_REG_TWO_PORT_PATH_SWAP				 0xa758
18938c2ecf20Sopenharmony_ci/* [RW 2] 2 port swap overwrite.[0] - Overwrite control; if it is 0 - the
18948c2ecf20Sopenharmony_ci   path_swap output is equal to 2 port mode path swap input pin; if it is 1
18958c2ecf20Sopenharmony_ci   - the path_swap output is equal to bit[1] of this register; [1] -
18968c2ecf20Sopenharmony_ci   Overwrite value. If bit[0] of this register is 1 this is the value that
18978c2ecf20Sopenharmony_ci   receives the path_swap output. Reset on Hard reset. */
18988c2ecf20Sopenharmony_ci#define MISC_REG_TWO_PORT_PATH_SWAP_OVWR			 0xa72c
18998c2ecf20Sopenharmony_ci/* [RW 1] Set by the MCP to remember if one or more of the drivers is/are
19008c2ecf20Sopenharmony_ci   loaded; 0-prepare; -unprepare */
19018c2ecf20Sopenharmony_ci#define MISC_REG_UNPREPARED					 0xa424
19028c2ecf20Sopenharmony_ci#define NIG_LLH0_BRB1_DRV_MASK_REG_LLH0_BRB1_DRV_MASK_BRCST	 (0x1<<0)
19038c2ecf20Sopenharmony_ci#define NIG_LLH0_BRB1_DRV_MASK_REG_LLH0_BRB1_DRV_MASK_MLCST	 (0x1<<1)
19048c2ecf20Sopenharmony_ci#define NIG_LLH0_BRB1_DRV_MASK_REG_LLH0_BRB1_DRV_MASK_NO_VLAN	 (0x1<<4)
19058c2ecf20Sopenharmony_ci#define NIG_LLH0_BRB1_DRV_MASK_REG_LLH0_BRB1_DRV_MASK_UNCST	 (0x1<<2)
19068c2ecf20Sopenharmony_ci#define NIG_LLH0_BRB1_DRV_MASK_REG_LLH0_BRB1_DRV_MASK_VLAN	 (0x1<<3)
19078c2ecf20Sopenharmony_ci/* [RW 5] MDIO PHY Address. The WC uses this address to determine whether or
19088c2ecf20Sopenharmony_ci * not it is the recipient of the message on the MDIO interface. The value
19098c2ecf20Sopenharmony_ci * is compared to the value on ctrl_md_devad. Drives output
19108c2ecf20Sopenharmony_ci * misc_xgxs0_phy_addr. Global register. */
19118c2ecf20Sopenharmony_ci#define MISC_REG_WC0_CTRL_PHY_ADDR				 0xa9cc
19128c2ecf20Sopenharmony_ci#define MISC_REG_WC0_RESET					 0xac30
19138c2ecf20Sopenharmony_ci/* [RW 2] XMAC Core port mode. Indicates the number of ports on the system
19148c2ecf20Sopenharmony_ci   side. This should be less than or equal to phy_port_mode; if some of the
19158c2ecf20Sopenharmony_ci   ports are not used. This enables reduction of frequency on the core side.
19168c2ecf20Sopenharmony_ci   This is a strap input for the XMAC_MP core. 00 - Single Port Mode; 01 -
19178c2ecf20Sopenharmony_ci   Dual Port Mode; 10 - Tri Port Mode; 11 - Quad Port Mode. This is a strap
19188c2ecf20Sopenharmony_ci   input for the XMAC_MP core; and should be changed only while reset is
19198c2ecf20Sopenharmony_ci   held low. Reset on Hard reset. */
19208c2ecf20Sopenharmony_ci#define MISC_REG_XMAC_CORE_PORT_MODE				 0xa964
19218c2ecf20Sopenharmony_ci/* [RW 2] XMAC PHY port mode. Indicates the number of ports on the Warp
19228c2ecf20Sopenharmony_ci   Core. This is a strap input for the XMAC_MP core. 00 - Single Port Mode;
19238c2ecf20Sopenharmony_ci   01 - Dual Port Mode; 1x - Quad Port Mode; This is a strap input for the
19248c2ecf20Sopenharmony_ci   XMAC_MP core; and should be changed only while reset is held low. Reset
19258c2ecf20Sopenharmony_ci   on Hard reset. */
19268c2ecf20Sopenharmony_ci#define MISC_REG_XMAC_PHY_PORT_MODE				 0xa960
19278c2ecf20Sopenharmony_ci/* [RW 32] 1 [47] Packet Size = 64 Write to this register write bits 31:0.
19288c2ecf20Sopenharmony_ci * Reads from this register will clear bits 31:0. */
19298c2ecf20Sopenharmony_ci#define MSTAT_REG_RX_STAT_GR64_LO				 0x200
19308c2ecf20Sopenharmony_ci/* [RW 32] 1 [00] Tx Good Packet Count Write to this register write bits
19318c2ecf20Sopenharmony_ci * 31:0. Reads from this register will clear bits 31:0. */
19328c2ecf20Sopenharmony_ci#define MSTAT_REG_TX_STAT_GTXPOK_LO				 0
19338c2ecf20Sopenharmony_ci#define NIG_LLH0_BRB1_DRV_MASK_REG_LLH0_BRB1_DRV_MASK_BRCST	 (0x1<<0)
19348c2ecf20Sopenharmony_ci#define NIG_LLH0_BRB1_DRV_MASK_REG_LLH0_BRB1_DRV_MASK_MLCST	 (0x1<<1)
19358c2ecf20Sopenharmony_ci#define NIG_LLH0_BRB1_DRV_MASK_REG_LLH0_BRB1_DRV_MASK_NO_VLAN	 (0x1<<4)
19368c2ecf20Sopenharmony_ci#define NIG_LLH0_BRB1_DRV_MASK_REG_LLH0_BRB1_DRV_MASK_UNCST	 (0x1<<2)
19378c2ecf20Sopenharmony_ci#define NIG_LLH0_BRB1_DRV_MASK_REG_LLH0_BRB1_DRV_MASK_VLAN	 (0x1<<3)
19388c2ecf20Sopenharmony_ci#define NIG_LLH0_XCM_MASK_REG_LLH0_XCM_MASK_BCN			 (0x1<<0)
19398c2ecf20Sopenharmony_ci#define NIG_LLH1_XCM_MASK_REG_LLH1_XCM_MASK_BCN			 (0x1<<0)
19408c2ecf20Sopenharmony_ci#define NIG_MASK_INTERRUPT_PORT0_REG_MASK_EMAC0_MISC_MI_INT	 (0x1<<0)
19418c2ecf20Sopenharmony_ci#define NIG_MASK_INTERRUPT_PORT0_REG_MASK_SERDES0_LINK_STATUS	 (0x1<<9)
19428c2ecf20Sopenharmony_ci#define NIG_MASK_INTERRUPT_PORT0_REG_MASK_XGXS0_LINK10G 	 (0x1<<15)
19438c2ecf20Sopenharmony_ci#define NIG_MASK_INTERRUPT_PORT0_REG_MASK_XGXS0_LINK_STATUS	 (0xf<<18)
19448c2ecf20Sopenharmony_ci/* [RW 1] Input enable for RX_BMAC0 IF */
19458c2ecf20Sopenharmony_ci#define NIG_REG_BMAC0_IN_EN					 0x100ac
19468c2ecf20Sopenharmony_ci/* [RW 1] output enable for TX_BMAC0 IF */
19478c2ecf20Sopenharmony_ci#define NIG_REG_BMAC0_OUT_EN					 0x100e0
19488c2ecf20Sopenharmony_ci/* [RW 1] output enable for TX BMAC pause port 0 IF */
19498c2ecf20Sopenharmony_ci#define NIG_REG_BMAC0_PAUSE_OUT_EN				 0x10110
19508c2ecf20Sopenharmony_ci/* [RW 1] output enable for RX_BMAC0_REGS IF */
19518c2ecf20Sopenharmony_ci#define NIG_REG_BMAC0_REGS_OUT_EN				 0x100e8
19528c2ecf20Sopenharmony_ci/* [RW 1] output enable for RX BRB1 port0 IF */
19538c2ecf20Sopenharmony_ci#define NIG_REG_BRB0_OUT_EN					 0x100f8
19548c2ecf20Sopenharmony_ci/* [RW 1] Input enable for TX BRB1 pause port 0 IF */
19558c2ecf20Sopenharmony_ci#define NIG_REG_BRB0_PAUSE_IN_EN				 0x100c4
19568c2ecf20Sopenharmony_ci/* [RW 1] output enable for RX BRB1 port1 IF */
19578c2ecf20Sopenharmony_ci#define NIG_REG_BRB1_OUT_EN					 0x100fc
19588c2ecf20Sopenharmony_ci/* [RW 1] Input enable for TX BRB1 pause port 1 IF */
19598c2ecf20Sopenharmony_ci#define NIG_REG_BRB1_PAUSE_IN_EN				 0x100c8
19608c2ecf20Sopenharmony_ci/* [RW 1] output enable for RX BRB1 LP IF */
19618c2ecf20Sopenharmony_ci#define NIG_REG_BRB_LB_OUT_EN					 0x10100
19628c2ecf20Sopenharmony_ci/* [WB_W 82] Debug packet to LP from RBC; Data spelling:[63:0] data; 64]
19638c2ecf20Sopenharmony_ci   error; [67:65]eop_bvalid; [68]eop; [69]sop; [70]port_id; 71]flush;
19648c2ecf20Sopenharmony_ci   72:73]-vnic_num; 81:74]-sideband_info */
19658c2ecf20Sopenharmony_ci#define NIG_REG_DEBUG_PACKET_LB 				 0x10800
19668c2ecf20Sopenharmony_ci/* [RW 1] Input enable for TX Debug packet */
19678c2ecf20Sopenharmony_ci#define NIG_REG_EGRESS_DEBUG_IN_EN				 0x100dc
19688c2ecf20Sopenharmony_ci/* [RW 1] If 1 - egress drain mode for port0 is active. In this mode all
19698c2ecf20Sopenharmony_ci   packets from PBFare not forwarded to the MAC and just deleted from FIFO.
19708c2ecf20Sopenharmony_ci   First packet may be deleted from the middle. And last packet will be
19718c2ecf20Sopenharmony_ci   always deleted till the end. */
19728c2ecf20Sopenharmony_ci#define NIG_REG_EGRESS_DRAIN0_MODE				 0x10060
19738c2ecf20Sopenharmony_ci/* [RW 1] Output enable to EMAC0 */
19748c2ecf20Sopenharmony_ci#define NIG_REG_EGRESS_EMAC0_OUT_EN				 0x10120
19758c2ecf20Sopenharmony_ci/* [RW 1] MAC configuration for packets of port0. If 1 - all packet outputs
19768c2ecf20Sopenharmony_ci   to emac for port0; other way to bmac for port0 */
19778c2ecf20Sopenharmony_ci#define NIG_REG_EGRESS_EMAC0_PORT				 0x10058
19788c2ecf20Sopenharmony_ci/* [RW 1] Input enable for TX PBF user packet port0 IF */
19798c2ecf20Sopenharmony_ci#define NIG_REG_EGRESS_PBF0_IN_EN				 0x100cc
19808c2ecf20Sopenharmony_ci/* [RW 1] Input enable for TX PBF user packet port1 IF */
19818c2ecf20Sopenharmony_ci#define NIG_REG_EGRESS_PBF1_IN_EN				 0x100d0
19828c2ecf20Sopenharmony_ci/* [RW 1] Input enable for TX UMP management packet port0 IF */
19838c2ecf20Sopenharmony_ci#define NIG_REG_EGRESS_UMP0_IN_EN				 0x100d4
19848c2ecf20Sopenharmony_ci/* [RW 1] Input enable for RX_EMAC0 IF */
19858c2ecf20Sopenharmony_ci#define NIG_REG_EMAC0_IN_EN					 0x100a4
19868c2ecf20Sopenharmony_ci/* [RW 1] output enable for TX EMAC pause port 0 IF */
19878c2ecf20Sopenharmony_ci#define NIG_REG_EMAC0_PAUSE_OUT_EN				 0x10118
19888c2ecf20Sopenharmony_ci/* [R 1] status from emac0. This bit is set when MDINT from either the
19898c2ecf20Sopenharmony_ci   EXT_MDINT pin or from the Copper PHY is driven low. This condition must
19908c2ecf20Sopenharmony_ci   be cleared in the attached PHY device that is driving the MINT pin. */
19918c2ecf20Sopenharmony_ci#define NIG_REG_EMAC0_STATUS_MISC_MI_INT			 0x10494
19928c2ecf20Sopenharmony_ci/* [WB 48] This address space contains BMAC0 registers. The BMAC registers
19938c2ecf20Sopenharmony_ci   are described in appendix A. In order to access the BMAC0 registers; the
19948c2ecf20Sopenharmony_ci   base address; NIG_REGISTERS_INGRESS_BMAC0_MEM; Offset: 0x10c00; should be
19958c2ecf20Sopenharmony_ci   added to each BMAC register offset */
19968c2ecf20Sopenharmony_ci#define NIG_REG_INGRESS_BMAC0_MEM				 0x10c00
19978c2ecf20Sopenharmony_ci/* [WB 48] This address space contains BMAC1 registers. The BMAC registers
19988c2ecf20Sopenharmony_ci   are described in appendix A. In order to access the BMAC0 registers; the
19998c2ecf20Sopenharmony_ci   base address; NIG_REGISTERS_INGRESS_BMAC1_MEM; Offset: 0x11000; should be
20008c2ecf20Sopenharmony_ci   added to each BMAC register offset */
20018c2ecf20Sopenharmony_ci#define NIG_REG_INGRESS_BMAC1_MEM				 0x11000
20028c2ecf20Sopenharmony_ci/* [R 1] FIFO empty in EOP descriptor FIFO of LP in NIG_RX_EOP */
20038c2ecf20Sopenharmony_ci#define NIG_REG_INGRESS_EOP_LB_EMPTY				 0x104e0
20048c2ecf20Sopenharmony_ci/* [RW 17] Debug only. RX_EOP_DSCR_lb_FIFO in NIG_RX_EOP. Data
20058c2ecf20Sopenharmony_ci   packet_length[13:0]; mac_error[14]; trunc_error[15]; parity[16] */
20068c2ecf20Sopenharmony_ci#define NIG_REG_INGRESS_EOP_LB_FIFO				 0x104e4
20078c2ecf20Sopenharmony_ci/* [RW 27] 0 - must be active for Everest A0; 1- for Everest B0 when latch
20088c2ecf20Sopenharmony_ci   logic for interrupts must be used. Enable per bit of interrupt of
20098c2ecf20Sopenharmony_ci   ~latch_status.latch_status */
20108c2ecf20Sopenharmony_ci#define NIG_REG_LATCH_BC_0					 0x16210
20118c2ecf20Sopenharmony_ci/* [RW 27] Latch for each interrupt from Unicore.b[0]
20128c2ecf20Sopenharmony_ci   status_emac0_misc_mi_int; b[1] status_emac0_misc_mi_complete;
20138c2ecf20Sopenharmony_ci   b[2]status_emac0_misc_cfg_change; b[3]status_emac0_misc_link_status;
20148c2ecf20Sopenharmony_ci   b[4]status_emac0_misc_link_change; b[5]status_emac0_misc_attn;
20158c2ecf20Sopenharmony_ci   b[6]status_serdes0_mac_crs; b[7]status_serdes0_autoneg_complete;
20168c2ecf20Sopenharmony_ci   b[8]status_serdes0_fiber_rxact; b[9]status_serdes0_link_status;
20178c2ecf20Sopenharmony_ci   b[10]status_serdes0_mr_page_rx; b[11]status_serdes0_cl73_an_complete;
20188c2ecf20Sopenharmony_ci   b[12]status_serdes0_cl73_mr_page_rx; b[13]status_serdes0_rx_sigdet;
20198c2ecf20Sopenharmony_ci   b[14]status_xgxs0_remotemdioreq; b[15]status_xgxs0_link10g;
20208c2ecf20Sopenharmony_ci   b[16]status_xgxs0_autoneg_complete; b[17]status_xgxs0_fiber_rxact;
20218c2ecf20Sopenharmony_ci   b[21:18]status_xgxs0_link_status; b[22]status_xgxs0_mr_page_rx;
20228c2ecf20Sopenharmony_ci   b[23]status_xgxs0_cl73_an_complete; b[24]status_xgxs0_cl73_mr_page_rx;
20238c2ecf20Sopenharmony_ci   b[25]status_xgxs0_rx_sigdet; b[26]status_xgxs0_mac_crs */
20248c2ecf20Sopenharmony_ci#define NIG_REG_LATCH_STATUS_0					 0x18000
20258c2ecf20Sopenharmony_ci/* [RW 1] led 10g for port 0 */
20268c2ecf20Sopenharmony_ci#define NIG_REG_LED_10G_P0					 0x10320
20278c2ecf20Sopenharmony_ci/* [RW 1] led 10g for port 1 */
20288c2ecf20Sopenharmony_ci#define NIG_REG_LED_10G_P1					 0x10324
20298c2ecf20Sopenharmony_ci/* [RW 1] Port0: This bit is set to enable the use of the
20308c2ecf20Sopenharmony_ci   ~nig_registers_led_control_blink_rate_p0.led_control_blink_rate_p0 field
20318c2ecf20Sopenharmony_ci   defined below. If this bit is cleared; then the blink rate will be about
20328c2ecf20Sopenharmony_ci   8Hz. */
20338c2ecf20Sopenharmony_ci#define NIG_REG_LED_CONTROL_BLINK_RATE_ENA_P0			 0x10318
20348c2ecf20Sopenharmony_ci/* [RW 12] Port0: Specifies the period of each blink cycle (on + off) for
20358c2ecf20Sopenharmony_ci   Traffic LED in milliseconds. Must be a non-zero value. This 12-bit field
20368c2ecf20Sopenharmony_ci   is reset to 0x080; giving a default blink period of approximately 8Hz. */
20378c2ecf20Sopenharmony_ci#define NIG_REG_LED_CONTROL_BLINK_RATE_P0			 0x10310
20388c2ecf20Sopenharmony_ci/* [RW 1] Port0: If set along with the
20398c2ecf20Sopenharmony_ci ~nig_registers_led_control_override_traffic_p0.led_control_override_traffic_p0
20408c2ecf20Sopenharmony_ci   bit and ~nig_registers_led_control_traffic_p0.led_control_traffic_p0 LED
20418c2ecf20Sopenharmony_ci   bit; the Traffic LED will blink with the blink rate specified in
20428c2ecf20Sopenharmony_ci   ~nig_registers_led_control_blink_rate_p0.led_control_blink_rate_p0 and
20438c2ecf20Sopenharmony_ci   ~nig_registers_led_control_blink_rate_ena_p0.led_control_blink_rate_ena_p0
20448c2ecf20Sopenharmony_ci   fields. */
20458c2ecf20Sopenharmony_ci#define NIG_REG_LED_CONTROL_BLINK_TRAFFIC_P0			 0x10308
20468c2ecf20Sopenharmony_ci/* [RW 1] Port0: If set overrides hardware control of the Traffic LED. The
20478c2ecf20Sopenharmony_ci   Traffic LED will then be controlled via bit ~nig_registers_
20488c2ecf20Sopenharmony_ci   led_control_traffic_p0.led_control_traffic_p0 and bit
20498c2ecf20Sopenharmony_ci   ~nig_registers_led_control_blink_traffic_p0.led_control_blink_traffic_p0 */
20508c2ecf20Sopenharmony_ci#define NIG_REG_LED_CONTROL_OVERRIDE_TRAFFIC_P0 		 0x102f8
20518c2ecf20Sopenharmony_ci/* [RW 1] Port0: If set along with the led_control_override_trafic_p0 bit;
20528c2ecf20Sopenharmony_ci   turns on the Traffic LED. If the led_control_blink_traffic_p0 bit is also
20538c2ecf20Sopenharmony_ci   set; the LED will blink with blink rate specified in
20548c2ecf20Sopenharmony_ci   ~nig_registers_led_control_blink_rate_p0.led_control_blink_rate_p0 and
20558c2ecf20Sopenharmony_ci   ~nig_regsters_led_control_blink_rate_ena_p0.led_control_blink_rate_ena_p0
20568c2ecf20Sopenharmony_ci   fields. */
20578c2ecf20Sopenharmony_ci#define NIG_REG_LED_CONTROL_TRAFFIC_P0				 0x10300
20588c2ecf20Sopenharmony_ci/* [RW 4] led mode for port0: 0 MAC; 1-3 PHY1; 4 MAC2; 5-7 PHY4; 8-MAC3;
20598c2ecf20Sopenharmony_ci   9-11PHY7; 12 MAC4; 13-15 PHY10; */
20608c2ecf20Sopenharmony_ci#define NIG_REG_LED_MODE_P0					 0x102f0
20618c2ecf20Sopenharmony_ci/* [RW 3] for port0 enable for llfc ppp and pause. b0 - brb1 enable; b1-
20628c2ecf20Sopenharmony_ci   tsdm enable; b2- usdm enable */
20638c2ecf20Sopenharmony_ci#define NIG_REG_LLFC_EGRESS_SRC_ENABLE_0			 0x16070
20648c2ecf20Sopenharmony_ci#define NIG_REG_LLFC_EGRESS_SRC_ENABLE_1			 0x16074
20658c2ecf20Sopenharmony_ci/* [RW 1] SAFC enable for port0. This register may get 1 only when
20668c2ecf20Sopenharmony_ci   ~ppp_enable.ppp_enable = 0 and pause_enable.pause_enable =0 for the same
20678c2ecf20Sopenharmony_ci   port */
20688c2ecf20Sopenharmony_ci#define NIG_REG_LLFC_ENABLE_0					 0x16208
20698c2ecf20Sopenharmony_ci#define NIG_REG_LLFC_ENABLE_1					 0x1620c
20708c2ecf20Sopenharmony_ci/* [RW 16] classes are high-priority for port0 */
20718c2ecf20Sopenharmony_ci#define NIG_REG_LLFC_HIGH_PRIORITY_CLASSES_0			 0x16058
20728c2ecf20Sopenharmony_ci#define NIG_REG_LLFC_HIGH_PRIORITY_CLASSES_1			 0x1605c
20738c2ecf20Sopenharmony_ci/* [RW 16] classes are low-priority for port0 */
20748c2ecf20Sopenharmony_ci#define NIG_REG_LLFC_LOW_PRIORITY_CLASSES_0			 0x16060
20758c2ecf20Sopenharmony_ci#define NIG_REG_LLFC_LOW_PRIORITY_CLASSES_1			 0x16064
20768c2ecf20Sopenharmony_ci/* [RW 1] Output enable of message to LLFC BMAC IF for port0 */
20778c2ecf20Sopenharmony_ci#define NIG_REG_LLFC_OUT_EN_0					 0x160c8
20788c2ecf20Sopenharmony_ci#define NIG_REG_LLFC_OUT_EN_1					 0x160cc
20798c2ecf20Sopenharmony_ci#define NIG_REG_LLH0_ACPI_PAT_0_CRC				 0x1015c
20808c2ecf20Sopenharmony_ci#define NIG_REG_LLH0_ACPI_PAT_6_LEN				 0x10154
20818c2ecf20Sopenharmony_ci#define NIG_REG_LLH0_BRB1_DRV_MASK				 0x10244
20828c2ecf20Sopenharmony_ci#define NIG_REG_LLH0_BRB1_DRV_MASK_MF				 0x16048
20838c2ecf20Sopenharmony_ci/* [RW 1] send to BRB1 if no match on any of RMP rules. */
20848c2ecf20Sopenharmony_ci#define NIG_REG_LLH0_BRB1_NOT_MCP				 0x1025c
20858c2ecf20Sopenharmony_ci/* [RW 2] Determine the classification participants. 0: no classification.1:
20868c2ecf20Sopenharmony_ci   classification upon VLAN id. 2: classification upon MAC address. 3:
20878c2ecf20Sopenharmony_ci   classification upon both VLAN id & MAC addr. */
20888c2ecf20Sopenharmony_ci#define NIG_REG_LLH0_CLS_TYPE					 0x16080
20898c2ecf20Sopenharmony_ci/* [RW 32] cm header for llh0 */
20908c2ecf20Sopenharmony_ci#define NIG_REG_LLH0_CM_HEADER					 0x1007c
20918c2ecf20Sopenharmony_ci#define NIG_REG_LLH0_DEST_IP_0_1				 0x101dc
20928c2ecf20Sopenharmony_ci#define NIG_REG_LLH0_DEST_MAC_0_0				 0x101c0
20938c2ecf20Sopenharmony_ci/* [RW 16] destination TCP address 1. The LLH will look for this address in
20948c2ecf20Sopenharmony_ci   all incoming packets. */
20958c2ecf20Sopenharmony_ci#define NIG_REG_LLH0_DEST_TCP_0 				 0x10220
20968c2ecf20Sopenharmony_ci/* [RW 16] destination UDP address 1 The LLH will look for this address in
20978c2ecf20Sopenharmony_ci   all incoming packets. */
20988c2ecf20Sopenharmony_ci#define NIG_REG_LLH0_DEST_UDP_0 				 0x10214
20998c2ecf20Sopenharmony_ci#define NIG_REG_LLH0_ERROR_MASK 				 0x1008c
21008c2ecf20Sopenharmony_ci/* [RW 8] event id for llh0 */
21018c2ecf20Sopenharmony_ci#define NIG_REG_LLH0_EVENT_ID					 0x10084
21028c2ecf20Sopenharmony_ci#define NIG_REG_LLH0_FUNC_EN					 0x160fc
21038c2ecf20Sopenharmony_ci#define NIG_REG_LLH0_FUNC_MEM					 0x16180
21048c2ecf20Sopenharmony_ci#define NIG_REG_LLH0_FUNC_MEM_ENABLE				 0x16140
21058c2ecf20Sopenharmony_ci#define NIG_REG_LLH0_FUNC_VLAN_ID				 0x16100
21068c2ecf20Sopenharmony_ci/* [RW 1] Determine the IP version to look for in
21078c2ecf20Sopenharmony_ci   ~nig_registers_llh0_dest_ip_0.llh0_dest_ip_0. 0 - IPv6; 1-IPv4 */
21088c2ecf20Sopenharmony_ci#define NIG_REG_LLH0_IPV4_IPV6_0				 0x10208
21098c2ecf20Sopenharmony_ci/* [RW 1] t bit for llh0 */
21108c2ecf20Sopenharmony_ci#define NIG_REG_LLH0_T_BIT					 0x10074
21118c2ecf20Sopenharmony_ci/* [RW 12] VLAN ID 1. In case of VLAN packet the LLH will look for this ID. */
21128c2ecf20Sopenharmony_ci#define NIG_REG_LLH0_VLAN_ID_0					 0x1022c
21138c2ecf20Sopenharmony_ci/* [RW 8] init credit counter for port0 in LLH */
21148c2ecf20Sopenharmony_ci#define NIG_REG_LLH0_XCM_INIT_CREDIT				 0x10554
21158c2ecf20Sopenharmony_ci#define NIG_REG_LLH0_XCM_MASK					 0x10130
21168c2ecf20Sopenharmony_ci#define NIG_REG_LLH1_BRB1_DRV_MASK				 0x10248
21178c2ecf20Sopenharmony_ci/* [RW 1] send to BRB1 if no match on any of RMP rules. */
21188c2ecf20Sopenharmony_ci#define NIG_REG_LLH1_BRB1_NOT_MCP				 0x102dc
21198c2ecf20Sopenharmony_ci/* [RW 2] Determine the classification participants. 0: no classification.1:
21208c2ecf20Sopenharmony_ci   classification upon VLAN id. 2: classification upon MAC address. 3:
21218c2ecf20Sopenharmony_ci   classification upon both VLAN id & MAC addr. */
21228c2ecf20Sopenharmony_ci#define NIG_REG_LLH1_CLS_TYPE					 0x16084
21238c2ecf20Sopenharmony_ci/* [RW 32] cm header for llh1 */
21248c2ecf20Sopenharmony_ci#define NIG_REG_LLH1_CM_HEADER					 0x10080
21258c2ecf20Sopenharmony_ci#define NIG_REG_LLH1_ERROR_MASK 				 0x10090
21268c2ecf20Sopenharmony_ci/* [RW 8] event id for llh1 */
21278c2ecf20Sopenharmony_ci#define NIG_REG_LLH1_EVENT_ID					 0x10088
21288c2ecf20Sopenharmony_ci#define NIG_REG_LLH1_FUNC_EN					 0x16104
21298c2ecf20Sopenharmony_ci#define NIG_REG_LLH1_FUNC_MEM					 0x161c0
21308c2ecf20Sopenharmony_ci#define NIG_REG_LLH1_FUNC_MEM_ENABLE				 0x16160
21318c2ecf20Sopenharmony_ci#define NIG_REG_LLH1_FUNC_MEM_SIZE				 16
21328c2ecf20Sopenharmony_ci/* [RW 1] When this bit is set; the LLH will classify the packet before
21338c2ecf20Sopenharmony_ci * sending it to the BRB or calculating WoL on it. This bit controls port 1
21348c2ecf20Sopenharmony_ci * only. The legacy llh_multi_function_mode bit controls port 0. */
21358c2ecf20Sopenharmony_ci#define NIG_REG_LLH1_MF_MODE					 0x18614
21368c2ecf20Sopenharmony_ci/* [RW 8] init credit counter for port1 in LLH */
21378c2ecf20Sopenharmony_ci#define NIG_REG_LLH1_XCM_INIT_CREDIT				 0x10564
21388c2ecf20Sopenharmony_ci#define NIG_REG_LLH1_XCM_MASK					 0x10134
21398c2ecf20Sopenharmony_ci/* [RW 1] When this bit is set; the LLH will expect all packets to be with
21408c2ecf20Sopenharmony_ci   e1hov */
21418c2ecf20Sopenharmony_ci#define NIG_REG_LLH_E1HOV_MODE					 0x160d8
21428c2ecf20Sopenharmony_ci/* [RW 16] Outer VLAN type identifier for multi-function mode. In non
21438c2ecf20Sopenharmony_ci * multi-function mode; it will hold the inner VLAN type. Typically 0x8100.
21448c2ecf20Sopenharmony_ci */
21458c2ecf20Sopenharmony_ci#define NIG_REG_LLH_E1HOV_TYPE_1				 0x16028
21468c2ecf20Sopenharmony_ci/* [RW 1] When this bit is set; the LLH will classify the packet before
21478c2ecf20Sopenharmony_ci   sending it to the BRB or calculating WoL on it. */
21488c2ecf20Sopenharmony_ci#define NIG_REG_LLH_MF_MODE					 0x16024
21498c2ecf20Sopenharmony_ci#define NIG_REG_MASK_INTERRUPT_PORT0				 0x10330
21508c2ecf20Sopenharmony_ci#define NIG_REG_MASK_INTERRUPT_PORT1				 0x10334
21518c2ecf20Sopenharmony_ci/* [RW 1] Output signal from NIG to EMAC0. When set enables the EMAC0 block. */
21528c2ecf20Sopenharmony_ci#define NIG_REG_NIG_EMAC0_EN					 0x1003c
21538c2ecf20Sopenharmony_ci/* [RW 1] Output signal from NIG to EMAC1. When set enables the EMAC1 block. */
21548c2ecf20Sopenharmony_ci#define NIG_REG_NIG_EMAC1_EN					 0x10040
21558c2ecf20Sopenharmony_ci/* [RW 1] Output signal from NIG to TX_EMAC0. When set indicates to the
21568c2ecf20Sopenharmony_ci   EMAC0 to strip the CRC from the ingress packets. */
21578c2ecf20Sopenharmony_ci#define NIG_REG_NIG_INGRESS_EMAC0_NO_CRC			 0x10044
21588c2ecf20Sopenharmony_ci/* [R 32] Interrupt register #0 read */
21598c2ecf20Sopenharmony_ci#define NIG_REG_NIG_INT_STS_0					 0x103b0
21608c2ecf20Sopenharmony_ci#define NIG_REG_NIG_INT_STS_1					 0x103c0
21618c2ecf20Sopenharmony_ci/* [RC 32] Interrupt register #0 read clear */
21628c2ecf20Sopenharmony_ci#define NIG_REG_NIG_INT_STS_CLR_0				 0x103b4
21638c2ecf20Sopenharmony_ci/* [R 32] Legacy E1 and E1H location for parity error mask register. */
21648c2ecf20Sopenharmony_ci#define NIG_REG_NIG_PRTY_MASK					 0x103dc
21658c2ecf20Sopenharmony_ci/* [RW 32] Parity mask register #0 read/write */
21668c2ecf20Sopenharmony_ci#define NIG_REG_NIG_PRTY_MASK_0					 0x183c8
21678c2ecf20Sopenharmony_ci#define NIG_REG_NIG_PRTY_MASK_1					 0x183d8
21688c2ecf20Sopenharmony_ci/* [R 32] Legacy E1 and E1H location for parity error status register. */
21698c2ecf20Sopenharmony_ci#define NIG_REG_NIG_PRTY_STS					 0x103d0
21708c2ecf20Sopenharmony_ci/* [R 32] Parity register #0 read */
21718c2ecf20Sopenharmony_ci#define NIG_REG_NIG_PRTY_STS_0					 0x183bc
21728c2ecf20Sopenharmony_ci#define NIG_REG_NIG_PRTY_STS_1					 0x183cc
21738c2ecf20Sopenharmony_ci/* [R 32] Legacy E1 and E1H location for parity error status clear register. */
21748c2ecf20Sopenharmony_ci#define NIG_REG_NIG_PRTY_STS_CLR				 0x103d4
21758c2ecf20Sopenharmony_ci/* [RC 32] Parity register #0 read clear */
21768c2ecf20Sopenharmony_ci#define NIG_REG_NIG_PRTY_STS_CLR_0				 0x183c0
21778c2ecf20Sopenharmony_ci#define NIG_REG_NIG_PRTY_STS_CLR_1				 0x183d0
21788c2ecf20Sopenharmony_ci#define MCPR_IMC_COMMAND_ENABLE					 (1L<<31)
21798c2ecf20Sopenharmony_ci#define MCPR_IMC_COMMAND_IMC_STATUS_BITSHIFT			 16
21808c2ecf20Sopenharmony_ci#define MCPR_IMC_COMMAND_OPERATION_BITSHIFT			 28
21818c2ecf20Sopenharmony_ci#define MCPR_IMC_COMMAND_TRANSFER_ADDRESS_BITSHIFT		 8
21828c2ecf20Sopenharmony_ci/* [RW 6] Bit-map indicating which L2 hdrs may appear after the basic
21838c2ecf20Sopenharmony_ci * Ethernet header. */
21848c2ecf20Sopenharmony_ci#define NIG_REG_P0_HDRS_AFTER_BASIC				 0x18038
21858c2ecf20Sopenharmony_ci/* [RW 1] HW PFC enable bit. Set this bit to enable the PFC functionality in
21868c2ecf20Sopenharmony_ci * the NIG. Other flow control modes such as PAUSE and SAFC/LLFC should be
21878c2ecf20Sopenharmony_ci * disabled when this bit is set. */
21888c2ecf20Sopenharmony_ci#define NIG_REG_P0_HWPFC_ENABLE				 0x18078
21898c2ecf20Sopenharmony_ci#define NIG_REG_P0_LLH_FUNC_MEM2				 0x18480
21908c2ecf20Sopenharmony_ci#define NIG_REG_P0_LLH_FUNC_MEM2_ENABLE			 0x18440
21918c2ecf20Sopenharmony_ci/* [RW 17] Packet TimeSync information that is buffered in 1-deep FIFOs for
21928c2ecf20Sopenharmony_ci * the host. Bits [15:0] return the sequence ID of the packet. Bit 16
21938c2ecf20Sopenharmony_ci * indicates the validity of the data in the buffer. Writing a 1 to bit 16
21948c2ecf20Sopenharmony_ci * will clear the buffer.
21958c2ecf20Sopenharmony_ci */
21968c2ecf20Sopenharmony_ci#define NIG_REG_P0_LLH_PTP_HOST_BUF_SEQID			 0x1875c
21978c2ecf20Sopenharmony_ci/* [R 32] Packet TimeSync information that is buffered in 1-deep FIFOs for
21988c2ecf20Sopenharmony_ci * the host. This location returns the lower 32 bits of timestamp value.
21998c2ecf20Sopenharmony_ci */
22008c2ecf20Sopenharmony_ci#define NIG_REG_P0_LLH_PTP_HOST_BUF_TS_LSB			 0x18754
22018c2ecf20Sopenharmony_ci/* [R 32] Packet TimeSync information that is buffered in 1-deep FIFOs for
22028c2ecf20Sopenharmony_ci * the host. This location returns the upper 32 bits of timestamp value.
22038c2ecf20Sopenharmony_ci */
22048c2ecf20Sopenharmony_ci#define NIG_REG_P0_LLH_PTP_HOST_BUF_TS_MSB			 0x18758
22058c2ecf20Sopenharmony_ci/* [RW 11] Mask register for the various parameters used in determining PTP
22068c2ecf20Sopenharmony_ci * packet presence. Set each bit to 1 to mask out the particular parameter.
22078c2ecf20Sopenharmony_ci * 0-IPv4 DA 0 of 224.0.1.129. 1-IPv4 DA 1 of 224.0.0.107. 2-IPv6 DA 0 of
22088c2ecf20Sopenharmony_ci * 0xFF0*:0:0:0:0:0:0:181. 3-IPv6 DA 1 of 0xFF02:0:0:0:0:0:0:6B. 4-UDP
22098c2ecf20Sopenharmony_ci * destination port 0 of 319. 5-UDP destination port 1 of 320. 6-MAC
22108c2ecf20Sopenharmony_ci * Ethertype 0 of 0x88F7. 7-configurable MAC Ethertype 1. 8-MAC DA 0 of
22118c2ecf20Sopenharmony_ci * 0x01-1B-19-00-00-00. 9-MAC DA 1 of 0x01-80-C2-00-00-0E. 10-configurable
22128c2ecf20Sopenharmony_ci * MAC DA 2. The reset default is set to mask out all parameters.
22138c2ecf20Sopenharmony_ci */
22148c2ecf20Sopenharmony_ci#define NIG_REG_P0_LLH_PTP_PARAM_MASK				 0x187a0
22158c2ecf20Sopenharmony_ci/* [RW 14] Mask regiser for the rules used in detecting PTP packets. Set
22168c2ecf20Sopenharmony_ci * each bit to 1 to mask out that particular rule. 0-{IPv4 DA 0; UDP DP 0} .
22178c2ecf20Sopenharmony_ci * 1-{IPv4 DA 0; UDP DP 1} . 2-{IPv4 DA 1; UDP DP 0} . 3-{IPv4 DA 1; UDP DP
22188c2ecf20Sopenharmony_ci * 1} . 4-{IPv6 DA 0; UDP DP 0} . 5-{IPv6 DA 0; UDP DP 1} . 6-{IPv6 DA 1;
22198c2ecf20Sopenharmony_ci * UDP DP 0} . 7-{IPv6 DA 1; UDP DP 1} . 8-{MAC DA 0; Ethertype 0} . 9-{MAC
22208c2ecf20Sopenharmony_ci * DA 1; Ethertype 0} . 10-{MAC DA 0; Ethertype 1} . 11-{MAC DA 1; Ethertype
22218c2ecf20Sopenharmony_ci * 1} . 12-{MAC DA 2; Ethertype 0} . 13-{MAC DA 2; Ethertype 1} . The reset
22228c2ecf20Sopenharmony_ci * default is to mask out all of the rules. Note that rules 0-3 are for IPv4
22238c2ecf20Sopenharmony_ci * packets only and require that the packet is IPv4 for the rules to match.
22248c2ecf20Sopenharmony_ci * Note that rules 4-7 are for IPv6 packets only and require that the packet
22258c2ecf20Sopenharmony_ci * is IPv6 for the rules to match.
22268c2ecf20Sopenharmony_ci */
22278c2ecf20Sopenharmony_ci#define NIG_REG_P0_LLH_PTP_RULE_MASK				 0x187a4
22288c2ecf20Sopenharmony_ci/* [RW 1] Set to 1 to enable PTP packets to be forwarded to the host. */
22298c2ecf20Sopenharmony_ci#define NIG_REG_P0_LLH_PTP_TO_HOST				 0x187ac
22308c2ecf20Sopenharmony_ci/* [RW 1] Input enable for RX MAC interface. */
22318c2ecf20Sopenharmony_ci#define NIG_REG_P0_MAC_IN_EN					 0x185ac
22328c2ecf20Sopenharmony_ci/* [RW 1] Output enable for TX MAC interface */
22338c2ecf20Sopenharmony_ci#define NIG_REG_P0_MAC_OUT_EN					 0x185b0
22348c2ecf20Sopenharmony_ci/* [RW 1] Output enable for TX PAUSE signal to the MAC. */
22358c2ecf20Sopenharmony_ci#define NIG_REG_P0_MAC_PAUSE_OUT_EN				 0x185b4
22368c2ecf20Sopenharmony_ci/* [RW 32] Eight 4-bit configurations for specifying which COS (0-15 for
22378c2ecf20Sopenharmony_ci * future expansion) each priorty is to be mapped to. Bits 3:0 specify the
22388c2ecf20Sopenharmony_ci * COS for priority 0. Bits 31:28 specify the COS for priority 7. The 3-bit
22398c2ecf20Sopenharmony_ci * priority field is extracted from the outer-most VLAN in receive packet.
22408c2ecf20Sopenharmony_ci * Only COS 0 and COS 1 are supported in E2. */
22418c2ecf20Sopenharmony_ci#define NIG_REG_P0_PKT_PRIORITY_TO_COS				 0x18054
22428c2ecf20Sopenharmony_ci/* [RW 6] Enable for TimeSync feature. Bits [2:0] are for RX side. Bits
22438c2ecf20Sopenharmony_ci * [5:3] are for TX side. Bit 0 enables TimeSync on RX side. Bit 1 enables
22448c2ecf20Sopenharmony_ci * V1 frame format in timesync event detection on RX side. Bit 2 enables V2
22458c2ecf20Sopenharmony_ci * frame format in timesync event detection on RX side. Bit 3 enables
22468c2ecf20Sopenharmony_ci * TimeSync on TX side. Bit 4 enables V1 frame format in timesync event
22478c2ecf20Sopenharmony_ci * detection on TX side. Bit 5 enables V2 frame format in timesync event
22488c2ecf20Sopenharmony_ci * detection on TX side. Note that for HW to detect PTP packet and extract
22498c2ecf20Sopenharmony_ci * data from the packet, at least one of the version bits of that traffic
22508c2ecf20Sopenharmony_ci * direction has to be enabled.
22518c2ecf20Sopenharmony_ci */
22528c2ecf20Sopenharmony_ci#define NIG_REG_P0_PTP_EN					 0x18788
22538c2ecf20Sopenharmony_ci/* [RW 16] Bit-map indicating which SAFC/PFC priorities to map to COS 0. A
22548c2ecf20Sopenharmony_ci * priority is mapped to COS 0 when the corresponding mask bit is 1. More
22558c2ecf20Sopenharmony_ci * than one bit may be set; allowing multiple priorities to be mapped to one
22568c2ecf20Sopenharmony_ci * COS. */
22578c2ecf20Sopenharmony_ci#define NIG_REG_P0_RX_COS0_PRIORITY_MASK			 0x18058
22588c2ecf20Sopenharmony_ci/* [RW 16] Bit-map indicating which SAFC/PFC priorities to map to COS 1. A
22598c2ecf20Sopenharmony_ci * priority is mapped to COS 1 when the corresponding mask bit is 1. More
22608c2ecf20Sopenharmony_ci * than one bit may be set; allowing multiple priorities to be mapped to one
22618c2ecf20Sopenharmony_ci * COS. */
22628c2ecf20Sopenharmony_ci#define NIG_REG_P0_RX_COS1_PRIORITY_MASK			 0x1805c
22638c2ecf20Sopenharmony_ci/* [RW 16] Bit-map indicating which SAFC/PFC priorities to map to COS 2. A
22648c2ecf20Sopenharmony_ci * priority is mapped to COS 2 when the corresponding mask bit is 1. More
22658c2ecf20Sopenharmony_ci * than one bit may be set; allowing multiple priorities to be mapped to one
22668c2ecf20Sopenharmony_ci * COS. */
22678c2ecf20Sopenharmony_ci#define NIG_REG_P0_RX_COS2_PRIORITY_MASK			 0x186b0
22688c2ecf20Sopenharmony_ci/* [RW 16] Bit-map indicating which SAFC/PFC priorities to map to COS 3. A
22698c2ecf20Sopenharmony_ci * priority is mapped to COS 3 when the corresponding mask bit is 1. More
22708c2ecf20Sopenharmony_ci * than one bit may be set; allowing multiple priorities to be mapped to one
22718c2ecf20Sopenharmony_ci * COS. */
22728c2ecf20Sopenharmony_ci#define NIG_REG_P0_RX_COS3_PRIORITY_MASK			 0x186b4
22738c2ecf20Sopenharmony_ci/* [RW 16] Bit-map indicating which SAFC/PFC priorities to map to COS 4. A
22748c2ecf20Sopenharmony_ci * priority is mapped to COS 4 when the corresponding mask bit is 1. More
22758c2ecf20Sopenharmony_ci * than one bit may be set; allowing multiple priorities to be mapped to one
22768c2ecf20Sopenharmony_ci * COS. */
22778c2ecf20Sopenharmony_ci#define NIG_REG_P0_RX_COS4_PRIORITY_MASK			 0x186b8
22788c2ecf20Sopenharmony_ci/* [RW 16] Bit-map indicating which SAFC/PFC priorities to map to COS 5. A
22798c2ecf20Sopenharmony_ci * priority is mapped to COS 5 when the corresponding mask bit is 1. More
22808c2ecf20Sopenharmony_ci * than one bit may be set; allowing multiple priorities to be mapped to one
22818c2ecf20Sopenharmony_ci * COS. */
22828c2ecf20Sopenharmony_ci#define NIG_REG_P0_RX_COS5_PRIORITY_MASK			 0x186bc
22838c2ecf20Sopenharmony_ci/* [R 1] RX FIFO for receiving data from MAC is empty. */
22848c2ecf20Sopenharmony_ci/* [RW 15] Specify which of the credit registers the client is to be mapped
22858c2ecf20Sopenharmony_ci * to. Bits[2:0] are for client 0; bits [14:12] are for client 4. For
22868c2ecf20Sopenharmony_ci * clients that are not subject to WFQ credit blocking - their
22878c2ecf20Sopenharmony_ci * specifications here are not used. */
22888c2ecf20Sopenharmony_ci#define NIG_REG_P0_TX_ARB_CLIENT_CREDIT_MAP			 0x180f0
22898c2ecf20Sopenharmony_ci/* [RW 32] Specify which of the credit registers the client is to be mapped
22908c2ecf20Sopenharmony_ci * to. This register specifies bits 31:0 of the 36-bit value. Bits[3:0] are
22918c2ecf20Sopenharmony_ci * for client 0; bits [35:32] are for client 8. For clients that are not
22928c2ecf20Sopenharmony_ci * subject to WFQ credit blocking - their specifications here are not used.
22938c2ecf20Sopenharmony_ci * This is a new register (with 2_) added in E3 B0 to accommodate the 9
22948c2ecf20Sopenharmony_ci * input clients to ETS arbiter. The reset default is set for management and
22958c2ecf20Sopenharmony_ci * debug to use credit registers 6, 7, and 8, respectively, and COSes 0-5 to
22968c2ecf20Sopenharmony_ci * use credit registers 0-5 respectively (0x543210876). Note that credit
22978c2ecf20Sopenharmony_ci * registers can not be shared between clients. */
22988c2ecf20Sopenharmony_ci#define NIG_REG_P0_TX_ARB_CLIENT_CREDIT_MAP2_LSB		 0x18688
22998c2ecf20Sopenharmony_ci/* [RW 4] Specify which of the credit registers the client is to be mapped
23008c2ecf20Sopenharmony_ci * to. This register specifies bits 35:32 of the 36-bit value. Bits[3:0] are
23018c2ecf20Sopenharmony_ci * for client 0; bits [35:32] are for client 8. For clients that are not
23028c2ecf20Sopenharmony_ci * subject to WFQ credit blocking - their specifications here are not used.
23038c2ecf20Sopenharmony_ci * This is a new register (with 2_) added in E3 B0 to accommodate the 9
23048c2ecf20Sopenharmony_ci * input clients to ETS arbiter. The reset default is set for management and
23058c2ecf20Sopenharmony_ci * debug to use credit registers 6, 7, and 8, respectively, and COSes 0-5 to
23068c2ecf20Sopenharmony_ci * use credit registers 0-5 respectively (0x543210876). Note that credit
23078c2ecf20Sopenharmony_ci * registers can not be shared between clients. */
23088c2ecf20Sopenharmony_ci#define NIG_REG_P0_TX_ARB_CLIENT_CREDIT_MAP2_MSB		 0x1868c
23098c2ecf20Sopenharmony_ci/* [RW 5] Specify whether the client competes directly in the strict
23108c2ecf20Sopenharmony_ci * priority arbiter. The bits are mapped according to client ID (client IDs
23118c2ecf20Sopenharmony_ci * are defined in tx_arb_priority_client). Default value is set to enable
23128c2ecf20Sopenharmony_ci * strict priorities for clients 0-2 -- management and debug traffic. */
23138c2ecf20Sopenharmony_ci#define NIG_REG_P0_TX_ARB_CLIENT_IS_STRICT			 0x180e8
23148c2ecf20Sopenharmony_ci/* [RW 5] Specify whether the client is subject to WFQ credit blocking. The
23158c2ecf20Sopenharmony_ci * bits are mapped according to client ID (client IDs are defined in
23168c2ecf20Sopenharmony_ci * tx_arb_priority_client). Default value is 0 for not using WFQ credit
23178c2ecf20Sopenharmony_ci * blocking. */
23188c2ecf20Sopenharmony_ci#define NIG_REG_P0_TX_ARB_CLIENT_IS_SUBJECT2WFQ		 0x180ec
23198c2ecf20Sopenharmony_ci/* [RW 32] Specify the upper bound that credit register 0 is allowed to
23208c2ecf20Sopenharmony_ci * reach. */
23218c2ecf20Sopenharmony_ci#define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_0			 0x1810c
23228c2ecf20Sopenharmony_ci#define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_1			 0x18110
23238c2ecf20Sopenharmony_ci#define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_2			 0x18114
23248c2ecf20Sopenharmony_ci#define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_3			 0x18118
23258c2ecf20Sopenharmony_ci#define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_4			 0x1811c
23268c2ecf20Sopenharmony_ci#define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_5			 0x186a0
23278c2ecf20Sopenharmony_ci#define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_6			 0x186a4
23288c2ecf20Sopenharmony_ci#define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_7			 0x186a8
23298c2ecf20Sopenharmony_ci#define NIG_REG_P0_TX_ARB_CREDIT_UPPER_BOUND_8			 0x186ac
23308c2ecf20Sopenharmony_ci/* [RW 32] Specify the weight (in bytes) to be added to credit register 0
23318c2ecf20Sopenharmony_ci * when it is time to increment. */
23328c2ecf20Sopenharmony_ci#define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_0			 0x180f8
23338c2ecf20Sopenharmony_ci#define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_1			 0x180fc
23348c2ecf20Sopenharmony_ci#define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_2			 0x18100
23358c2ecf20Sopenharmony_ci#define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_3			 0x18104
23368c2ecf20Sopenharmony_ci#define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_4			 0x18108
23378c2ecf20Sopenharmony_ci#define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_5			 0x18690
23388c2ecf20Sopenharmony_ci#define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_6			 0x18694
23398c2ecf20Sopenharmony_ci#define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_7			 0x18698
23408c2ecf20Sopenharmony_ci#define NIG_REG_P0_TX_ARB_CREDIT_WEIGHT_8			 0x1869c
23418c2ecf20Sopenharmony_ci/* [RW 12] Specify the number of strict priority arbitration slots between
23428c2ecf20Sopenharmony_ci * two round-robin arbitration slots to avoid starvation. A value of 0 means
23438c2ecf20Sopenharmony_ci * no strict priority cycles - the strict priority with anti-starvation
23448c2ecf20Sopenharmony_ci * arbiter becomes a round-robin arbiter. */
23458c2ecf20Sopenharmony_ci#define NIG_REG_P0_TX_ARB_NUM_STRICT_ARB_SLOTS			 0x180f4
23468c2ecf20Sopenharmony_ci/* [RW 15] Specify the client number to be assigned to each priority of the
23478c2ecf20Sopenharmony_ci * strict priority arbiter. Priority 0 is the highest priority. Bits [2:0]
23488c2ecf20Sopenharmony_ci * are for priority 0 client; bits [14:12] are for priority 4 client. The
23498c2ecf20Sopenharmony_ci * clients are assigned the following IDs: 0-management; 1-debug traffic
23508c2ecf20Sopenharmony_ci * from this port; 2-debug traffic from other port; 3-COS0 traffic; 4-COS1
23518c2ecf20Sopenharmony_ci * traffic. The reset value[14:0] is set to 0x4688 (15'b100_011_010_001_000)
23528c2ecf20Sopenharmony_ci * for management at priority 0; debug traffic at priorities 1 and 2; COS0
23538c2ecf20Sopenharmony_ci * traffic at priority 3; and COS1 traffic at priority 4. */
23548c2ecf20Sopenharmony_ci#define NIG_REG_P0_TX_ARB_PRIORITY_CLIENT			 0x180e4
23558c2ecf20Sopenharmony_ci/* [RW 6] Bit-map indicating which L2 hdrs may appear after the basic
23568c2ecf20Sopenharmony_ci * Ethernet header. */
23578c2ecf20Sopenharmony_ci#define NIG_REG_P1_HDRS_AFTER_BASIC				 0x1818c
23588c2ecf20Sopenharmony_ci#define NIG_REG_P1_LLH_FUNC_MEM2				 0x184c0
23598c2ecf20Sopenharmony_ci#define NIG_REG_P1_LLH_FUNC_MEM2_ENABLE			 0x18460a
23608c2ecf20Sopenharmony_ci/* [RW 17] Packet TimeSync information that is buffered in 1-deep FIFOs for
23618c2ecf20Sopenharmony_ci * the host. Bits [15:0] return the sequence ID of the packet. Bit 16
23628c2ecf20Sopenharmony_ci * indicates the validity of the data in the buffer. Writing a 1 to bit 16
23638c2ecf20Sopenharmony_ci * will clear the buffer.
23648c2ecf20Sopenharmony_ci */
23658c2ecf20Sopenharmony_ci#define NIG_REG_P1_LLH_PTP_HOST_BUF_SEQID			 0x18774
23668c2ecf20Sopenharmony_ci/* [R 32] Packet TimeSync information that is buffered in 1-deep FIFOs for
23678c2ecf20Sopenharmony_ci * the host. This location returns the lower 32 bits of timestamp value.
23688c2ecf20Sopenharmony_ci */
23698c2ecf20Sopenharmony_ci#define NIG_REG_P1_LLH_PTP_HOST_BUF_TS_LSB			 0x1876c
23708c2ecf20Sopenharmony_ci/* [R 32] Packet TimeSync information that is buffered in 1-deep FIFOs for
23718c2ecf20Sopenharmony_ci * the host. This location returns the upper 32 bits of timestamp value.
23728c2ecf20Sopenharmony_ci */
23738c2ecf20Sopenharmony_ci#define NIG_REG_P1_LLH_PTP_HOST_BUF_TS_MSB			 0x18770
23748c2ecf20Sopenharmony_ci/* [RW 11] Mask register for the various parameters used in determining PTP
23758c2ecf20Sopenharmony_ci * packet presence. Set each bit to 1 to mask out the particular parameter.
23768c2ecf20Sopenharmony_ci * 0-IPv4 DA 0 of 224.0.1.129. 1-IPv4 DA 1 of 224.0.0.107. 2-IPv6 DA 0 of
23778c2ecf20Sopenharmony_ci * 0xFF0*:0:0:0:0:0:0:181. 3-IPv6 DA 1 of 0xFF02:0:0:0:0:0:0:6B. 4-UDP
23788c2ecf20Sopenharmony_ci * destination port 0 of 319. 5-UDP destination port 1 of 320. 6-MAC
23798c2ecf20Sopenharmony_ci * Ethertype 0 of 0x88F7. 7-configurable MAC Ethertype 1. 8-MAC DA 0 of
23808c2ecf20Sopenharmony_ci * 0x01-1B-19-00-00-00. 9-MAC DA 1 of 0x01-80-C2-00-00-0E. 10-configurable
23818c2ecf20Sopenharmony_ci * MAC DA 2. The reset default is set to mask out all parameters.
23828c2ecf20Sopenharmony_ci */
23838c2ecf20Sopenharmony_ci#define NIG_REG_P1_LLH_PTP_PARAM_MASK				 0x187c8
23848c2ecf20Sopenharmony_ci/* [RW 14] Mask regiser for the rules used in detecting PTP packets. Set
23858c2ecf20Sopenharmony_ci * each bit to 1 to mask out that particular rule. 0-{IPv4 DA 0; UDP DP 0} .
23868c2ecf20Sopenharmony_ci * 1-{IPv4 DA 0; UDP DP 1} . 2-{IPv4 DA 1; UDP DP 0} . 3-{IPv4 DA 1; UDP DP
23878c2ecf20Sopenharmony_ci * 1} . 4-{IPv6 DA 0; UDP DP 0} . 5-{IPv6 DA 0; UDP DP 1} . 6-{IPv6 DA 1;
23888c2ecf20Sopenharmony_ci * UDP DP 0} . 7-{IPv6 DA 1; UDP DP 1} . 8-{MAC DA 0; Ethertype 0} . 9-{MAC
23898c2ecf20Sopenharmony_ci * DA 1; Ethertype 0} . 10-{MAC DA 0; Ethertype 1} . 11-{MAC DA 1; Ethertype
23908c2ecf20Sopenharmony_ci * 1} . 12-{MAC DA 2; Ethertype 0} . 13-{MAC DA 2; Ethertype 1} . The reset
23918c2ecf20Sopenharmony_ci * default is to mask out all of the rules. Note that rules 0-3 are for IPv4
23928c2ecf20Sopenharmony_ci * packets only and require that the packet is IPv4 for the rules to match.
23938c2ecf20Sopenharmony_ci * Note that rules 4-7 are for IPv6 packets only and require that the packet
23948c2ecf20Sopenharmony_ci * is IPv6 for the rules to match.
23958c2ecf20Sopenharmony_ci */
23968c2ecf20Sopenharmony_ci#define NIG_REG_P1_LLH_PTP_RULE_MASK				 0x187cc
23978c2ecf20Sopenharmony_ci/* [RW 1] Set to 1 to enable PTP packets to be forwarded to the host. */
23988c2ecf20Sopenharmony_ci#define NIG_REG_P1_LLH_PTP_TO_HOST				 0x187d4
23998c2ecf20Sopenharmony_ci/* [RW 32] Specify the client number to be assigned to each priority of the
24008c2ecf20Sopenharmony_ci * strict priority arbiter. This register specifies bits 31:0 of the 36-bit
24018c2ecf20Sopenharmony_ci * value. Priority 0 is the highest priority. Bits [3:0] are for priority 0
24028c2ecf20Sopenharmony_ci * client; bits [35-32] are for priority 8 client. The clients are assigned
24038c2ecf20Sopenharmony_ci * the following IDs: 0-management; 1-debug traffic from this port; 2-debug
24048c2ecf20Sopenharmony_ci * traffic from other port; 3-COS0 traffic; 4-COS1 traffic; 5-COS2 traffic;
24058c2ecf20Sopenharmony_ci * 6-COS3 traffic; 7-COS4 traffic; 8-COS5 traffic. The reset value[35:0] is
24068c2ecf20Sopenharmony_ci * set to 0x345678021. This is a new register (with 2_) added in E3 B0 to
24078c2ecf20Sopenharmony_ci * accommodate the 9 input clients to ETS arbiter. */
24088c2ecf20Sopenharmony_ci#define NIG_REG_P0_TX_ARB_PRIORITY_CLIENT2_LSB			 0x18680
24098c2ecf20Sopenharmony_ci/* [RW 4] Specify the client number to be assigned to each priority of the
24108c2ecf20Sopenharmony_ci * strict priority arbiter. This register specifies bits 35:32 of the 36-bit
24118c2ecf20Sopenharmony_ci * value. Priority 0 is the highest priority. Bits [3:0] are for priority 0
24128c2ecf20Sopenharmony_ci * client; bits [35-32] are for priority 8 client. The clients are assigned
24138c2ecf20Sopenharmony_ci * the following IDs: 0-management; 1-debug traffic from this port; 2-debug
24148c2ecf20Sopenharmony_ci * traffic from other port; 3-COS0 traffic; 4-COS1 traffic; 5-COS2 traffic;
24158c2ecf20Sopenharmony_ci * 6-COS3 traffic; 7-COS4 traffic; 8-COS5 traffic. The reset value[35:0] is
24168c2ecf20Sopenharmony_ci * set to 0x345678021. This is a new register (with 2_) added in E3 B0 to
24178c2ecf20Sopenharmony_ci * accommodate the 9 input clients to ETS arbiter. */
24188c2ecf20Sopenharmony_ci#define NIG_REG_P0_TX_ARB_PRIORITY_CLIENT2_MSB			 0x18684
24198c2ecf20Sopenharmony_ci/* [RW 1] MCP-to-host path enable. Set this bit to enable the routing of MCP
24208c2ecf20Sopenharmony_ci * packets to BRB LB interface to forward the packet to the host. All
24218c2ecf20Sopenharmony_ci * packets from MCP are forwarded to the network when this bit is cleared -
24228c2ecf20Sopenharmony_ci * regardless of the configured destination in tx_mng_destination register.
24238c2ecf20Sopenharmony_ci * When MCP-to-host paths for both ports 0 and 1 are disabled - the arbiter
24248c2ecf20Sopenharmony_ci * for BRB LB interface is bypassed and PBF LB traffic is always selected to
24258c2ecf20Sopenharmony_ci * send to BRB LB.
24268c2ecf20Sopenharmony_ci */
24278c2ecf20Sopenharmony_ci#define NIG_REG_P0_TX_MNG_HOST_ENABLE				 0x182f4
24288c2ecf20Sopenharmony_ci#define NIG_REG_P1_HWPFC_ENABLE					 0x181d0
24298c2ecf20Sopenharmony_ci#define NIG_REG_P1_MAC_IN_EN					 0x185c0
24308c2ecf20Sopenharmony_ci/* [RW 1] Output enable for TX MAC interface */
24318c2ecf20Sopenharmony_ci#define NIG_REG_P1_MAC_OUT_EN					 0x185c4
24328c2ecf20Sopenharmony_ci/* [RW 1] Output enable for TX PAUSE signal to the MAC. */
24338c2ecf20Sopenharmony_ci#define NIG_REG_P1_MAC_PAUSE_OUT_EN				 0x185c8
24348c2ecf20Sopenharmony_ci/* [RW 32] Eight 4-bit configurations for specifying which COS (0-15 for
24358c2ecf20Sopenharmony_ci * future expansion) each priorty is to be mapped to. Bits 3:0 specify the
24368c2ecf20Sopenharmony_ci * COS for priority 0. Bits 31:28 specify the COS for priority 7. The 3-bit
24378c2ecf20Sopenharmony_ci * priority field is extracted from the outer-most VLAN in receive packet.
24388c2ecf20Sopenharmony_ci * Only COS 0 and COS 1 are supported in E2. */
24398c2ecf20Sopenharmony_ci#define NIG_REG_P1_PKT_PRIORITY_TO_COS				 0x181a8
24408c2ecf20Sopenharmony_ci/* [RW 6] Enable for TimeSync feature. Bits [2:0] are for RX side. Bits
24418c2ecf20Sopenharmony_ci * [5:3] are for TX side. Bit 0 enables TimeSync on RX side. Bit 1 enables
24428c2ecf20Sopenharmony_ci * V1 frame format in timesync event detection on RX side. Bit 2 enables V2
24438c2ecf20Sopenharmony_ci * frame format in timesync event detection on RX side. Bit 3 enables
24448c2ecf20Sopenharmony_ci * TimeSync on TX side. Bit 4 enables V1 frame format in timesync event
24458c2ecf20Sopenharmony_ci * detection on TX side. Bit 5 enables V2 frame format in timesync event
24468c2ecf20Sopenharmony_ci * detection on TX side. Note that for HW to detect PTP packet and extract
24478c2ecf20Sopenharmony_ci * data from the packet, at least one of the version bits of that traffic
24488c2ecf20Sopenharmony_ci * direction has to be enabled.
24498c2ecf20Sopenharmony_ci */
24508c2ecf20Sopenharmony_ci#define NIG_REG_P1_PTP_EN					 0x187b0
24518c2ecf20Sopenharmony_ci/* [RW 16] Bit-map indicating which SAFC/PFC priorities to map to COS 0. A
24528c2ecf20Sopenharmony_ci * priority is mapped to COS 0 when the corresponding mask bit is 1. More
24538c2ecf20Sopenharmony_ci * than one bit may be set; allowing multiple priorities to be mapped to one
24548c2ecf20Sopenharmony_ci * COS. */
24558c2ecf20Sopenharmony_ci#define NIG_REG_P1_RX_COS0_PRIORITY_MASK			 0x181ac
24568c2ecf20Sopenharmony_ci/* [RW 16] Bit-map indicating which SAFC/PFC priorities to map to COS 1. A
24578c2ecf20Sopenharmony_ci * priority is mapped to COS 1 when the corresponding mask bit is 1. More
24588c2ecf20Sopenharmony_ci * than one bit may be set; allowing multiple priorities to be mapped to one
24598c2ecf20Sopenharmony_ci * COS. */
24608c2ecf20Sopenharmony_ci#define NIG_REG_P1_RX_COS1_PRIORITY_MASK			 0x181b0
24618c2ecf20Sopenharmony_ci/* [RW 16] Bit-map indicating which SAFC/PFC priorities to map to COS 2. A
24628c2ecf20Sopenharmony_ci * priority is mapped to COS 2 when the corresponding mask bit is 1. More
24638c2ecf20Sopenharmony_ci * than one bit may be set; allowing multiple priorities to be mapped to one
24648c2ecf20Sopenharmony_ci * COS. */
24658c2ecf20Sopenharmony_ci#define NIG_REG_P1_RX_COS2_PRIORITY_MASK			 0x186f8
24668c2ecf20Sopenharmony_ci/* [R 1] RX FIFO for receiving data from MAC is empty. */
24678c2ecf20Sopenharmony_ci#define NIG_REG_P1_RX_MACFIFO_EMPTY				 0x1858c
24688c2ecf20Sopenharmony_ci/* [R 1] TLLH FIFO is empty. */
24698c2ecf20Sopenharmony_ci#define NIG_REG_P1_TLLH_FIFO_EMPTY				 0x18338
24708c2ecf20Sopenharmony_ci/* [RW 19] Packet TimeSync information that is buffered in 1-deep FIFOs for
24718c2ecf20Sopenharmony_ci * TX side. Bits [15:0] reflect the sequence ID of the packet. Bit 16
24728c2ecf20Sopenharmony_ci * indicates the validity of the data in the buffer. Bit 17 indicates that
24738c2ecf20Sopenharmony_ci * the sequence ID is valid and it is waiting for the TX timestamp value.
24748c2ecf20Sopenharmony_ci * Bit 18 indicates whether the timestamp is from a SW request (value of 1)
24758c2ecf20Sopenharmony_ci * or HW request (value of 0). Writing a 1 to bit 16 will clear the buffer.
24768c2ecf20Sopenharmony_ci */
24778c2ecf20Sopenharmony_ci#define NIG_REG_P0_TLLH_PTP_BUF_SEQID				 0x187e0
24788c2ecf20Sopenharmony_ci/* [R 32] Packet TimeSync information that is buffered in 1-deep FIFOs for
24798c2ecf20Sopenharmony_ci * MCP. This location returns the lower 32 bits of timestamp value.
24808c2ecf20Sopenharmony_ci */
24818c2ecf20Sopenharmony_ci#define NIG_REG_P0_TLLH_PTP_BUF_TS_LSB				 0x187d8
24828c2ecf20Sopenharmony_ci/* [R 32] Packet TimeSync information that is buffered in 1-deep FIFOs for
24838c2ecf20Sopenharmony_ci * MCP. This location returns the upper 32 bits of timestamp value.
24848c2ecf20Sopenharmony_ci */
24858c2ecf20Sopenharmony_ci#define NIG_REG_P0_TLLH_PTP_BUF_TS_MSB				 0x187dc
24868c2ecf20Sopenharmony_ci/* [RW 11] Mask register for the various parameters used in determining PTP
24878c2ecf20Sopenharmony_ci * packet presence. Set each bit to 1 to mask out the particular parameter.
24888c2ecf20Sopenharmony_ci * 0-IPv4 DA 0 of 224.0.1.129. 1-IPv4 DA 1 of 224.0.0.107. 2-IPv6 DA 0 of
24898c2ecf20Sopenharmony_ci * 0xFF0*:0:0:0:0:0:0:181. 3-IPv6 DA 1 of 0xFF02:0:0:0:0:0:0:6B. 4-UDP
24908c2ecf20Sopenharmony_ci * destination port 0 of 319. 5-UDP destination port 1 of 320. 6-MAC
24918c2ecf20Sopenharmony_ci * Ethertype 0 of 0x88F7. 7-configurable MAC Ethertype 1. 8-MAC DA 0 of
24928c2ecf20Sopenharmony_ci * 0x01-1B-19-00-00-00. 9-MAC DA 1 of 0x01-80-C2-00-00-0E. 10-configurable
24938c2ecf20Sopenharmony_ci * MAC DA 2. The reset default is set to mask out all parameters.
24948c2ecf20Sopenharmony_ci */
24958c2ecf20Sopenharmony_ci#define NIG_REG_P0_TLLH_PTP_PARAM_MASK				 0x187f0
24968c2ecf20Sopenharmony_ci/* [RW 14] Mask regiser for the rules used in detecting PTP packets. Set
24978c2ecf20Sopenharmony_ci * each bit to 1 to mask out that particular rule. 0-{IPv4 DA 0; UDP DP 0} .
24988c2ecf20Sopenharmony_ci * 1-{IPv4 DA 0; UDP DP 1} . 2-{IPv4 DA 1; UDP DP 0} . 3-{IPv4 DA 1; UDP DP
24998c2ecf20Sopenharmony_ci * 1} . 4-{IPv6 DA 0; UDP DP 0} . 5-{IPv6 DA 0; UDP DP 1} . 6-{IPv6 DA 1;
25008c2ecf20Sopenharmony_ci * UDP DP 0} . 7-{IPv6 DA 1; UDP DP 1} . 8-{MAC DA 0; Ethertype 0} . 9-{MAC
25018c2ecf20Sopenharmony_ci * DA 1; Ethertype 0} . 10-{MAC DA 0; Ethertype 1} . 11-{MAC DA 1; Ethertype
25028c2ecf20Sopenharmony_ci * 1} . 12-{MAC DA 2; Ethertype 0} . 13-{MAC DA 2; Ethertype 1} . The reset
25038c2ecf20Sopenharmony_ci * default is to mask out all of the rules.
25048c2ecf20Sopenharmony_ci */
25058c2ecf20Sopenharmony_ci#define NIG_REG_P0_TLLH_PTP_RULE_MASK				 0x187f4
25068c2ecf20Sopenharmony_ci/* [RW 19] Packet TimeSync information that is buffered in 1-deep FIFOs for
25078c2ecf20Sopenharmony_ci * TX side. Bits [15:0] reflect the sequence ID of the packet. Bit 16
25088c2ecf20Sopenharmony_ci * indicates the validity of the data in the buffer. Bit 17 indicates that
25098c2ecf20Sopenharmony_ci * the sequence ID is valid and it is waiting for the TX timestamp value.
25108c2ecf20Sopenharmony_ci * Bit 18 indicates whether the timestamp is from a SW request (value of 1)
25118c2ecf20Sopenharmony_ci * or HW request (value of 0). Writing a 1 to bit 16 will clear the buffer.
25128c2ecf20Sopenharmony_ci */
25138c2ecf20Sopenharmony_ci#define NIG_REG_P1_TLLH_PTP_BUF_SEQID				 0x187ec
25148c2ecf20Sopenharmony_ci/* [R 32] Packet TimeSync information that is buffered in 1-deep FIFOs for
25158c2ecf20Sopenharmony_ci * MCP. This location returns the lower 32 bits of timestamp value.
25168c2ecf20Sopenharmony_ci */
25178c2ecf20Sopenharmony_ci#define NIG_REG_P1_TLLH_PTP_BUF_TS_LSB				 0x187e4
25188c2ecf20Sopenharmony_ci/* [R 32] Packet TimeSync information that is buffered in 1-deep FIFOs for
25198c2ecf20Sopenharmony_ci * MCP. This location returns the upper 32 bits of timestamp value.
25208c2ecf20Sopenharmony_ci */
25218c2ecf20Sopenharmony_ci#define NIG_REG_P1_TLLH_PTP_BUF_TS_MSB				 0x187e8
25228c2ecf20Sopenharmony_ci/* [RW 11] Mask register for the various parameters used in determining PTP
25238c2ecf20Sopenharmony_ci * packet presence. Set each bit to 1 to mask out the particular parameter.
25248c2ecf20Sopenharmony_ci * 0-IPv4 DA 0 of 224.0.1.129. 1-IPv4 DA 1 of 224.0.0.107. 2-IPv6 DA 0 of
25258c2ecf20Sopenharmony_ci * 0xFF0*:0:0:0:0:0:0:181. 3-IPv6 DA 1 of 0xFF02:0:0:0:0:0:0:6B. 4-UDP
25268c2ecf20Sopenharmony_ci * destination port 0 of 319. 5-UDP destination port 1 of 320. 6-MAC
25278c2ecf20Sopenharmony_ci * Ethertype 0 of 0x88F7. 7-configurable MAC Ethertype 1. 8-MAC DA 0 of
25288c2ecf20Sopenharmony_ci * 0x01-1B-19-00-00-00. 9-MAC DA 1 of 0x01-80-C2-00-00-0E. 10-configurable
25298c2ecf20Sopenharmony_ci * MAC DA 2. The reset default is set to mask out all parameters.
25308c2ecf20Sopenharmony_ci */
25318c2ecf20Sopenharmony_ci#define NIG_REG_P1_TLLH_PTP_PARAM_MASK				 0x187f8
25328c2ecf20Sopenharmony_ci/* [RW 14] Mask regiser for the rules used in detecting PTP packets. Set
25338c2ecf20Sopenharmony_ci * each bit to 1 to mask out that particular rule. 0-{IPv4 DA 0; UDP DP 0} .
25348c2ecf20Sopenharmony_ci * 1-{IPv4 DA 0; UDP DP 1} . 2-{IPv4 DA 1; UDP DP 0} . 3-{IPv4 DA 1; UDP DP
25358c2ecf20Sopenharmony_ci * 1} . 4-{IPv6 DA 0; UDP DP 0} . 5-{IPv6 DA 0; UDP DP 1} . 6-{IPv6 DA 1;
25368c2ecf20Sopenharmony_ci * UDP DP 0} . 7-{IPv6 DA 1; UDP DP 1} . 8-{MAC DA 0; Ethertype 0} . 9-{MAC
25378c2ecf20Sopenharmony_ci * DA 1; Ethertype 0} . 10-{MAC DA 0; Ethertype 1} . 11-{MAC DA 1; Ethertype
25388c2ecf20Sopenharmony_ci * 1} . 12-{MAC DA 2; Ethertype 0} . 13-{MAC DA 2; Ethertype 1} . The reset
25398c2ecf20Sopenharmony_ci * default is to mask out all of the rules.
25408c2ecf20Sopenharmony_ci */
25418c2ecf20Sopenharmony_ci#define NIG_REG_P1_TLLH_PTP_RULE_MASK				 0x187fc
25428c2ecf20Sopenharmony_ci/* [RW 32] Specify which of the credit registers the client is to be mapped
25438c2ecf20Sopenharmony_ci * to. This register specifies bits 31:0 of the 36-bit value. Bits[3:0] are
25448c2ecf20Sopenharmony_ci * for client 0; bits [35:32] are for client 8. For clients that are not
25458c2ecf20Sopenharmony_ci * subject to WFQ credit blocking - their specifications here are not used.
25468c2ecf20Sopenharmony_ci * This is a new register (with 2_) added in E3 B0 to accommodate the 9
25478c2ecf20Sopenharmony_ci * input clients to ETS arbiter. The reset default is set for management and
25488c2ecf20Sopenharmony_ci * debug to use credit registers 6, 7, and 8, respectively, and COSes 0-5 to
25498c2ecf20Sopenharmony_ci * use credit registers 0-5 respectively (0x543210876). Note that credit
25508c2ecf20Sopenharmony_ci * registers can not be shared between clients. Note also that there are
25518c2ecf20Sopenharmony_ci * only COS0-2 in port 1- there is a total of 6 clients in port 1. Only
25528c2ecf20Sopenharmony_ci * credit registers 0-5 are valid. This register should be configured
25538c2ecf20Sopenharmony_ci * appropriately before enabling WFQ. */
25548c2ecf20Sopenharmony_ci#define NIG_REG_P1_TX_ARB_CLIENT_CREDIT_MAP2_LSB		 0x186e8
25558c2ecf20Sopenharmony_ci/* [RW 4] Specify which of the credit registers the client is to be mapped
25568c2ecf20Sopenharmony_ci * to. This register specifies bits 35:32 of the 36-bit value. Bits[3:0] are
25578c2ecf20Sopenharmony_ci * for client 0; bits [35:32] are for client 8. For clients that are not
25588c2ecf20Sopenharmony_ci * subject to WFQ credit blocking - their specifications here are not used.
25598c2ecf20Sopenharmony_ci * This is a new register (with 2_) added in E3 B0 to accommodate the 9
25608c2ecf20Sopenharmony_ci * input clients to ETS arbiter. The reset default is set for management and
25618c2ecf20Sopenharmony_ci * debug to use credit registers 6, 7, and 8, respectively, and COSes 0-5 to
25628c2ecf20Sopenharmony_ci * use credit registers 0-5 respectively (0x543210876). Note that credit
25638c2ecf20Sopenharmony_ci * registers can not be shared between clients. Note also that there are
25648c2ecf20Sopenharmony_ci * only COS0-2 in port 1- there is a total of 6 clients in port 1. Only
25658c2ecf20Sopenharmony_ci * credit registers 0-5 are valid. This register should be configured
25668c2ecf20Sopenharmony_ci * appropriately before enabling WFQ. */
25678c2ecf20Sopenharmony_ci#define NIG_REG_P1_TX_ARB_CLIENT_CREDIT_MAP2_MSB		 0x186ec
25688c2ecf20Sopenharmony_ci/* [RW 9] Specify whether the client competes directly in the strict
25698c2ecf20Sopenharmony_ci * priority arbiter. The bits are mapped according to client ID (client IDs
25708c2ecf20Sopenharmony_ci * are defined in tx_arb_priority_client2): 0-management; 1-debug traffic
25718c2ecf20Sopenharmony_ci * from this port; 2-debug traffic from other port; 3-COS0 traffic; 4-COS1
25728c2ecf20Sopenharmony_ci * traffic; 5-COS2 traffic; 6-COS3 traffic; 7-COS4 traffic; 8-COS5 traffic.
25738c2ecf20Sopenharmony_ci * Default value is set to enable strict priorities for all clients. */
25748c2ecf20Sopenharmony_ci#define NIG_REG_P1_TX_ARB_CLIENT_IS_STRICT			 0x18234
25758c2ecf20Sopenharmony_ci/* [RW 9] Specify whether the client is subject to WFQ credit blocking. The
25768c2ecf20Sopenharmony_ci * bits are mapped according to client ID (client IDs are defined in
25778c2ecf20Sopenharmony_ci * tx_arb_priority_client2): 0-management; 1-debug traffic from this port;
25788c2ecf20Sopenharmony_ci * 2-debug traffic from other port; 3-COS0 traffic; 4-COS1 traffic; 5-COS2
25798c2ecf20Sopenharmony_ci * traffic; 6-COS3 traffic; 7-COS4 traffic; 8-COS5 traffic. Default value is
25808c2ecf20Sopenharmony_ci * 0 for not using WFQ credit blocking. */
25818c2ecf20Sopenharmony_ci#define NIG_REG_P1_TX_ARB_CLIENT_IS_SUBJECT2WFQ			 0x18238
25828c2ecf20Sopenharmony_ci#define NIG_REG_P1_TX_ARB_CREDIT_UPPER_BOUND_0			 0x18258
25838c2ecf20Sopenharmony_ci#define NIG_REG_P1_TX_ARB_CREDIT_UPPER_BOUND_1			 0x1825c
25848c2ecf20Sopenharmony_ci#define NIG_REG_P1_TX_ARB_CREDIT_UPPER_BOUND_2			 0x18260
25858c2ecf20Sopenharmony_ci#define NIG_REG_P1_TX_ARB_CREDIT_UPPER_BOUND_3			 0x18264
25868c2ecf20Sopenharmony_ci#define NIG_REG_P1_TX_ARB_CREDIT_UPPER_BOUND_4			 0x18268
25878c2ecf20Sopenharmony_ci#define NIG_REG_P1_TX_ARB_CREDIT_UPPER_BOUND_5			 0x186f4
25888c2ecf20Sopenharmony_ci/* [RW 32] Specify the weight (in bytes) to be added to credit register 0
25898c2ecf20Sopenharmony_ci * when it is time to increment. */
25908c2ecf20Sopenharmony_ci#define NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_0			 0x18244
25918c2ecf20Sopenharmony_ci#define NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_1			 0x18248
25928c2ecf20Sopenharmony_ci#define NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_2			 0x1824c
25938c2ecf20Sopenharmony_ci#define NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_3			 0x18250
25948c2ecf20Sopenharmony_ci#define NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_4			 0x18254
25958c2ecf20Sopenharmony_ci#define NIG_REG_P1_TX_ARB_CREDIT_WEIGHT_5			 0x186f0
25968c2ecf20Sopenharmony_ci/* [RW 12] Specify the number of strict priority arbitration slots between
25978c2ecf20Sopenharmony_ci   two round-robin arbitration slots to avoid starvation. A value of 0 means
25988c2ecf20Sopenharmony_ci   no strict priority cycles - the strict priority with anti-starvation
25998c2ecf20Sopenharmony_ci   arbiter becomes a round-robin arbiter. */
26008c2ecf20Sopenharmony_ci#define NIG_REG_P1_TX_ARB_NUM_STRICT_ARB_SLOTS			 0x18240
26018c2ecf20Sopenharmony_ci/* [RW 32] Specify the client number to be assigned to each priority of the
26028c2ecf20Sopenharmony_ci   strict priority arbiter. This register specifies bits 31:0 of the 36-bit
26038c2ecf20Sopenharmony_ci   value. Priority 0 is the highest priority. Bits [3:0] are for priority 0
26048c2ecf20Sopenharmony_ci   client; bits [35-32] are for priority 8 client. The clients are assigned
26058c2ecf20Sopenharmony_ci   the following IDs: 0-management; 1-debug traffic from this port; 2-debug
26068c2ecf20Sopenharmony_ci   traffic from other port; 3-COS0 traffic; 4-COS1 traffic; 5-COS2 traffic;
26078c2ecf20Sopenharmony_ci   6-COS3 traffic; 7-COS4 traffic; 8-COS5 traffic. The reset value[35:0] is
26088c2ecf20Sopenharmony_ci   set to 0x345678021. This is a new register (with 2_) added in E3 B0 to
26098c2ecf20Sopenharmony_ci   accommodate the 9 input clients to ETS arbiter. Note that this register
26108c2ecf20Sopenharmony_ci   is the same as the one for port 0, except that port 1 only has COS 0-2
26118c2ecf20Sopenharmony_ci   traffic. There is no traffic for COS 3-5 of port 1. */
26128c2ecf20Sopenharmony_ci#define NIG_REG_P1_TX_ARB_PRIORITY_CLIENT2_LSB			 0x186e0
26138c2ecf20Sopenharmony_ci/* [RW 4] Specify the client number to be assigned to each priority of the
26148c2ecf20Sopenharmony_ci   strict priority arbiter. This register specifies bits 35:32 of the 36-bit
26158c2ecf20Sopenharmony_ci   value. Priority 0 is the highest priority. Bits [3:0] are for priority 0
26168c2ecf20Sopenharmony_ci   client; bits [35-32] are for priority 8 client. The clients are assigned
26178c2ecf20Sopenharmony_ci   the following IDs: 0-management; 1-debug traffic from this port; 2-debug
26188c2ecf20Sopenharmony_ci   traffic from other port; 3-COS0 traffic; 4-COS1 traffic; 5-COS2 traffic;
26198c2ecf20Sopenharmony_ci   6-COS3 traffic; 7-COS4 traffic; 8-COS5 traffic. The reset value[35:0] is
26208c2ecf20Sopenharmony_ci   set to 0x345678021. This is a new register (with 2_) added in E3 B0 to
26218c2ecf20Sopenharmony_ci   accommodate the 9 input clients to ETS arbiter. Note that this register
26228c2ecf20Sopenharmony_ci   is the same as the one for port 0, except that port 1 only has COS 0-2
26238c2ecf20Sopenharmony_ci   traffic. There is no traffic for COS 3-5 of port 1. */
26248c2ecf20Sopenharmony_ci#define NIG_REG_P1_TX_ARB_PRIORITY_CLIENT2_MSB			 0x186e4
26258c2ecf20Sopenharmony_ci/* [R 1] TX FIFO for transmitting data to MAC is empty. */
26268c2ecf20Sopenharmony_ci#define NIG_REG_P1_TX_MACFIFO_EMPTY				 0x18594
26278c2ecf20Sopenharmony_ci/* [RW 1] MCP-to-host path enable. Set this bit to enable the routing of MCP
26288c2ecf20Sopenharmony_ci * packets to BRB LB interface to forward the packet to the host. All
26298c2ecf20Sopenharmony_ci * packets from MCP are forwarded to the network when this bit is cleared -
26308c2ecf20Sopenharmony_ci * regardless of the configured destination in tx_mng_destination register.
26318c2ecf20Sopenharmony_ci */
26328c2ecf20Sopenharmony_ci#define NIG_REG_P1_TX_MNG_HOST_ENABLE				 0x182f8
26338c2ecf20Sopenharmony_ci/* [R 1] FIFO empty status of the MCP TX FIFO used for storing MCP packets
26348c2ecf20Sopenharmony_ci   forwarded to the host. */
26358c2ecf20Sopenharmony_ci#define NIG_REG_P1_TX_MNG_HOST_FIFO_EMPTY			 0x182b8
26368c2ecf20Sopenharmony_ci/* [RW 32] Specify the upper bound that credit register 0 is allowed to
26378c2ecf20Sopenharmony_ci * reach. */
26388c2ecf20Sopenharmony_ci/* [RW 1] Pause enable for port0. This register may get 1 only when
26398c2ecf20Sopenharmony_ci   ~safc_enable.safc_enable = 0 and ppp_enable.ppp_enable =0 for the same
26408c2ecf20Sopenharmony_ci   port */
26418c2ecf20Sopenharmony_ci#define NIG_REG_PAUSE_ENABLE_0					 0x160c0
26428c2ecf20Sopenharmony_ci#define NIG_REG_PAUSE_ENABLE_1					 0x160c4
26438c2ecf20Sopenharmony_ci/* [RW 1] Input enable for RX PBF LP IF */
26448c2ecf20Sopenharmony_ci#define NIG_REG_PBF_LB_IN_EN					 0x100b4
26458c2ecf20Sopenharmony_ci/* [RW 1] Value of this register will be transmitted to port swap when
26468c2ecf20Sopenharmony_ci   ~nig_registers_strap_override.strap_override =1 */
26478c2ecf20Sopenharmony_ci#define NIG_REG_PORT_SWAP					 0x10394
26488c2ecf20Sopenharmony_ci/* [RW 1] PPP enable for port0. This register may get 1 only when
26498c2ecf20Sopenharmony_ci * ~safc_enable.safc_enable = 0 and pause_enable.pause_enable =0 for the
26508c2ecf20Sopenharmony_ci * same port */
26518c2ecf20Sopenharmony_ci#define NIG_REG_PPP_ENABLE_0					 0x160b0
26528c2ecf20Sopenharmony_ci#define NIG_REG_PPP_ENABLE_1					 0x160b4
26538c2ecf20Sopenharmony_ci/* [RW 1] output enable for RX parser descriptor IF */
26548c2ecf20Sopenharmony_ci#define NIG_REG_PRS_EOP_OUT_EN					 0x10104
26558c2ecf20Sopenharmony_ci/* [RW 1] Input enable for RX parser request IF */
26568c2ecf20Sopenharmony_ci#define NIG_REG_PRS_REQ_IN_EN					 0x100b8
26578c2ecf20Sopenharmony_ci/* [RW 5] control to serdes - CL45 DEVAD */
26588c2ecf20Sopenharmony_ci#define NIG_REG_SERDES0_CTRL_MD_DEVAD				 0x10370
26598c2ecf20Sopenharmony_ci/* [RW 1] control to serdes; 0 - clause 45; 1 - clause 22 */
26608c2ecf20Sopenharmony_ci#define NIG_REG_SERDES0_CTRL_MD_ST				 0x1036c
26618c2ecf20Sopenharmony_ci/* [RW 5] control to serdes - CL22 PHY_ADD and CL45 PRTAD */
26628c2ecf20Sopenharmony_ci#define NIG_REG_SERDES0_CTRL_PHY_ADDR				 0x10374
26638c2ecf20Sopenharmony_ci/* [R 1] status from serdes0 that inputs to interrupt logic of link status */
26648c2ecf20Sopenharmony_ci#define NIG_REG_SERDES0_STATUS_LINK_STATUS			 0x10578
26658c2ecf20Sopenharmony_ci/* [R 32] Rx statistics : In user packets discarded due to BRB backpressure
26668c2ecf20Sopenharmony_ci   for port0 */
26678c2ecf20Sopenharmony_ci#define NIG_REG_STAT0_BRB_DISCARD				 0x105f0
26688c2ecf20Sopenharmony_ci/* [R 32] Rx statistics : In user packets truncated due to BRB backpressure
26698c2ecf20Sopenharmony_ci   for port0 */
26708c2ecf20Sopenharmony_ci#define NIG_REG_STAT0_BRB_TRUNCATE				 0x105f8
26718c2ecf20Sopenharmony_ci/* [WB_R 36] Tx statistics : Number of packets from emac0 or bmac0 that
26728c2ecf20Sopenharmony_ci   between 1024 and 1522 bytes for port0 */
26738c2ecf20Sopenharmony_ci#define NIG_REG_STAT0_EGRESS_MAC_PKT0				 0x10750
26748c2ecf20Sopenharmony_ci/* [WB_R 36] Tx statistics : Number of packets from emac0 or bmac0 that
26758c2ecf20Sopenharmony_ci   between 1523 bytes and above for port0 */
26768c2ecf20Sopenharmony_ci#define NIG_REG_STAT0_EGRESS_MAC_PKT1				 0x10760
26778c2ecf20Sopenharmony_ci/* [R 32] Rx statistics : In user packets discarded due to BRB backpressure
26788c2ecf20Sopenharmony_ci   for port1 */
26798c2ecf20Sopenharmony_ci#define NIG_REG_STAT1_BRB_DISCARD				 0x10628
26808c2ecf20Sopenharmony_ci/* [WB_R 36] Tx statistics : Number of packets from emac1 or bmac1 that
26818c2ecf20Sopenharmony_ci   between 1024 and 1522 bytes for port1 */
26828c2ecf20Sopenharmony_ci#define NIG_REG_STAT1_EGRESS_MAC_PKT0				 0x107a0
26838c2ecf20Sopenharmony_ci/* [WB_R 36] Tx statistics : Number of packets from emac1 or bmac1 that
26848c2ecf20Sopenharmony_ci   between 1523 bytes and above for port1 */
26858c2ecf20Sopenharmony_ci#define NIG_REG_STAT1_EGRESS_MAC_PKT1				 0x107b0
26868c2ecf20Sopenharmony_ci/* [WB_R 64] Rx statistics : User octets received for LP */
26878c2ecf20Sopenharmony_ci#define NIG_REG_STAT2_BRB_OCTET 				 0x107e0
26888c2ecf20Sopenharmony_ci#define NIG_REG_STATUS_INTERRUPT_PORT0				 0x10328
26898c2ecf20Sopenharmony_ci#define NIG_REG_STATUS_INTERRUPT_PORT1				 0x1032c
26908c2ecf20Sopenharmony_ci/* [RW 1] port swap mux selection. If this register equal to 0 then port
26918c2ecf20Sopenharmony_ci   swap is equal to SPIO pin that inputs from ifmux_serdes_swap. If 1 then
26928c2ecf20Sopenharmony_ci   ort swap is equal to ~nig_registers_port_swap.port_swap */
26938c2ecf20Sopenharmony_ci#define NIG_REG_STRAP_OVERRIDE					 0x10398
26948c2ecf20Sopenharmony_ci/* [WB 64] Addresses for TimeSync related registers in the timesync
26958c2ecf20Sopenharmony_ci * generator sub-module.
26968c2ecf20Sopenharmony_ci */
26978c2ecf20Sopenharmony_ci#define NIG_REG_TIMESYNC_GEN_REG				 0x18800
26988c2ecf20Sopenharmony_ci/* [RW 1] output enable for RX_XCM0 IF */
26998c2ecf20Sopenharmony_ci#define NIG_REG_XCM0_OUT_EN					 0x100f0
27008c2ecf20Sopenharmony_ci/* [RW 1] output enable for RX_XCM1 IF */
27018c2ecf20Sopenharmony_ci#define NIG_REG_XCM1_OUT_EN					 0x100f4
27028c2ecf20Sopenharmony_ci/* [RW 1] control to xgxs - remote PHY in-band MDIO */
27038c2ecf20Sopenharmony_ci#define NIG_REG_XGXS0_CTRL_EXTREMOTEMDIOST			 0x10348
27048c2ecf20Sopenharmony_ci/* [RW 5] control to xgxs - CL45 DEVAD */
27058c2ecf20Sopenharmony_ci#define NIG_REG_XGXS0_CTRL_MD_DEVAD				 0x1033c
27068c2ecf20Sopenharmony_ci/* [RW 1] control to xgxs; 0 - clause 45; 1 - clause 22 */
27078c2ecf20Sopenharmony_ci#define NIG_REG_XGXS0_CTRL_MD_ST				 0x10338
27088c2ecf20Sopenharmony_ci/* [RW 5] control to xgxs - CL22 PHY_ADD and CL45 PRTAD */
27098c2ecf20Sopenharmony_ci#define NIG_REG_XGXS0_CTRL_PHY_ADDR				 0x10340
27108c2ecf20Sopenharmony_ci/* [R 1] status from xgxs0 that inputs to interrupt logic of link10g. */
27118c2ecf20Sopenharmony_ci#define NIG_REG_XGXS0_STATUS_LINK10G				 0x10680
27128c2ecf20Sopenharmony_ci/* [R 4] status from xgxs0 that inputs to interrupt logic of link status */
27138c2ecf20Sopenharmony_ci#define NIG_REG_XGXS0_STATUS_LINK_STATUS			 0x10684
27148c2ecf20Sopenharmony_ci/* [RW 2] selection for XGXS lane of port 0 in NIG_MUX block */
27158c2ecf20Sopenharmony_ci#define NIG_REG_XGXS_LANE_SEL_P0				 0x102e8
27168c2ecf20Sopenharmony_ci/* [RW 1] selection for port0 for NIG_MUX block : 0 = SerDes; 1 = XGXS */
27178c2ecf20Sopenharmony_ci#define NIG_REG_XGXS_SERDES0_MODE_SEL				 0x102e0
27188c2ecf20Sopenharmony_ci#define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_EMAC0_MISC_MI_INT  (0x1<<0)
27198c2ecf20Sopenharmony_ci#define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_SERDES0_LINK_STATUS (0x1<<9)
27208c2ecf20Sopenharmony_ci#define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_XGXS0_LINK10G	 (0x1<<15)
27218c2ecf20Sopenharmony_ci#define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_XGXS0_LINK_STATUS  (0xf<<18)
27228c2ecf20Sopenharmony_ci#define NIG_STATUS_INTERRUPT_PORT0_REG_STATUS_XGXS0_LINK_STATUS_SIZE 18
27238c2ecf20Sopenharmony_ci/* [RW 31] The upper bound of the weight of COS0 in the ETS command arbiter. */
27248c2ecf20Sopenharmony_ci#define PBF_REG_COS0_UPPER_BOUND				 0x15c05c
27258c2ecf20Sopenharmony_ci/* [RW 31] The upper bound of the weight of COS0 in the ETS command arbiter
27268c2ecf20Sopenharmony_ci * of port 0. */
27278c2ecf20Sopenharmony_ci#define PBF_REG_COS0_UPPER_BOUND_P0				 0x15c2cc
27288c2ecf20Sopenharmony_ci/* [RW 31] The upper bound of the weight of COS0 in the ETS command arbiter
27298c2ecf20Sopenharmony_ci * of port 1. */
27308c2ecf20Sopenharmony_ci#define PBF_REG_COS0_UPPER_BOUND_P1				 0x15c2e4
27318c2ecf20Sopenharmony_ci/* [RW 31] The weight of COS0 in the ETS command arbiter. */
27328c2ecf20Sopenharmony_ci#define PBF_REG_COS0_WEIGHT					 0x15c054
27338c2ecf20Sopenharmony_ci/* [RW 31] The weight of COS0 in port 0 ETS command arbiter. */
27348c2ecf20Sopenharmony_ci#define PBF_REG_COS0_WEIGHT_P0					 0x15c2a8
27358c2ecf20Sopenharmony_ci/* [RW 31] The weight of COS0 in port 1 ETS command arbiter. */
27368c2ecf20Sopenharmony_ci#define PBF_REG_COS0_WEIGHT_P1					 0x15c2c0
27378c2ecf20Sopenharmony_ci/* [RW 31] The upper bound of the weight of COS1 in the ETS command arbiter. */
27388c2ecf20Sopenharmony_ci#define PBF_REG_COS1_UPPER_BOUND				 0x15c060
27398c2ecf20Sopenharmony_ci/* [RW 31] The weight of COS1 in the ETS command arbiter. */
27408c2ecf20Sopenharmony_ci#define PBF_REG_COS1_WEIGHT					 0x15c058
27418c2ecf20Sopenharmony_ci/* [RW 31] The weight of COS1 in port 0 ETS command arbiter. */
27428c2ecf20Sopenharmony_ci#define PBF_REG_COS1_WEIGHT_P0					 0x15c2ac
27438c2ecf20Sopenharmony_ci/* [RW 31] The weight of COS1 in port 1 ETS command arbiter. */
27448c2ecf20Sopenharmony_ci#define PBF_REG_COS1_WEIGHT_P1					 0x15c2c4
27458c2ecf20Sopenharmony_ci/* [RW 31] The weight of COS2 in port 0 ETS command arbiter. */
27468c2ecf20Sopenharmony_ci#define PBF_REG_COS2_WEIGHT_P0					 0x15c2b0
27478c2ecf20Sopenharmony_ci/* [RW 31] The weight of COS2 in port 1 ETS command arbiter. */
27488c2ecf20Sopenharmony_ci#define PBF_REG_COS2_WEIGHT_P1					 0x15c2c8
27498c2ecf20Sopenharmony_ci/* [RW 31] The weight of COS3 in port 0 ETS command arbiter. */
27508c2ecf20Sopenharmony_ci#define PBF_REG_COS3_WEIGHT_P0					 0x15c2b4
27518c2ecf20Sopenharmony_ci/* [RW 31] The weight of COS4 in port 0 ETS command arbiter. */
27528c2ecf20Sopenharmony_ci#define PBF_REG_COS4_WEIGHT_P0					 0x15c2b8
27538c2ecf20Sopenharmony_ci/* [RW 31] The weight of COS5 in port 0 ETS command arbiter. */
27548c2ecf20Sopenharmony_ci#define PBF_REG_COS5_WEIGHT_P0					 0x15c2bc
27558c2ecf20Sopenharmony_ci/* [R 11] Current credit for the LB queue in the tx port buffers in 16 byte
27568c2ecf20Sopenharmony_ci * lines. */
27578c2ecf20Sopenharmony_ci#define PBF_REG_CREDIT_LB_Q					 0x140338
27588c2ecf20Sopenharmony_ci/* [R 11] Current credit for queue 0 in the tx port buffers in 16 byte
27598c2ecf20Sopenharmony_ci * lines. */
27608c2ecf20Sopenharmony_ci#define PBF_REG_CREDIT_Q0					 0x14033c
27618c2ecf20Sopenharmony_ci/* [R 11] Current credit for queue 1 in the tx port buffers in 16 byte
27628c2ecf20Sopenharmony_ci * lines. */
27638c2ecf20Sopenharmony_ci#define PBF_REG_CREDIT_Q1					 0x140340
27648c2ecf20Sopenharmony_ci/* [RW 1] Disable processing further tasks from port 0 (after ending the
27658c2ecf20Sopenharmony_ci   current task in process). */
27668c2ecf20Sopenharmony_ci#define PBF_REG_DISABLE_NEW_TASK_PROC_P0			 0x14005c
27678c2ecf20Sopenharmony_ci/* [RW 1] Disable processing further tasks from port 1 (after ending the
27688c2ecf20Sopenharmony_ci   current task in process). */
27698c2ecf20Sopenharmony_ci#define PBF_REG_DISABLE_NEW_TASK_PROC_P1			 0x140060
27708c2ecf20Sopenharmony_ci/* [RW 1] Disable processing further tasks from port 4 (after ending the
27718c2ecf20Sopenharmony_ci   current task in process). */
27728c2ecf20Sopenharmony_ci#define PBF_REG_DISABLE_NEW_TASK_PROC_P4			 0x14006c
27738c2ecf20Sopenharmony_ci#define PBF_REG_DISABLE_PF					 0x1402e8
27748c2ecf20Sopenharmony_ci#define PBF_REG_DISABLE_VF					 0x1402ec
27758c2ecf20Sopenharmony_ci/* [RW 18] For port 0: For each client that is subject to WFQ (the
27768c2ecf20Sopenharmony_ci * corresponding bit is 1); indicates to which of the credit registers this
27778c2ecf20Sopenharmony_ci * client is mapped. For clients which are not credit blocked; their mapping
27788c2ecf20Sopenharmony_ci * is dont care. */
27798c2ecf20Sopenharmony_ci#define PBF_REG_ETS_ARB_CLIENT_CREDIT_MAP_P0			 0x15c288
27808c2ecf20Sopenharmony_ci/* [RW 9] For port 1: For each client that is subject to WFQ (the
27818c2ecf20Sopenharmony_ci * corresponding bit is 1); indicates to which of the credit registers this
27828c2ecf20Sopenharmony_ci * client is mapped. For clients which are not credit blocked; their mapping
27838c2ecf20Sopenharmony_ci * is dont care. */
27848c2ecf20Sopenharmony_ci#define PBF_REG_ETS_ARB_CLIENT_CREDIT_MAP_P1			 0x15c28c
27858c2ecf20Sopenharmony_ci/* [RW 6] For port 0: Bit per client to indicate if the client competes in
27868c2ecf20Sopenharmony_ci * the strict priority arbiter directly (corresponding bit = 1); or first
27878c2ecf20Sopenharmony_ci * goes to the RR arbiter (corresponding bit = 0); and then competes in the
27888c2ecf20Sopenharmony_ci * lowest priority in the strict-priority arbiter. */
27898c2ecf20Sopenharmony_ci#define PBF_REG_ETS_ARB_CLIENT_IS_STRICT_P0			 0x15c278
27908c2ecf20Sopenharmony_ci/* [RW 3] For port 1: Bit per client to indicate if the client competes in
27918c2ecf20Sopenharmony_ci * the strict priority arbiter directly (corresponding bit = 1); or first
27928c2ecf20Sopenharmony_ci * goes to the RR arbiter (corresponding bit = 0); and then competes in the
27938c2ecf20Sopenharmony_ci * lowest priority in the strict-priority arbiter. */
27948c2ecf20Sopenharmony_ci#define PBF_REG_ETS_ARB_CLIENT_IS_STRICT_P1			 0x15c27c
27958c2ecf20Sopenharmony_ci/* [RW 6] For port 0: Bit per client to indicate if the client is subject to
27968c2ecf20Sopenharmony_ci * WFQ credit blocking (corresponding bit = 1). */
27978c2ecf20Sopenharmony_ci#define PBF_REG_ETS_ARB_CLIENT_IS_SUBJECT2WFQ_P0		 0x15c280
27988c2ecf20Sopenharmony_ci/* [RW 3] For port 0: Bit per client to indicate if the client is subject to
27998c2ecf20Sopenharmony_ci * WFQ credit blocking (corresponding bit = 1). */
28008c2ecf20Sopenharmony_ci#define PBF_REG_ETS_ARB_CLIENT_IS_SUBJECT2WFQ_P1		 0x15c284
28018c2ecf20Sopenharmony_ci/* [RW 16] For port 0: The number of strict priority arbitration slots
28028c2ecf20Sopenharmony_ci * between 2 RR arbitration slots. A value of 0 means no strict priority
28038c2ecf20Sopenharmony_ci * cycles; i.e. the strict-priority w/ anti-starvation arbiter is a RR
28048c2ecf20Sopenharmony_ci * arbiter. */
28058c2ecf20Sopenharmony_ci#define PBF_REG_ETS_ARB_NUM_STRICT_ARB_SLOTS_P0			 0x15c2a0
28068c2ecf20Sopenharmony_ci/* [RW 16] For port 1: The number of strict priority arbitration slots
28078c2ecf20Sopenharmony_ci * between 2 RR arbitration slots. A value of 0 means no strict priority
28088c2ecf20Sopenharmony_ci * cycles; i.e. the strict-priority w/ anti-starvation arbiter is a RR
28098c2ecf20Sopenharmony_ci * arbiter. */
28108c2ecf20Sopenharmony_ci#define PBF_REG_ETS_ARB_NUM_STRICT_ARB_SLOTS_P1			 0x15c2a4
28118c2ecf20Sopenharmony_ci/* [RW 18] For port 0: Indicates which client is connected to each priority
28128c2ecf20Sopenharmony_ci * in the strict-priority arbiter. Priority 0 is the highest priority, and
28138c2ecf20Sopenharmony_ci * priority 5 is the lowest; to which the RR output is connected to (this is
28148c2ecf20Sopenharmony_ci * not configurable). */
28158c2ecf20Sopenharmony_ci#define PBF_REG_ETS_ARB_PRIORITY_CLIENT_P0			 0x15c270
28168c2ecf20Sopenharmony_ci/* [RW 9] For port 1: Indicates which client is connected to each priority
28178c2ecf20Sopenharmony_ci * in the strict-priority arbiter. Priority 0 is the highest priority, and
28188c2ecf20Sopenharmony_ci * priority 5 is the lowest; to which the RR output is connected to (this is
28198c2ecf20Sopenharmony_ci * not configurable). */
28208c2ecf20Sopenharmony_ci#define PBF_REG_ETS_ARB_PRIORITY_CLIENT_P1			 0x15c274
28218c2ecf20Sopenharmony_ci/* [RW 1] Indicates that ETS is performed between the COSes in the command
28228c2ecf20Sopenharmony_ci * arbiter. If reset strict priority w/ anti-starvation will be performed
28238c2ecf20Sopenharmony_ci * w/o WFQ. */
28248c2ecf20Sopenharmony_ci#define PBF_REG_ETS_ENABLED					 0x15c050
28258c2ecf20Sopenharmony_ci/* [RW 6] Bit-map indicating which L2 hdrs may appear after the basic
28268c2ecf20Sopenharmony_ci * Ethernet header. */
28278c2ecf20Sopenharmony_ci#define PBF_REG_HDRS_AFTER_BASIC				 0x15c0a8
28288c2ecf20Sopenharmony_ci/* [RW 6] Bit-map indicating which L2 hdrs may appear after L2 tag 0 */
28298c2ecf20Sopenharmony_ci#define PBF_REG_HDRS_AFTER_TAG_0				 0x15c0b8
28308c2ecf20Sopenharmony_ci/* [R 1] Removed for E3 B0 - Indicates which COS is conncted to the highest
28318c2ecf20Sopenharmony_ci * priority in the command arbiter. */
28328c2ecf20Sopenharmony_ci#define PBF_REG_HIGH_PRIORITY_COS_NUM				 0x15c04c
28338c2ecf20Sopenharmony_ci#define PBF_REG_IF_ENABLE_REG					 0x140044
28348c2ecf20Sopenharmony_ci/* [RW 1] Init bit. When set the initial credits are copied to the credit
28358c2ecf20Sopenharmony_ci   registers (except the port credits). Should be set and then reset after
28368c2ecf20Sopenharmony_ci   the configuration of the block has ended. */
28378c2ecf20Sopenharmony_ci#define PBF_REG_INIT						 0x140000
28388c2ecf20Sopenharmony_ci/* [RW 11] Initial credit for the LB queue in the tx port buffers in 16 byte
28398c2ecf20Sopenharmony_ci * lines. */
28408c2ecf20Sopenharmony_ci#define PBF_REG_INIT_CRD_LB_Q					 0x15c248
28418c2ecf20Sopenharmony_ci/* [RW 11] Initial credit for queue 0 in the tx port buffers in 16 byte
28428c2ecf20Sopenharmony_ci * lines. */
28438c2ecf20Sopenharmony_ci#define PBF_REG_INIT_CRD_Q0					 0x15c230
28448c2ecf20Sopenharmony_ci/* [RW 11] Initial credit for queue 1 in the tx port buffers in 16 byte
28458c2ecf20Sopenharmony_ci * lines. */
28468c2ecf20Sopenharmony_ci#define PBF_REG_INIT_CRD_Q1					 0x15c234
28478c2ecf20Sopenharmony_ci/* [RW 1] Init bit for port 0. When set the initial credit of port 0 is
28488c2ecf20Sopenharmony_ci   copied to the credit register. Should be set and then reset after the
28498c2ecf20Sopenharmony_ci   configuration of the port has ended. */
28508c2ecf20Sopenharmony_ci#define PBF_REG_INIT_P0 					 0x140004
28518c2ecf20Sopenharmony_ci/* [RW 1] Init bit for port 1. When set the initial credit of port 1 is
28528c2ecf20Sopenharmony_ci   copied to the credit register. Should be set and then reset after the
28538c2ecf20Sopenharmony_ci   configuration of the port has ended. */
28548c2ecf20Sopenharmony_ci#define PBF_REG_INIT_P1 					 0x140008
28558c2ecf20Sopenharmony_ci/* [RW 1] Init bit for port 4. When set the initial credit of port 4 is
28568c2ecf20Sopenharmony_ci   copied to the credit register. Should be set and then reset after the
28578c2ecf20Sopenharmony_ci   configuration of the port has ended. */
28588c2ecf20Sopenharmony_ci#define PBF_REG_INIT_P4 					 0x14000c
28598c2ecf20Sopenharmony_ci/* [R 32] Cyclic counter for the amount credits in 16 bytes lines added for
28608c2ecf20Sopenharmony_ci * the LB queue. Reset upon init. */
28618c2ecf20Sopenharmony_ci#define PBF_REG_INTERNAL_CRD_FREED_CNT_LB_Q			 0x140354
28628c2ecf20Sopenharmony_ci/* [R 32] Cyclic counter for the amount credits in 16 bytes lines added for
28638c2ecf20Sopenharmony_ci * queue 0. Reset upon init. */
28648c2ecf20Sopenharmony_ci#define PBF_REG_INTERNAL_CRD_FREED_CNT_Q0			 0x140358
28658c2ecf20Sopenharmony_ci/* [R 32] Cyclic counter for the amount credits in 16 bytes lines added for
28668c2ecf20Sopenharmony_ci * queue 1. Reset upon init. */
28678c2ecf20Sopenharmony_ci#define PBF_REG_INTERNAL_CRD_FREED_CNT_Q1			 0x14035c
28688c2ecf20Sopenharmony_ci/* [RW 1] Enable for mac interface 0. */
28698c2ecf20Sopenharmony_ci#define PBF_REG_MAC_IF0_ENABLE					 0x140030
28708c2ecf20Sopenharmony_ci/* [RW 1] Enable for mac interface 1. */
28718c2ecf20Sopenharmony_ci#define PBF_REG_MAC_IF1_ENABLE					 0x140034
28728c2ecf20Sopenharmony_ci/* [RW 1] Enable for the loopback interface. */
28738c2ecf20Sopenharmony_ci#define PBF_REG_MAC_LB_ENABLE					 0x140040
28748c2ecf20Sopenharmony_ci/* [RW 6] Bit-map indicating which headers must appear in the packet */
28758c2ecf20Sopenharmony_ci#define PBF_REG_MUST_HAVE_HDRS					 0x15c0c4
28768c2ecf20Sopenharmony_ci/* [RW 16] The number of strict priority arbitration slots between 2 RR
28778c2ecf20Sopenharmony_ci * arbitration slots. A value of 0 means no strict priority cycles; i.e. the
28788c2ecf20Sopenharmony_ci * strict-priority w/ anti-starvation arbiter is a RR arbiter. */
28798c2ecf20Sopenharmony_ci#define PBF_REG_NUM_STRICT_ARB_SLOTS				 0x15c064
28808c2ecf20Sopenharmony_ci/* [RW 10] Port 0 threshold used by arbiter in 16 byte lines used when pause
28818c2ecf20Sopenharmony_ci   not suppoterd. */
28828c2ecf20Sopenharmony_ci#define PBF_REG_P0_ARB_THRSH					 0x1400e4
28838c2ecf20Sopenharmony_ci/* [R 11] Current credit for port 0 in the tx port buffers in 16 byte lines. */
28848c2ecf20Sopenharmony_ci#define PBF_REG_P0_CREDIT					 0x140200
28858c2ecf20Sopenharmony_ci/* [RW 11] Initial credit for port 0 in the tx port buffers in 16 byte
28868c2ecf20Sopenharmony_ci   lines. */
28878c2ecf20Sopenharmony_ci#define PBF_REG_P0_INIT_CRD					 0x1400d0
28888c2ecf20Sopenharmony_ci/* [R 32] Cyclic counter for the amount credits in 16 bytes lines added for
28898c2ecf20Sopenharmony_ci * port 0. Reset upon init. */
28908c2ecf20Sopenharmony_ci#define PBF_REG_P0_INTERNAL_CRD_FREED_CNT			 0x140308
28918c2ecf20Sopenharmony_ci/* [R 1] Removed for E3 B0 - Indication that pause is enabled for port 0. */
28928c2ecf20Sopenharmony_ci#define PBF_REG_P0_PAUSE_ENABLE					 0x140014
28938c2ecf20Sopenharmony_ci/* [R 8] Removed for E3 B0 - Number of tasks in port 0 task queue. */
28948c2ecf20Sopenharmony_ci#define PBF_REG_P0_TASK_CNT					 0x140204
28958c2ecf20Sopenharmony_ci/* [R 32] Removed for E3 B0 - Cyclic counter for number of 8 byte lines
28968c2ecf20Sopenharmony_ci * freed from the task queue of port 0. Reset upon init. */
28978c2ecf20Sopenharmony_ci#define PBF_REG_P0_TQ_LINES_FREED_CNT				 0x1402f0
28988c2ecf20Sopenharmony_ci/* [R 12] Number of 8 bytes lines occupied in the task queue of port 0. */
28998c2ecf20Sopenharmony_ci#define PBF_REG_P0_TQ_OCCUPANCY					 0x1402fc
29008c2ecf20Sopenharmony_ci/* [R 11] Removed for E3 B0 - Current credit for port 1 in the tx port
29018c2ecf20Sopenharmony_ci * buffers in 16 byte lines. */
29028c2ecf20Sopenharmony_ci#define PBF_REG_P1_CREDIT					 0x140208
29038c2ecf20Sopenharmony_ci/* [R 11] Removed for E3 B0 - Initial credit for port 0 in the tx port
29048c2ecf20Sopenharmony_ci * buffers in 16 byte lines. */
29058c2ecf20Sopenharmony_ci#define PBF_REG_P1_INIT_CRD					 0x1400d4
29068c2ecf20Sopenharmony_ci/* [R 32] Cyclic counter for the amount credits in 16 bytes lines added for
29078c2ecf20Sopenharmony_ci * port 1. Reset upon init. */
29088c2ecf20Sopenharmony_ci#define PBF_REG_P1_INTERNAL_CRD_FREED_CNT			 0x14030c
29098c2ecf20Sopenharmony_ci/* [R 8] Removed for E3 B0 - Number of tasks in port 1 task queue. */
29108c2ecf20Sopenharmony_ci#define PBF_REG_P1_TASK_CNT					 0x14020c
29118c2ecf20Sopenharmony_ci/* [R 32] Removed for E3 B0 - Cyclic counter for number of 8 byte lines
29128c2ecf20Sopenharmony_ci * freed from the task queue of port 1. Reset upon init. */
29138c2ecf20Sopenharmony_ci#define PBF_REG_P1_TQ_LINES_FREED_CNT				 0x1402f4
29148c2ecf20Sopenharmony_ci/* [R 12] Number of 8 bytes lines occupied in the task queue of port 1. */
29158c2ecf20Sopenharmony_ci#define PBF_REG_P1_TQ_OCCUPANCY					 0x140300
29168c2ecf20Sopenharmony_ci/* [R 11] Current credit for port 4 in the tx port buffers in 16 byte lines. */
29178c2ecf20Sopenharmony_ci#define PBF_REG_P4_CREDIT					 0x140210
29188c2ecf20Sopenharmony_ci/* [RW 11] Initial credit for port 4 in the tx port buffers in 16 byte
29198c2ecf20Sopenharmony_ci   lines. */
29208c2ecf20Sopenharmony_ci#define PBF_REG_P4_INIT_CRD					 0x1400e0
29218c2ecf20Sopenharmony_ci/* [R 32] Cyclic counter for the amount credits in 16 bytes lines added for
29228c2ecf20Sopenharmony_ci * port 4. Reset upon init. */
29238c2ecf20Sopenharmony_ci#define PBF_REG_P4_INTERNAL_CRD_FREED_CNT			 0x140310
29248c2ecf20Sopenharmony_ci/* [R 8] Removed for E3 B0 - Number of tasks in port 4 task queue. */
29258c2ecf20Sopenharmony_ci#define PBF_REG_P4_TASK_CNT					 0x140214
29268c2ecf20Sopenharmony_ci/* [R 32] Removed for E3 B0 - Cyclic counter for number of 8 byte lines
29278c2ecf20Sopenharmony_ci * freed from the task queue of port 4. Reset upon init. */
29288c2ecf20Sopenharmony_ci#define PBF_REG_P4_TQ_LINES_FREED_CNT				 0x1402f8
29298c2ecf20Sopenharmony_ci/* [R 12] Number of 8 bytes lines occupied in the task queue of port 4. */
29308c2ecf20Sopenharmony_ci#define PBF_REG_P4_TQ_OCCUPANCY					 0x140304
29318c2ecf20Sopenharmony_ci/* [RW 5] Interrupt mask register #0 read/write */
29328c2ecf20Sopenharmony_ci#define PBF_REG_PBF_INT_MASK					 0x1401d4
29338c2ecf20Sopenharmony_ci/* [R 5] Interrupt register #0 read */
29348c2ecf20Sopenharmony_ci#define PBF_REG_PBF_INT_STS					 0x1401c8
29358c2ecf20Sopenharmony_ci/* [RW 20] Parity mask register #0 read/write */
29368c2ecf20Sopenharmony_ci#define PBF_REG_PBF_PRTY_MASK					 0x1401e4
29378c2ecf20Sopenharmony_ci/* [R 28] Parity register #0 read */
29388c2ecf20Sopenharmony_ci#define PBF_REG_PBF_PRTY_STS					 0x1401d8
29398c2ecf20Sopenharmony_ci/* [RC 20] Parity register #0 read clear */
29408c2ecf20Sopenharmony_ci#define PBF_REG_PBF_PRTY_STS_CLR				 0x1401dc
29418c2ecf20Sopenharmony_ci/* [RW 16] The Ethernet type value for L2 tag 0 */
29428c2ecf20Sopenharmony_ci#define PBF_REG_TAG_ETHERTYPE_0					 0x15c090
29438c2ecf20Sopenharmony_ci/* [RW 4] The length of the info field for L2 tag 0. The length is between
29448c2ecf20Sopenharmony_ci * 2B and 14B; in 2B granularity */
29458c2ecf20Sopenharmony_ci#define PBF_REG_TAG_LEN_0					 0x15c09c
29468c2ecf20Sopenharmony_ci/* [R 32] Cyclic counter for number of 8 byte lines freed from the LB task
29478c2ecf20Sopenharmony_ci * queue. Reset upon init. */
29488c2ecf20Sopenharmony_ci#define PBF_REG_TQ_LINES_FREED_CNT_LB_Q				 0x14038c
29498c2ecf20Sopenharmony_ci/* [R 32] Cyclic counter for number of 8 byte lines freed from the task
29508c2ecf20Sopenharmony_ci * queue 0. Reset upon init. */
29518c2ecf20Sopenharmony_ci#define PBF_REG_TQ_LINES_FREED_CNT_Q0				 0x140390
29528c2ecf20Sopenharmony_ci/* [R 32] Cyclic counter for number of 8 byte lines freed from task queue 1.
29538c2ecf20Sopenharmony_ci * Reset upon init. */
29548c2ecf20Sopenharmony_ci#define PBF_REG_TQ_LINES_FREED_CNT_Q1				 0x140394
29558c2ecf20Sopenharmony_ci/* [R 13] Number of 8 bytes lines occupied in the task queue of the LB
29568c2ecf20Sopenharmony_ci * queue. */
29578c2ecf20Sopenharmony_ci#define PBF_REG_TQ_OCCUPANCY_LB_Q				 0x1403a8
29588c2ecf20Sopenharmony_ci/* [R 13] Number of 8 bytes lines occupied in the task queue of queue 0. */
29598c2ecf20Sopenharmony_ci#define PBF_REG_TQ_OCCUPANCY_Q0					 0x1403ac
29608c2ecf20Sopenharmony_ci/* [R 13] Number of 8 bytes lines occupied in the task queue of queue 1. */
29618c2ecf20Sopenharmony_ci#define PBF_REG_TQ_OCCUPANCY_Q1					 0x1403b0
29628c2ecf20Sopenharmony_ci/* [RW 16] One of 8 values that should be compared to type in Ethernet
29638c2ecf20Sopenharmony_ci * parsing. If there is a match; the field after Ethernet is the first VLAN.
29648c2ecf20Sopenharmony_ci * Reset value is 0x8100 which is the standard VLAN type. Note that when
29658c2ecf20Sopenharmony_ci * checking second VLAN; type is compared only to 0x8100.
29668c2ecf20Sopenharmony_ci */
29678c2ecf20Sopenharmony_ci#define PBF_REG_VLAN_TYPE_0					 0x15c06c
29688c2ecf20Sopenharmony_ci/* [RW 2] Interrupt mask register #0 read/write */
29698c2ecf20Sopenharmony_ci#define PB_REG_PB_INT_MASK					 0x28
29708c2ecf20Sopenharmony_ci/* [R 2] Interrupt register #0 read */
29718c2ecf20Sopenharmony_ci#define PB_REG_PB_INT_STS					 0x1c
29728c2ecf20Sopenharmony_ci/* [RW 4] Parity mask register #0 read/write */
29738c2ecf20Sopenharmony_ci#define PB_REG_PB_PRTY_MASK					 0x38
29748c2ecf20Sopenharmony_ci/* [R 4] Parity register #0 read */
29758c2ecf20Sopenharmony_ci#define PB_REG_PB_PRTY_STS					 0x2c
29768c2ecf20Sopenharmony_ci/* [RC 4] Parity register #0 read clear */
29778c2ecf20Sopenharmony_ci#define PB_REG_PB_PRTY_STS_CLR					 0x30
29788c2ecf20Sopenharmony_ci#define PGLUE_B_PGLUE_B_INT_STS_REG_ADDRESS_ERROR		 (0x1<<0)
29798c2ecf20Sopenharmony_ci#define PGLUE_B_PGLUE_B_INT_STS_REG_CSSNOOP_FIFO_OVERFLOW	 (0x1<<8)
29808c2ecf20Sopenharmony_ci#define PGLUE_B_PGLUE_B_INT_STS_REG_INCORRECT_RCV_BEHAVIOR	 (0x1<<1)
29818c2ecf20Sopenharmony_ci#define PGLUE_B_PGLUE_B_INT_STS_REG_TCPL_ERROR_ATTN		 (0x1<<6)
29828c2ecf20Sopenharmony_ci#define PGLUE_B_PGLUE_B_INT_STS_REG_TCPL_IN_TWO_RCBS_ATTN	 (0x1<<7)
29838c2ecf20Sopenharmony_ci#define PGLUE_B_PGLUE_B_INT_STS_REG_VF_GRC_SPACE_VIOLATION_ATTN  (0x1<<4)
29848c2ecf20Sopenharmony_ci#define PGLUE_B_PGLUE_B_INT_STS_REG_VF_LENGTH_VIOLATION_ATTN	 (0x1<<3)
29858c2ecf20Sopenharmony_ci#define PGLUE_B_PGLUE_B_INT_STS_REG_VF_MSIX_BAR_VIOLATION_ATTN	 (0x1<<5)
29868c2ecf20Sopenharmony_ci#define PGLUE_B_PGLUE_B_INT_STS_REG_WAS_ERROR_ATTN		 (0x1<<2)
29878c2ecf20Sopenharmony_ci/* [R 8] Config space A attention dirty bits. Each bit indicates that the
29888c2ecf20Sopenharmony_ci * corresponding PF generates config space A attention. Set by PXP. Reset by
29898c2ecf20Sopenharmony_ci * MCP writing 1 to icfg_space_a_request_clr. Note: register contains bits
29908c2ecf20Sopenharmony_ci * from both paths. */
29918c2ecf20Sopenharmony_ci#define PGLUE_B_REG_CFG_SPACE_A_REQUEST			 0x9010
29928c2ecf20Sopenharmony_ci/* [R 8] Config space B attention dirty bits. Each bit indicates that the
29938c2ecf20Sopenharmony_ci * corresponding PF generates config space B attention. Set by PXP. Reset by
29948c2ecf20Sopenharmony_ci * MCP writing 1 to icfg_space_b_request_clr. Note: register contains bits
29958c2ecf20Sopenharmony_ci * from both paths. */
29968c2ecf20Sopenharmony_ci#define PGLUE_B_REG_CFG_SPACE_B_REQUEST			 0x9014
29978c2ecf20Sopenharmony_ci/* [RW 1] Type A PF enable inbound interrupt table for CSDM. 0 - disable; 1
29988c2ecf20Sopenharmony_ci * - enable. */
29998c2ecf20Sopenharmony_ci#define PGLUE_B_REG_CSDM_INB_INT_A_PF_ENABLE			 0x9194
30008c2ecf20Sopenharmony_ci/* [RW 18] Type B VF inbound interrupt table for CSDM: bits[17:9]-mask;
30018c2ecf20Sopenharmony_ci * its[8:0]-address. Bits [1:0] must be zero (DW resolution address). */
30028c2ecf20Sopenharmony_ci#define PGLUE_B_REG_CSDM_INB_INT_B_VF				 0x916c
30038c2ecf20Sopenharmony_ci/* [RW 1] Type B VF enable inbound interrupt table for CSDM. 0 - disable; 1
30048c2ecf20Sopenharmony_ci * - enable. */
30058c2ecf20Sopenharmony_ci#define PGLUE_B_REG_CSDM_INB_INT_B_VF_ENABLE			 0x919c
30068c2ecf20Sopenharmony_ci/* [RW 16] Start offset of CSDM zone A (queue zone) in the internal RAM */
30078c2ecf20Sopenharmony_ci#define PGLUE_B_REG_CSDM_START_OFFSET_A			 0x9100
30088c2ecf20Sopenharmony_ci/* [RW 16] Start offset of CSDM zone B (legacy zone) in the internal RAM */
30098c2ecf20Sopenharmony_ci#define PGLUE_B_REG_CSDM_START_OFFSET_B			 0x9108
30108c2ecf20Sopenharmony_ci/* [RW 5] VF Shift of CSDM zone B (legacy zone) in the internal RAM */
30118c2ecf20Sopenharmony_ci#define PGLUE_B_REG_CSDM_VF_SHIFT_B				 0x9110
30128c2ecf20Sopenharmony_ci/* [RW 1] 0 - Zone A size is 136x32B; 1 - Zone A size is 152x32B. */
30138c2ecf20Sopenharmony_ci#define PGLUE_B_REG_CSDM_ZONE_A_SIZE_PF			 0x91ac
30148c2ecf20Sopenharmony_ci/* [R 8] FLR request attention dirty bits for PFs 0 to 7. Each bit indicates
30158c2ecf20Sopenharmony_ci * that the FLR register of the corresponding PF was set. Set by PXP. Reset
30168c2ecf20Sopenharmony_ci * by MCP writing 1 to flr_request_pf_7_0_clr. Note: register contains bits
30178c2ecf20Sopenharmony_ci * from both paths. */
30188c2ecf20Sopenharmony_ci#define PGLUE_B_REG_FLR_REQUEST_PF_7_0				 0x9028
30198c2ecf20Sopenharmony_ci/* [W 8] FLR request attention dirty bits clear for PFs 0 to 7. MCP writes 1
30208c2ecf20Sopenharmony_ci * to a bit in this register in order to clear the corresponding bit in
30218c2ecf20Sopenharmony_ci * flr_request_pf_7_0 register. Note: register contains bits from both
30228c2ecf20Sopenharmony_ci * paths. */
30238c2ecf20Sopenharmony_ci#define PGLUE_B_REG_FLR_REQUEST_PF_7_0_CLR			 0x9418
30248c2ecf20Sopenharmony_ci/* [R 32] FLR request attention dirty bits for VFs 96 to 127. Each bit
30258c2ecf20Sopenharmony_ci * indicates that the FLR register of the corresponding VF was set. Set by
30268c2ecf20Sopenharmony_ci * PXP. Reset by MCP writing 1 to flr_request_vf_127_96_clr. */
30278c2ecf20Sopenharmony_ci#define PGLUE_B_REG_FLR_REQUEST_VF_127_96			 0x9024
30288c2ecf20Sopenharmony_ci/* [R 32] FLR request attention dirty bits for VFs 0 to 31. Each bit
30298c2ecf20Sopenharmony_ci * indicates that the FLR register of the corresponding VF was set. Set by
30308c2ecf20Sopenharmony_ci * PXP. Reset by MCP writing 1 to flr_request_vf_31_0_clr. */
30318c2ecf20Sopenharmony_ci#define PGLUE_B_REG_FLR_REQUEST_VF_31_0			 0x9018
30328c2ecf20Sopenharmony_ci/* [R 32] FLR request attention dirty bits for VFs 32 to 63. Each bit
30338c2ecf20Sopenharmony_ci * indicates that the FLR register of the corresponding VF was set. Set by
30348c2ecf20Sopenharmony_ci * PXP. Reset by MCP writing 1 to flr_request_vf_63_32_clr. */
30358c2ecf20Sopenharmony_ci#define PGLUE_B_REG_FLR_REQUEST_VF_63_32			 0x901c
30368c2ecf20Sopenharmony_ci/* [R 32] FLR request attention dirty bits for VFs 64 to 95. Each bit
30378c2ecf20Sopenharmony_ci * indicates that the FLR register of the corresponding VF was set. Set by
30388c2ecf20Sopenharmony_ci * PXP. Reset by MCP writing 1 to flr_request_vf_95_64_clr. */
30398c2ecf20Sopenharmony_ci#define PGLUE_B_REG_FLR_REQUEST_VF_95_64			 0x9020
30408c2ecf20Sopenharmony_ci/* [R 8] Each bit indicates an incorrect behavior in user RX interface. Bit
30418c2ecf20Sopenharmony_ci * 0 - Target memory read arrived with a correctable error. Bit 1 - Target
30428c2ecf20Sopenharmony_ci * memory read arrived with an uncorrectable error. Bit 2 - Configuration RW
30438c2ecf20Sopenharmony_ci * arrived with a correctable error. Bit 3 - Configuration RW arrived with
30448c2ecf20Sopenharmony_ci * an uncorrectable error. Bit 4 - Completion with Configuration Request
30458c2ecf20Sopenharmony_ci * Retry Status. Bit 5 - Expansion ROM access received with a write request.
30468c2ecf20Sopenharmony_ci * Bit 6 - Completion with pcie_rx_err of 0000; CMPL_STATUS of non-zero; and
30478c2ecf20Sopenharmony_ci * pcie_rx_last not asserted. Bit 7 - Completion with pcie_rx_err of 1010;
30488c2ecf20Sopenharmony_ci * and pcie_rx_last not asserted. */
30498c2ecf20Sopenharmony_ci#define PGLUE_B_REG_INCORRECT_RCV_DETAILS			 0x9068
30508c2ecf20Sopenharmony_ci#define PGLUE_B_REG_INTERNAL_PFID_ENABLE_MASTER		 0x942c
30518c2ecf20Sopenharmony_ci#define PGLUE_B_REG_INTERNAL_PFID_ENABLE_TARGET_READ		 0x9430
30528c2ecf20Sopenharmony_ci#define PGLUE_B_REG_INTERNAL_PFID_ENABLE_TARGET_WRITE		 0x9434
30538c2ecf20Sopenharmony_ci#define PGLUE_B_REG_INTERNAL_VFID_ENABLE			 0x9438
30548c2ecf20Sopenharmony_ci/* [W 7] Writing 1 to each bit in this register clears a corresponding error
30558c2ecf20Sopenharmony_ci * details register and enables logging new error details. Bit 0 - clears
30568c2ecf20Sopenharmony_ci * INCORRECT_RCV_DETAILS; Bit 1 - clears RX_ERR_DETAILS; Bit 2 - clears
30578c2ecf20Sopenharmony_ci * TX_ERR_WR_ADD_31_0 TX_ERR_WR_ADD_63_32 TX_ERR_WR_DETAILS
30588c2ecf20Sopenharmony_ci * TX_ERR_WR_DETAILS2 TX_ERR_RD_ADD_31_0 TX_ERR_RD_ADD_63_32
30598c2ecf20Sopenharmony_ci * TX_ERR_RD_DETAILS TX_ERR_RD_DETAILS2 TX_ERR_WR_DETAILS_ICPL; Bit 3 -
30608c2ecf20Sopenharmony_ci * clears VF_LENGTH_VIOLATION_DETAILS. Bit 4 - clears
30618c2ecf20Sopenharmony_ci * VF_GRC_SPACE_VIOLATION_DETAILS. Bit 5 - clears RX_TCPL_ERR_DETAILS. Bit 6
30628c2ecf20Sopenharmony_ci * - clears TCPL_IN_TWO_RCBS_DETAILS. */
30638c2ecf20Sopenharmony_ci#define PGLUE_B_REG_LATCHED_ERRORS_CLR				 0x943c
30648c2ecf20Sopenharmony_ci
30658c2ecf20Sopenharmony_ci/* [R 9] Interrupt register #0 read */
30668c2ecf20Sopenharmony_ci#define PGLUE_B_REG_PGLUE_B_INT_STS				 0x9298
30678c2ecf20Sopenharmony_ci/* [RC 9] Interrupt register #0 read clear */
30688c2ecf20Sopenharmony_ci#define PGLUE_B_REG_PGLUE_B_INT_STS_CLR			 0x929c
30698c2ecf20Sopenharmony_ci/* [RW 2] Parity mask register #0 read/write */
30708c2ecf20Sopenharmony_ci#define PGLUE_B_REG_PGLUE_B_PRTY_MASK				 0x92b4
30718c2ecf20Sopenharmony_ci/* [R 2] Parity register #0 read */
30728c2ecf20Sopenharmony_ci#define PGLUE_B_REG_PGLUE_B_PRTY_STS				 0x92a8
30738c2ecf20Sopenharmony_ci/* [RC 2] Parity register #0 read clear */
30748c2ecf20Sopenharmony_ci#define PGLUE_B_REG_PGLUE_B_PRTY_STS_CLR			 0x92ac
30758c2ecf20Sopenharmony_ci/* [R 13] Details of first request received with error. [2:0] - PFID. [3] -
30768c2ecf20Sopenharmony_ci * VF_VALID. [9:4] - VFID. [11:10] - Error Code - 0 - Indicates Completion
30778c2ecf20Sopenharmony_ci * Timeout of a User Tx non-posted request. 1 - unsupported request. 2 -
30788c2ecf20Sopenharmony_ci * completer abort. 3 - Illegal value for this field. [12] valid - indicates
30798c2ecf20Sopenharmony_ci * if there was a completion error since the last time this register was
30808c2ecf20Sopenharmony_ci * cleared. */
30818c2ecf20Sopenharmony_ci#define PGLUE_B_REG_RX_ERR_DETAILS				 0x9080
30828c2ecf20Sopenharmony_ci/* [R 18] Details of first ATS Translation Completion request received with
30838c2ecf20Sopenharmony_ci * error. [2:0] - PFID. [3] - VF_VALID. [9:4] - VFID. [11:10] - Error Code -
30848c2ecf20Sopenharmony_ci * 0 - Indicates Completion Timeout of a User Tx non-posted request. 1 -
30858c2ecf20Sopenharmony_ci * unsupported request. 2 - completer abort. 3 - Illegal value for this
30868c2ecf20Sopenharmony_ci * field. [16:12] - ATC OTB EntryID. [17] valid - indicates if there was a
30878c2ecf20Sopenharmony_ci * completion error since the last time this register was cleared. */
30888c2ecf20Sopenharmony_ci#define PGLUE_B_REG_RX_TCPL_ERR_DETAILS			 0x9084
30898c2ecf20Sopenharmony_ci/* [W 8] Debug only - Shadow BME bits clear for PFs 0 to 7. MCP writes 1 to
30908c2ecf20Sopenharmony_ci * a bit in this register in order to clear the corresponding bit in
30918c2ecf20Sopenharmony_ci * shadow_bme_pf_7_0 register. MCP should never use this unless a
30928c2ecf20Sopenharmony_ci * work-around is needed. Note: register contains bits from both paths. */
30938c2ecf20Sopenharmony_ci#define PGLUE_B_REG_SHADOW_BME_PF_7_0_CLR			 0x9458
30948c2ecf20Sopenharmony_ci/* [R 8] SR IOV disabled attention dirty bits. Each bit indicates that the
30958c2ecf20Sopenharmony_ci * VF enable register of the corresponding PF is written to 0 and was
30968c2ecf20Sopenharmony_ci * previously 1. Set by PXP. Reset by MCP writing 1 to
30978c2ecf20Sopenharmony_ci * sr_iov_disabled_request_clr. Note: register contains bits from both
30988c2ecf20Sopenharmony_ci * paths. */
30998c2ecf20Sopenharmony_ci#define PGLUE_B_REG_SR_IOV_DISABLED_REQUEST			 0x9030
31008c2ecf20Sopenharmony_ci/* [R 32] Indicates the status of tags 32-63. 0 - tags is used - read
31018c2ecf20Sopenharmony_ci * completion did not return yet. 1 - tag is unused. Same functionality as
31028c2ecf20Sopenharmony_ci * pxp2_registers_pgl_exp_rom_data2 for tags 0-31. */
31038c2ecf20Sopenharmony_ci#define PGLUE_B_REG_TAGS_63_32					 0x9244
31048c2ecf20Sopenharmony_ci/* [RW 1] Type A PF enable inbound interrupt table for TSDM. 0 - disable; 1
31058c2ecf20Sopenharmony_ci * - enable. */
31068c2ecf20Sopenharmony_ci#define PGLUE_B_REG_TSDM_INB_INT_A_PF_ENABLE			 0x9170
31078c2ecf20Sopenharmony_ci/* [RW 16] Start offset of TSDM zone A (queue zone) in the internal RAM */
31088c2ecf20Sopenharmony_ci#define PGLUE_B_REG_TSDM_START_OFFSET_A			 0x90c4
31098c2ecf20Sopenharmony_ci/* [RW 16] Start offset of TSDM zone B (legacy zone) in the internal RAM */
31108c2ecf20Sopenharmony_ci#define PGLUE_B_REG_TSDM_START_OFFSET_B			 0x90cc
31118c2ecf20Sopenharmony_ci/* [RW 5] VF Shift of TSDM zone B (legacy zone) in the internal RAM */
31128c2ecf20Sopenharmony_ci#define PGLUE_B_REG_TSDM_VF_SHIFT_B				 0x90d4
31138c2ecf20Sopenharmony_ci/* [RW 1] 0 - Zone A size is 136x32B; 1 - Zone A size is 152x32B. */
31148c2ecf20Sopenharmony_ci#define PGLUE_B_REG_TSDM_ZONE_A_SIZE_PF			 0x91a0
31158c2ecf20Sopenharmony_ci/* [R 32] Address [31:0] of first read request not submitted due to error */
31168c2ecf20Sopenharmony_ci#define PGLUE_B_REG_TX_ERR_RD_ADD_31_0				 0x9098
31178c2ecf20Sopenharmony_ci/* [R 32] Address [63:32] of first read request not submitted due to error */
31188c2ecf20Sopenharmony_ci#define PGLUE_B_REG_TX_ERR_RD_ADD_63_32			 0x909c
31198c2ecf20Sopenharmony_ci/* [R 31] Details of first read request not submitted due to error. [4:0]
31208c2ecf20Sopenharmony_ci * VQID. [5] TREQ. 1 - Indicates the request is a Translation Request.
31218c2ecf20Sopenharmony_ci * [20:8] - Length in bytes. [23:21] - PFID. [24] - VF_VALID. [30:25] -
31228c2ecf20Sopenharmony_ci * VFID. */
31238c2ecf20Sopenharmony_ci#define PGLUE_B_REG_TX_ERR_RD_DETAILS				 0x90a0
31248c2ecf20Sopenharmony_ci/* [R 26] Details of first read request not submitted due to error. [15:0]
31258c2ecf20Sopenharmony_ci * Request ID. [19:16] client ID. [20] - last SR. [24:21] - Error type -
31268c2ecf20Sopenharmony_ci * [21] - Indicates was_error was set; [22] - Indicates BME was cleared;
31278c2ecf20Sopenharmony_ci * [23] - Indicates FID_enable was cleared; [24] - Indicates VF with parent
31288c2ecf20Sopenharmony_ci * PF FLR_request or IOV_disable_request dirty bit is set. [25] valid -
31298c2ecf20Sopenharmony_ci * indicates if there was a request not submitted due to error since the
31308c2ecf20Sopenharmony_ci * last time this register was cleared. */
31318c2ecf20Sopenharmony_ci#define PGLUE_B_REG_TX_ERR_RD_DETAILS2				 0x90a4
31328c2ecf20Sopenharmony_ci/* [R 32] Address [31:0] of first write request not submitted due to error */
31338c2ecf20Sopenharmony_ci#define PGLUE_B_REG_TX_ERR_WR_ADD_31_0				 0x9088
31348c2ecf20Sopenharmony_ci/* [R 32] Address [63:32] of first write request not submitted due to error */
31358c2ecf20Sopenharmony_ci#define PGLUE_B_REG_TX_ERR_WR_ADD_63_32			 0x908c
31368c2ecf20Sopenharmony_ci/* [R 31] Details of first write request not submitted due to error. [4:0]
31378c2ecf20Sopenharmony_ci * VQID. [20:8] - Length in bytes. [23:21] - PFID. [24] - VF_VALID. [30:25]
31388c2ecf20Sopenharmony_ci * - VFID. */
31398c2ecf20Sopenharmony_ci#define PGLUE_B_REG_TX_ERR_WR_DETAILS				 0x9090
31408c2ecf20Sopenharmony_ci/* [R 26] Details of first write request not submitted due to error. [15:0]
31418c2ecf20Sopenharmony_ci * Request ID. [19:16] client ID. [20] - last SR. [24:21] - Error type -
31428c2ecf20Sopenharmony_ci * [21] - Indicates was_error was set; [22] - Indicates BME was cleared;
31438c2ecf20Sopenharmony_ci * [23] - Indicates FID_enable was cleared; [24] - Indicates VF with parent
31448c2ecf20Sopenharmony_ci * PF FLR_request or IOV_disable_request dirty bit is set. [25] valid -
31458c2ecf20Sopenharmony_ci * indicates if there was a request not submitted due to error since the
31468c2ecf20Sopenharmony_ci * last time this register was cleared. */
31478c2ecf20Sopenharmony_ci#define PGLUE_B_REG_TX_ERR_WR_DETAILS2				 0x9094
31488c2ecf20Sopenharmony_ci/* [RW 10] Type A PF/VF inbound interrupt table for USDM: bits[9:5]-mask;
31498c2ecf20Sopenharmony_ci * its[4:0]-address relative to start_offset_a. Bits [1:0] can have any
31508c2ecf20Sopenharmony_ci * value (Byte resolution address). */
31518c2ecf20Sopenharmony_ci#define PGLUE_B_REG_USDM_INB_INT_A_0				 0x9128
31528c2ecf20Sopenharmony_ci#define PGLUE_B_REG_USDM_INB_INT_A_1				 0x912c
31538c2ecf20Sopenharmony_ci#define PGLUE_B_REG_USDM_INB_INT_A_2				 0x9130
31548c2ecf20Sopenharmony_ci#define PGLUE_B_REG_USDM_INB_INT_A_3				 0x9134
31558c2ecf20Sopenharmony_ci#define PGLUE_B_REG_USDM_INB_INT_A_4				 0x9138
31568c2ecf20Sopenharmony_ci#define PGLUE_B_REG_USDM_INB_INT_A_5				 0x913c
31578c2ecf20Sopenharmony_ci#define PGLUE_B_REG_USDM_INB_INT_A_6				 0x9140
31588c2ecf20Sopenharmony_ci/* [RW 1] Type A PF enable inbound interrupt table for USDM. 0 - disable; 1
31598c2ecf20Sopenharmony_ci * - enable. */
31608c2ecf20Sopenharmony_ci#define PGLUE_B_REG_USDM_INB_INT_A_PF_ENABLE			 0x917c
31618c2ecf20Sopenharmony_ci/* [RW 1] Type A VF enable inbound interrupt table for USDM. 0 - disable; 1
31628c2ecf20Sopenharmony_ci * - enable. */
31638c2ecf20Sopenharmony_ci#define PGLUE_B_REG_USDM_INB_INT_A_VF_ENABLE			 0x9180
31648c2ecf20Sopenharmony_ci/* [RW 1] Type B VF enable inbound interrupt table for USDM. 0 - disable; 1
31658c2ecf20Sopenharmony_ci * - enable. */
31668c2ecf20Sopenharmony_ci#define PGLUE_B_REG_USDM_INB_INT_B_VF_ENABLE			 0x9184
31678c2ecf20Sopenharmony_ci/* [RW 16] Start offset of USDM zone A (queue zone) in the internal RAM */
31688c2ecf20Sopenharmony_ci#define PGLUE_B_REG_USDM_START_OFFSET_A			 0x90d8
31698c2ecf20Sopenharmony_ci/* [RW 16] Start offset of USDM zone B (legacy zone) in the internal RAM */
31708c2ecf20Sopenharmony_ci#define PGLUE_B_REG_USDM_START_OFFSET_B			 0x90e0
31718c2ecf20Sopenharmony_ci/* [RW 5] VF Shift of USDM zone B (legacy zone) in the internal RAM */
31728c2ecf20Sopenharmony_ci#define PGLUE_B_REG_USDM_VF_SHIFT_B				 0x90e8
31738c2ecf20Sopenharmony_ci/* [RW 1] 0 - Zone A size is 136x32B; 1 - Zone A size is 152x32B. */
31748c2ecf20Sopenharmony_ci#define PGLUE_B_REG_USDM_ZONE_A_SIZE_PF			 0x91a4
31758c2ecf20Sopenharmony_ci/* [R 26] Details of first target VF request accessing VF GRC space that
31768c2ecf20Sopenharmony_ci * failed permission check. [14:0] Address. [15] w_nr: 0 - Read; 1 - Write.
31778c2ecf20Sopenharmony_ci * [21:16] VFID. [24:22] - PFID. [25] valid - indicates if there was a
31788c2ecf20Sopenharmony_ci * request accessing VF GRC space that failed permission check since the
31798c2ecf20Sopenharmony_ci * last time this register was cleared. Permission checks are: function
31808c2ecf20Sopenharmony_ci * permission; R/W permission; address range permission. */
31818c2ecf20Sopenharmony_ci#define PGLUE_B_REG_VF_GRC_SPACE_VIOLATION_DETAILS		 0x9234
31828c2ecf20Sopenharmony_ci/* [R 31] Details of first target VF request with length violation (too many
31838c2ecf20Sopenharmony_ci * DWs) accessing BAR0. [12:0] Address in DWs (bits [14:2] of byte address).
31848c2ecf20Sopenharmony_ci * [14:13] BAR. [20:15] VFID. [23:21] - PFID. [29:24] - Length in DWs. [30]
31858c2ecf20Sopenharmony_ci * valid - indicates if there was a request with length violation since the
31868c2ecf20Sopenharmony_ci * last time this register was cleared. Length violations: length of more
31878c2ecf20Sopenharmony_ci * than 2DWs; length of 2DWs and address not QW aligned; window is GRC and
31888c2ecf20Sopenharmony_ci * length is more than 1 DW. */
31898c2ecf20Sopenharmony_ci#define PGLUE_B_REG_VF_LENGTH_VIOLATION_DETAILS		 0x9230
31908c2ecf20Sopenharmony_ci/* [R 8] Was_error indication dirty bits for PFs 0 to 7. Each bit indicates
31918c2ecf20Sopenharmony_ci * that there was a completion with uncorrectable error for the
31928c2ecf20Sopenharmony_ci * corresponding PF. Set by PXP. Reset by MCP writing 1 to
31938c2ecf20Sopenharmony_ci * was_error_pf_7_0_clr. */
31948c2ecf20Sopenharmony_ci#define PGLUE_B_REG_WAS_ERROR_PF_7_0				 0x907c
31958c2ecf20Sopenharmony_ci/* [W 8] Was_error indication dirty bits clear for PFs 0 to 7. MCP writes 1
31968c2ecf20Sopenharmony_ci * to a bit in this register in order to clear the corresponding bit in
31978c2ecf20Sopenharmony_ci * flr_request_pf_7_0 register. */
31988c2ecf20Sopenharmony_ci#define PGLUE_B_REG_WAS_ERROR_PF_7_0_CLR			 0x9470
31998c2ecf20Sopenharmony_ci/* [R 32] Was_error indication dirty bits for VFs 96 to 127. Each bit
32008c2ecf20Sopenharmony_ci * indicates that there was a completion with uncorrectable error for the
32018c2ecf20Sopenharmony_ci * corresponding VF. Set by PXP. Reset by MCP writing 1 to
32028c2ecf20Sopenharmony_ci * was_error_vf_127_96_clr. */
32038c2ecf20Sopenharmony_ci#define PGLUE_B_REG_WAS_ERROR_VF_127_96			 0x9078
32048c2ecf20Sopenharmony_ci/* [W 32] Was_error indication dirty bits clear for VFs 96 to 127. MCP
32058c2ecf20Sopenharmony_ci * writes 1 to a bit in this register in order to clear the corresponding
32068c2ecf20Sopenharmony_ci * bit in was_error_vf_127_96 register. */
32078c2ecf20Sopenharmony_ci#define PGLUE_B_REG_WAS_ERROR_VF_127_96_CLR			 0x9474
32088c2ecf20Sopenharmony_ci/* [R 32] Was_error indication dirty bits for VFs 0 to 31. Each bit
32098c2ecf20Sopenharmony_ci * indicates that there was a completion with uncorrectable error for the
32108c2ecf20Sopenharmony_ci * corresponding VF. Set by PXP. Reset by MCP writing 1 to
32118c2ecf20Sopenharmony_ci * was_error_vf_31_0_clr. */
32128c2ecf20Sopenharmony_ci#define PGLUE_B_REG_WAS_ERROR_VF_31_0				 0x906c
32138c2ecf20Sopenharmony_ci/* [W 32] Was_error indication dirty bits clear for VFs 0 to 31. MCP writes
32148c2ecf20Sopenharmony_ci * 1 to a bit in this register in order to clear the corresponding bit in
32158c2ecf20Sopenharmony_ci * was_error_vf_31_0 register. */
32168c2ecf20Sopenharmony_ci#define PGLUE_B_REG_WAS_ERROR_VF_31_0_CLR			 0x9478
32178c2ecf20Sopenharmony_ci/* [R 32] Was_error indication dirty bits for VFs 32 to 63. Each bit
32188c2ecf20Sopenharmony_ci * indicates that there was a completion with uncorrectable error for the
32198c2ecf20Sopenharmony_ci * corresponding VF. Set by PXP. Reset by MCP writing 1 to
32208c2ecf20Sopenharmony_ci * was_error_vf_63_32_clr. */
32218c2ecf20Sopenharmony_ci#define PGLUE_B_REG_WAS_ERROR_VF_63_32				 0x9070
32228c2ecf20Sopenharmony_ci/* [W 32] Was_error indication dirty bits clear for VFs 32 to 63. MCP writes
32238c2ecf20Sopenharmony_ci * 1 to a bit in this register in order to clear the corresponding bit in
32248c2ecf20Sopenharmony_ci * was_error_vf_63_32 register. */
32258c2ecf20Sopenharmony_ci#define PGLUE_B_REG_WAS_ERROR_VF_63_32_CLR			 0x947c
32268c2ecf20Sopenharmony_ci/* [R 32] Was_error indication dirty bits for VFs 64 to 95. Each bit
32278c2ecf20Sopenharmony_ci * indicates that there was a completion with uncorrectable error for the
32288c2ecf20Sopenharmony_ci * corresponding VF. Set by PXP. Reset by MCP writing 1 to
32298c2ecf20Sopenharmony_ci * was_error_vf_95_64_clr. */
32308c2ecf20Sopenharmony_ci#define PGLUE_B_REG_WAS_ERROR_VF_95_64				 0x9074
32318c2ecf20Sopenharmony_ci/* [W 32] Was_error indication dirty bits clear for VFs 64 to 95. MCP writes
32328c2ecf20Sopenharmony_ci * 1 to a bit in this register in order to clear the corresponding bit in
32338c2ecf20Sopenharmony_ci * was_error_vf_95_64 register. */
32348c2ecf20Sopenharmony_ci#define PGLUE_B_REG_WAS_ERROR_VF_95_64_CLR			 0x9480
32358c2ecf20Sopenharmony_ci/* [RW 1] Type A PF enable inbound interrupt table for XSDM. 0 - disable; 1
32368c2ecf20Sopenharmony_ci * - enable. */
32378c2ecf20Sopenharmony_ci#define PGLUE_B_REG_XSDM_INB_INT_A_PF_ENABLE			 0x9188
32388c2ecf20Sopenharmony_ci/* [RW 16] Start offset of XSDM zone A (queue zone) in the internal RAM */
32398c2ecf20Sopenharmony_ci#define PGLUE_B_REG_XSDM_START_OFFSET_A			 0x90ec
32408c2ecf20Sopenharmony_ci/* [RW 16] Start offset of XSDM zone B (legacy zone) in the internal RAM */
32418c2ecf20Sopenharmony_ci#define PGLUE_B_REG_XSDM_START_OFFSET_B			 0x90f4
32428c2ecf20Sopenharmony_ci/* [RW 5] VF Shift of XSDM zone B (legacy zone) in the internal RAM */
32438c2ecf20Sopenharmony_ci#define PGLUE_B_REG_XSDM_VF_SHIFT_B				 0x90fc
32448c2ecf20Sopenharmony_ci/* [RW 1] 0 - Zone A size is 136x32B; 1 - Zone A size is 152x32B. */
32458c2ecf20Sopenharmony_ci#define PGLUE_B_REG_XSDM_ZONE_A_SIZE_PF			 0x91a8
32468c2ecf20Sopenharmony_ci#define PRS_REG_A_PRSU_20					 0x40134
32478c2ecf20Sopenharmony_ci/* [R 8] debug only: CFC load request current credit. Transaction based. */
32488c2ecf20Sopenharmony_ci#define PRS_REG_CFC_LD_CURRENT_CREDIT				 0x40164
32498c2ecf20Sopenharmony_ci/* [R 8] debug only: CFC search request current credit. Transaction based. */
32508c2ecf20Sopenharmony_ci#define PRS_REG_CFC_SEARCH_CURRENT_CREDIT			 0x40168
32518c2ecf20Sopenharmony_ci/* [RW 6] The initial credit for the search message to the CFC interface.
32528c2ecf20Sopenharmony_ci   Credit is transaction based. */
32538c2ecf20Sopenharmony_ci#define PRS_REG_CFC_SEARCH_INITIAL_CREDIT			 0x4011c
32548c2ecf20Sopenharmony_ci/* [RW 24] CID for port 0 if no match */
32558c2ecf20Sopenharmony_ci#define PRS_REG_CID_PORT_0					 0x400fc
32568c2ecf20Sopenharmony_ci/* [RW 32] The CM header for flush message where 'load existed' bit in CFC
32578c2ecf20Sopenharmony_ci   load response is reset and packet type is 0. Used in packet start message
32588c2ecf20Sopenharmony_ci   to TCM. */
32598c2ecf20Sopenharmony_ci#define PRS_REG_CM_HDR_FLUSH_LOAD_TYPE_0			 0x400dc
32608c2ecf20Sopenharmony_ci#define PRS_REG_CM_HDR_FLUSH_LOAD_TYPE_1			 0x400e0
32618c2ecf20Sopenharmony_ci#define PRS_REG_CM_HDR_FLUSH_LOAD_TYPE_2			 0x400e4
32628c2ecf20Sopenharmony_ci#define PRS_REG_CM_HDR_FLUSH_LOAD_TYPE_3			 0x400e8
32638c2ecf20Sopenharmony_ci#define PRS_REG_CM_HDR_FLUSH_LOAD_TYPE_4			 0x400ec
32648c2ecf20Sopenharmony_ci#define PRS_REG_CM_HDR_FLUSH_LOAD_TYPE_5			 0x400f0
32658c2ecf20Sopenharmony_ci/* [RW 32] The CM header for flush message where 'load existed' bit in CFC
32668c2ecf20Sopenharmony_ci   load response is set and packet type is 0. Used in packet start message
32678c2ecf20Sopenharmony_ci   to TCM. */
32688c2ecf20Sopenharmony_ci#define PRS_REG_CM_HDR_FLUSH_NO_LOAD_TYPE_0			 0x400bc
32698c2ecf20Sopenharmony_ci#define PRS_REG_CM_HDR_FLUSH_NO_LOAD_TYPE_1			 0x400c0
32708c2ecf20Sopenharmony_ci#define PRS_REG_CM_HDR_FLUSH_NO_LOAD_TYPE_2			 0x400c4
32718c2ecf20Sopenharmony_ci#define PRS_REG_CM_HDR_FLUSH_NO_LOAD_TYPE_3			 0x400c8
32728c2ecf20Sopenharmony_ci#define PRS_REG_CM_HDR_FLUSH_NO_LOAD_TYPE_4			 0x400cc
32738c2ecf20Sopenharmony_ci#define PRS_REG_CM_HDR_FLUSH_NO_LOAD_TYPE_5			 0x400d0
32748c2ecf20Sopenharmony_ci/* [RW 32] The CM header for a match and packet type 1 for loopback port.
32758c2ecf20Sopenharmony_ci   Used in packet start message to TCM. */
32768c2ecf20Sopenharmony_ci#define PRS_REG_CM_HDR_LOOPBACK_TYPE_1				 0x4009c
32778c2ecf20Sopenharmony_ci#define PRS_REG_CM_HDR_LOOPBACK_TYPE_2				 0x400a0
32788c2ecf20Sopenharmony_ci#define PRS_REG_CM_HDR_LOOPBACK_TYPE_3				 0x400a4
32798c2ecf20Sopenharmony_ci#define PRS_REG_CM_HDR_LOOPBACK_TYPE_4				 0x400a8
32808c2ecf20Sopenharmony_ci/* [RW 32] The CM header for a match and packet type 0. Used in packet start
32818c2ecf20Sopenharmony_ci   message to TCM. */
32828c2ecf20Sopenharmony_ci#define PRS_REG_CM_HDR_TYPE_0					 0x40078
32838c2ecf20Sopenharmony_ci#define PRS_REG_CM_HDR_TYPE_1					 0x4007c
32848c2ecf20Sopenharmony_ci#define PRS_REG_CM_HDR_TYPE_2					 0x40080
32858c2ecf20Sopenharmony_ci#define PRS_REG_CM_HDR_TYPE_3					 0x40084
32868c2ecf20Sopenharmony_ci#define PRS_REG_CM_HDR_TYPE_4					 0x40088
32878c2ecf20Sopenharmony_ci/* [RW 32] The CM header in case there was not a match on the connection */
32888c2ecf20Sopenharmony_ci#define PRS_REG_CM_NO_MATCH_HDR 				 0x400b8
32898c2ecf20Sopenharmony_ci/* [RW 1] Indicates if in e1hov mode. 0=non-e1hov mode; 1=e1hov mode. */
32908c2ecf20Sopenharmony_ci#define PRS_REG_E1HOV_MODE					 0x401c8
32918c2ecf20Sopenharmony_ci/* [RW 8] The 8-bit event ID for a match and packet type 1. Used in packet
32928c2ecf20Sopenharmony_ci   start message to TCM. */
32938c2ecf20Sopenharmony_ci#define PRS_REG_EVENT_ID_1					 0x40054
32948c2ecf20Sopenharmony_ci#define PRS_REG_EVENT_ID_2					 0x40058
32958c2ecf20Sopenharmony_ci#define PRS_REG_EVENT_ID_3					 0x4005c
32968c2ecf20Sopenharmony_ci/* [RW 16] The Ethernet type value for FCoE */
32978c2ecf20Sopenharmony_ci#define PRS_REG_FCOE_TYPE					 0x401d0
32988c2ecf20Sopenharmony_ci/* [RW 8] Context region for flush packet with packet type 0. Used in CFC
32998c2ecf20Sopenharmony_ci   load request message. */
33008c2ecf20Sopenharmony_ci#define PRS_REG_FLUSH_REGIONS_TYPE_0				 0x40004
33018c2ecf20Sopenharmony_ci#define PRS_REG_FLUSH_REGIONS_TYPE_1				 0x40008
33028c2ecf20Sopenharmony_ci#define PRS_REG_FLUSH_REGIONS_TYPE_2				 0x4000c
33038c2ecf20Sopenharmony_ci#define PRS_REG_FLUSH_REGIONS_TYPE_3				 0x40010
33048c2ecf20Sopenharmony_ci#define PRS_REG_FLUSH_REGIONS_TYPE_4				 0x40014
33058c2ecf20Sopenharmony_ci#define PRS_REG_FLUSH_REGIONS_TYPE_5				 0x40018
33068c2ecf20Sopenharmony_ci#define PRS_REG_FLUSH_REGIONS_TYPE_6				 0x4001c
33078c2ecf20Sopenharmony_ci#define PRS_REG_FLUSH_REGIONS_TYPE_7				 0x40020
33088c2ecf20Sopenharmony_ci/* [RW 6] Bit-map indicating which L2 hdrs may appear after the basic
33098c2ecf20Sopenharmony_ci * Ethernet header. */
33108c2ecf20Sopenharmony_ci#define PRS_REG_HDRS_AFTER_BASIC				 0x40238
33118c2ecf20Sopenharmony_ci/* [RW 6] Bit-map indicating which L2 hdrs may appear after the basic
33128c2ecf20Sopenharmony_ci * Ethernet header for port 0 packets. */
33138c2ecf20Sopenharmony_ci#define PRS_REG_HDRS_AFTER_BASIC_PORT_0				 0x40270
33148c2ecf20Sopenharmony_ci#define PRS_REG_HDRS_AFTER_BASIC_PORT_1				 0x40290
33158c2ecf20Sopenharmony_ci/* [R 6] Bit-map indicating which L2 hdrs may appear after L2 tag 0 */
33168c2ecf20Sopenharmony_ci#define PRS_REG_HDRS_AFTER_TAG_0				 0x40248
33178c2ecf20Sopenharmony_ci/* [RW 6] Bit-map indicating which L2 hdrs may appear after L2 tag 0 for
33188c2ecf20Sopenharmony_ci * port 0 packets */
33198c2ecf20Sopenharmony_ci#define PRS_REG_HDRS_AFTER_TAG_0_PORT_0				 0x40280
33208c2ecf20Sopenharmony_ci#define PRS_REG_HDRS_AFTER_TAG_0_PORT_1				 0x402a0
33218c2ecf20Sopenharmony_ci/* [RW 4] The increment value to send in the CFC load request message */
33228c2ecf20Sopenharmony_ci#define PRS_REG_INC_VALUE					 0x40048
33238c2ecf20Sopenharmony_ci/* [RW 6] Bit-map indicating which headers must appear in the packet */
33248c2ecf20Sopenharmony_ci#define PRS_REG_MUST_HAVE_HDRS					 0x40254
33258c2ecf20Sopenharmony_ci/* [RW 6] Bit-map indicating which headers must appear in the packet for
33268c2ecf20Sopenharmony_ci * port 0 packets */
33278c2ecf20Sopenharmony_ci#define PRS_REG_MUST_HAVE_HDRS_PORT_0				 0x4028c
33288c2ecf20Sopenharmony_ci#define PRS_REG_MUST_HAVE_HDRS_PORT_1				 0x402ac
33298c2ecf20Sopenharmony_ci#define PRS_REG_NIC_MODE					 0x40138
33308c2ecf20Sopenharmony_ci/* [RW 8] The 8-bit event ID for cases where there is no match on the
33318c2ecf20Sopenharmony_ci   connection. Used in packet start message to TCM. */
33328c2ecf20Sopenharmony_ci#define PRS_REG_NO_MATCH_EVENT_ID				 0x40070
33338c2ecf20Sopenharmony_ci/* [ST 24] The number of input CFC flush packets */
33348c2ecf20Sopenharmony_ci#define PRS_REG_NUM_OF_CFC_FLUSH_MESSAGES			 0x40128
33358c2ecf20Sopenharmony_ci/* [ST 32] The number of cycles the Parser halted its operation since it
33368c2ecf20Sopenharmony_ci   could not allocate the next serial number */
33378c2ecf20Sopenharmony_ci#define PRS_REG_NUM_OF_DEAD_CYCLES				 0x40130
33388c2ecf20Sopenharmony_ci/* [ST 24] The number of input packets */
33398c2ecf20Sopenharmony_ci#define PRS_REG_NUM_OF_PACKETS					 0x40124
33408c2ecf20Sopenharmony_ci/* [ST 24] The number of input transparent flush packets */
33418c2ecf20Sopenharmony_ci#define PRS_REG_NUM_OF_TRANSPARENT_FLUSH_MESSAGES		 0x4012c
33428c2ecf20Sopenharmony_ci/* [RW 8] Context region for received Ethernet packet with a match and
33438c2ecf20Sopenharmony_ci   packet type 0. Used in CFC load request message */
33448c2ecf20Sopenharmony_ci#define PRS_REG_PACKET_REGIONS_TYPE_0				 0x40028
33458c2ecf20Sopenharmony_ci#define PRS_REG_PACKET_REGIONS_TYPE_1				 0x4002c
33468c2ecf20Sopenharmony_ci#define PRS_REG_PACKET_REGIONS_TYPE_2				 0x40030
33478c2ecf20Sopenharmony_ci#define PRS_REG_PACKET_REGIONS_TYPE_3				 0x40034
33488c2ecf20Sopenharmony_ci#define PRS_REG_PACKET_REGIONS_TYPE_4				 0x40038
33498c2ecf20Sopenharmony_ci#define PRS_REG_PACKET_REGIONS_TYPE_5				 0x4003c
33508c2ecf20Sopenharmony_ci#define PRS_REG_PACKET_REGIONS_TYPE_6				 0x40040
33518c2ecf20Sopenharmony_ci#define PRS_REG_PACKET_REGIONS_TYPE_7				 0x40044
33528c2ecf20Sopenharmony_ci/* [R 2] debug only: Number of pending requests for CAC on port 0. */
33538c2ecf20Sopenharmony_ci#define PRS_REG_PENDING_BRB_CAC0_RQ				 0x40174
33548c2ecf20Sopenharmony_ci/* [R 2] debug only: Number of pending requests for header parsing. */
33558c2ecf20Sopenharmony_ci#define PRS_REG_PENDING_BRB_PRS_RQ				 0x40170
33568c2ecf20Sopenharmony_ci/* [R 1] Interrupt register #0 read */
33578c2ecf20Sopenharmony_ci#define PRS_REG_PRS_INT_STS					 0x40188
33588c2ecf20Sopenharmony_ci/* [RW 8] Parity mask register #0 read/write */
33598c2ecf20Sopenharmony_ci#define PRS_REG_PRS_PRTY_MASK					 0x401a4
33608c2ecf20Sopenharmony_ci/* [R 8] Parity register #0 read */
33618c2ecf20Sopenharmony_ci#define PRS_REG_PRS_PRTY_STS					 0x40198
33628c2ecf20Sopenharmony_ci/* [RC 8] Parity register #0 read clear */
33638c2ecf20Sopenharmony_ci#define PRS_REG_PRS_PRTY_STS_CLR				 0x4019c
33648c2ecf20Sopenharmony_ci/* [RW 8] Context region for pure acknowledge packets. Used in CFC load
33658c2ecf20Sopenharmony_ci   request message */
33668c2ecf20Sopenharmony_ci#define PRS_REG_PURE_REGIONS					 0x40024
33678c2ecf20Sopenharmony_ci/* [R 32] debug only: Serial number status lsb 32 bits. '1' indicates this
33688c2ecf20Sopenharmony_ci   serail number was released by SDM but cannot be used because a previous
33698c2ecf20Sopenharmony_ci   serial number was not released. */
33708c2ecf20Sopenharmony_ci#define PRS_REG_SERIAL_NUM_STATUS_LSB				 0x40154
33718c2ecf20Sopenharmony_ci/* [R 32] debug only: Serial number status msb 32 bits. '1' indicates this
33728c2ecf20Sopenharmony_ci   serail number was released by SDM but cannot be used because a previous
33738c2ecf20Sopenharmony_ci   serial number was not released. */
33748c2ecf20Sopenharmony_ci#define PRS_REG_SERIAL_NUM_STATUS_MSB				 0x40158
33758c2ecf20Sopenharmony_ci/* [R 4] debug only: SRC current credit. Transaction based. */
33768c2ecf20Sopenharmony_ci#define PRS_REG_SRC_CURRENT_CREDIT				 0x4016c
33778c2ecf20Sopenharmony_ci/* [RW 16] The Ethernet type value for L2 tag 0 */
33788c2ecf20Sopenharmony_ci#define PRS_REG_TAG_ETHERTYPE_0					 0x401d4
33798c2ecf20Sopenharmony_ci/* [RW 4] The length of the info field for L2 tag 0. The length is between
33808c2ecf20Sopenharmony_ci * 2B and 14B; in 2B granularity */
33818c2ecf20Sopenharmony_ci#define PRS_REG_TAG_LEN_0					 0x4022c
33828c2ecf20Sopenharmony_ci/* [R 8] debug only: TCM current credit. Cycle based. */
33838c2ecf20Sopenharmony_ci#define PRS_REG_TCM_CURRENT_CREDIT				 0x40160
33848c2ecf20Sopenharmony_ci/* [R 8] debug only: TSDM current credit. Transaction based. */
33858c2ecf20Sopenharmony_ci#define PRS_REG_TSDM_CURRENT_CREDIT				 0x4015c
33868c2ecf20Sopenharmony_ci/* [RW 16] One of 8 values that should be compared to type in Ethernet
33878c2ecf20Sopenharmony_ci * parsing. If there is a match; the field after Ethernet is the first VLAN.
33888c2ecf20Sopenharmony_ci * Reset value is 0x8100 which is the standard VLAN type. Note that when
33898c2ecf20Sopenharmony_ci * checking second VLAN; type is compared only to 0x8100.
33908c2ecf20Sopenharmony_ci */
33918c2ecf20Sopenharmony_ci#define PRS_REG_VLAN_TYPE_0					 0x401a8
33928c2ecf20Sopenharmony_ci#define PXP2_PXP2_INT_MASK_0_REG_PGL_CPL_AFT			 (0x1<<19)
33938c2ecf20Sopenharmony_ci#define PXP2_PXP2_INT_MASK_0_REG_PGL_CPL_OF			 (0x1<<20)
33948c2ecf20Sopenharmony_ci#define PXP2_PXP2_INT_MASK_0_REG_PGL_PCIE_ATTN			 (0x1<<22)
33958c2ecf20Sopenharmony_ci#define PXP2_PXP2_INT_MASK_0_REG_PGL_READ_BLOCKED		 (0x1<<23)
33968c2ecf20Sopenharmony_ci#define PXP2_PXP2_INT_MASK_0_REG_PGL_WRITE_BLOCKED		 (0x1<<24)
33978c2ecf20Sopenharmony_ci#define PXP2_PXP2_INT_STS_0_REG_WR_PGLUE_EOP_ERROR		 (0x1<<7)
33988c2ecf20Sopenharmony_ci#define PXP2_PXP2_INT_STS_CLR_0_REG_WR_PGLUE_EOP_ERROR		 (0x1<<7)
33998c2ecf20Sopenharmony_ci/* [R 6] Debug only: Number of used entries in the data FIFO */
34008c2ecf20Sopenharmony_ci#define PXP2_REG_HST_DATA_FIFO_STATUS				 0x12047c
34018c2ecf20Sopenharmony_ci/* [R 7] Debug only: Number of used entries in the header FIFO */
34028c2ecf20Sopenharmony_ci#define PXP2_REG_HST_HEADER_FIFO_STATUS				 0x120478
34038c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_ADDR_88_F0					 0x120534
34048c2ecf20Sopenharmony_ci/* [R 32] GRC address for configuration access to PCIE config address 0x88.
34058c2ecf20Sopenharmony_ci * any write to this PCIE address will cause a GRC write access to the
34068c2ecf20Sopenharmony_ci * address that's in t this register */
34078c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_ADDR_88_F1					 0x120544
34088c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_ADDR_8C_F0					 0x120538
34098c2ecf20Sopenharmony_ci/* [R 32] GRC address for configuration access to PCIE config address 0x8c.
34108c2ecf20Sopenharmony_ci * any write to this PCIE address will cause a GRC write access to the
34118c2ecf20Sopenharmony_ci * address that's in t this register */
34128c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_ADDR_8C_F1					 0x120548
34138c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_ADDR_90_F0					 0x12053c
34148c2ecf20Sopenharmony_ci/* [R 32] GRC address for configuration access to PCIE config address 0x90.
34158c2ecf20Sopenharmony_ci * any write to this PCIE address will cause a GRC write access to the
34168c2ecf20Sopenharmony_ci * address that's in t this register */
34178c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_ADDR_90_F1					 0x12054c
34188c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_ADDR_94_F0					 0x120540
34198c2ecf20Sopenharmony_ci/* [R 32] GRC address for configuration access to PCIE config address 0x94.
34208c2ecf20Sopenharmony_ci * any write to this PCIE address will cause a GRC write access to the
34218c2ecf20Sopenharmony_ci * address that's in t this register */
34228c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_ADDR_94_F1					 0x120550
34238c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_CONTROL0					 0x120490
34248c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_CONTROL1					 0x120514
34258c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_DEBUG					 0x120520
34268c2ecf20Sopenharmony_ci/* [RW 32] third dword data of expansion rom request. this register is
34278c2ecf20Sopenharmony_ci   special. reading from it provides a vector outstanding read requests. if
34288c2ecf20Sopenharmony_ci   a bit is zero it means that a read request on the corresponding tag did
34298c2ecf20Sopenharmony_ci   not finish yet (not all completions have arrived for it) */
34308c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_EXP_ROM2					 0x120808
34318c2ecf20Sopenharmony_ci/* [RW 32] Inbound interrupt table for CSDM: bits[31:16]-mask;
34328c2ecf20Sopenharmony_ci   its[15:0]-address */
34338c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_INT_CSDM_0 				 0x1204f4
34348c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_INT_CSDM_1 				 0x1204f8
34358c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_INT_CSDM_2 				 0x1204fc
34368c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_INT_CSDM_3 				 0x120500
34378c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_INT_CSDM_4 				 0x120504
34388c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_INT_CSDM_5 				 0x120508
34398c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_INT_CSDM_6 				 0x12050c
34408c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_INT_CSDM_7 				 0x120510
34418c2ecf20Sopenharmony_ci/* [RW 32] Inbound interrupt table for TSDM: bits[31:16]-mask;
34428c2ecf20Sopenharmony_ci   its[15:0]-address */
34438c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_INT_TSDM_0 				 0x120494
34448c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_INT_TSDM_1 				 0x120498
34458c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_INT_TSDM_2 				 0x12049c
34468c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_INT_TSDM_3 				 0x1204a0
34478c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_INT_TSDM_4 				 0x1204a4
34488c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_INT_TSDM_5 				 0x1204a8
34498c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_INT_TSDM_6 				 0x1204ac
34508c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_INT_TSDM_7 				 0x1204b0
34518c2ecf20Sopenharmony_ci/* [RW 32] Inbound interrupt table for USDM: bits[31:16]-mask;
34528c2ecf20Sopenharmony_ci   its[15:0]-address */
34538c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_INT_USDM_0 				 0x1204b4
34548c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_INT_USDM_1 				 0x1204b8
34558c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_INT_USDM_2 				 0x1204bc
34568c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_INT_USDM_3 				 0x1204c0
34578c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_INT_USDM_4 				 0x1204c4
34588c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_INT_USDM_5 				 0x1204c8
34598c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_INT_USDM_6 				 0x1204cc
34608c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_INT_USDM_7 				 0x1204d0
34618c2ecf20Sopenharmony_ci/* [RW 32] Inbound interrupt table for XSDM: bits[31:16]-mask;
34628c2ecf20Sopenharmony_ci   its[15:0]-address */
34638c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_INT_XSDM_0 				 0x1204d4
34648c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_INT_XSDM_1 				 0x1204d8
34658c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_INT_XSDM_2 				 0x1204dc
34668c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_INT_XSDM_3 				 0x1204e0
34678c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_INT_XSDM_4 				 0x1204e4
34688c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_INT_XSDM_5 				 0x1204e8
34698c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_INT_XSDM_6 				 0x1204ec
34708c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_INT_XSDM_7 				 0x1204f0
34718c2ecf20Sopenharmony_ci/* [RW 3] this field allows one function to pretend being another function
34728c2ecf20Sopenharmony_ci   when accessing any BAR mapped resource within the device. the value of
34738c2ecf20Sopenharmony_ci   the field is the number of the function that will be accessed
34748c2ecf20Sopenharmony_ci   effectively. after software write to this bit it must read it in order to
34758c2ecf20Sopenharmony_ci   know that the new value is updated */
34768c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_PRETEND_FUNC_F0				 0x120674
34778c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_PRETEND_FUNC_F1				 0x120678
34788c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_PRETEND_FUNC_F2				 0x12067c
34798c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_PRETEND_FUNC_F3				 0x120680
34808c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_PRETEND_FUNC_F4				 0x120684
34818c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_PRETEND_FUNC_F5				 0x120688
34828c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_PRETEND_FUNC_F6				 0x12068c
34838c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_PRETEND_FUNC_F7				 0x120690
34848c2ecf20Sopenharmony_ci/* [R 1] this bit indicates that a read request was blocked because of
34858c2ecf20Sopenharmony_ci   bus_master_en was deasserted */
34868c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_READ_BLOCKED				 0x120568
34878c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_TAGS_LIMIT 				 0x1205a8
34888c2ecf20Sopenharmony_ci/* [R 18] debug only */
34898c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_TXW_CDTS					 0x12052c
34908c2ecf20Sopenharmony_ci/* [R 1] this bit indicates that a write request was blocked because of
34918c2ecf20Sopenharmony_ci   bus_master_en was deasserted */
34928c2ecf20Sopenharmony_ci#define PXP2_REG_PGL_WRITE_BLOCKED				 0x120564
34938c2ecf20Sopenharmony_ci#define PXP2_REG_PSWRQ_BW_ADD1					 0x1201c0
34948c2ecf20Sopenharmony_ci#define PXP2_REG_PSWRQ_BW_ADD10 				 0x1201e4
34958c2ecf20Sopenharmony_ci#define PXP2_REG_PSWRQ_BW_ADD11 				 0x1201e8
34968c2ecf20Sopenharmony_ci#define PXP2_REG_PSWRQ_BW_ADD2					 0x1201c4
34978c2ecf20Sopenharmony_ci#define PXP2_REG_PSWRQ_BW_ADD28 				 0x120228
34988c2ecf20Sopenharmony_ci#define PXP2_REG_PSWRQ_BW_ADD3					 0x1201c8
34998c2ecf20Sopenharmony_ci#define PXP2_REG_PSWRQ_BW_ADD6					 0x1201d4
35008c2ecf20Sopenharmony_ci#define PXP2_REG_PSWRQ_BW_ADD7					 0x1201d8
35018c2ecf20Sopenharmony_ci#define PXP2_REG_PSWRQ_BW_ADD8					 0x1201dc
35028c2ecf20Sopenharmony_ci#define PXP2_REG_PSWRQ_BW_ADD9					 0x1201e0
35038c2ecf20Sopenharmony_ci#define PXP2_REG_PSWRQ_BW_CREDIT				 0x12032c
35048c2ecf20Sopenharmony_ci#define PXP2_REG_PSWRQ_BW_L1					 0x1202b0
35058c2ecf20Sopenharmony_ci#define PXP2_REG_PSWRQ_BW_L10					 0x1202d4
35068c2ecf20Sopenharmony_ci#define PXP2_REG_PSWRQ_BW_L11					 0x1202d8
35078c2ecf20Sopenharmony_ci#define PXP2_REG_PSWRQ_BW_L2					 0x1202b4
35088c2ecf20Sopenharmony_ci#define PXP2_REG_PSWRQ_BW_L28					 0x120318
35098c2ecf20Sopenharmony_ci#define PXP2_REG_PSWRQ_BW_L3					 0x1202b8
35108c2ecf20Sopenharmony_ci#define PXP2_REG_PSWRQ_BW_L6					 0x1202c4
35118c2ecf20Sopenharmony_ci#define PXP2_REG_PSWRQ_BW_L7					 0x1202c8
35128c2ecf20Sopenharmony_ci#define PXP2_REG_PSWRQ_BW_L8					 0x1202cc
35138c2ecf20Sopenharmony_ci#define PXP2_REG_PSWRQ_BW_L9					 0x1202d0
35148c2ecf20Sopenharmony_ci#define PXP2_REG_PSWRQ_BW_RD					 0x120324
35158c2ecf20Sopenharmony_ci#define PXP2_REG_PSWRQ_BW_UB1					 0x120238
35168c2ecf20Sopenharmony_ci#define PXP2_REG_PSWRQ_BW_UB10					 0x12025c
35178c2ecf20Sopenharmony_ci#define PXP2_REG_PSWRQ_BW_UB11					 0x120260
35188c2ecf20Sopenharmony_ci#define PXP2_REG_PSWRQ_BW_UB2					 0x12023c
35198c2ecf20Sopenharmony_ci#define PXP2_REG_PSWRQ_BW_UB28					 0x1202a0
35208c2ecf20Sopenharmony_ci#define PXP2_REG_PSWRQ_BW_UB3					 0x120240
35218c2ecf20Sopenharmony_ci#define PXP2_REG_PSWRQ_BW_UB6					 0x12024c
35228c2ecf20Sopenharmony_ci#define PXP2_REG_PSWRQ_BW_UB7					 0x120250
35238c2ecf20Sopenharmony_ci#define PXP2_REG_PSWRQ_BW_UB8					 0x120254
35248c2ecf20Sopenharmony_ci#define PXP2_REG_PSWRQ_BW_UB9					 0x120258
35258c2ecf20Sopenharmony_ci#define PXP2_REG_PSWRQ_BW_WR					 0x120328
35268c2ecf20Sopenharmony_ci#define PXP2_REG_PSWRQ_CDU0_L2P 				 0x120000
35278c2ecf20Sopenharmony_ci#define PXP2_REG_PSWRQ_QM0_L2P					 0x120038
35288c2ecf20Sopenharmony_ci#define PXP2_REG_PSWRQ_SRC0_L2P 				 0x120054
35298c2ecf20Sopenharmony_ci#define PXP2_REG_PSWRQ_TM0_L2P					 0x12001c
35308c2ecf20Sopenharmony_ci#define PXP2_REG_PSWRQ_TSDM0_L2P				 0x1200e0
35318c2ecf20Sopenharmony_ci/* [RW 32] Interrupt mask register #0 read/write */
35328c2ecf20Sopenharmony_ci#define PXP2_REG_PXP2_INT_MASK_0				 0x120578
35338c2ecf20Sopenharmony_ci/* [R 32] Interrupt register #0 read */
35348c2ecf20Sopenharmony_ci#define PXP2_REG_PXP2_INT_STS_0 				 0x12056c
35358c2ecf20Sopenharmony_ci#define PXP2_REG_PXP2_INT_STS_1 				 0x120608
35368c2ecf20Sopenharmony_ci/* [RC 32] Interrupt register #0 read clear */
35378c2ecf20Sopenharmony_ci#define PXP2_REG_PXP2_INT_STS_CLR_0				 0x120570
35388c2ecf20Sopenharmony_ci/* [RW 32] Parity mask register #0 read/write */
35398c2ecf20Sopenharmony_ci#define PXP2_REG_PXP2_PRTY_MASK_0				 0x120588
35408c2ecf20Sopenharmony_ci#define PXP2_REG_PXP2_PRTY_MASK_1				 0x120598
35418c2ecf20Sopenharmony_ci/* [R 32] Parity register #0 read */
35428c2ecf20Sopenharmony_ci#define PXP2_REG_PXP2_PRTY_STS_0				 0x12057c
35438c2ecf20Sopenharmony_ci#define PXP2_REG_PXP2_PRTY_STS_1				 0x12058c
35448c2ecf20Sopenharmony_ci/* [RC 32] Parity register #0 read clear */
35458c2ecf20Sopenharmony_ci#define PXP2_REG_PXP2_PRTY_STS_CLR_0				 0x120580
35468c2ecf20Sopenharmony_ci#define PXP2_REG_PXP2_PRTY_STS_CLR_1				 0x120590
35478c2ecf20Sopenharmony_ci/* [R 1] Debug only: The 'almost full' indication from each fifo (gives
35488c2ecf20Sopenharmony_ci   indication about backpressure) */
35498c2ecf20Sopenharmony_ci#define PXP2_REG_RD_ALMOST_FULL_0				 0x120424
35508c2ecf20Sopenharmony_ci/* [R 8] Debug only: The blocks counter - number of unused block ids */
35518c2ecf20Sopenharmony_ci#define PXP2_REG_RD_BLK_CNT					 0x120418
35528c2ecf20Sopenharmony_ci/* [RW 8] Debug only: Total number of available blocks in Tetris Buffer.
35538c2ecf20Sopenharmony_ci   Must be bigger than 6. Normally should not be changed. */
35548c2ecf20Sopenharmony_ci#define PXP2_REG_RD_BLK_NUM_CFG 				 0x12040c
35558c2ecf20Sopenharmony_ci/* [RW 2] CDU byte swapping mode configuration for master read requests */
35568c2ecf20Sopenharmony_ci#define PXP2_REG_RD_CDURD_SWAP_MODE				 0x120404
35578c2ecf20Sopenharmony_ci/* [RW 1] When '1'; inputs to the PSWRD block are ignored */
35588c2ecf20Sopenharmony_ci#define PXP2_REG_RD_DISABLE_INPUTS				 0x120374
35598c2ecf20Sopenharmony_ci/* [R 1] PSWRD internal memories initialization is done */
35608c2ecf20Sopenharmony_ci#define PXP2_REG_RD_INIT_DONE					 0x120370
35618c2ecf20Sopenharmony_ci/* [RW 8] The maximum number of blocks in Tetris Buffer that can be
35628c2ecf20Sopenharmony_ci   allocated for vq10 */
35638c2ecf20Sopenharmony_ci#define PXP2_REG_RD_MAX_BLKS_VQ10				 0x1203a0
35648c2ecf20Sopenharmony_ci/* [RW 8] The maximum number of blocks in Tetris Buffer that can be
35658c2ecf20Sopenharmony_ci   allocated for vq11 */
35668c2ecf20Sopenharmony_ci#define PXP2_REG_RD_MAX_BLKS_VQ11				 0x1203a4
35678c2ecf20Sopenharmony_ci/* [RW 8] The maximum number of blocks in Tetris Buffer that can be
35688c2ecf20Sopenharmony_ci   allocated for vq17 */
35698c2ecf20Sopenharmony_ci#define PXP2_REG_RD_MAX_BLKS_VQ17				 0x1203bc
35708c2ecf20Sopenharmony_ci/* [RW 8] The maximum number of blocks in Tetris Buffer that can be
35718c2ecf20Sopenharmony_ci   allocated for vq18 */
35728c2ecf20Sopenharmony_ci#define PXP2_REG_RD_MAX_BLKS_VQ18				 0x1203c0
35738c2ecf20Sopenharmony_ci/* [RW 8] The maximum number of blocks in Tetris Buffer that can be
35748c2ecf20Sopenharmony_ci   allocated for vq19 */
35758c2ecf20Sopenharmony_ci#define PXP2_REG_RD_MAX_BLKS_VQ19				 0x1203c4
35768c2ecf20Sopenharmony_ci/* [RW 8] The maximum number of blocks in Tetris Buffer that can be
35778c2ecf20Sopenharmony_ci   allocated for vq22 */
35788c2ecf20Sopenharmony_ci#define PXP2_REG_RD_MAX_BLKS_VQ22				 0x1203d0
35798c2ecf20Sopenharmony_ci/* [RW 8] The maximum number of blocks in Tetris Buffer that can be
35808c2ecf20Sopenharmony_ci   allocated for vq25 */
35818c2ecf20Sopenharmony_ci#define PXP2_REG_RD_MAX_BLKS_VQ25				 0x1203dc
35828c2ecf20Sopenharmony_ci/* [RW 8] The maximum number of blocks in Tetris Buffer that can be
35838c2ecf20Sopenharmony_ci   allocated for vq6 */
35848c2ecf20Sopenharmony_ci#define PXP2_REG_RD_MAX_BLKS_VQ6				 0x120390
35858c2ecf20Sopenharmony_ci/* [RW 8] The maximum number of blocks in Tetris Buffer that can be
35868c2ecf20Sopenharmony_ci   allocated for vq9 */
35878c2ecf20Sopenharmony_ci#define PXP2_REG_RD_MAX_BLKS_VQ9				 0x12039c
35888c2ecf20Sopenharmony_ci/* [RW 2] PBF byte swapping mode configuration for master read requests */
35898c2ecf20Sopenharmony_ci#define PXP2_REG_RD_PBF_SWAP_MODE				 0x1203f4
35908c2ecf20Sopenharmony_ci/* [R 1] Debug only: Indication if delivery ports are idle */
35918c2ecf20Sopenharmony_ci#define PXP2_REG_RD_PORT_IS_IDLE_0				 0x12041c
35928c2ecf20Sopenharmony_ci#define PXP2_REG_RD_PORT_IS_IDLE_1				 0x120420
35938c2ecf20Sopenharmony_ci/* [RW 2] QM byte swapping mode configuration for master read requests */
35948c2ecf20Sopenharmony_ci#define PXP2_REG_RD_QM_SWAP_MODE				 0x1203f8
35958c2ecf20Sopenharmony_ci/* [R 7] Debug only: The SR counter - number of unused sub request ids */
35968c2ecf20Sopenharmony_ci#define PXP2_REG_RD_SR_CNT					 0x120414
35978c2ecf20Sopenharmony_ci/* [RW 2] SRC byte swapping mode configuration for master read requests */
35988c2ecf20Sopenharmony_ci#define PXP2_REG_RD_SRC_SWAP_MODE				 0x120400
35998c2ecf20Sopenharmony_ci/* [RW 7] Debug only: Total number of available PCI read sub-requests. Must
36008c2ecf20Sopenharmony_ci   be bigger than 1. Normally should not be changed. */
36018c2ecf20Sopenharmony_ci#define PXP2_REG_RD_SR_NUM_CFG					 0x120408
36028c2ecf20Sopenharmony_ci/* [RW 1] Signals the PSWRD block to start initializing internal memories */
36038c2ecf20Sopenharmony_ci#define PXP2_REG_RD_START_INIT					 0x12036c
36048c2ecf20Sopenharmony_ci/* [RW 2] TM byte swapping mode configuration for master read requests */
36058c2ecf20Sopenharmony_ci#define PXP2_REG_RD_TM_SWAP_MODE				 0x1203fc
36068c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth addition to VQ0 write requests */
36078c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_ADD0					 0x1201bc
36088c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth addition to VQ12 read requests */
36098c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_ADD12 				 0x1201ec
36108c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth addition to VQ13 read requests */
36118c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_ADD13 				 0x1201f0
36128c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth addition to VQ14 read requests */
36138c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_ADD14 				 0x1201f4
36148c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth addition to VQ15 read requests */
36158c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_ADD15 				 0x1201f8
36168c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth addition to VQ16 read requests */
36178c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_ADD16 				 0x1201fc
36188c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth addition to VQ17 read requests */
36198c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_ADD17 				 0x120200
36208c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth addition to VQ18 read requests */
36218c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_ADD18 				 0x120204
36228c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth addition to VQ19 read requests */
36238c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_ADD19 				 0x120208
36248c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth addition to VQ20 read requests */
36258c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_ADD20 				 0x12020c
36268c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth addition to VQ22 read requests */
36278c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_ADD22 				 0x120210
36288c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth addition to VQ23 read requests */
36298c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_ADD23 				 0x120214
36308c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth addition to VQ24 read requests */
36318c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_ADD24 				 0x120218
36328c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth addition to VQ25 read requests */
36338c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_ADD25 				 0x12021c
36348c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth addition to VQ26 read requests */
36358c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_ADD26 				 0x120220
36368c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth addition to VQ27 read requests */
36378c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_ADD27 				 0x120224
36388c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth addition to VQ4 read requests */
36398c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_ADD4					 0x1201cc
36408c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth addition to VQ5 read requests */
36418c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_ADD5					 0x1201d0
36428c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth Typical L for VQ0 Read requests */
36438c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_L0					 0x1202ac
36448c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth Typical L for VQ12 Read requests */
36458c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_L12					 0x1202dc
36468c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth Typical L for VQ13 Read requests */
36478c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_L13					 0x1202e0
36488c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth Typical L for VQ14 Read requests */
36498c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_L14					 0x1202e4
36508c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth Typical L for VQ15 Read requests */
36518c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_L15					 0x1202e8
36528c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth Typical L for VQ16 Read requests */
36538c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_L16					 0x1202ec
36548c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth Typical L for VQ17 Read requests */
36558c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_L17					 0x1202f0
36568c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth Typical L for VQ18 Read requests */
36578c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_L18					 0x1202f4
36588c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth Typical L for VQ19 Read requests */
36598c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_L19					 0x1202f8
36608c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth Typical L for VQ20 Read requests */
36618c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_L20					 0x1202fc
36628c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth Typical L for VQ22 Read requests */
36638c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_L22					 0x120300
36648c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth Typical L for VQ23 Read requests */
36658c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_L23					 0x120304
36668c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth Typical L for VQ24 Read requests */
36678c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_L24					 0x120308
36688c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth Typical L for VQ25 Read requests */
36698c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_L25					 0x12030c
36708c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth Typical L for VQ26 Read requests */
36718c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_L26					 0x120310
36728c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth Typical L for VQ27 Read requests */
36738c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_L27					 0x120314
36748c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth Typical L for VQ4 Read requests */
36758c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_L4					 0x1202bc
36768c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth Typical L for VQ5 Read- currently not used */
36778c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_L5					 0x1202c0
36788c2ecf20Sopenharmony_ci/* [RW 7] Bandwidth upper bound for VQ0 read requests */
36798c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_UBOUND0				 0x120234
36808c2ecf20Sopenharmony_ci/* [RW 7] Bandwidth upper bound for VQ12 read requests */
36818c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_UBOUND12				 0x120264
36828c2ecf20Sopenharmony_ci/* [RW 7] Bandwidth upper bound for VQ13 read requests */
36838c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_UBOUND13				 0x120268
36848c2ecf20Sopenharmony_ci/* [RW 7] Bandwidth upper bound for VQ14 read requests */
36858c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_UBOUND14				 0x12026c
36868c2ecf20Sopenharmony_ci/* [RW 7] Bandwidth upper bound for VQ15 read requests */
36878c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_UBOUND15				 0x120270
36888c2ecf20Sopenharmony_ci/* [RW 7] Bandwidth upper bound for VQ16 read requests */
36898c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_UBOUND16				 0x120274
36908c2ecf20Sopenharmony_ci/* [RW 7] Bandwidth upper bound for VQ17 read requests */
36918c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_UBOUND17				 0x120278
36928c2ecf20Sopenharmony_ci/* [RW 7] Bandwidth upper bound for VQ18 read requests */
36938c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_UBOUND18				 0x12027c
36948c2ecf20Sopenharmony_ci/* [RW 7] Bandwidth upper bound for VQ19 read requests */
36958c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_UBOUND19				 0x120280
36968c2ecf20Sopenharmony_ci/* [RW 7] Bandwidth upper bound for VQ20 read requests */
36978c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_UBOUND20				 0x120284
36988c2ecf20Sopenharmony_ci/* [RW 7] Bandwidth upper bound for VQ22 read requests */
36998c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_UBOUND22				 0x120288
37008c2ecf20Sopenharmony_ci/* [RW 7] Bandwidth upper bound for VQ23 read requests */
37018c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_UBOUND23				 0x12028c
37028c2ecf20Sopenharmony_ci/* [RW 7] Bandwidth upper bound for VQ24 read requests */
37038c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_UBOUND24				 0x120290
37048c2ecf20Sopenharmony_ci/* [RW 7] Bandwidth upper bound for VQ25 read requests */
37058c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_UBOUND25				 0x120294
37068c2ecf20Sopenharmony_ci/* [RW 7] Bandwidth upper bound for VQ26 read requests */
37078c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_UBOUND26				 0x120298
37088c2ecf20Sopenharmony_ci/* [RW 7] Bandwidth upper bound for VQ27 read requests */
37098c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_UBOUND27				 0x12029c
37108c2ecf20Sopenharmony_ci/* [RW 7] Bandwidth upper bound for VQ4 read requests */
37118c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_UBOUND4				 0x120244
37128c2ecf20Sopenharmony_ci/* [RW 7] Bandwidth upper bound for VQ5 read requests */
37138c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_RD_UBOUND5				 0x120248
37148c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth addition to VQ29 write requests */
37158c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_WR_ADD29 				 0x12022c
37168c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth addition to VQ30 write requests */
37178c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_WR_ADD30 				 0x120230
37188c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth Typical L for VQ29 Write requests */
37198c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_WR_L29					 0x12031c
37208c2ecf20Sopenharmony_ci/* [RW 10] Bandwidth Typical L for VQ30 Write requests */
37218c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_WR_L30					 0x120320
37228c2ecf20Sopenharmony_ci/* [RW 7] Bandwidth upper bound for VQ29 */
37238c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_WR_UBOUND29				 0x1202a4
37248c2ecf20Sopenharmony_ci/* [RW 7] Bandwidth upper bound for VQ30 */
37258c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_BW_WR_UBOUND30				 0x1202a8
37268c2ecf20Sopenharmony_ci/* [RW 18] external first_mem_addr field in L2P table for CDU module port 0 */
37278c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_CDU0_EFIRST_MEM_ADDR			 0x120008
37288c2ecf20Sopenharmony_ci/* [RW 2] Endian mode for cdu */
37298c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_CDU_ENDIAN_M				 0x1201a0
37308c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_CDU_FIRST_ILT				 0x12061c
37318c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_CDU_LAST_ILT				 0x120620
37328c2ecf20Sopenharmony_ci/* [RW 3] page size in L2P table for CDU module; -4k; -8k; -16k; -32k; -64k;
37338c2ecf20Sopenharmony_ci   -128k */
37348c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_CDU_P_SIZE					 0x120018
37358c2ecf20Sopenharmony_ci/* [R 1] 1' indicates that the requester has finished its internal
37368c2ecf20Sopenharmony_ci   configuration */
37378c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_CFG_DONE					 0x1201b4
37388c2ecf20Sopenharmony_ci/* [RW 2] Endian mode for debug */
37398c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_DBG_ENDIAN_M				 0x1201a4
37408c2ecf20Sopenharmony_ci/* [RW 1] When '1'; requests will enter input buffers but wont get out
37418c2ecf20Sopenharmony_ci   towards the glue */
37428c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_DISABLE_INPUTS				 0x120330
37438c2ecf20Sopenharmony_ci/* [RW 4] Determines alignment of write SRs when a request is split into
37448c2ecf20Sopenharmony_ci * several SRs. 0 - 8B aligned. 1 - 64B aligned. 2 - 128B aligned. 3 - 256B
37458c2ecf20Sopenharmony_ci * aligned. 4 - 512B aligned. */
37468c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_DRAM_ALIGN					 0x1205b0
37478c2ecf20Sopenharmony_ci/* [RW 4] Determines alignment of read SRs when a request is split into
37488c2ecf20Sopenharmony_ci * several SRs. 0 - 8B aligned. 1 - 64B aligned. 2 - 128B aligned. 3 - 256B
37498c2ecf20Sopenharmony_ci * aligned. 4 - 512B aligned. */
37508c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_DRAM_ALIGN_RD				 0x12092c
37518c2ecf20Sopenharmony_ci/* [RW 1] when set the new alignment method (E2) will be applied; when reset
37528c2ecf20Sopenharmony_ci * the original alignment method (E1 E1H) will be applied */
37538c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_DRAM_ALIGN_SEL				 0x120930
37548c2ecf20Sopenharmony_ci/* [RW 1] If 1 ILT failiue will not result in ELT access; An interrupt will
37558c2ecf20Sopenharmony_ci   be asserted */
37568c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_ELT_DISABLE 				 0x12066c
37578c2ecf20Sopenharmony_ci/* [RW 2] Endian mode for hc */
37588c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_HC_ENDIAN_M 				 0x1201a8
37598c2ecf20Sopenharmony_ci/* [RW 1] when '0' ILT logic will work as in A0; otherwise B0; for back
37608c2ecf20Sopenharmony_ci   compatibility needs; Note that different registers are used per mode */
37618c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_ILT_MODE					 0x1205b4
37628c2ecf20Sopenharmony_ci/* [WB 53] Onchip address table */
37638c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_ONCHIP_AT					 0x122000
37648c2ecf20Sopenharmony_ci/* [WB 53] Onchip address table - B0 */
37658c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_ONCHIP_AT_B0				 0x128000
37668c2ecf20Sopenharmony_ci/* [RW 13] Pending read limiter threshold; in Dwords */
37678c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_PDR_LIMIT					 0x12033c
37688c2ecf20Sopenharmony_ci/* [RW 2] Endian mode for qm */
37698c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_QM_ENDIAN_M 				 0x120194
37708c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_QM_FIRST_ILT				 0x120634
37718c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_QM_LAST_ILT 				 0x120638
37728c2ecf20Sopenharmony_ci/* [RW 3] page size in L2P table for QM module; -4k; -8k; -16k; -32k; -64k;
37738c2ecf20Sopenharmony_ci   -128k */
37748c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_QM_P_SIZE					 0x120050
37758c2ecf20Sopenharmony_ci/* [RW 1] 1' indicates that the RBC has finished configuring the PSWRQ */
37768c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_RBC_DONE					 0x1201b0
37778c2ecf20Sopenharmony_ci/* [RW 3] Max burst size filed for read requests port 0; 000 - 128B;
37788c2ecf20Sopenharmony_ci   001:256B; 010: 512B; 11:1K:100:2K; 01:4K */
37798c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_RD_MBS0					 0x120160
37808c2ecf20Sopenharmony_ci/* [RW 3] Max burst size filed for read requests port 1; 000 - 128B;
37818c2ecf20Sopenharmony_ci   001:256B; 010: 512B; 11:1K:100:2K; 01:4K */
37828c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_RD_MBS1					 0x120168
37838c2ecf20Sopenharmony_ci/* [RW 2] Endian mode for src */
37848c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_SRC_ENDIAN_M				 0x12019c
37858c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_SRC_FIRST_ILT				 0x12063c
37868c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_SRC_LAST_ILT				 0x120640
37878c2ecf20Sopenharmony_ci/* [RW 3] page size in L2P table for SRC module; -4k; -8k; -16k; -32k; -64k;
37888c2ecf20Sopenharmony_ci   -128k */
37898c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_SRC_P_SIZE					 0x12006c
37908c2ecf20Sopenharmony_ci/* [RW 2] Endian mode for tm */
37918c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_TM_ENDIAN_M 				 0x120198
37928c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_TM_FIRST_ILT				 0x120644
37938c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_TM_LAST_ILT 				 0x120648
37948c2ecf20Sopenharmony_ci/* [RW 3] page size in L2P table for TM module; -4k; -8k; -16k; -32k; -64k;
37958c2ecf20Sopenharmony_ci   -128k */
37968c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_TM_P_SIZE					 0x120034
37978c2ecf20Sopenharmony_ci/* [R 5] Number of entries in the ufifo; his fifo has l2p completions */
37988c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_UFIFO_NUM_OF_ENTRY				 0x12080c
37998c2ecf20Sopenharmony_ci/* [RW 18] external first_mem_addr field in L2P table for USDM module port 0 */
38008c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_USDM0_EFIRST_MEM_ADDR			 0x120094
38018c2ecf20Sopenharmony_ci/* [R 8] Number of entries occupied by vq 0 in pswrq memory */
38028c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_VQ0_ENTRY_CNT				 0x120810
38038c2ecf20Sopenharmony_ci/* [R 8] Number of entries occupied by vq 10 in pswrq memory */
38048c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_VQ10_ENTRY_CNT				 0x120818
38058c2ecf20Sopenharmony_ci/* [R 8] Number of entries occupied by vq 11 in pswrq memory */
38068c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_VQ11_ENTRY_CNT				 0x120820
38078c2ecf20Sopenharmony_ci/* [R 8] Number of entries occupied by vq 12 in pswrq memory */
38088c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_VQ12_ENTRY_CNT				 0x120828
38098c2ecf20Sopenharmony_ci/* [R 8] Number of entries occupied by vq 13 in pswrq memory */
38108c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_VQ13_ENTRY_CNT				 0x120830
38118c2ecf20Sopenharmony_ci/* [R 8] Number of entries occupied by vq 14 in pswrq memory */
38128c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_VQ14_ENTRY_CNT				 0x120838
38138c2ecf20Sopenharmony_ci/* [R 8] Number of entries occupied by vq 15 in pswrq memory */
38148c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_VQ15_ENTRY_CNT				 0x120840
38158c2ecf20Sopenharmony_ci/* [R 8] Number of entries occupied by vq 16 in pswrq memory */
38168c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_VQ16_ENTRY_CNT				 0x120848
38178c2ecf20Sopenharmony_ci/* [R 8] Number of entries occupied by vq 17 in pswrq memory */
38188c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_VQ17_ENTRY_CNT				 0x120850
38198c2ecf20Sopenharmony_ci/* [R 8] Number of entries occupied by vq 18 in pswrq memory */
38208c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_VQ18_ENTRY_CNT				 0x120858
38218c2ecf20Sopenharmony_ci/* [R 8] Number of entries occupied by vq 19 in pswrq memory */
38228c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_VQ19_ENTRY_CNT				 0x120860
38238c2ecf20Sopenharmony_ci/* [R 8] Number of entries occupied by vq 1 in pswrq memory */
38248c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_VQ1_ENTRY_CNT				 0x120868
38258c2ecf20Sopenharmony_ci/* [R 8] Number of entries occupied by vq 20 in pswrq memory */
38268c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_VQ20_ENTRY_CNT				 0x120870
38278c2ecf20Sopenharmony_ci/* [R 8] Number of entries occupied by vq 21 in pswrq memory */
38288c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_VQ21_ENTRY_CNT				 0x120878
38298c2ecf20Sopenharmony_ci/* [R 8] Number of entries occupied by vq 22 in pswrq memory */
38308c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_VQ22_ENTRY_CNT				 0x120880
38318c2ecf20Sopenharmony_ci/* [R 8] Number of entries occupied by vq 23 in pswrq memory */
38328c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_VQ23_ENTRY_CNT				 0x120888
38338c2ecf20Sopenharmony_ci/* [R 8] Number of entries occupied by vq 24 in pswrq memory */
38348c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_VQ24_ENTRY_CNT				 0x120890
38358c2ecf20Sopenharmony_ci/* [R 8] Number of entries occupied by vq 25 in pswrq memory */
38368c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_VQ25_ENTRY_CNT				 0x120898
38378c2ecf20Sopenharmony_ci/* [R 8] Number of entries occupied by vq 26 in pswrq memory */
38388c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_VQ26_ENTRY_CNT				 0x1208a0
38398c2ecf20Sopenharmony_ci/* [R 8] Number of entries occupied by vq 27 in pswrq memory */
38408c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_VQ27_ENTRY_CNT				 0x1208a8
38418c2ecf20Sopenharmony_ci/* [R 8] Number of entries occupied by vq 28 in pswrq memory */
38428c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_VQ28_ENTRY_CNT				 0x1208b0
38438c2ecf20Sopenharmony_ci/* [R 8] Number of entries occupied by vq 29 in pswrq memory */
38448c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_VQ29_ENTRY_CNT				 0x1208b8
38458c2ecf20Sopenharmony_ci/* [R 8] Number of entries occupied by vq 2 in pswrq memory */
38468c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_VQ2_ENTRY_CNT				 0x1208c0
38478c2ecf20Sopenharmony_ci/* [R 8] Number of entries occupied by vq 30 in pswrq memory */
38488c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_VQ30_ENTRY_CNT				 0x1208c8
38498c2ecf20Sopenharmony_ci/* [R 8] Number of entries occupied by vq 31 in pswrq memory */
38508c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_VQ31_ENTRY_CNT				 0x1208d0
38518c2ecf20Sopenharmony_ci/* [R 8] Number of entries occupied by vq 3 in pswrq memory */
38528c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_VQ3_ENTRY_CNT				 0x1208d8
38538c2ecf20Sopenharmony_ci/* [R 8] Number of entries occupied by vq 4 in pswrq memory */
38548c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_VQ4_ENTRY_CNT				 0x1208e0
38558c2ecf20Sopenharmony_ci/* [R 8] Number of entries occupied by vq 5 in pswrq memory */
38568c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_VQ5_ENTRY_CNT				 0x1208e8
38578c2ecf20Sopenharmony_ci/* [R 8] Number of entries occupied by vq 6 in pswrq memory */
38588c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_VQ6_ENTRY_CNT				 0x1208f0
38598c2ecf20Sopenharmony_ci/* [R 8] Number of entries occupied by vq 7 in pswrq memory */
38608c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_VQ7_ENTRY_CNT				 0x1208f8
38618c2ecf20Sopenharmony_ci/* [R 8] Number of entries occupied by vq 8 in pswrq memory */
38628c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_VQ8_ENTRY_CNT				 0x120900
38638c2ecf20Sopenharmony_ci/* [R 8] Number of entries occupied by vq 9 in pswrq memory */
38648c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_VQ9_ENTRY_CNT				 0x120908
38658c2ecf20Sopenharmony_ci/* [RW 3] Max burst size filed for write requests port 0; 000 - 128B;
38668c2ecf20Sopenharmony_ci   001:256B; 010: 512B; */
38678c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_WR_MBS0					 0x12015c
38688c2ecf20Sopenharmony_ci/* [RW 3] Max burst size filed for write requests port 1; 000 - 128B;
38698c2ecf20Sopenharmony_ci   001:256B; 010: 512B; */
38708c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_WR_MBS1					 0x120164
38718c2ecf20Sopenharmony_ci/* [RW 2] 0 - 128B;  - 256B;  - 512B;  - 1024B; when the payload in the
38728c2ecf20Sopenharmony_ci   buffer reaches this number has_payload will be asserted */
38738c2ecf20Sopenharmony_ci#define PXP2_REG_WR_CDU_MPS					 0x1205f0
38748c2ecf20Sopenharmony_ci/* [RW 2] 0 - 128B;  - 256B;  - 512B;  - 1024B; when the payload in the
38758c2ecf20Sopenharmony_ci   buffer reaches this number has_payload will be asserted */
38768c2ecf20Sopenharmony_ci#define PXP2_REG_WR_CSDM_MPS					 0x1205d0
38778c2ecf20Sopenharmony_ci/* [RW 2] 0 - 128B;  - 256B;  - 512B;  - 1024B; when the payload in the
38788c2ecf20Sopenharmony_ci   buffer reaches this number has_payload will be asserted */
38798c2ecf20Sopenharmony_ci#define PXP2_REG_WR_DBG_MPS					 0x1205e8
38808c2ecf20Sopenharmony_ci/* [RW 2] 0 - 128B;  - 256B;  - 512B;  - 1024B; when the payload in the
38818c2ecf20Sopenharmony_ci   buffer reaches this number has_payload will be asserted */
38828c2ecf20Sopenharmony_ci#define PXP2_REG_WR_DMAE_MPS					 0x1205ec
38838c2ecf20Sopenharmony_ci/* [RW 10] if Number of entries in dmae fifo will be higher than this
38848c2ecf20Sopenharmony_ci   threshold then has_payload indication will be asserted; the default value
38858c2ecf20Sopenharmony_ci   should be equal to &gt;  write MBS size! */
38868c2ecf20Sopenharmony_ci#define PXP2_REG_WR_DMAE_TH					 0x120368
38878c2ecf20Sopenharmony_ci/* [RW 2] 0 - 128B;  - 256B;  - 512B;  - 1024B; when the payload in the
38888c2ecf20Sopenharmony_ci   buffer reaches this number has_payload will be asserted */
38898c2ecf20Sopenharmony_ci#define PXP2_REG_WR_HC_MPS					 0x1205c8
38908c2ecf20Sopenharmony_ci/* [RW 2] 0 - 128B;  - 256B;  - 512B;  - 1024B; when the payload in the
38918c2ecf20Sopenharmony_ci   buffer reaches this number has_payload will be asserted */
38928c2ecf20Sopenharmony_ci#define PXP2_REG_WR_QM_MPS					 0x1205dc
38938c2ecf20Sopenharmony_ci/* [RW 1] 0 - working in A0 mode;  - working in B0 mode */
38948c2ecf20Sopenharmony_ci#define PXP2_REG_WR_REV_MODE					 0x120670
38958c2ecf20Sopenharmony_ci/* [RW 2] 0 - 128B;  - 256B;  - 512B;  - 1024B; when the payload in the
38968c2ecf20Sopenharmony_ci   buffer reaches this number has_payload will be asserted */
38978c2ecf20Sopenharmony_ci#define PXP2_REG_WR_SRC_MPS					 0x1205e4
38988c2ecf20Sopenharmony_ci/* [RW 2] 0 - 128B;  - 256B;  - 512B;  - 1024B; when the payload in the
38998c2ecf20Sopenharmony_ci   buffer reaches this number has_payload will be asserted */
39008c2ecf20Sopenharmony_ci#define PXP2_REG_WR_TM_MPS					 0x1205e0
39018c2ecf20Sopenharmony_ci/* [RW 2] 0 - 128B;  - 256B;  - 512B;  - 1024B; when the payload in the
39028c2ecf20Sopenharmony_ci   buffer reaches this number has_payload will be asserted */
39038c2ecf20Sopenharmony_ci#define PXP2_REG_WR_TSDM_MPS					 0x1205d4
39048c2ecf20Sopenharmony_ci/* [RW 10] if Number of entries in usdmdp fifo will be higher than this
39058c2ecf20Sopenharmony_ci   threshold then has_payload indication will be asserted; the default value
39068c2ecf20Sopenharmony_ci   should be equal to &gt;  write MBS size! */
39078c2ecf20Sopenharmony_ci#define PXP2_REG_WR_USDMDP_TH					 0x120348
39088c2ecf20Sopenharmony_ci/* [RW 2] 0 - 128B;  - 256B;  - 512B;  - 1024B; when the payload in the
39098c2ecf20Sopenharmony_ci   buffer reaches this number has_payload will be asserted */
39108c2ecf20Sopenharmony_ci#define PXP2_REG_WR_USDM_MPS					 0x1205cc
39118c2ecf20Sopenharmony_ci/* [RW 2] 0 - 128B;  - 256B;  - 512B;  - 1024B; when the payload in the
39128c2ecf20Sopenharmony_ci   buffer reaches this number has_payload will be asserted */
39138c2ecf20Sopenharmony_ci#define PXP2_REG_WR_XSDM_MPS					 0x1205d8
39148c2ecf20Sopenharmony_ci/* [R 1] debug only: Indication if PSWHST arbiter is idle */
39158c2ecf20Sopenharmony_ci#define PXP_REG_HST_ARB_IS_IDLE 				 0x103004
39168c2ecf20Sopenharmony_ci/* [R 8] debug only: A bit mask for all PSWHST arbiter clients. '1' means
39178c2ecf20Sopenharmony_ci   this client is waiting for the arbiter. */
39188c2ecf20Sopenharmony_ci#define PXP_REG_HST_CLIENTS_WAITING_TO_ARB			 0x103008
39198c2ecf20Sopenharmony_ci/* [RW 1] When 1; doorbells are discarded and not passed to doorbell queue
39208c2ecf20Sopenharmony_ci   block. Should be used for close the gates. */
39218c2ecf20Sopenharmony_ci#define PXP_REG_HST_DISCARD_DOORBELLS				 0x1030a4
39228c2ecf20Sopenharmony_ci/* [R 1] debug only: '1' means this PSWHST is discarding doorbells. This bit
39238c2ecf20Sopenharmony_ci   should update according to 'hst_discard_doorbells' register when the state
39248c2ecf20Sopenharmony_ci   machine is idle */
39258c2ecf20Sopenharmony_ci#define PXP_REG_HST_DISCARD_DOORBELLS_STATUS			 0x1030a0
39268c2ecf20Sopenharmony_ci/* [RW 1] When 1; new internal writes arriving to the block are discarded.
39278c2ecf20Sopenharmony_ci   Should be used for close the gates. */
39288c2ecf20Sopenharmony_ci#define PXP_REG_HST_DISCARD_INTERNAL_WRITES			 0x1030a8
39298c2ecf20Sopenharmony_ci/* [R 6] debug only: A bit mask for all PSWHST internal write clients. '1'
39308c2ecf20Sopenharmony_ci   means this PSWHST is discarding inputs from this client. Each bit should
39318c2ecf20Sopenharmony_ci   update according to 'hst_discard_internal_writes' register when the state
39328c2ecf20Sopenharmony_ci   machine is idle. */
39338c2ecf20Sopenharmony_ci#define PXP_REG_HST_DISCARD_INTERNAL_WRITES_STATUS		 0x10309c
39348c2ecf20Sopenharmony_ci/* [WB 160] Used for initialization of the inbound interrupts memory */
39358c2ecf20Sopenharmony_ci#define PXP_REG_HST_INBOUND_INT 				 0x103800
39368c2ecf20Sopenharmony_ci/* [RW 7] Indirect access to the permission table. The fields are : {Valid;
39378c2ecf20Sopenharmony_ci * VFID[5:0]}
39388c2ecf20Sopenharmony_ci */
39398c2ecf20Sopenharmony_ci#define PXP_REG_HST_ZONE_PERMISSION_TABLE			 0x103400
39408c2ecf20Sopenharmony_ci/* [RW 32] Interrupt mask register #0 read/write */
39418c2ecf20Sopenharmony_ci#define PXP_REG_PXP_INT_MASK_0					 0x103074
39428c2ecf20Sopenharmony_ci#define PXP_REG_PXP_INT_MASK_1					 0x103084
39438c2ecf20Sopenharmony_ci/* [R 32] Interrupt register #0 read */
39448c2ecf20Sopenharmony_ci#define PXP_REG_PXP_INT_STS_0					 0x103068
39458c2ecf20Sopenharmony_ci#define PXP_REG_PXP_INT_STS_1					 0x103078
39468c2ecf20Sopenharmony_ci/* [RC 32] Interrupt register #0 read clear */
39478c2ecf20Sopenharmony_ci#define PXP_REG_PXP_INT_STS_CLR_0				 0x10306c
39488c2ecf20Sopenharmony_ci#define PXP_REG_PXP_INT_STS_CLR_1				 0x10307c
39498c2ecf20Sopenharmony_ci/* [RW 27] Parity mask register #0 read/write */
39508c2ecf20Sopenharmony_ci#define PXP_REG_PXP_PRTY_MASK					 0x103094
39518c2ecf20Sopenharmony_ci/* [R 26] Parity register #0 read */
39528c2ecf20Sopenharmony_ci#define PXP_REG_PXP_PRTY_STS					 0x103088
39538c2ecf20Sopenharmony_ci/* [RC 27] Parity register #0 read clear */
39548c2ecf20Sopenharmony_ci#define PXP_REG_PXP_PRTY_STS_CLR				 0x10308c
39558c2ecf20Sopenharmony_ci/* [RW 4] The activity counter initial increment value sent in the load
39568c2ecf20Sopenharmony_ci   request */
39578c2ecf20Sopenharmony_ci#define QM_REG_ACTCTRINITVAL_0					 0x168040
39588c2ecf20Sopenharmony_ci#define QM_REG_ACTCTRINITVAL_1					 0x168044
39598c2ecf20Sopenharmony_ci#define QM_REG_ACTCTRINITVAL_2					 0x168048
39608c2ecf20Sopenharmony_ci#define QM_REG_ACTCTRINITVAL_3					 0x16804c
39618c2ecf20Sopenharmony_ci/* [RW 32] The base logical address (in bytes) of each physical queue. The
39628c2ecf20Sopenharmony_ci   index I represents the physical queue number. The 12 lsbs are ignore and
39638c2ecf20Sopenharmony_ci   considered zero so practically there are only 20 bits in this register;
39648c2ecf20Sopenharmony_ci   queues 63-0 */
39658c2ecf20Sopenharmony_ci#define QM_REG_BASEADDR 					 0x168900
39668c2ecf20Sopenharmony_ci/* [RW 32] The base logical address (in bytes) of each physical queue. The
39678c2ecf20Sopenharmony_ci   index I represents the physical queue number. The 12 lsbs are ignore and
39688c2ecf20Sopenharmony_ci   considered zero so practically there are only 20 bits in this register;
39698c2ecf20Sopenharmony_ci   queues 127-64 */
39708c2ecf20Sopenharmony_ci#define QM_REG_BASEADDR_EXT_A					 0x16e100
39718c2ecf20Sopenharmony_ci/* [RW 16] The byte credit cost for each task. This value is for both ports */
39728c2ecf20Sopenharmony_ci#define QM_REG_BYTECRDCOST					 0x168234
39738c2ecf20Sopenharmony_ci/* [RW 16] The initial byte credit value for both ports. */
39748c2ecf20Sopenharmony_ci#define QM_REG_BYTECRDINITVAL					 0x168238
39758c2ecf20Sopenharmony_ci/* [RW 32] A bit per physical queue. If the bit is cleared then the physical
39768c2ecf20Sopenharmony_ci   queue uses port 0 else it uses port 1; queues 31-0 */
39778c2ecf20Sopenharmony_ci#define QM_REG_BYTECRDPORT_LSB					 0x168228
39788c2ecf20Sopenharmony_ci/* [RW 32] A bit per physical queue. If the bit is cleared then the physical
39798c2ecf20Sopenharmony_ci   queue uses port 0 else it uses port 1; queues 95-64 */
39808c2ecf20Sopenharmony_ci#define QM_REG_BYTECRDPORT_LSB_EXT_A				 0x16e520
39818c2ecf20Sopenharmony_ci/* [RW 32] A bit per physical queue. If the bit is cleared then the physical
39828c2ecf20Sopenharmony_ci   queue uses port 0 else it uses port 1; queues 63-32 */
39838c2ecf20Sopenharmony_ci#define QM_REG_BYTECRDPORT_MSB					 0x168224
39848c2ecf20Sopenharmony_ci/* [RW 32] A bit per physical queue. If the bit is cleared then the physical
39858c2ecf20Sopenharmony_ci   queue uses port 0 else it uses port 1; queues 127-96 */
39868c2ecf20Sopenharmony_ci#define QM_REG_BYTECRDPORT_MSB_EXT_A				 0x16e51c
39878c2ecf20Sopenharmony_ci/* [RW 16] The byte credit value that if above the QM is considered almost
39888c2ecf20Sopenharmony_ci   full */
39898c2ecf20Sopenharmony_ci#define QM_REG_BYTECREDITAFULLTHR				 0x168094
39908c2ecf20Sopenharmony_ci/* [RW 4] The initial credit for interface */
39918c2ecf20Sopenharmony_ci#define QM_REG_CMINITCRD_0					 0x1680cc
39928c2ecf20Sopenharmony_ci#define QM_REG_BYTECRDCMDQ_0					 0x16e6e8
39938c2ecf20Sopenharmony_ci#define QM_REG_CMINITCRD_1					 0x1680d0
39948c2ecf20Sopenharmony_ci#define QM_REG_CMINITCRD_2					 0x1680d4
39958c2ecf20Sopenharmony_ci#define QM_REG_CMINITCRD_3					 0x1680d8
39968c2ecf20Sopenharmony_ci#define QM_REG_CMINITCRD_4					 0x1680dc
39978c2ecf20Sopenharmony_ci#define QM_REG_CMINITCRD_5					 0x1680e0
39988c2ecf20Sopenharmony_ci#define QM_REG_CMINITCRD_6					 0x1680e4
39998c2ecf20Sopenharmony_ci#define QM_REG_CMINITCRD_7					 0x1680e8
40008c2ecf20Sopenharmony_ci/* [RW 8] A mask bit per CM interface. If this bit is 0 then this interface
40018c2ecf20Sopenharmony_ci   is masked */
40028c2ecf20Sopenharmony_ci#define QM_REG_CMINTEN						 0x1680ec
40038c2ecf20Sopenharmony_ci/* [RW 12] A bit vector which indicates which one of the queues are tied to
40048c2ecf20Sopenharmony_ci   interface 0 */
40058c2ecf20Sopenharmony_ci#define QM_REG_CMINTVOQMASK_0					 0x1681f4
40068c2ecf20Sopenharmony_ci#define QM_REG_CMINTVOQMASK_1					 0x1681f8
40078c2ecf20Sopenharmony_ci#define QM_REG_CMINTVOQMASK_2					 0x1681fc
40088c2ecf20Sopenharmony_ci#define QM_REG_CMINTVOQMASK_3					 0x168200
40098c2ecf20Sopenharmony_ci#define QM_REG_CMINTVOQMASK_4					 0x168204
40108c2ecf20Sopenharmony_ci#define QM_REG_CMINTVOQMASK_5					 0x168208
40118c2ecf20Sopenharmony_ci#define QM_REG_CMINTVOQMASK_6					 0x16820c
40128c2ecf20Sopenharmony_ci#define QM_REG_CMINTVOQMASK_7					 0x168210
40138c2ecf20Sopenharmony_ci/* [RW 20] The number of connections divided by 16 which dictates the size
40148c2ecf20Sopenharmony_ci   of each queue which belongs to even function number. */
40158c2ecf20Sopenharmony_ci#define QM_REG_CONNNUM_0					 0x168020
40168c2ecf20Sopenharmony_ci/* [R 6] Keep the fill level of the fifo from write client 4 */
40178c2ecf20Sopenharmony_ci#define QM_REG_CQM_WRC_FIFOLVL					 0x168018
40188c2ecf20Sopenharmony_ci/* [RW 8] The context regions sent in the CFC load request */
40198c2ecf20Sopenharmony_ci#define QM_REG_CTXREG_0 					 0x168030
40208c2ecf20Sopenharmony_ci#define QM_REG_CTXREG_1 					 0x168034
40218c2ecf20Sopenharmony_ci#define QM_REG_CTXREG_2 					 0x168038
40228c2ecf20Sopenharmony_ci#define QM_REG_CTXREG_3 					 0x16803c
40238c2ecf20Sopenharmony_ci/* [RW 12] The VOQ mask used to select the VOQs which needs to be full for
40248c2ecf20Sopenharmony_ci   bypass enable */
40258c2ecf20Sopenharmony_ci#define QM_REG_ENBYPVOQMASK					 0x16823c
40268c2ecf20Sopenharmony_ci/* [RW 32] A bit mask per each physical queue. If a bit is set then the
40278c2ecf20Sopenharmony_ci   physical queue uses the byte credit; queues 31-0 */
40288c2ecf20Sopenharmony_ci#define QM_REG_ENBYTECRD_LSB					 0x168220
40298c2ecf20Sopenharmony_ci/* [RW 32] A bit mask per each physical queue. If a bit is set then the
40308c2ecf20Sopenharmony_ci   physical queue uses the byte credit; queues 95-64 */
40318c2ecf20Sopenharmony_ci#define QM_REG_ENBYTECRD_LSB_EXT_A				 0x16e518
40328c2ecf20Sopenharmony_ci/* [RW 32] A bit mask per each physical queue. If a bit is set then the
40338c2ecf20Sopenharmony_ci   physical queue uses the byte credit; queues 63-32 */
40348c2ecf20Sopenharmony_ci#define QM_REG_ENBYTECRD_MSB					 0x16821c
40358c2ecf20Sopenharmony_ci/* [RW 32] A bit mask per each physical queue. If a bit is set then the
40368c2ecf20Sopenharmony_ci   physical queue uses the byte credit; queues 127-96 */
40378c2ecf20Sopenharmony_ci#define QM_REG_ENBYTECRD_MSB_EXT_A				 0x16e514
40388c2ecf20Sopenharmony_ci/* [RW 4] If cleared then the secondary interface will not be served by the
40398c2ecf20Sopenharmony_ci   RR arbiter */
40408c2ecf20Sopenharmony_ci#define QM_REG_ENSEC						 0x1680f0
40418c2ecf20Sopenharmony_ci/* [RW 32] NA */
40428c2ecf20Sopenharmony_ci#define QM_REG_FUNCNUMSEL_LSB					 0x168230
40438c2ecf20Sopenharmony_ci/* [RW 32] NA */
40448c2ecf20Sopenharmony_ci#define QM_REG_FUNCNUMSEL_MSB					 0x16822c
40458c2ecf20Sopenharmony_ci/* [RW 32] A mask register to mask the Almost empty signals which will not
40468c2ecf20Sopenharmony_ci   be use for the almost empty indication to the HW block; queues 31:0 */
40478c2ecf20Sopenharmony_ci#define QM_REG_HWAEMPTYMASK_LSB 				 0x168218
40488c2ecf20Sopenharmony_ci/* [RW 32] A mask register to mask the Almost empty signals which will not
40498c2ecf20Sopenharmony_ci   be use for the almost empty indication to the HW block; queues 95-64 */
40508c2ecf20Sopenharmony_ci#define QM_REG_HWAEMPTYMASK_LSB_EXT_A				 0x16e510
40518c2ecf20Sopenharmony_ci/* [RW 32] A mask register to mask the Almost empty signals which will not
40528c2ecf20Sopenharmony_ci   be use for the almost empty indication to the HW block; queues 63:32 */
40538c2ecf20Sopenharmony_ci#define QM_REG_HWAEMPTYMASK_MSB 				 0x168214
40548c2ecf20Sopenharmony_ci/* [RW 32] A mask register to mask the Almost empty signals which will not
40558c2ecf20Sopenharmony_ci   be use for the almost empty indication to the HW block; queues 127-96 */
40568c2ecf20Sopenharmony_ci#define QM_REG_HWAEMPTYMASK_MSB_EXT_A				 0x16e50c
40578c2ecf20Sopenharmony_ci/* [RW 4] The number of outstanding request to CFC */
40588c2ecf20Sopenharmony_ci#define QM_REG_OUTLDREQ 					 0x168804
40598c2ecf20Sopenharmony_ci/* [RC 1] A flag to indicate that overflow error occurred in one of the
40608c2ecf20Sopenharmony_ci   queues. */
40618c2ecf20Sopenharmony_ci#define QM_REG_OVFERROR 					 0x16805c
40628c2ecf20Sopenharmony_ci/* [RC 7] the Q where the overflow occurs */
40638c2ecf20Sopenharmony_ci#define QM_REG_OVFQNUM						 0x168058
40648c2ecf20Sopenharmony_ci/* [R 16] Pause state for physical queues 15-0 */
40658c2ecf20Sopenharmony_ci#define QM_REG_PAUSESTATE0					 0x168410
40668c2ecf20Sopenharmony_ci/* [R 16] Pause state for physical queues 31-16 */
40678c2ecf20Sopenharmony_ci#define QM_REG_PAUSESTATE1					 0x168414
40688c2ecf20Sopenharmony_ci/* [R 16] Pause state for physical queues 47-32 */
40698c2ecf20Sopenharmony_ci#define QM_REG_PAUSESTATE2					 0x16e684
40708c2ecf20Sopenharmony_ci/* [R 16] Pause state for physical queues 63-48 */
40718c2ecf20Sopenharmony_ci#define QM_REG_PAUSESTATE3					 0x16e688
40728c2ecf20Sopenharmony_ci/* [R 16] Pause state for physical queues 79-64 */
40738c2ecf20Sopenharmony_ci#define QM_REG_PAUSESTATE4					 0x16e68c
40748c2ecf20Sopenharmony_ci/* [R 16] Pause state for physical queues 95-80 */
40758c2ecf20Sopenharmony_ci#define QM_REG_PAUSESTATE5					 0x16e690
40768c2ecf20Sopenharmony_ci/* [R 16] Pause state for physical queues 111-96 */
40778c2ecf20Sopenharmony_ci#define QM_REG_PAUSESTATE6					 0x16e694
40788c2ecf20Sopenharmony_ci/* [R 16] Pause state for physical queues 127-112 */
40798c2ecf20Sopenharmony_ci#define QM_REG_PAUSESTATE7					 0x16e698
40808c2ecf20Sopenharmony_ci/* [RW 2] The PCI attributes field used in the PCI request. */
40818c2ecf20Sopenharmony_ci#define QM_REG_PCIREQAT 					 0x168054
40828c2ecf20Sopenharmony_ci#define QM_REG_PF_EN						 0x16e70c
40838c2ecf20Sopenharmony_ci/* [R 24] The number of tasks stored in the QM for the PF. only even
40848c2ecf20Sopenharmony_ci * functions are valid in E2 (odd I registers will be hard wired to 0) */
40858c2ecf20Sopenharmony_ci#define QM_REG_PF_USG_CNT_0					 0x16e040
40868c2ecf20Sopenharmony_ci/* [R 16] NOT USED */
40878c2ecf20Sopenharmony_ci#define QM_REG_PORT0BYTECRD					 0x168300
40888c2ecf20Sopenharmony_ci/* [R 16] The byte credit of port 1 */
40898c2ecf20Sopenharmony_ci#define QM_REG_PORT1BYTECRD					 0x168304
40908c2ecf20Sopenharmony_ci/* [RW 3] pci function number of queues 15-0 */
40918c2ecf20Sopenharmony_ci#define QM_REG_PQ2PCIFUNC_0					 0x16e6bc
40928c2ecf20Sopenharmony_ci#define QM_REG_PQ2PCIFUNC_1					 0x16e6c0
40938c2ecf20Sopenharmony_ci#define QM_REG_PQ2PCIFUNC_2					 0x16e6c4
40948c2ecf20Sopenharmony_ci#define QM_REG_PQ2PCIFUNC_3					 0x16e6c8
40958c2ecf20Sopenharmony_ci#define QM_REG_PQ2PCIFUNC_4					 0x16e6cc
40968c2ecf20Sopenharmony_ci#define QM_REG_PQ2PCIFUNC_5					 0x16e6d0
40978c2ecf20Sopenharmony_ci#define QM_REG_PQ2PCIFUNC_6					 0x16e6d4
40988c2ecf20Sopenharmony_ci#define QM_REG_PQ2PCIFUNC_7					 0x16e6d8
40998c2ecf20Sopenharmony_ci/* [WB 54] Pointer Table Memory for queues 63-0; The mapping is as follow:
41008c2ecf20Sopenharmony_ci   ptrtbl[53:30] read pointer; ptrtbl[29:6] write pointer; ptrtbl[5:4] read
41018c2ecf20Sopenharmony_ci   bank0; ptrtbl[3:2] read bank 1; ptrtbl[1:0] write bank; */
41028c2ecf20Sopenharmony_ci#define QM_REG_PTRTBL						 0x168a00
41038c2ecf20Sopenharmony_ci/* [WB 54] Pointer Table Memory for queues 127-64; The mapping is as follow:
41048c2ecf20Sopenharmony_ci   ptrtbl[53:30] read pointer; ptrtbl[29:6] write pointer; ptrtbl[5:4] read
41058c2ecf20Sopenharmony_ci   bank0; ptrtbl[3:2] read bank 1; ptrtbl[1:0] write bank; */
41068c2ecf20Sopenharmony_ci#define QM_REG_PTRTBL_EXT_A					 0x16e200
41078c2ecf20Sopenharmony_ci/* [RW 2] Interrupt mask register #0 read/write */
41088c2ecf20Sopenharmony_ci#define QM_REG_QM_INT_MASK					 0x168444
41098c2ecf20Sopenharmony_ci/* [R 2] Interrupt register #0 read */
41108c2ecf20Sopenharmony_ci#define QM_REG_QM_INT_STS					 0x168438
41118c2ecf20Sopenharmony_ci/* [RW 12] Parity mask register #0 read/write */
41128c2ecf20Sopenharmony_ci#define QM_REG_QM_PRTY_MASK					 0x168454
41138c2ecf20Sopenharmony_ci/* [R 12] Parity register #0 read */
41148c2ecf20Sopenharmony_ci#define QM_REG_QM_PRTY_STS					 0x168448
41158c2ecf20Sopenharmony_ci/* [RC 12] Parity register #0 read clear */
41168c2ecf20Sopenharmony_ci#define QM_REG_QM_PRTY_STS_CLR					 0x16844c
41178c2ecf20Sopenharmony_ci/* [R 32] Current queues in pipeline: Queues from 32 to 63 */
41188c2ecf20Sopenharmony_ci#define QM_REG_QSTATUS_HIGH					 0x16802c
41198c2ecf20Sopenharmony_ci/* [R 32] Current queues in pipeline: Queues from 96 to 127 */
41208c2ecf20Sopenharmony_ci#define QM_REG_QSTATUS_HIGH_EXT_A				 0x16e408
41218c2ecf20Sopenharmony_ci/* [R 32] Current queues in pipeline: Queues from 0 to 31 */
41228c2ecf20Sopenharmony_ci#define QM_REG_QSTATUS_LOW					 0x168028
41238c2ecf20Sopenharmony_ci/* [R 32] Current queues in pipeline: Queues from 64 to 95 */
41248c2ecf20Sopenharmony_ci#define QM_REG_QSTATUS_LOW_EXT_A				 0x16e404
41258c2ecf20Sopenharmony_ci/* [R 24] The number of tasks queued for each queue; queues 63-0 */
41268c2ecf20Sopenharmony_ci#define QM_REG_QTASKCTR_0					 0x168308
41278c2ecf20Sopenharmony_ci/* [R 24] The number of tasks queued for each queue; queues 127-64 */
41288c2ecf20Sopenharmony_ci#define QM_REG_QTASKCTR_EXT_A_0 				 0x16e584
41298c2ecf20Sopenharmony_ci/* [RW 4] Queue tied to VOQ */
41308c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_0					 0x1680f4
41318c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_10					 0x16811c
41328c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_100					 0x16e49c
41338c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_101					 0x16e4a0
41348c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_102					 0x16e4a4
41358c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_103					 0x16e4a8
41368c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_104					 0x16e4ac
41378c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_105					 0x16e4b0
41388c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_106					 0x16e4b4
41398c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_107					 0x16e4b8
41408c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_108					 0x16e4bc
41418c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_109					 0x16e4c0
41428c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_11					 0x168120
41438c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_110					 0x16e4c4
41448c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_111					 0x16e4c8
41458c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_112					 0x16e4cc
41468c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_113					 0x16e4d0
41478c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_114					 0x16e4d4
41488c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_115					 0x16e4d8
41498c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_116					 0x16e4dc
41508c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_117					 0x16e4e0
41518c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_118					 0x16e4e4
41528c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_119					 0x16e4e8
41538c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_12					 0x168124
41548c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_120					 0x16e4ec
41558c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_121					 0x16e4f0
41568c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_122					 0x16e4f4
41578c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_123					 0x16e4f8
41588c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_124					 0x16e4fc
41598c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_125					 0x16e500
41608c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_126					 0x16e504
41618c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_127					 0x16e508
41628c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_13					 0x168128
41638c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_14					 0x16812c
41648c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_15					 0x168130
41658c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_16					 0x168134
41668c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_17					 0x168138
41678c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_21					 0x168148
41688c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_22					 0x16814c
41698c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_23					 0x168150
41708c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_24					 0x168154
41718c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_25					 0x168158
41728c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_26					 0x16815c
41738c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_27					 0x168160
41748c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_28					 0x168164
41758c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_29					 0x168168
41768c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_30					 0x16816c
41778c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_31					 0x168170
41788c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_32					 0x168174
41798c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_33					 0x168178
41808c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_34					 0x16817c
41818c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_35					 0x168180
41828c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_36					 0x168184
41838c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_37					 0x168188
41848c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_38					 0x16818c
41858c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_39					 0x168190
41868c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_40					 0x168194
41878c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_41					 0x168198
41888c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_42					 0x16819c
41898c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_43					 0x1681a0
41908c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_44					 0x1681a4
41918c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_45					 0x1681a8
41928c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_46					 0x1681ac
41938c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_47					 0x1681b0
41948c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_48					 0x1681b4
41958c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_49					 0x1681b8
41968c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_5					 0x168108
41978c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_50					 0x1681bc
41988c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_51					 0x1681c0
41998c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_52					 0x1681c4
42008c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_53					 0x1681c8
42018c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_54					 0x1681cc
42028c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_55					 0x1681d0
42038c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_56					 0x1681d4
42048c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_57					 0x1681d8
42058c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_58					 0x1681dc
42068c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_59					 0x1681e0
42078c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_6					 0x16810c
42088c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_60					 0x1681e4
42098c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_61					 0x1681e8
42108c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_62					 0x1681ec
42118c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_63					 0x1681f0
42128c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_64					 0x16e40c
42138c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_65					 0x16e410
42148c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_69					 0x16e420
42158c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_7					 0x168110
42168c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_70					 0x16e424
42178c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_71					 0x16e428
42188c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_72					 0x16e42c
42198c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_73					 0x16e430
42208c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_74					 0x16e434
42218c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_75					 0x16e438
42228c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_76					 0x16e43c
42238c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_77					 0x16e440
42248c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_78					 0x16e444
42258c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_79					 0x16e448
42268c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_8					 0x168114
42278c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_80					 0x16e44c
42288c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_81					 0x16e450
42298c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_85					 0x16e460
42308c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_86					 0x16e464
42318c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_87					 0x16e468
42328c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_88					 0x16e46c
42338c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_89					 0x16e470
42348c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_9					 0x168118
42358c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_90					 0x16e474
42368c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_91					 0x16e478
42378c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_92					 0x16e47c
42388c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_93					 0x16e480
42398c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_94					 0x16e484
42408c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_95					 0x16e488
42418c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_96					 0x16e48c
42428c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_97					 0x16e490
42438c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_98					 0x16e494
42448c2ecf20Sopenharmony_ci#define QM_REG_QVOQIDX_99					 0x16e498
42458c2ecf20Sopenharmony_ci/* [RW 1] Initialization bit command */
42468c2ecf20Sopenharmony_ci#define QM_REG_SOFT_RESET					 0x168428
42478c2ecf20Sopenharmony_ci/* [RW 8] The credit cost per every task in the QM. A value per each VOQ */
42488c2ecf20Sopenharmony_ci#define QM_REG_TASKCRDCOST_0					 0x16809c
42498c2ecf20Sopenharmony_ci#define QM_REG_TASKCRDCOST_1					 0x1680a0
42508c2ecf20Sopenharmony_ci#define QM_REG_TASKCRDCOST_2					 0x1680a4
42518c2ecf20Sopenharmony_ci#define QM_REG_TASKCRDCOST_4					 0x1680ac
42528c2ecf20Sopenharmony_ci#define QM_REG_TASKCRDCOST_5					 0x1680b0
42538c2ecf20Sopenharmony_ci/* [R 6] Keep the fill level of the fifo from write client 3 */
42548c2ecf20Sopenharmony_ci#define QM_REG_TQM_WRC_FIFOLVL					 0x168010
42558c2ecf20Sopenharmony_ci/* [R 6] Keep the fill level of the fifo from write client 2 */
42568c2ecf20Sopenharmony_ci#define QM_REG_UQM_WRC_FIFOLVL					 0x168008
42578c2ecf20Sopenharmony_ci/* [RC 32] Credit update error register */
42588c2ecf20Sopenharmony_ci#define QM_REG_VOQCRDERRREG					 0x168408
42598c2ecf20Sopenharmony_ci/* [R 16] The credit value for each VOQ */
42608c2ecf20Sopenharmony_ci#define QM_REG_VOQCREDIT_0					 0x1682d0
42618c2ecf20Sopenharmony_ci#define QM_REG_VOQCREDIT_1					 0x1682d4
42628c2ecf20Sopenharmony_ci#define QM_REG_VOQCREDIT_4					 0x1682e0
42638c2ecf20Sopenharmony_ci/* [RW 16] The credit value that if above the QM is considered almost full */
42648c2ecf20Sopenharmony_ci#define QM_REG_VOQCREDITAFULLTHR				 0x168090
42658c2ecf20Sopenharmony_ci/* [RW 16] The init and maximum credit for each VoQ */
42668c2ecf20Sopenharmony_ci#define QM_REG_VOQINITCREDIT_0					 0x168060
42678c2ecf20Sopenharmony_ci#define QM_REG_VOQINITCREDIT_1					 0x168064
42688c2ecf20Sopenharmony_ci#define QM_REG_VOQINITCREDIT_2					 0x168068
42698c2ecf20Sopenharmony_ci#define QM_REG_VOQINITCREDIT_4					 0x168070
42708c2ecf20Sopenharmony_ci#define QM_REG_VOQINITCREDIT_5					 0x168074
42718c2ecf20Sopenharmony_ci/* [RW 1] The port of which VOQ belongs */
42728c2ecf20Sopenharmony_ci#define QM_REG_VOQPORT_0					 0x1682a0
42738c2ecf20Sopenharmony_ci#define QM_REG_VOQPORT_1					 0x1682a4
42748c2ecf20Sopenharmony_ci#define QM_REG_VOQPORT_2					 0x1682a8
42758c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */
42768c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_0_LSB					 0x168240
42778c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */
42788c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_0_LSB_EXT_A				 0x16e524
42798c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */
42808c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_0_MSB					 0x168244
42818c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */
42828c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_0_MSB_EXT_A				 0x16e528
42838c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */
42848c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_10_LSB					 0x168290
42858c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */
42868c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_10_LSB_EXT_A				 0x16e574
42878c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */
42888c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_10_MSB					 0x168294
42898c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */
42908c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_10_MSB_EXT_A				 0x16e578
42918c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */
42928c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_11_LSB					 0x168298
42938c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */
42948c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_11_LSB_EXT_A				 0x16e57c
42958c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */
42968c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_11_MSB					 0x16829c
42978c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */
42988c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_11_MSB_EXT_A				 0x16e580
42998c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */
43008c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_1_LSB					 0x168248
43018c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */
43028c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_1_LSB_EXT_A				 0x16e52c
43038c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */
43048c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_1_MSB					 0x16824c
43058c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */
43068c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_1_MSB_EXT_A				 0x16e530
43078c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */
43088c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_2_LSB					 0x168250
43098c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */
43108c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_2_LSB_EXT_A				 0x16e534
43118c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */
43128c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_2_MSB					 0x168254
43138c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */
43148c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_2_MSB_EXT_A				 0x16e538
43158c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */
43168c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_3_LSB					 0x168258
43178c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */
43188c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_3_LSB_EXT_A				 0x16e53c
43198c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */
43208c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_3_MSB_EXT_A				 0x16e540
43218c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */
43228c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_4_LSB					 0x168260
43238c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */
43248c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_4_LSB_EXT_A				 0x16e544
43258c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */
43268c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_4_MSB					 0x168264
43278c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */
43288c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_4_MSB_EXT_A				 0x16e548
43298c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */
43308c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_5_LSB					 0x168268
43318c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */
43328c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_5_LSB_EXT_A				 0x16e54c
43338c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */
43348c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_5_MSB					 0x16826c
43358c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */
43368c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_5_MSB_EXT_A				 0x16e550
43378c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */
43388c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_6_LSB					 0x168270
43398c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */
43408c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_6_LSB_EXT_A				 0x16e554
43418c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */
43428c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_6_MSB					 0x168274
43438c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */
43448c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_6_MSB_EXT_A				 0x16e558
43458c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */
43468c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_7_LSB					 0x168278
43478c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */
43488c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_7_LSB_EXT_A				 0x16e55c
43498c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */
43508c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_7_MSB					 0x16827c
43518c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */
43528c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_7_MSB_EXT_A				 0x16e560
43538c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */
43548c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_8_LSB					 0x168280
43558c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */
43568c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_8_LSB_EXT_A				 0x16e564
43578c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 63-32 */
43588c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_8_MSB					 0x168284
43598c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */
43608c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_8_MSB_EXT_A				 0x16e568
43618c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 31-0 */
43628c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_9_LSB					 0x168288
43638c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 95-64 */
43648c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_9_LSB_EXT_A				 0x16e56c
43658c2ecf20Sopenharmony_ci/* [RW 32] The physical queue number associated with each VOQ; queues 127-96 */
43668c2ecf20Sopenharmony_ci#define QM_REG_VOQQMASK_9_MSB_EXT_A				 0x16e570
43678c2ecf20Sopenharmony_ci/* [RW 32] Wrr weights */
43688c2ecf20Sopenharmony_ci#define QM_REG_WRRWEIGHTS_0					 0x16880c
43698c2ecf20Sopenharmony_ci#define QM_REG_WRRWEIGHTS_1					 0x168810
43708c2ecf20Sopenharmony_ci#define QM_REG_WRRWEIGHTS_10					 0x168814
43718c2ecf20Sopenharmony_ci#define QM_REG_WRRWEIGHTS_11					 0x168818
43728c2ecf20Sopenharmony_ci#define QM_REG_WRRWEIGHTS_12					 0x16881c
43738c2ecf20Sopenharmony_ci#define QM_REG_WRRWEIGHTS_13					 0x168820
43748c2ecf20Sopenharmony_ci#define QM_REG_WRRWEIGHTS_14					 0x168824
43758c2ecf20Sopenharmony_ci#define QM_REG_WRRWEIGHTS_15					 0x168828
43768c2ecf20Sopenharmony_ci#define QM_REG_WRRWEIGHTS_16					 0x16e000
43778c2ecf20Sopenharmony_ci#define QM_REG_WRRWEIGHTS_17					 0x16e004
43788c2ecf20Sopenharmony_ci#define QM_REG_WRRWEIGHTS_18					 0x16e008
43798c2ecf20Sopenharmony_ci#define QM_REG_WRRWEIGHTS_19					 0x16e00c
43808c2ecf20Sopenharmony_ci#define QM_REG_WRRWEIGHTS_2					 0x16882c
43818c2ecf20Sopenharmony_ci#define QM_REG_WRRWEIGHTS_20					 0x16e010
43828c2ecf20Sopenharmony_ci#define QM_REG_WRRWEIGHTS_21					 0x16e014
43838c2ecf20Sopenharmony_ci#define QM_REG_WRRWEIGHTS_22					 0x16e018
43848c2ecf20Sopenharmony_ci#define QM_REG_WRRWEIGHTS_23					 0x16e01c
43858c2ecf20Sopenharmony_ci#define QM_REG_WRRWEIGHTS_24					 0x16e020
43868c2ecf20Sopenharmony_ci#define QM_REG_WRRWEIGHTS_25					 0x16e024
43878c2ecf20Sopenharmony_ci#define QM_REG_WRRWEIGHTS_26					 0x16e028
43888c2ecf20Sopenharmony_ci#define QM_REG_WRRWEIGHTS_27					 0x16e02c
43898c2ecf20Sopenharmony_ci#define QM_REG_WRRWEIGHTS_28					 0x16e030
43908c2ecf20Sopenharmony_ci#define QM_REG_WRRWEIGHTS_29					 0x16e034
43918c2ecf20Sopenharmony_ci#define QM_REG_WRRWEIGHTS_3					 0x168830
43928c2ecf20Sopenharmony_ci#define QM_REG_WRRWEIGHTS_30					 0x16e038
43938c2ecf20Sopenharmony_ci#define QM_REG_WRRWEIGHTS_31					 0x16e03c
43948c2ecf20Sopenharmony_ci#define QM_REG_WRRWEIGHTS_4					 0x168834
43958c2ecf20Sopenharmony_ci#define QM_REG_WRRWEIGHTS_5					 0x168838
43968c2ecf20Sopenharmony_ci#define QM_REG_WRRWEIGHTS_6					 0x16883c
43978c2ecf20Sopenharmony_ci#define QM_REG_WRRWEIGHTS_7					 0x168840
43988c2ecf20Sopenharmony_ci#define QM_REG_WRRWEIGHTS_8					 0x168844
43998c2ecf20Sopenharmony_ci#define QM_REG_WRRWEIGHTS_9					 0x168848
44008c2ecf20Sopenharmony_ci/* [R 6] Keep the fill level of the fifo from write client 1 */
44018c2ecf20Sopenharmony_ci#define QM_REG_XQM_WRC_FIFOLVL					 0x168000
44028c2ecf20Sopenharmony_ci/* [W 1] reset to parity interrupt */
44038c2ecf20Sopenharmony_ci#define SEM_FAST_REG_PARITY_RST					 0x18840
44048c2ecf20Sopenharmony_ci#define SRC_REG_COUNTFREE0					 0x40500
44058c2ecf20Sopenharmony_ci/* [RW 1] If clr the searcher is compatible to E1 A0 - support only two
44068c2ecf20Sopenharmony_ci   ports. If set the searcher support 8 functions. */
44078c2ecf20Sopenharmony_ci#define SRC_REG_E1HMF_ENABLE					 0x404cc
44088c2ecf20Sopenharmony_ci#define SRC_REG_FIRSTFREE0					 0x40510
44098c2ecf20Sopenharmony_ci#define SRC_REG_KEYRSS0_0					 0x40408
44108c2ecf20Sopenharmony_ci#define SRC_REG_KEYRSS0_7					 0x40424
44118c2ecf20Sopenharmony_ci#define SRC_REG_KEYRSS1_9					 0x40454
44128c2ecf20Sopenharmony_ci#define SRC_REG_KEYSEARCH_0					 0x40458
44138c2ecf20Sopenharmony_ci#define SRC_REG_KEYSEARCH_1					 0x4045c
44148c2ecf20Sopenharmony_ci#define SRC_REG_KEYSEARCH_2					 0x40460
44158c2ecf20Sopenharmony_ci#define SRC_REG_KEYSEARCH_3					 0x40464
44168c2ecf20Sopenharmony_ci#define SRC_REG_KEYSEARCH_4					 0x40468
44178c2ecf20Sopenharmony_ci#define SRC_REG_KEYSEARCH_5					 0x4046c
44188c2ecf20Sopenharmony_ci#define SRC_REG_KEYSEARCH_6					 0x40470
44198c2ecf20Sopenharmony_ci#define SRC_REG_KEYSEARCH_7					 0x40474
44208c2ecf20Sopenharmony_ci#define SRC_REG_KEYSEARCH_8					 0x40478
44218c2ecf20Sopenharmony_ci#define SRC_REG_KEYSEARCH_9					 0x4047c
44228c2ecf20Sopenharmony_ci#define SRC_REG_LASTFREE0					 0x40530
44238c2ecf20Sopenharmony_ci#define SRC_REG_NUMBER_HASH_BITS0				 0x40400
44248c2ecf20Sopenharmony_ci/* [RW 1] Reset internal state machines. */
44258c2ecf20Sopenharmony_ci#define SRC_REG_SOFT_RST					 0x4049c
44268c2ecf20Sopenharmony_ci/* [R 3] Interrupt register #0 read */
44278c2ecf20Sopenharmony_ci#define SRC_REG_SRC_INT_STS					 0x404ac
44288c2ecf20Sopenharmony_ci/* [RW 3] Parity mask register #0 read/write */
44298c2ecf20Sopenharmony_ci#define SRC_REG_SRC_PRTY_MASK					 0x404c8
44308c2ecf20Sopenharmony_ci/* [R 3] Parity register #0 read */
44318c2ecf20Sopenharmony_ci#define SRC_REG_SRC_PRTY_STS					 0x404bc
44328c2ecf20Sopenharmony_ci/* [RC 3] Parity register #0 read clear */
44338c2ecf20Sopenharmony_ci#define SRC_REG_SRC_PRTY_STS_CLR				 0x404c0
44348c2ecf20Sopenharmony_ci/* [R 4] Used to read the value of the XX protection CAM occupancy counter. */
44358c2ecf20Sopenharmony_ci#define TCM_REG_CAM_OCCUP					 0x5017c
44368c2ecf20Sopenharmony_ci/* [RW 1] CDU AG read Interface enable. If 0 - the request input is
44378c2ecf20Sopenharmony_ci   disregarded; valid output is deasserted; all other signals are treated as
44388c2ecf20Sopenharmony_ci   usual; if 1 - normal activity. */
44398c2ecf20Sopenharmony_ci#define TCM_REG_CDU_AG_RD_IFEN					 0x50034
44408c2ecf20Sopenharmony_ci/* [RW 1] CDU AG write Interface enable. If 0 - the request and valid input
44418c2ecf20Sopenharmony_ci   are disregarded; all other signals are treated as usual; if 1 - normal
44428c2ecf20Sopenharmony_ci   activity. */
44438c2ecf20Sopenharmony_ci#define TCM_REG_CDU_AG_WR_IFEN					 0x50030
44448c2ecf20Sopenharmony_ci/* [RW 1] CDU STORM read Interface enable. If 0 - the request input is
44458c2ecf20Sopenharmony_ci   disregarded; valid output is deasserted; all other signals are treated as
44468c2ecf20Sopenharmony_ci   usual; if 1 - normal activity. */
44478c2ecf20Sopenharmony_ci#define TCM_REG_CDU_SM_RD_IFEN					 0x5003c
44488c2ecf20Sopenharmony_ci/* [RW 1] CDU STORM write Interface enable. If 0 - the request and valid
44498c2ecf20Sopenharmony_ci   input is disregarded; all other signals are treated as usual; if 1 -
44508c2ecf20Sopenharmony_ci   normal activity. */
44518c2ecf20Sopenharmony_ci#define TCM_REG_CDU_SM_WR_IFEN					 0x50038
44528c2ecf20Sopenharmony_ci/* [RW 4] CFC output initial credit. Max credit available - 15.Write writes
44538c2ecf20Sopenharmony_ci   the initial credit value; read returns the current value of the credit
44548c2ecf20Sopenharmony_ci   counter. Must be initialized to 1 at start-up. */
44558c2ecf20Sopenharmony_ci#define TCM_REG_CFC_INIT_CRD					 0x50204
44568c2ecf20Sopenharmony_ci/* [RW 3] The weight of the CP input in the WRR mechanism. 0 stands for
44578c2ecf20Sopenharmony_ci   weight 8 (the most prioritised); 1 stands for weight 1(least
44588c2ecf20Sopenharmony_ci   prioritised); 2 stands for weight 2; tc. */
44598c2ecf20Sopenharmony_ci#define TCM_REG_CP_WEIGHT					 0x500c0
44608c2ecf20Sopenharmony_ci/* [RW 1] Input csem Interface enable. If 0 - the valid input is
44618c2ecf20Sopenharmony_ci   disregarded; acknowledge output is deasserted; all other signals are
44628c2ecf20Sopenharmony_ci   treated as usual; if 1 - normal activity. */
44638c2ecf20Sopenharmony_ci#define TCM_REG_CSEM_IFEN					 0x5002c
44648c2ecf20Sopenharmony_ci/* [RC 1] Message length mismatch (relative to last indication) at the In#9
44658c2ecf20Sopenharmony_ci   interface. */
44668c2ecf20Sopenharmony_ci#define TCM_REG_CSEM_LENGTH_MIS 				 0x50174
44678c2ecf20Sopenharmony_ci/* [RW 3] The weight of the input csem in the WRR mechanism. 0 stands for
44688c2ecf20Sopenharmony_ci   weight 8 (the most prioritised); 1 stands for weight 1(least
44698c2ecf20Sopenharmony_ci   prioritised); 2 stands for weight 2; tc. */
44708c2ecf20Sopenharmony_ci#define TCM_REG_CSEM_WEIGHT					 0x500bc
44718c2ecf20Sopenharmony_ci/* [RW 8] The Event ID in case of ErrorFlg is set in the input message. */
44728c2ecf20Sopenharmony_ci#define TCM_REG_ERR_EVNT_ID					 0x500a0
44738c2ecf20Sopenharmony_ci/* [RW 28] The CM erroneous header for QM and Timers formatting. */
44748c2ecf20Sopenharmony_ci#define TCM_REG_ERR_TCM_HDR					 0x5009c
44758c2ecf20Sopenharmony_ci/* [RW 8] The Event ID for Timers expiration. */
44768c2ecf20Sopenharmony_ci#define TCM_REG_EXPR_EVNT_ID					 0x500a4
44778c2ecf20Sopenharmony_ci/* [RW 8] FIC0 output initial credit. Max credit available - 255.Write
44788c2ecf20Sopenharmony_ci   writes the initial credit value; read returns the current value of the
44798c2ecf20Sopenharmony_ci   credit counter. Must be initialized to 64 at start-up. */
44808c2ecf20Sopenharmony_ci#define TCM_REG_FIC0_INIT_CRD					 0x5020c
44818c2ecf20Sopenharmony_ci/* [RW 8] FIC1 output initial credit. Max credit available - 255.Write
44828c2ecf20Sopenharmony_ci   writes the initial credit value; read returns the current value of the
44838c2ecf20Sopenharmony_ci   credit counter. Must be initialized to 64 at start-up. */
44848c2ecf20Sopenharmony_ci#define TCM_REG_FIC1_INIT_CRD					 0x50210
44858c2ecf20Sopenharmony_ci/* [RW 1] Arbitration between Input Arbiter groups: 0 - fair Round-Robin; 1
44868c2ecf20Sopenharmony_ci   - strict priority defined by ~tcm_registers_gr_ag_pr.gr_ag_pr;
44878c2ecf20Sopenharmony_ci   ~tcm_registers_gr_ld0_pr.gr_ld0_pr and
44888c2ecf20Sopenharmony_ci   ~tcm_registers_gr_ld1_pr.gr_ld1_pr. */
44898c2ecf20Sopenharmony_ci#define TCM_REG_GR_ARB_TYPE					 0x50114
44908c2ecf20Sopenharmony_ci/* [RW 2] Load (FIC0) channel group priority. The lowest priority is 0; the
44918c2ecf20Sopenharmony_ci   highest priority is 3. It is supposed that the Store channel is the
44928c2ecf20Sopenharmony_ci   complement of the other 3 groups. */
44938c2ecf20Sopenharmony_ci#define TCM_REG_GR_LD0_PR					 0x5011c
44948c2ecf20Sopenharmony_ci/* [RW 2] Load (FIC1) channel group priority. The lowest priority is 0; the
44958c2ecf20Sopenharmony_ci   highest priority is 3. It is supposed that the Store channel is the
44968c2ecf20Sopenharmony_ci   complement of the other 3 groups. */
44978c2ecf20Sopenharmony_ci#define TCM_REG_GR_LD1_PR					 0x50120
44988c2ecf20Sopenharmony_ci/* [RW 4] The number of double REG-pairs; loaded from the STORM context and
44998c2ecf20Sopenharmony_ci   sent to STORM; for a specific connection type. The double REG-pairs are
45008c2ecf20Sopenharmony_ci   used to align to STORM context row size of 128 bits. The offset of these
45018c2ecf20Sopenharmony_ci   data in the STORM context is always 0. Index _i stands for the connection
45028c2ecf20Sopenharmony_ci   type (one of 16). */
45038c2ecf20Sopenharmony_ci#define TCM_REG_N_SM_CTX_LD_0					 0x50050
45048c2ecf20Sopenharmony_ci#define TCM_REG_N_SM_CTX_LD_1					 0x50054
45058c2ecf20Sopenharmony_ci#define TCM_REG_N_SM_CTX_LD_2					 0x50058
45068c2ecf20Sopenharmony_ci#define TCM_REG_N_SM_CTX_LD_3					 0x5005c
45078c2ecf20Sopenharmony_ci#define TCM_REG_N_SM_CTX_LD_4					 0x50060
45088c2ecf20Sopenharmony_ci#define TCM_REG_N_SM_CTX_LD_5					 0x50064
45098c2ecf20Sopenharmony_ci/* [RW 1] Input pbf Interface enable. If 0 - the valid input is disregarded;
45108c2ecf20Sopenharmony_ci   acknowledge output is deasserted; all other signals are treated as usual;
45118c2ecf20Sopenharmony_ci   if 1 - normal activity. */
45128c2ecf20Sopenharmony_ci#define TCM_REG_PBF_IFEN					 0x50024
45138c2ecf20Sopenharmony_ci/* [RC 1] Message length mismatch (relative to last indication) at the In#7
45148c2ecf20Sopenharmony_ci   interface. */
45158c2ecf20Sopenharmony_ci#define TCM_REG_PBF_LENGTH_MIS					 0x5016c
45168c2ecf20Sopenharmony_ci/* [RW 3] The weight of the input pbf in the WRR mechanism. 0 stands for
45178c2ecf20Sopenharmony_ci   weight 8 (the most prioritised); 1 stands for weight 1(least
45188c2ecf20Sopenharmony_ci   prioritised); 2 stands for weight 2; tc. */
45198c2ecf20Sopenharmony_ci#define TCM_REG_PBF_WEIGHT					 0x500b4
45208c2ecf20Sopenharmony_ci#define TCM_REG_PHYS_QNUM0_0					 0x500e0
45218c2ecf20Sopenharmony_ci#define TCM_REG_PHYS_QNUM0_1					 0x500e4
45228c2ecf20Sopenharmony_ci#define TCM_REG_PHYS_QNUM1_0					 0x500e8
45238c2ecf20Sopenharmony_ci#define TCM_REG_PHYS_QNUM1_1					 0x500ec
45248c2ecf20Sopenharmony_ci#define TCM_REG_PHYS_QNUM2_0					 0x500f0
45258c2ecf20Sopenharmony_ci#define TCM_REG_PHYS_QNUM2_1					 0x500f4
45268c2ecf20Sopenharmony_ci#define TCM_REG_PHYS_QNUM3_0					 0x500f8
45278c2ecf20Sopenharmony_ci#define TCM_REG_PHYS_QNUM3_1					 0x500fc
45288c2ecf20Sopenharmony_ci/* [RW 1] Input prs Interface enable. If 0 - the valid input is disregarded;
45298c2ecf20Sopenharmony_ci   acknowledge output is deasserted; all other signals are treated as usual;
45308c2ecf20Sopenharmony_ci   if 1 - normal activity. */
45318c2ecf20Sopenharmony_ci#define TCM_REG_PRS_IFEN					 0x50020
45328c2ecf20Sopenharmony_ci/* [RC 1] Message length mismatch (relative to last indication) at the In#6
45338c2ecf20Sopenharmony_ci   interface. */
45348c2ecf20Sopenharmony_ci#define TCM_REG_PRS_LENGTH_MIS					 0x50168
45358c2ecf20Sopenharmony_ci/* [RW 3] The weight of the input prs in the WRR mechanism. 0 stands for
45368c2ecf20Sopenharmony_ci   weight 8 (the most prioritised); 1 stands for weight 1(least
45378c2ecf20Sopenharmony_ci   prioritised); 2 stands for weight 2; tc. */
45388c2ecf20Sopenharmony_ci#define TCM_REG_PRS_WEIGHT					 0x500b0
45398c2ecf20Sopenharmony_ci/* [RW 8] The Event ID for Timers formatting in case of stop done. */
45408c2ecf20Sopenharmony_ci#define TCM_REG_STOP_EVNT_ID					 0x500a8
45418c2ecf20Sopenharmony_ci/* [RC 1] Message length mismatch (relative to last indication) at the STORM
45428c2ecf20Sopenharmony_ci   interface. */
45438c2ecf20Sopenharmony_ci#define TCM_REG_STORM_LENGTH_MIS				 0x50160
45448c2ecf20Sopenharmony_ci/* [RW 1] STORM - CM Interface enable. If 0 - the valid input is
45458c2ecf20Sopenharmony_ci   disregarded; acknowledge output is deasserted; all other signals are
45468c2ecf20Sopenharmony_ci   treated as usual; if 1 - normal activity. */
45478c2ecf20Sopenharmony_ci#define TCM_REG_STORM_TCM_IFEN					 0x50010
45488c2ecf20Sopenharmony_ci/* [RW 3] The weight of the STORM input in the WRR mechanism. 0 stands for
45498c2ecf20Sopenharmony_ci   weight 8 (the most prioritised); 1 stands for weight 1(least
45508c2ecf20Sopenharmony_ci   prioritised); 2 stands for weight 2; tc. */
45518c2ecf20Sopenharmony_ci#define TCM_REG_STORM_WEIGHT					 0x500ac
45528c2ecf20Sopenharmony_ci/* [RW 1] CM - CFC Interface enable. If 0 - the valid input is disregarded;
45538c2ecf20Sopenharmony_ci   acknowledge output is deasserted; all other signals are treated as usual;
45548c2ecf20Sopenharmony_ci   if 1 - normal activity. */
45558c2ecf20Sopenharmony_ci#define TCM_REG_TCM_CFC_IFEN					 0x50040
45568c2ecf20Sopenharmony_ci/* [RW 11] Interrupt mask register #0 read/write */
45578c2ecf20Sopenharmony_ci#define TCM_REG_TCM_INT_MASK					 0x501dc
45588c2ecf20Sopenharmony_ci/* [R 11] Interrupt register #0 read */
45598c2ecf20Sopenharmony_ci#define TCM_REG_TCM_INT_STS					 0x501d0
45608c2ecf20Sopenharmony_ci/* [RW 27] Parity mask register #0 read/write */
45618c2ecf20Sopenharmony_ci#define TCM_REG_TCM_PRTY_MASK					 0x501ec
45628c2ecf20Sopenharmony_ci/* [R 27] Parity register #0 read */
45638c2ecf20Sopenharmony_ci#define TCM_REG_TCM_PRTY_STS					 0x501e0
45648c2ecf20Sopenharmony_ci/* [RC 27] Parity register #0 read clear */
45658c2ecf20Sopenharmony_ci#define TCM_REG_TCM_PRTY_STS_CLR				 0x501e4
45668c2ecf20Sopenharmony_ci/* [RW 3] The size of AG context region 0 in REG-pairs. Designates the MS
45678c2ecf20Sopenharmony_ci   REG-pair number (e.g. if region 0 is 6 REG-pairs; the value should be 5).
45688c2ecf20Sopenharmony_ci   Is used to determine the number of the AG context REG-pairs written back;
45698c2ecf20Sopenharmony_ci   when the input message Reg1WbFlg isn't set. */
45708c2ecf20Sopenharmony_ci#define TCM_REG_TCM_REG0_SZ					 0x500d8
45718c2ecf20Sopenharmony_ci/* [RW 1] CM - STORM 0 Interface enable. If 0 - the acknowledge input is
45728c2ecf20Sopenharmony_ci   disregarded; valid is deasserted; all other signals are treated as usual;
45738c2ecf20Sopenharmony_ci   if 1 - normal activity. */
45748c2ecf20Sopenharmony_ci#define TCM_REG_TCM_STORM0_IFEN 				 0x50004
45758c2ecf20Sopenharmony_ci/* [RW 1] CM - STORM 1 Interface enable. If 0 - the acknowledge input is
45768c2ecf20Sopenharmony_ci   disregarded; valid is deasserted; all other signals are treated as usual;
45778c2ecf20Sopenharmony_ci   if 1 - normal activity. */
45788c2ecf20Sopenharmony_ci#define TCM_REG_TCM_STORM1_IFEN 				 0x50008
45798c2ecf20Sopenharmony_ci/* [RW 1] CM - QM Interface enable. If 0 - the acknowledge input is
45808c2ecf20Sopenharmony_ci   disregarded; valid is deasserted; all other signals are treated as usual;
45818c2ecf20Sopenharmony_ci   if 1 - normal activity. */
45828c2ecf20Sopenharmony_ci#define TCM_REG_TCM_TQM_IFEN					 0x5000c
45838c2ecf20Sopenharmony_ci/* [RW 1] If set the Q index; received from the QM is inserted to event ID. */
45848c2ecf20Sopenharmony_ci#define TCM_REG_TCM_TQM_USE_Q					 0x500d4
45858c2ecf20Sopenharmony_ci/* [RW 28] The CM header for Timers expiration command. */
45868c2ecf20Sopenharmony_ci#define TCM_REG_TM_TCM_HDR					 0x50098
45878c2ecf20Sopenharmony_ci/* [RW 1] Timers - CM Interface enable. If 0 - the valid input is
45888c2ecf20Sopenharmony_ci   disregarded; acknowledge output is deasserted; all other signals are
45898c2ecf20Sopenharmony_ci   treated as usual; if 1 - normal activity. */
45908c2ecf20Sopenharmony_ci#define TCM_REG_TM_TCM_IFEN					 0x5001c
45918c2ecf20Sopenharmony_ci/* [RW 3] The weight of the Timers input in the WRR mechanism. 0 stands for
45928c2ecf20Sopenharmony_ci   weight 8 (the most prioritised); 1 stands for weight 1(least
45938c2ecf20Sopenharmony_ci   prioritised); 2 stands for weight 2; tc. */
45948c2ecf20Sopenharmony_ci#define TCM_REG_TM_WEIGHT					 0x500d0
45958c2ecf20Sopenharmony_ci/* [RW 6] QM output initial credit. Max credit available - 32.Write writes
45968c2ecf20Sopenharmony_ci   the initial credit value; read returns the current value of the credit
45978c2ecf20Sopenharmony_ci   counter. Must be initialized to 32 at start-up. */
45988c2ecf20Sopenharmony_ci#define TCM_REG_TQM_INIT_CRD					 0x5021c
45998c2ecf20Sopenharmony_ci/* [RW 3] The weight of the QM (primary) input in the WRR mechanism. 0
46008c2ecf20Sopenharmony_ci   stands for weight 8 (the most prioritised); 1 stands for weight 1(least
46018c2ecf20Sopenharmony_ci   prioritised); 2 stands for weight 2; tc. */
46028c2ecf20Sopenharmony_ci#define TCM_REG_TQM_P_WEIGHT					 0x500c8
46038c2ecf20Sopenharmony_ci/* [RW 3] The weight of the QM (secondary) input in the WRR mechanism. 0
46048c2ecf20Sopenharmony_ci   stands for weight 8 (the most prioritised); 1 stands for weight 1(least
46058c2ecf20Sopenharmony_ci   prioritised); 2 stands for weight 2; tc. */
46068c2ecf20Sopenharmony_ci#define TCM_REG_TQM_S_WEIGHT					 0x500cc
46078c2ecf20Sopenharmony_ci/* [RW 28] The CM header value for QM request (primary). */
46088c2ecf20Sopenharmony_ci#define TCM_REG_TQM_TCM_HDR_P					 0x50090
46098c2ecf20Sopenharmony_ci/* [RW 28] The CM header value for QM request (secondary). */
46108c2ecf20Sopenharmony_ci#define TCM_REG_TQM_TCM_HDR_S					 0x50094
46118c2ecf20Sopenharmony_ci/* [RW 1] QM - CM Interface enable. If 0 - the valid input is disregarded;
46128c2ecf20Sopenharmony_ci   acknowledge output is deasserted; all other signals are treated as usual;
46138c2ecf20Sopenharmony_ci   if 1 - normal activity. */
46148c2ecf20Sopenharmony_ci#define TCM_REG_TQM_TCM_IFEN					 0x50014
46158c2ecf20Sopenharmony_ci/* [RW 1] Input SDM Interface enable. If 0 - the valid input is disregarded;
46168c2ecf20Sopenharmony_ci   acknowledge output is deasserted; all other signals are treated as usual;
46178c2ecf20Sopenharmony_ci   if 1 - normal activity. */
46188c2ecf20Sopenharmony_ci#define TCM_REG_TSDM_IFEN					 0x50018
46198c2ecf20Sopenharmony_ci/* [RC 1] Message length mismatch (relative to last indication) at the SDM
46208c2ecf20Sopenharmony_ci   interface. */
46218c2ecf20Sopenharmony_ci#define TCM_REG_TSDM_LENGTH_MIS 				 0x50164
46228c2ecf20Sopenharmony_ci/* [RW 3] The weight of the SDM input in the WRR mechanism. 0 stands for
46238c2ecf20Sopenharmony_ci   weight 8 (the most prioritised); 1 stands for weight 1(least
46248c2ecf20Sopenharmony_ci   prioritised); 2 stands for weight 2; tc. */
46258c2ecf20Sopenharmony_ci#define TCM_REG_TSDM_WEIGHT					 0x500c4
46268c2ecf20Sopenharmony_ci/* [RW 1] Input usem Interface enable. If 0 - the valid input is
46278c2ecf20Sopenharmony_ci   disregarded; acknowledge output is deasserted; all other signals are
46288c2ecf20Sopenharmony_ci   treated as usual; if 1 - normal activity. */
46298c2ecf20Sopenharmony_ci#define TCM_REG_USEM_IFEN					 0x50028
46308c2ecf20Sopenharmony_ci/* [RC 1] Message length mismatch (relative to last indication) at the In#8
46318c2ecf20Sopenharmony_ci   interface. */
46328c2ecf20Sopenharmony_ci#define TCM_REG_USEM_LENGTH_MIS 				 0x50170
46338c2ecf20Sopenharmony_ci/* [RW 3] The weight of the input usem in the WRR mechanism. 0 stands for
46348c2ecf20Sopenharmony_ci   weight 8 (the most prioritised); 1 stands for weight 1(least
46358c2ecf20Sopenharmony_ci   prioritised); 2 stands for weight 2; tc. */
46368c2ecf20Sopenharmony_ci#define TCM_REG_USEM_WEIGHT					 0x500b8
46378c2ecf20Sopenharmony_ci/* [RW 21] Indirect access to the descriptor table of the XX protection
46388c2ecf20Sopenharmony_ci   mechanism. The fields are: [5:0] - length of the message; 15:6] - message
46398c2ecf20Sopenharmony_ci   pointer; 20:16] - next pointer. */
46408c2ecf20Sopenharmony_ci#define TCM_REG_XX_DESCR_TABLE					 0x50280
46418c2ecf20Sopenharmony_ci#define TCM_REG_XX_DESCR_TABLE_SIZE				 29
46428c2ecf20Sopenharmony_ci/* [R 6] Use to read the value of XX protection Free counter. */
46438c2ecf20Sopenharmony_ci#define TCM_REG_XX_FREE 					 0x50178
46448c2ecf20Sopenharmony_ci/* [RW 6] Initial value for the credit counter; responsible for fulfilling
46458c2ecf20Sopenharmony_ci   of the Input Stage XX protection buffer by the XX protection pending
46468c2ecf20Sopenharmony_ci   messages. Max credit available - 127.Write writes the initial credit
46478c2ecf20Sopenharmony_ci   value; read returns the current value of the credit counter. Must be
46488c2ecf20Sopenharmony_ci   initialized to 19 at start-up. */
46498c2ecf20Sopenharmony_ci#define TCM_REG_XX_INIT_CRD					 0x50220
46508c2ecf20Sopenharmony_ci/* [RW 6] Maximum link list size (messages locked) per connection in the XX
46518c2ecf20Sopenharmony_ci   protection. */
46528c2ecf20Sopenharmony_ci#define TCM_REG_XX_MAX_LL_SZ					 0x50044
46538c2ecf20Sopenharmony_ci/* [RW 6] The maximum number of pending messages; which may be stored in XX
46548c2ecf20Sopenharmony_ci   protection. ~tcm_registers_xx_free.xx_free is read on read. */
46558c2ecf20Sopenharmony_ci#define TCM_REG_XX_MSG_NUM					 0x50224
46568c2ecf20Sopenharmony_ci/* [RW 8] The Event ID; sent to the STORM in case of XX overflow. */
46578c2ecf20Sopenharmony_ci#define TCM_REG_XX_OVFL_EVNT_ID 				 0x50048
46588c2ecf20Sopenharmony_ci/* [RW 16] Indirect access to the XX table of the XX protection mechanism.
46598c2ecf20Sopenharmony_ci   The fields are:[4:0] - tail pointer; [10:5] - Link List size; 15:11] -
46608c2ecf20Sopenharmony_ci   header pointer. */
46618c2ecf20Sopenharmony_ci#define TCM_REG_XX_TABLE					 0x50240
46628c2ecf20Sopenharmony_ci/* [RW 4] Load value for cfc ac credit cnt. */
46638c2ecf20Sopenharmony_ci#define TM_REG_CFC_AC_CRDCNT_VAL				 0x164208
46648c2ecf20Sopenharmony_ci/* [RW 4] Load value for cfc cld credit cnt. */
46658c2ecf20Sopenharmony_ci#define TM_REG_CFC_CLD_CRDCNT_VAL				 0x164210
46668c2ecf20Sopenharmony_ci/* [RW 8] Client0 context region. */
46678c2ecf20Sopenharmony_ci#define TM_REG_CL0_CONT_REGION					 0x164030
46688c2ecf20Sopenharmony_ci/* [RW 8] Client1 context region. */
46698c2ecf20Sopenharmony_ci#define TM_REG_CL1_CONT_REGION					 0x164034
46708c2ecf20Sopenharmony_ci/* [RW 8] Client2 context region. */
46718c2ecf20Sopenharmony_ci#define TM_REG_CL2_CONT_REGION					 0x164038
46728c2ecf20Sopenharmony_ci/* [RW 2] Client in High priority client number. */
46738c2ecf20Sopenharmony_ci#define TM_REG_CLIN_PRIOR0_CLIENT				 0x164024
46748c2ecf20Sopenharmony_ci/* [RW 4] Load value for clout0 cred cnt. */
46758c2ecf20Sopenharmony_ci#define TM_REG_CLOUT_CRDCNT0_VAL				 0x164220
46768c2ecf20Sopenharmony_ci/* [RW 4] Load value for clout1 cred cnt. */
46778c2ecf20Sopenharmony_ci#define TM_REG_CLOUT_CRDCNT1_VAL				 0x164228
46788c2ecf20Sopenharmony_ci/* [RW 4] Load value for clout2 cred cnt. */
46798c2ecf20Sopenharmony_ci#define TM_REG_CLOUT_CRDCNT2_VAL				 0x164230
46808c2ecf20Sopenharmony_ci/* [RW 1] Enable client0 input. */
46818c2ecf20Sopenharmony_ci#define TM_REG_EN_CL0_INPUT					 0x164008
46828c2ecf20Sopenharmony_ci/* [RW 1] Enable client1 input. */
46838c2ecf20Sopenharmony_ci#define TM_REG_EN_CL1_INPUT					 0x16400c
46848c2ecf20Sopenharmony_ci/* [RW 1] Enable client2 input. */
46858c2ecf20Sopenharmony_ci#define TM_REG_EN_CL2_INPUT					 0x164010
46868c2ecf20Sopenharmony_ci#define TM_REG_EN_LINEAR0_TIMER 				 0x164014
46878c2ecf20Sopenharmony_ci/* [RW 1] Enable real time counter. */
46888c2ecf20Sopenharmony_ci#define TM_REG_EN_REAL_TIME_CNT 				 0x1640d8
46898c2ecf20Sopenharmony_ci/* [RW 1] Enable for Timers state machines. */
46908c2ecf20Sopenharmony_ci#define TM_REG_EN_TIMERS					 0x164000
46918c2ecf20Sopenharmony_ci/* [RW 4] Load value for expiration credit cnt. CFC max number of
46928c2ecf20Sopenharmony_ci   outstanding load requests for timers (expiration) context loading. */
46938c2ecf20Sopenharmony_ci#define TM_REG_EXP_CRDCNT_VAL					 0x164238
46948c2ecf20Sopenharmony_ci/* [RW 32] Linear0 logic address. */
46958c2ecf20Sopenharmony_ci#define TM_REG_LIN0_LOGIC_ADDR					 0x164240
46968c2ecf20Sopenharmony_ci/* [RW 18] Linear0 Max active cid (in banks of 32 entries). */
46978c2ecf20Sopenharmony_ci#define TM_REG_LIN0_MAX_ACTIVE_CID				 0x164048
46988c2ecf20Sopenharmony_ci/* [ST 16] Linear0 Number of scans counter. */
46998c2ecf20Sopenharmony_ci#define TM_REG_LIN0_NUM_SCANS					 0x1640a0
47008c2ecf20Sopenharmony_ci/* [WB 64] Linear0 phy address. */
47018c2ecf20Sopenharmony_ci#define TM_REG_LIN0_PHY_ADDR					 0x164270
47028c2ecf20Sopenharmony_ci/* [RW 1] Linear0 physical address valid. */
47038c2ecf20Sopenharmony_ci#define TM_REG_LIN0_PHY_ADDR_VALID				 0x164248
47048c2ecf20Sopenharmony_ci#define TM_REG_LIN0_SCAN_ON					 0x1640d0
47058c2ecf20Sopenharmony_ci/* [RW 24] Linear0 array scan timeout. */
47068c2ecf20Sopenharmony_ci#define TM_REG_LIN0_SCAN_TIME					 0x16403c
47078c2ecf20Sopenharmony_ci#define TM_REG_LIN0_VNIC_UC					 0x164128
47088c2ecf20Sopenharmony_ci/* [RW 32] Linear1 logic address. */
47098c2ecf20Sopenharmony_ci#define TM_REG_LIN1_LOGIC_ADDR					 0x164250
47108c2ecf20Sopenharmony_ci/* [WB 64] Linear1 phy address. */
47118c2ecf20Sopenharmony_ci#define TM_REG_LIN1_PHY_ADDR					 0x164280
47128c2ecf20Sopenharmony_ci/* [RW 1] Linear1 physical address valid. */
47138c2ecf20Sopenharmony_ci#define TM_REG_LIN1_PHY_ADDR_VALID				 0x164258
47148c2ecf20Sopenharmony_ci/* [RW 6] Linear timer set_clear fifo threshold. */
47158c2ecf20Sopenharmony_ci#define TM_REG_LIN_SETCLR_FIFO_ALFULL_THR			 0x164070
47168c2ecf20Sopenharmony_ci/* [RW 2] Load value for pci arbiter credit cnt. */
47178c2ecf20Sopenharmony_ci#define TM_REG_PCIARB_CRDCNT_VAL				 0x164260
47188c2ecf20Sopenharmony_ci/* [RW 20] The amount of hardware cycles for each timer tick. */
47198c2ecf20Sopenharmony_ci#define TM_REG_TIMER_TICK_SIZE					 0x16401c
47208c2ecf20Sopenharmony_ci/* [RW 8] Timers Context region. */
47218c2ecf20Sopenharmony_ci#define TM_REG_TM_CONTEXT_REGION				 0x164044
47228c2ecf20Sopenharmony_ci/* [RW 1] Interrupt mask register #0 read/write */
47238c2ecf20Sopenharmony_ci#define TM_REG_TM_INT_MASK					 0x1640fc
47248c2ecf20Sopenharmony_ci/* [R 1] Interrupt register #0 read */
47258c2ecf20Sopenharmony_ci#define TM_REG_TM_INT_STS					 0x1640f0
47268c2ecf20Sopenharmony_ci/* [RW 7] Parity mask register #0 read/write */
47278c2ecf20Sopenharmony_ci#define TM_REG_TM_PRTY_MASK					 0x16410c
47288c2ecf20Sopenharmony_ci/* [R 7] Parity register #0 read */
47298c2ecf20Sopenharmony_ci#define TM_REG_TM_PRTY_STS					 0x164100
47308c2ecf20Sopenharmony_ci/* [RC 7] Parity register #0 read clear */
47318c2ecf20Sopenharmony_ci#define TM_REG_TM_PRTY_STS_CLR					 0x164104
47328c2ecf20Sopenharmony_ci/* [RW 8] The event id for aggregated interrupt 0 */
47338c2ecf20Sopenharmony_ci#define TSDM_REG_AGG_INT_EVENT_0				 0x42038
47348c2ecf20Sopenharmony_ci#define TSDM_REG_AGG_INT_EVENT_1				 0x4203c
47358c2ecf20Sopenharmony_ci#define TSDM_REG_AGG_INT_EVENT_2				 0x42040
47368c2ecf20Sopenharmony_ci#define TSDM_REG_AGG_INT_EVENT_3				 0x42044
47378c2ecf20Sopenharmony_ci#define TSDM_REG_AGG_INT_EVENT_4				 0x42048
47388c2ecf20Sopenharmony_ci/* [RW 1] The T bit for aggregated interrupt 0 */
47398c2ecf20Sopenharmony_ci#define TSDM_REG_AGG_INT_T_0					 0x420b8
47408c2ecf20Sopenharmony_ci#define TSDM_REG_AGG_INT_T_1					 0x420bc
47418c2ecf20Sopenharmony_ci/* [RW 13] The start address in the internal RAM for the cfc_rsp lcid */
47428c2ecf20Sopenharmony_ci#define TSDM_REG_CFC_RSP_START_ADDR				 0x42008
47438c2ecf20Sopenharmony_ci/* [RW 16] The maximum value of the completion counter #0 */
47448c2ecf20Sopenharmony_ci#define TSDM_REG_CMP_COUNTER_MAX0				 0x4201c
47458c2ecf20Sopenharmony_ci/* [RW 16] The maximum value of the completion counter #1 */
47468c2ecf20Sopenharmony_ci#define TSDM_REG_CMP_COUNTER_MAX1				 0x42020
47478c2ecf20Sopenharmony_ci/* [RW 16] The maximum value of the completion counter #2 */
47488c2ecf20Sopenharmony_ci#define TSDM_REG_CMP_COUNTER_MAX2				 0x42024
47498c2ecf20Sopenharmony_ci/* [RW 16] The maximum value of the completion counter #3 */
47508c2ecf20Sopenharmony_ci#define TSDM_REG_CMP_COUNTER_MAX3				 0x42028
47518c2ecf20Sopenharmony_ci/* [RW 13] The start address in the internal RAM for the completion
47528c2ecf20Sopenharmony_ci   counters. */
47538c2ecf20Sopenharmony_ci#define TSDM_REG_CMP_COUNTER_START_ADDR 			 0x4200c
47548c2ecf20Sopenharmony_ci#define TSDM_REG_ENABLE_IN1					 0x42238
47558c2ecf20Sopenharmony_ci#define TSDM_REG_ENABLE_IN2					 0x4223c
47568c2ecf20Sopenharmony_ci#define TSDM_REG_ENABLE_OUT1					 0x42240
47578c2ecf20Sopenharmony_ci#define TSDM_REG_ENABLE_OUT2					 0x42244
47588c2ecf20Sopenharmony_ci/* [RW 4] The initial number of messages that can be sent to the pxp control
47598c2ecf20Sopenharmony_ci   interface without receiving any ACK. */
47608c2ecf20Sopenharmony_ci#define TSDM_REG_INIT_CREDIT_PXP_CTRL				 0x424bc
47618c2ecf20Sopenharmony_ci/* [ST 32] The number of ACK after placement messages received */
47628c2ecf20Sopenharmony_ci#define TSDM_REG_NUM_OF_ACK_AFTER_PLACE 			 0x4227c
47638c2ecf20Sopenharmony_ci/* [ST 32] The number of packet end messages received from the parser */
47648c2ecf20Sopenharmony_ci#define TSDM_REG_NUM_OF_PKT_END_MSG				 0x42274
47658c2ecf20Sopenharmony_ci/* [ST 32] The number of requests received from the pxp async if */
47668c2ecf20Sopenharmony_ci#define TSDM_REG_NUM_OF_PXP_ASYNC_REQ				 0x42278
47678c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 0 */
47688c2ecf20Sopenharmony_ci#define TSDM_REG_NUM_OF_Q0_CMD					 0x42248
47698c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 10 */
47708c2ecf20Sopenharmony_ci#define TSDM_REG_NUM_OF_Q10_CMD 				 0x4226c
47718c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 11 */
47728c2ecf20Sopenharmony_ci#define TSDM_REG_NUM_OF_Q11_CMD 				 0x42270
47738c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 1 */
47748c2ecf20Sopenharmony_ci#define TSDM_REG_NUM_OF_Q1_CMD					 0x4224c
47758c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 3 */
47768c2ecf20Sopenharmony_ci#define TSDM_REG_NUM_OF_Q3_CMD					 0x42250
47778c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 4 */
47788c2ecf20Sopenharmony_ci#define TSDM_REG_NUM_OF_Q4_CMD					 0x42254
47798c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 5 */
47808c2ecf20Sopenharmony_ci#define TSDM_REG_NUM_OF_Q5_CMD					 0x42258
47818c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 6 */
47828c2ecf20Sopenharmony_ci#define TSDM_REG_NUM_OF_Q6_CMD					 0x4225c
47838c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 7 */
47848c2ecf20Sopenharmony_ci#define TSDM_REG_NUM_OF_Q7_CMD					 0x42260
47858c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 8 */
47868c2ecf20Sopenharmony_ci#define TSDM_REG_NUM_OF_Q8_CMD					 0x42264
47878c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 9 */
47888c2ecf20Sopenharmony_ci#define TSDM_REG_NUM_OF_Q9_CMD					 0x42268
47898c2ecf20Sopenharmony_ci/* [RW 13] The start address in the internal RAM for the packet end message */
47908c2ecf20Sopenharmony_ci#define TSDM_REG_PCK_END_MSG_START_ADDR 			 0x42014
47918c2ecf20Sopenharmony_ci/* [RW 13] The start address in the internal RAM for queue counters */
47928c2ecf20Sopenharmony_ci#define TSDM_REG_Q_COUNTER_START_ADDR				 0x42010
47938c2ecf20Sopenharmony_ci/* [R 1] pxp_ctrl rd_data fifo empty in sdm_dma_rsp block */
47948c2ecf20Sopenharmony_ci#define TSDM_REG_RSP_PXP_CTRL_RDATA_EMPTY			 0x42548
47958c2ecf20Sopenharmony_ci/* [R 1] parser fifo empty in sdm_sync block */
47968c2ecf20Sopenharmony_ci#define TSDM_REG_SYNC_PARSER_EMPTY				 0x42550
47978c2ecf20Sopenharmony_ci/* [R 1] parser serial fifo empty in sdm_sync block */
47988c2ecf20Sopenharmony_ci#define TSDM_REG_SYNC_SYNC_EMPTY				 0x42558
47998c2ecf20Sopenharmony_ci/* [RW 32] Tick for timer counter. Applicable only when
48008c2ecf20Sopenharmony_ci   ~tsdm_registers_timer_tick_enable.timer_tick_enable =1 */
48018c2ecf20Sopenharmony_ci#define TSDM_REG_TIMER_TICK					 0x42000
48028c2ecf20Sopenharmony_ci/* [RW 32] Interrupt mask register #0 read/write */
48038c2ecf20Sopenharmony_ci#define TSDM_REG_TSDM_INT_MASK_0				 0x4229c
48048c2ecf20Sopenharmony_ci#define TSDM_REG_TSDM_INT_MASK_1				 0x422ac
48058c2ecf20Sopenharmony_ci/* [R 32] Interrupt register #0 read */
48068c2ecf20Sopenharmony_ci#define TSDM_REG_TSDM_INT_STS_0 				 0x42290
48078c2ecf20Sopenharmony_ci#define TSDM_REG_TSDM_INT_STS_1 				 0x422a0
48088c2ecf20Sopenharmony_ci/* [RW 11] Parity mask register #0 read/write */
48098c2ecf20Sopenharmony_ci#define TSDM_REG_TSDM_PRTY_MASK 				 0x422bc
48108c2ecf20Sopenharmony_ci/* [R 11] Parity register #0 read */
48118c2ecf20Sopenharmony_ci#define TSDM_REG_TSDM_PRTY_STS					 0x422b0
48128c2ecf20Sopenharmony_ci/* [RC 11] Parity register #0 read clear */
48138c2ecf20Sopenharmony_ci#define TSDM_REG_TSDM_PRTY_STS_CLR				 0x422b4
48148c2ecf20Sopenharmony_ci/* [RW 5] The number of time_slots in the arbitration cycle */
48158c2ecf20Sopenharmony_ci#define TSEM_REG_ARB_CYCLE_SIZE 				 0x180034
48168c2ecf20Sopenharmony_ci/* [RW 3] The source that is associated with arbitration element 0. Source
48178c2ecf20Sopenharmony_ci   decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
48188c2ecf20Sopenharmony_ci   sleeping thread with priority 1; 4- sleeping thread with priority 2 */
48198c2ecf20Sopenharmony_ci#define TSEM_REG_ARB_ELEMENT0					 0x180020
48208c2ecf20Sopenharmony_ci/* [RW 3] The source that is associated with arbitration element 1. Source
48218c2ecf20Sopenharmony_ci   decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
48228c2ecf20Sopenharmony_ci   sleeping thread with priority 1; 4- sleeping thread with priority 2.
48238c2ecf20Sopenharmony_ci   Could not be equal to register ~tsem_registers_arb_element0.arb_element0 */
48248c2ecf20Sopenharmony_ci#define TSEM_REG_ARB_ELEMENT1					 0x180024
48258c2ecf20Sopenharmony_ci/* [RW 3] The source that is associated with arbitration element 2. Source
48268c2ecf20Sopenharmony_ci   decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
48278c2ecf20Sopenharmony_ci   sleeping thread with priority 1; 4- sleeping thread with priority 2.
48288c2ecf20Sopenharmony_ci   Could not be equal to register ~tsem_registers_arb_element0.arb_element0
48298c2ecf20Sopenharmony_ci   and ~tsem_registers_arb_element1.arb_element1 */
48308c2ecf20Sopenharmony_ci#define TSEM_REG_ARB_ELEMENT2					 0x180028
48318c2ecf20Sopenharmony_ci/* [RW 3] The source that is associated with arbitration element 3. Source
48328c2ecf20Sopenharmony_ci   decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
48338c2ecf20Sopenharmony_ci   sleeping thread with priority 1; 4- sleeping thread with priority 2.Could
48348c2ecf20Sopenharmony_ci   not be equal to register ~tsem_registers_arb_element0.arb_element0 and
48358c2ecf20Sopenharmony_ci   ~tsem_registers_arb_element1.arb_element1 and
48368c2ecf20Sopenharmony_ci   ~tsem_registers_arb_element2.arb_element2 */
48378c2ecf20Sopenharmony_ci#define TSEM_REG_ARB_ELEMENT3					 0x18002c
48388c2ecf20Sopenharmony_ci/* [RW 3] The source that is associated with arbitration element 4. Source
48398c2ecf20Sopenharmony_ci   decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
48408c2ecf20Sopenharmony_ci   sleeping thread with priority 1; 4- sleeping thread with priority 2.
48418c2ecf20Sopenharmony_ci   Could not be equal to register ~tsem_registers_arb_element0.arb_element0
48428c2ecf20Sopenharmony_ci   and ~tsem_registers_arb_element1.arb_element1 and
48438c2ecf20Sopenharmony_ci   ~tsem_registers_arb_element2.arb_element2 and
48448c2ecf20Sopenharmony_ci   ~tsem_registers_arb_element3.arb_element3 */
48458c2ecf20Sopenharmony_ci#define TSEM_REG_ARB_ELEMENT4					 0x180030
48468c2ecf20Sopenharmony_ci#define TSEM_REG_ENABLE_IN					 0x1800a4
48478c2ecf20Sopenharmony_ci#define TSEM_REG_ENABLE_OUT					 0x1800a8
48488c2ecf20Sopenharmony_ci/* [RW 32] This address space contains all registers and memories that are
48498c2ecf20Sopenharmony_ci   placed in SEM_FAST block. The SEM_FAST registers are described in
48508c2ecf20Sopenharmony_ci   appendix B. In order to access the sem_fast registers the base address
48518c2ecf20Sopenharmony_ci   ~fast_memory.fast_memory should be added to eachsem_fast register offset. */
48528c2ecf20Sopenharmony_ci#define TSEM_REG_FAST_MEMORY					 0x1a0000
48538c2ecf20Sopenharmony_ci/* [RW 1] Disables input messages from FIC0 May be updated during run_time
48548c2ecf20Sopenharmony_ci   by the microcode */
48558c2ecf20Sopenharmony_ci#define TSEM_REG_FIC0_DISABLE					 0x180224
48568c2ecf20Sopenharmony_ci/* [RW 1] Disables input messages from FIC1 May be updated during run_time
48578c2ecf20Sopenharmony_ci   by the microcode */
48588c2ecf20Sopenharmony_ci#define TSEM_REG_FIC1_DISABLE					 0x180234
48598c2ecf20Sopenharmony_ci/* [RW 15] Interrupt table Read and write access to it is not possible in
48608c2ecf20Sopenharmony_ci   the middle of the work */
48618c2ecf20Sopenharmony_ci#define TSEM_REG_INT_TABLE					 0x180400
48628c2ecf20Sopenharmony_ci/* [ST 24] Statistics register. The number of messages that entered through
48638c2ecf20Sopenharmony_ci   FIC0 */
48648c2ecf20Sopenharmony_ci#define TSEM_REG_MSG_NUM_FIC0					 0x180000
48658c2ecf20Sopenharmony_ci/* [ST 24] Statistics register. The number of messages that entered through
48668c2ecf20Sopenharmony_ci   FIC1 */
48678c2ecf20Sopenharmony_ci#define TSEM_REG_MSG_NUM_FIC1					 0x180004
48688c2ecf20Sopenharmony_ci/* [ST 24] Statistics register. The number of messages that were sent to
48698c2ecf20Sopenharmony_ci   FOC0 */
48708c2ecf20Sopenharmony_ci#define TSEM_REG_MSG_NUM_FOC0					 0x180008
48718c2ecf20Sopenharmony_ci/* [ST 24] Statistics register. The number of messages that were sent to
48728c2ecf20Sopenharmony_ci   FOC1 */
48738c2ecf20Sopenharmony_ci#define TSEM_REG_MSG_NUM_FOC1					 0x18000c
48748c2ecf20Sopenharmony_ci/* [ST 24] Statistics register. The number of messages that were sent to
48758c2ecf20Sopenharmony_ci   FOC2 */
48768c2ecf20Sopenharmony_ci#define TSEM_REG_MSG_NUM_FOC2					 0x180010
48778c2ecf20Sopenharmony_ci/* [ST 24] Statistics register. The number of messages that were sent to
48788c2ecf20Sopenharmony_ci   FOC3 */
48798c2ecf20Sopenharmony_ci#define TSEM_REG_MSG_NUM_FOC3					 0x180014
48808c2ecf20Sopenharmony_ci/* [RW 1] Disables input messages from the passive buffer May be updated
48818c2ecf20Sopenharmony_ci   during run_time by the microcode */
48828c2ecf20Sopenharmony_ci#define TSEM_REG_PAS_DISABLE					 0x18024c
48838c2ecf20Sopenharmony_ci/* [WB 128] Debug only. Passive buffer memory */
48848c2ecf20Sopenharmony_ci#define TSEM_REG_PASSIVE_BUFFER 				 0x181000
48858c2ecf20Sopenharmony_ci/* [WB 46] pram memory. B45 is parity; b[44:0] - data. */
48868c2ecf20Sopenharmony_ci#define TSEM_REG_PRAM						 0x1c0000
48878c2ecf20Sopenharmony_ci/* [R 8] Valid sleeping threads indication have bit per thread */
48888c2ecf20Sopenharmony_ci#define TSEM_REG_SLEEP_THREADS_VALID				 0x18026c
48898c2ecf20Sopenharmony_ci/* [R 1] EXT_STORE FIFO is empty in sem_slow_ls_ext */
48908c2ecf20Sopenharmony_ci#define TSEM_REG_SLOW_EXT_STORE_EMPTY				 0x1802a0
48918c2ecf20Sopenharmony_ci/* [RW 8] List of free threads . There is a bit per thread. */
48928c2ecf20Sopenharmony_ci#define TSEM_REG_THREADS_LIST					 0x1802e4
48938c2ecf20Sopenharmony_ci/* [RC 32] Parity register #0 read clear */
48948c2ecf20Sopenharmony_ci#define TSEM_REG_TSEM_PRTY_STS_CLR_0				 0x180118
48958c2ecf20Sopenharmony_ci#define TSEM_REG_TSEM_PRTY_STS_CLR_1				 0x180128
48968c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 0 */
48978c2ecf20Sopenharmony_ci#define TSEM_REG_TS_0_AS					 0x180038
48988c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 10 */
48998c2ecf20Sopenharmony_ci#define TSEM_REG_TS_10_AS					 0x180060
49008c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 11 */
49018c2ecf20Sopenharmony_ci#define TSEM_REG_TS_11_AS					 0x180064
49028c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 12 */
49038c2ecf20Sopenharmony_ci#define TSEM_REG_TS_12_AS					 0x180068
49048c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 13 */
49058c2ecf20Sopenharmony_ci#define TSEM_REG_TS_13_AS					 0x18006c
49068c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 14 */
49078c2ecf20Sopenharmony_ci#define TSEM_REG_TS_14_AS					 0x180070
49088c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 15 */
49098c2ecf20Sopenharmony_ci#define TSEM_REG_TS_15_AS					 0x180074
49108c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 16 */
49118c2ecf20Sopenharmony_ci#define TSEM_REG_TS_16_AS					 0x180078
49128c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 17 */
49138c2ecf20Sopenharmony_ci#define TSEM_REG_TS_17_AS					 0x18007c
49148c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 18 */
49158c2ecf20Sopenharmony_ci#define TSEM_REG_TS_18_AS					 0x180080
49168c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 1 */
49178c2ecf20Sopenharmony_ci#define TSEM_REG_TS_1_AS					 0x18003c
49188c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 2 */
49198c2ecf20Sopenharmony_ci#define TSEM_REG_TS_2_AS					 0x180040
49208c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 3 */
49218c2ecf20Sopenharmony_ci#define TSEM_REG_TS_3_AS					 0x180044
49228c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 4 */
49238c2ecf20Sopenharmony_ci#define TSEM_REG_TS_4_AS					 0x180048
49248c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 5 */
49258c2ecf20Sopenharmony_ci#define TSEM_REG_TS_5_AS					 0x18004c
49268c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 6 */
49278c2ecf20Sopenharmony_ci#define TSEM_REG_TS_6_AS					 0x180050
49288c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 7 */
49298c2ecf20Sopenharmony_ci#define TSEM_REG_TS_7_AS					 0x180054
49308c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 8 */
49318c2ecf20Sopenharmony_ci#define TSEM_REG_TS_8_AS					 0x180058
49328c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 9 */
49338c2ecf20Sopenharmony_ci#define TSEM_REG_TS_9_AS					 0x18005c
49348c2ecf20Sopenharmony_ci/* [RW 32] Interrupt mask register #0 read/write */
49358c2ecf20Sopenharmony_ci#define TSEM_REG_TSEM_INT_MASK_0				 0x180100
49368c2ecf20Sopenharmony_ci#define TSEM_REG_TSEM_INT_MASK_1				 0x180110
49378c2ecf20Sopenharmony_ci/* [R 32] Interrupt register #0 read */
49388c2ecf20Sopenharmony_ci#define TSEM_REG_TSEM_INT_STS_0 				 0x1800f4
49398c2ecf20Sopenharmony_ci#define TSEM_REG_TSEM_INT_STS_1 				 0x180104
49408c2ecf20Sopenharmony_ci/* [RW 32] Parity mask register #0 read/write */
49418c2ecf20Sopenharmony_ci#define TSEM_REG_TSEM_PRTY_MASK_0				 0x180120
49428c2ecf20Sopenharmony_ci#define TSEM_REG_TSEM_PRTY_MASK_1				 0x180130
49438c2ecf20Sopenharmony_ci/* [R 32] Parity register #0 read */
49448c2ecf20Sopenharmony_ci#define TSEM_REG_TSEM_PRTY_STS_0				 0x180114
49458c2ecf20Sopenharmony_ci#define TSEM_REG_TSEM_PRTY_STS_1				 0x180124
49468c2ecf20Sopenharmony_ci/* [W 7] VF or PF ID for reset error bit. Values 0-63 reset error bit for 64
49478c2ecf20Sopenharmony_ci * VF; values 64-67 reset error for 4 PF; values 68-127 are not valid. */
49488c2ecf20Sopenharmony_ci#define TSEM_REG_VFPF_ERR_NUM					 0x180380
49498c2ecf20Sopenharmony_ci/* [RW 32] Indirect access to AG context with 32-bits granularity. The bits
49508c2ecf20Sopenharmony_ci * [10:8] of the address should be the offset within the accessed LCID
49518c2ecf20Sopenharmony_ci * context; the bits [7:0] are the accessed LCID.Example: to write to REG10
49528c2ecf20Sopenharmony_ci * LCID100. The RBC address should be 12'ha64. */
49538c2ecf20Sopenharmony_ci#define UCM_REG_AG_CTX						 0xe2000
49548c2ecf20Sopenharmony_ci/* [R 5] Used to read the XX protection CAM occupancy counter. */
49558c2ecf20Sopenharmony_ci#define UCM_REG_CAM_OCCUP					 0xe0170
49568c2ecf20Sopenharmony_ci/* [RW 1] CDU AG read Interface enable. If 0 - the request input is
49578c2ecf20Sopenharmony_ci   disregarded; valid output is deasserted; all other signals are treated as
49588c2ecf20Sopenharmony_ci   usual; if 1 - normal activity. */
49598c2ecf20Sopenharmony_ci#define UCM_REG_CDU_AG_RD_IFEN					 0xe0038
49608c2ecf20Sopenharmony_ci/* [RW 1] CDU AG write Interface enable. If 0 - the request and valid input
49618c2ecf20Sopenharmony_ci   are disregarded; all other signals are treated as usual; if 1 - normal
49628c2ecf20Sopenharmony_ci   activity. */
49638c2ecf20Sopenharmony_ci#define UCM_REG_CDU_AG_WR_IFEN					 0xe0034
49648c2ecf20Sopenharmony_ci/* [RW 1] CDU STORM read Interface enable. If 0 - the request input is
49658c2ecf20Sopenharmony_ci   disregarded; valid output is deasserted; all other signals are treated as
49668c2ecf20Sopenharmony_ci   usual; if 1 - normal activity. */
49678c2ecf20Sopenharmony_ci#define UCM_REG_CDU_SM_RD_IFEN					 0xe0040
49688c2ecf20Sopenharmony_ci/* [RW 1] CDU STORM write Interface enable. If 0 - the request and valid
49698c2ecf20Sopenharmony_ci   input is disregarded; all other signals are treated as usual; if 1 -
49708c2ecf20Sopenharmony_ci   normal activity. */
49718c2ecf20Sopenharmony_ci#define UCM_REG_CDU_SM_WR_IFEN					 0xe003c
49728c2ecf20Sopenharmony_ci/* [RW 4] CFC output initial credit. Max credit available - 15.Write writes
49738c2ecf20Sopenharmony_ci   the initial credit value; read returns the current value of the credit
49748c2ecf20Sopenharmony_ci   counter. Must be initialized to 1 at start-up. */
49758c2ecf20Sopenharmony_ci#define UCM_REG_CFC_INIT_CRD					 0xe0204
49768c2ecf20Sopenharmony_ci/* [RW 3] The weight of the CP input in the WRR mechanism. 0 stands for
49778c2ecf20Sopenharmony_ci   weight 8 (the most prioritised); 1 stands for weight 1(least
49788c2ecf20Sopenharmony_ci   prioritised); 2 stands for weight 2; tc. */
49798c2ecf20Sopenharmony_ci#define UCM_REG_CP_WEIGHT					 0xe00c4
49808c2ecf20Sopenharmony_ci/* [RW 1] Input csem Interface enable. If 0 - the valid input is
49818c2ecf20Sopenharmony_ci   disregarded; acknowledge output is deasserted; all other signals are
49828c2ecf20Sopenharmony_ci   treated as usual; if 1 - normal activity. */
49838c2ecf20Sopenharmony_ci#define UCM_REG_CSEM_IFEN					 0xe0028
49848c2ecf20Sopenharmony_ci/* [RC 1] Set when the message length mismatch (relative to last indication)
49858c2ecf20Sopenharmony_ci   at the csem interface is detected. */
49868c2ecf20Sopenharmony_ci#define UCM_REG_CSEM_LENGTH_MIS 				 0xe0160
49878c2ecf20Sopenharmony_ci/* [RW 3] The weight of the input csem in the WRR mechanism. 0 stands for
49888c2ecf20Sopenharmony_ci   weight 8 (the most prioritised); 1 stands for weight 1(least
49898c2ecf20Sopenharmony_ci   prioritised); 2 stands for weight 2; tc. */
49908c2ecf20Sopenharmony_ci#define UCM_REG_CSEM_WEIGHT					 0xe00b8
49918c2ecf20Sopenharmony_ci/* [RW 1] Input dorq Interface enable. If 0 - the valid input is
49928c2ecf20Sopenharmony_ci   disregarded; acknowledge output is deasserted; all other signals are
49938c2ecf20Sopenharmony_ci   treated as usual; if 1 - normal activity. */
49948c2ecf20Sopenharmony_ci#define UCM_REG_DORQ_IFEN					 0xe0030
49958c2ecf20Sopenharmony_ci/* [RC 1] Set when the message length mismatch (relative to last indication)
49968c2ecf20Sopenharmony_ci   at the dorq interface is detected. */
49978c2ecf20Sopenharmony_ci#define UCM_REG_DORQ_LENGTH_MIS 				 0xe0168
49988c2ecf20Sopenharmony_ci/* [RW 3] The weight of the input dorq in the WRR mechanism. 0 stands for
49998c2ecf20Sopenharmony_ci   weight 8 (the most prioritised); 1 stands for weight 1(least
50008c2ecf20Sopenharmony_ci   prioritised); 2 stands for weight 2; tc. */
50018c2ecf20Sopenharmony_ci#define UCM_REG_DORQ_WEIGHT					 0xe00c0
50028c2ecf20Sopenharmony_ci/* [RW 8] The Event ID in case ErrorFlg input message bit is set. */
50038c2ecf20Sopenharmony_ci#define UCM_REG_ERR_EVNT_ID					 0xe00a4
50048c2ecf20Sopenharmony_ci/* [RW 28] The CM erroneous header for QM and Timers formatting. */
50058c2ecf20Sopenharmony_ci#define UCM_REG_ERR_UCM_HDR					 0xe00a0
50068c2ecf20Sopenharmony_ci/* [RW 8] The Event ID for Timers expiration. */
50078c2ecf20Sopenharmony_ci#define UCM_REG_EXPR_EVNT_ID					 0xe00a8
50088c2ecf20Sopenharmony_ci/* [RW 8] FIC0 output initial credit. Max credit available - 255.Write
50098c2ecf20Sopenharmony_ci   writes the initial credit value; read returns the current value of the
50108c2ecf20Sopenharmony_ci   credit counter. Must be initialized to 64 at start-up. */
50118c2ecf20Sopenharmony_ci#define UCM_REG_FIC0_INIT_CRD					 0xe020c
50128c2ecf20Sopenharmony_ci/* [RW 8] FIC1 output initial credit. Max credit available - 255.Write
50138c2ecf20Sopenharmony_ci   writes the initial credit value; read returns the current value of the
50148c2ecf20Sopenharmony_ci   credit counter. Must be initialized to 64 at start-up. */
50158c2ecf20Sopenharmony_ci#define UCM_REG_FIC1_INIT_CRD					 0xe0210
50168c2ecf20Sopenharmony_ci/* [RW 1] Arbitration between Input Arbiter groups: 0 - fair Round-Robin; 1
50178c2ecf20Sopenharmony_ci   - strict priority defined by ~ucm_registers_gr_ag_pr.gr_ag_pr;
50188c2ecf20Sopenharmony_ci   ~ucm_registers_gr_ld0_pr.gr_ld0_pr and
50198c2ecf20Sopenharmony_ci   ~ucm_registers_gr_ld1_pr.gr_ld1_pr. */
50208c2ecf20Sopenharmony_ci#define UCM_REG_GR_ARB_TYPE					 0xe0144
50218c2ecf20Sopenharmony_ci/* [RW 2] Load (FIC0) channel group priority. The lowest priority is 0; the
50228c2ecf20Sopenharmony_ci   highest priority is 3. It is supposed that the Store channel group is
50238c2ecf20Sopenharmony_ci   complement to the others. */
50248c2ecf20Sopenharmony_ci#define UCM_REG_GR_LD0_PR					 0xe014c
50258c2ecf20Sopenharmony_ci/* [RW 2] Load (FIC1) channel group priority. The lowest priority is 0; the
50268c2ecf20Sopenharmony_ci   highest priority is 3. It is supposed that the Store channel group is
50278c2ecf20Sopenharmony_ci   complement to the others. */
50288c2ecf20Sopenharmony_ci#define UCM_REG_GR_LD1_PR					 0xe0150
50298c2ecf20Sopenharmony_ci/* [RW 2] The queue index for invalidate counter flag decision. */
50308c2ecf20Sopenharmony_ci#define UCM_REG_INV_CFLG_Q					 0xe00e4
50318c2ecf20Sopenharmony_ci/* [RW 5] The number of double REG-pairs; loaded from the STORM context and
50328c2ecf20Sopenharmony_ci   sent to STORM; for a specific connection type. the double REG-pairs are
50338c2ecf20Sopenharmony_ci   used in order to align to STORM context row size of 128 bits. The offset
50348c2ecf20Sopenharmony_ci   of these data in the STORM context is always 0. Index _i stands for the
50358c2ecf20Sopenharmony_ci   connection type (one of 16). */
50368c2ecf20Sopenharmony_ci#define UCM_REG_N_SM_CTX_LD_0					 0xe0054
50378c2ecf20Sopenharmony_ci#define UCM_REG_N_SM_CTX_LD_1					 0xe0058
50388c2ecf20Sopenharmony_ci#define UCM_REG_N_SM_CTX_LD_2					 0xe005c
50398c2ecf20Sopenharmony_ci#define UCM_REG_N_SM_CTX_LD_3					 0xe0060
50408c2ecf20Sopenharmony_ci#define UCM_REG_N_SM_CTX_LD_4					 0xe0064
50418c2ecf20Sopenharmony_ci#define UCM_REG_N_SM_CTX_LD_5					 0xe0068
50428c2ecf20Sopenharmony_ci#define UCM_REG_PHYS_QNUM0_0					 0xe0110
50438c2ecf20Sopenharmony_ci#define UCM_REG_PHYS_QNUM0_1					 0xe0114
50448c2ecf20Sopenharmony_ci#define UCM_REG_PHYS_QNUM1_0					 0xe0118
50458c2ecf20Sopenharmony_ci#define UCM_REG_PHYS_QNUM1_1					 0xe011c
50468c2ecf20Sopenharmony_ci#define UCM_REG_PHYS_QNUM2_0					 0xe0120
50478c2ecf20Sopenharmony_ci#define UCM_REG_PHYS_QNUM2_1					 0xe0124
50488c2ecf20Sopenharmony_ci#define UCM_REG_PHYS_QNUM3_0					 0xe0128
50498c2ecf20Sopenharmony_ci#define UCM_REG_PHYS_QNUM3_1					 0xe012c
50508c2ecf20Sopenharmony_ci/* [RW 8] The Event ID for Timers formatting in case of stop done. */
50518c2ecf20Sopenharmony_ci#define UCM_REG_STOP_EVNT_ID					 0xe00ac
50528c2ecf20Sopenharmony_ci/* [RC 1] Set when the message length mismatch (relative to last indication)
50538c2ecf20Sopenharmony_ci   at the STORM interface is detected. */
50548c2ecf20Sopenharmony_ci#define UCM_REG_STORM_LENGTH_MIS				 0xe0154
50558c2ecf20Sopenharmony_ci/* [RW 1] STORM - CM Interface enable. If 0 - the valid input is
50568c2ecf20Sopenharmony_ci   disregarded; acknowledge output is deasserted; all other signals are
50578c2ecf20Sopenharmony_ci   treated as usual; if 1 - normal activity. */
50588c2ecf20Sopenharmony_ci#define UCM_REG_STORM_UCM_IFEN					 0xe0010
50598c2ecf20Sopenharmony_ci/* [RW 3] The weight of the STORM input in the WRR mechanism. 0 stands for
50608c2ecf20Sopenharmony_ci   weight 8 (the most prioritised); 1 stands for weight 1(least
50618c2ecf20Sopenharmony_ci   prioritised); 2 stands for weight 2; tc. */
50628c2ecf20Sopenharmony_ci#define UCM_REG_STORM_WEIGHT					 0xe00b0
50638c2ecf20Sopenharmony_ci/* [RW 4] Timers output initial credit. Max credit available - 15.Write
50648c2ecf20Sopenharmony_ci   writes the initial credit value; read returns the current value of the
50658c2ecf20Sopenharmony_ci   credit counter. Must be initialized to 4 at start-up. */
50668c2ecf20Sopenharmony_ci#define UCM_REG_TM_INIT_CRD					 0xe021c
50678c2ecf20Sopenharmony_ci/* [RW 28] The CM header for Timers expiration command. */
50688c2ecf20Sopenharmony_ci#define UCM_REG_TM_UCM_HDR					 0xe009c
50698c2ecf20Sopenharmony_ci/* [RW 1] Timers - CM Interface enable. If 0 - the valid input is
50708c2ecf20Sopenharmony_ci   disregarded; acknowledge output is deasserted; all other signals are
50718c2ecf20Sopenharmony_ci   treated as usual; if 1 - normal activity. */
50728c2ecf20Sopenharmony_ci#define UCM_REG_TM_UCM_IFEN					 0xe001c
50738c2ecf20Sopenharmony_ci/* [RW 3] The weight of the Timers input in the WRR mechanism. 0 stands for
50748c2ecf20Sopenharmony_ci   weight 8 (the most prioritised); 1 stands for weight 1(least
50758c2ecf20Sopenharmony_ci   prioritised); 2 stands for weight 2; tc. */
50768c2ecf20Sopenharmony_ci#define UCM_REG_TM_WEIGHT					 0xe00d4
50778c2ecf20Sopenharmony_ci/* [RW 1] Input tsem Interface enable. If 0 - the valid input is
50788c2ecf20Sopenharmony_ci   disregarded; acknowledge output is deasserted; all other signals are
50798c2ecf20Sopenharmony_ci   treated as usual; if 1 - normal activity. */
50808c2ecf20Sopenharmony_ci#define UCM_REG_TSEM_IFEN					 0xe0024
50818c2ecf20Sopenharmony_ci/* [RC 1] Set when the message length mismatch (relative to last indication)
50828c2ecf20Sopenharmony_ci   at the tsem interface is detected. */
50838c2ecf20Sopenharmony_ci#define UCM_REG_TSEM_LENGTH_MIS 				 0xe015c
50848c2ecf20Sopenharmony_ci/* [RW 3] The weight of the input tsem in the WRR mechanism. 0 stands for
50858c2ecf20Sopenharmony_ci   weight 8 (the most prioritised); 1 stands for weight 1(least
50868c2ecf20Sopenharmony_ci   prioritised); 2 stands for weight 2; tc. */
50878c2ecf20Sopenharmony_ci#define UCM_REG_TSEM_WEIGHT					 0xe00b4
50888c2ecf20Sopenharmony_ci/* [RW 1] CM - CFC Interface enable. If 0 - the valid input is disregarded;
50898c2ecf20Sopenharmony_ci   acknowledge output is deasserted; all other signals are treated as usual;
50908c2ecf20Sopenharmony_ci   if 1 - normal activity. */
50918c2ecf20Sopenharmony_ci#define UCM_REG_UCM_CFC_IFEN					 0xe0044
50928c2ecf20Sopenharmony_ci/* [RW 11] Interrupt mask register #0 read/write */
50938c2ecf20Sopenharmony_ci#define UCM_REG_UCM_INT_MASK					 0xe01d4
50948c2ecf20Sopenharmony_ci/* [R 11] Interrupt register #0 read */
50958c2ecf20Sopenharmony_ci#define UCM_REG_UCM_INT_STS					 0xe01c8
50968c2ecf20Sopenharmony_ci/* [RW 27] Parity mask register #0 read/write */
50978c2ecf20Sopenharmony_ci#define UCM_REG_UCM_PRTY_MASK					 0xe01e4
50988c2ecf20Sopenharmony_ci/* [R 27] Parity register #0 read */
50998c2ecf20Sopenharmony_ci#define UCM_REG_UCM_PRTY_STS					 0xe01d8
51008c2ecf20Sopenharmony_ci/* [RC 27] Parity register #0 read clear */
51018c2ecf20Sopenharmony_ci#define UCM_REG_UCM_PRTY_STS_CLR				 0xe01dc
51028c2ecf20Sopenharmony_ci/* [RW 2] The size of AG context region 0 in REG-pairs. Designates the MS
51038c2ecf20Sopenharmony_ci   REG-pair number (e.g. if region 0 is 6 REG-pairs; the value should be 5).
51048c2ecf20Sopenharmony_ci   Is used to determine the number of the AG context REG-pairs written back;
51058c2ecf20Sopenharmony_ci   when the Reg1WbFlg isn't set. */
51068c2ecf20Sopenharmony_ci#define UCM_REG_UCM_REG0_SZ					 0xe00dc
51078c2ecf20Sopenharmony_ci/* [RW 1] CM - STORM 0 Interface enable. If 0 - the acknowledge input is
51088c2ecf20Sopenharmony_ci   disregarded; valid is deasserted; all other signals are treated as usual;
51098c2ecf20Sopenharmony_ci   if 1 - normal activity. */
51108c2ecf20Sopenharmony_ci#define UCM_REG_UCM_STORM0_IFEN 				 0xe0004
51118c2ecf20Sopenharmony_ci/* [RW 1] CM - STORM 1 Interface enable. If 0 - the acknowledge input is
51128c2ecf20Sopenharmony_ci   disregarded; valid is deasserted; all other signals are treated as usual;
51138c2ecf20Sopenharmony_ci   if 1 - normal activity. */
51148c2ecf20Sopenharmony_ci#define UCM_REG_UCM_STORM1_IFEN 				 0xe0008
51158c2ecf20Sopenharmony_ci/* [RW 1] CM - Timers Interface enable. If 0 - the valid input is
51168c2ecf20Sopenharmony_ci   disregarded; acknowledge output is deasserted; all other signals are
51178c2ecf20Sopenharmony_ci   treated as usual; if 1 - normal activity. */
51188c2ecf20Sopenharmony_ci#define UCM_REG_UCM_TM_IFEN					 0xe0020
51198c2ecf20Sopenharmony_ci/* [RW 1] CM - QM Interface enable. If 0 - the acknowledge input is
51208c2ecf20Sopenharmony_ci   disregarded; valid is deasserted; all other signals are treated as usual;
51218c2ecf20Sopenharmony_ci   if 1 - normal activity. */
51228c2ecf20Sopenharmony_ci#define UCM_REG_UCM_UQM_IFEN					 0xe000c
51238c2ecf20Sopenharmony_ci/* [RW 1] If set the Q index; received from the QM is inserted to event ID. */
51248c2ecf20Sopenharmony_ci#define UCM_REG_UCM_UQM_USE_Q					 0xe00d8
51258c2ecf20Sopenharmony_ci/* [RW 6] QM output initial credit. Max credit available - 32.Write writes
51268c2ecf20Sopenharmony_ci   the initial credit value; read returns the current value of the credit
51278c2ecf20Sopenharmony_ci   counter. Must be initialized to 32 at start-up. */
51288c2ecf20Sopenharmony_ci#define UCM_REG_UQM_INIT_CRD					 0xe0220
51298c2ecf20Sopenharmony_ci/* [RW 3] The weight of the QM (primary) input in the WRR mechanism. 0
51308c2ecf20Sopenharmony_ci   stands for weight 8 (the most prioritised); 1 stands for weight 1(least
51318c2ecf20Sopenharmony_ci   prioritised); 2 stands for weight 2; tc. */
51328c2ecf20Sopenharmony_ci#define UCM_REG_UQM_P_WEIGHT					 0xe00cc
51338c2ecf20Sopenharmony_ci/* [RW 3] The weight of the QM (secondary) input in the WRR mechanism. 0
51348c2ecf20Sopenharmony_ci   stands for weight 8 (the most prioritised); 1 stands for weight 1(least
51358c2ecf20Sopenharmony_ci   prioritised); 2 stands for weight 2; tc. */
51368c2ecf20Sopenharmony_ci#define UCM_REG_UQM_S_WEIGHT					 0xe00d0
51378c2ecf20Sopenharmony_ci/* [RW 28] The CM header value for QM request (primary). */
51388c2ecf20Sopenharmony_ci#define UCM_REG_UQM_UCM_HDR_P					 0xe0094
51398c2ecf20Sopenharmony_ci/* [RW 28] The CM header value for QM request (secondary). */
51408c2ecf20Sopenharmony_ci#define UCM_REG_UQM_UCM_HDR_S					 0xe0098
51418c2ecf20Sopenharmony_ci/* [RW 1] QM - CM Interface enable. If 0 - the valid input is disregarded;
51428c2ecf20Sopenharmony_ci   acknowledge output is deasserted; all other signals are treated as usual;
51438c2ecf20Sopenharmony_ci   if 1 - normal activity. */
51448c2ecf20Sopenharmony_ci#define UCM_REG_UQM_UCM_IFEN					 0xe0014
51458c2ecf20Sopenharmony_ci/* [RW 1] Input SDM Interface enable. If 0 - the valid input is disregarded;
51468c2ecf20Sopenharmony_ci   acknowledge output is deasserted; all other signals are treated as usual;
51478c2ecf20Sopenharmony_ci   if 1 - normal activity. */
51488c2ecf20Sopenharmony_ci#define UCM_REG_USDM_IFEN					 0xe0018
51498c2ecf20Sopenharmony_ci/* [RC 1] Set when the message length mismatch (relative to last indication)
51508c2ecf20Sopenharmony_ci   at the SDM interface is detected. */
51518c2ecf20Sopenharmony_ci#define UCM_REG_USDM_LENGTH_MIS 				 0xe0158
51528c2ecf20Sopenharmony_ci/* [RW 3] The weight of the SDM input in the WRR mechanism. 0 stands for
51538c2ecf20Sopenharmony_ci   weight 8 (the most prioritised); 1 stands for weight 1(least
51548c2ecf20Sopenharmony_ci   prioritised); 2 stands for weight 2; tc. */
51558c2ecf20Sopenharmony_ci#define UCM_REG_USDM_WEIGHT					 0xe00c8
51568c2ecf20Sopenharmony_ci/* [RW 1] Input xsem Interface enable. If 0 - the valid input is
51578c2ecf20Sopenharmony_ci   disregarded; acknowledge output is deasserted; all other signals are
51588c2ecf20Sopenharmony_ci   treated as usual; if 1 - normal activity. */
51598c2ecf20Sopenharmony_ci#define UCM_REG_XSEM_IFEN					 0xe002c
51608c2ecf20Sopenharmony_ci/* [RC 1] Set when the message length mismatch (relative to last indication)
51618c2ecf20Sopenharmony_ci   at the xsem interface isdetected. */
51628c2ecf20Sopenharmony_ci#define UCM_REG_XSEM_LENGTH_MIS 				 0xe0164
51638c2ecf20Sopenharmony_ci/* [RW 3] The weight of the input xsem in the WRR mechanism. 0 stands for
51648c2ecf20Sopenharmony_ci   weight 8 (the most prioritised); 1 stands for weight 1(least
51658c2ecf20Sopenharmony_ci   prioritised); 2 stands for weight 2; tc. */
51668c2ecf20Sopenharmony_ci#define UCM_REG_XSEM_WEIGHT					 0xe00bc
51678c2ecf20Sopenharmony_ci/* [RW 20] Indirect access to the descriptor table of the XX protection
51688c2ecf20Sopenharmony_ci   mechanism. The fields are:[5:0] - message length; 14:6] - message
51698c2ecf20Sopenharmony_ci   pointer; 19:15] - next pointer. */
51708c2ecf20Sopenharmony_ci#define UCM_REG_XX_DESCR_TABLE					 0xe0280
51718c2ecf20Sopenharmony_ci#define UCM_REG_XX_DESCR_TABLE_SIZE				 27
51728c2ecf20Sopenharmony_ci/* [R 6] Use to read the XX protection Free counter. */
51738c2ecf20Sopenharmony_ci#define UCM_REG_XX_FREE 					 0xe016c
51748c2ecf20Sopenharmony_ci/* [RW 6] Initial value for the credit counter; responsible for fulfilling
51758c2ecf20Sopenharmony_ci   of the Input Stage XX protection buffer by the XX protection pending
51768c2ecf20Sopenharmony_ci   messages. Write writes the initial credit value; read returns the current
51778c2ecf20Sopenharmony_ci   value of the credit counter. Must be initialized to 12 at start-up. */
51788c2ecf20Sopenharmony_ci#define UCM_REG_XX_INIT_CRD					 0xe0224
51798c2ecf20Sopenharmony_ci/* [RW 6] The maximum number of pending messages; which may be stored in XX
51808c2ecf20Sopenharmony_ci   protection. ~ucm_registers_xx_free.xx_free read on read. */
51818c2ecf20Sopenharmony_ci#define UCM_REG_XX_MSG_NUM					 0xe0228
51828c2ecf20Sopenharmony_ci/* [RW 8] The Event ID; sent to the STORM in case of XX overflow. */
51838c2ecf20Sopenharmony_ci#define UCM_REG_XX_OVFL_EVNT_ID 				 0xe004c
51848c2ecf20Sopenharmony_ci/* [RW 16] Indirect access to the XX table of the XX protection mechanism.
51858c2ecf20Sopenharmony_ci   The fields are: [4:0] - tail pointer; 10:5] - Link List size; 15:11] -
51868c2ecf20Sopenharmony_ci   header pointer. */
51878c2ecf20Sopenharmony_ci#define UCM_REG_XX_TABLE					 0xe0300
51888c2ecf20Sopenharmony_ci#define UMAC_COMMAND_CONFIG_REG_HD_ENA				 (0x1<<10)
51898c2ecf20Sopenharmony_ci#define UMAC_COMMAND_CONFIG_REG_IGNORE_TX_PAUSE			 (0x1<<28)
51908c2ecf20Sopenharmony_ci#define UMAC_COMMAND_CONFIG_REG_LOOP_ENA			 (0x1<<15)
51918c2ecf20Sopenharmony_ci#define UMAC_COMMAND_CONFIG_REG_NO_LGTH_CHECK			 (0x1<<24)
51928c2ecf20Sopenharmony_ci#define UMAC_COMMAND_CONFIG_REG_PAD_EN				 (0x1<<5)
51938c2ecf20Sopenharmony_ci#define UMAC_COMMAND_CONFIG_REG_PAUSE_IGNORE			 (0x1<<8)
51948c2ecf20Sopenharmony_ci#define UMAC_COMMAND_CONFIG_REG_PROMIS_EN			 (0x1<<4)
51958c2ecf20Sopenharmony_ci#define UMAC_COMMAND_CONFIG_REG_RX_ENA				 (0x1<<1)
51968c2ecf20Sopenharmony_ci#define UMAC_COMMAND_CONFIG_REG_SW_RESET			 (0x1<<13)
51978c2ecf20Sopenharmony_ci#define UMAC_COMMAND_CONFIG_REG_TX_ENA				 (0x1<<0)
51988c2ecf20Sopenharmony_ci#define UMAC_REG_COMMAND_CONFIG					 0x8
51998c2ecf20Sopenharmony_ci/* [RW 16] This is the duration for which MAC must wait to go back to ACTIVE
52008c2ecf20Sopenharmony_ci * state from LPI state when it receives packet for transmission. The
52018c2ecf20Sopenharmony_ci * decrement unit is 1 micro-second. */
52028c2ecf20Sopenharmony_ci#define UMAC_REG_EEE_WAKE_TIMER					 0x6c
52038c2ecf20Sopenharmony_ci/* [RW 32] Register Bit 0 refers to Bit 16 of the MAC address; Bit 1 refers
52048c2ecf20Sopenharmony_ci * to bit 17 of the MAC address etc. */
52058c2ecf20Sopenharmony_ci#define UMAC_REG_MAC_ADDR0					 0xc
52068c2ecf20Sopenharmony_ci/* [RW 16] Register Bit 0 refers to Bit 0 of the MAC address; Register Bit 1
52078c2ecf20Sopenharmony_ci * refers to Bit 1 of the MAC address etc. Bits 16 to 31 are reserved. */
52088c2ecf20Sopenharmony_ci#define UMAC_REG_MAC_ADDR1					 0x10
52098c2ecf20Sopenharmony_ci/* [RW 14] Defines a 14-Bit maximum frame length used by the MAC receive
52108c2ecf20Sopenharmony_ci * logic to check frames. */
52118c2ecf20Sopenharmony_ci#define UMAC_REG_MAXFR						 0x14
52128c2ecf20Sopenharmony_ci#define UMAC_REG_UMAC_EEE_CTRL					 0x64
52138c2ecf20Sopenharmony_ci#define UMAC_UMAC_EEE_CTRL_REG_EEE_EN				 (0x1<<3)
52148c2ecf20Sopenharmony_ci/* [RW 8] The event id for aggregated interrupt 0 */
52158c2ecf20Sopenharmony_ci#define USDM_REG_AGG_INT_EVENT_0				 0xc4038
52168c2ecf20Sopenharmony_ci#define USDM_REG_AGG_INT_EVENT_1				 0xc403c
52178c2ecf20Sopenharmony_ci#define USDM_REG_AGG_INT_EVENT_2				 0xc4040
52188c2ecf20Sopenharmony_ci#define USDM_REG_AGG_INT_EVENT_4				 0xc4048
52198c2ecf20Sopenharmony_ci#define USDM_REG_AGG_INT_EVENT_5				 0xc404c
52208c2ecf20Sopenharmony_ci#define USDM_REG_AGG_INT_EVENT_6				 0xc4050
52218c2ecf20Sopenharmony_ci/* [RW 1] For each aggregated interrupt index whether the mode is normal (0)
52228c2ecf20Sopenharmony_ci   or auto-mask-mode (1) */
52238c2ecf20Sopenharmony_ci#define USDM_REG_AGG_INT_MODE_0 				 0xc41b8
52248c2ecf20Sopenharmony_ci#define USDM_REG_AGG_INT_MODE_1 				 0xc41bc
52258c2ecf20Sopenharmony_ci#define USDM_REG_AGG_INT_MODE_4 				 0xc41c8
52268c2ecf20Sopenharmony_ci#define USDM_REG_AGG_INT_MODE_5 				 0xc41cc
52278c2ecf20Sopenharmony_ci#define USDM_REG_AGG_INT_MODE_6 				 0xc41d0
52288c2ecf20Sopenharmony_ci/* [RW 1] The T bit for aggregated interrupt 5 */
52298c2ecf20Sopenharmony_ci#define USDM_REG_AGG_INT_T_5					 0xc40cc
52308c2ecf20Sopenharmony_ci#define USDM_REG_AGG_INT_T_6					 0xc40d0
52318c2ecf20Sopenharmony_ci/* [RW 13] The start address in the internal RAM for the cfc_rsp lcid */
52328c2ecf20Sopenharmony_ci#define USDM_REG_CFC_RSP_START_ADDR				 0xc4008
52338c2ecf20Sopenharmony_ci/* [RW 16] The maximum value of the completion counter #0 */
52348c2ecf20Sopenharmony_ci#define USDM_REG_CMP_COUNTER_MAX0				 0xc401c
52358c2ecf20Sopenharmony_ci/* [RW 16] The maximum value of the completion counter #1 */
52368c2ecf20Sopenharmony_ci#define USDM_REG_CMP_COUNTER_MAX1				 0xc4020
52378c2ecf20Sopenharmony_ci/* [RW 16] The maximum value of the completion counter #2 */
52388c2ecf20Sopenharmony_ci#define USDM_REG_CMP_COUNTER_MAX2				 0xc4024
52398c2ecf20Sopenharmony_ci/* [RW 16] The maximum value of the completion counter #3 */
52408c2ecf20Sopenharmony_ci#define USDM_REG_CMP_COUNTER_MAX3				 0xc4028
52418c2ecf20Sopenharmony_ci/* [RW 13] The start address in the internal RAM for the completion
52428c2ecf20Sopenharmony_ci   counters. */
52438c2ecf20Sopenharmony_ci#define USDM_REG_CMP_COUNTER_START_ADDR 			 0xc400c
52448c2ecf20Sopenharmony_ci#define USDM_REG_ENABLE_IN1					 0xc4238
52458c2ecf20Sopenharmony_ci#define USDM_REG_ENABLE_IN2					 0xc423c
52468c2ecf20Sopenharmony_ci#define USDM_REG_ENABLE_OUT1					 0xc4240
52478c2ecf20Sopenharmony_ci#define USDM_REG_ENABLE_OUT2					 0xc4244
52488c2ecf20Sopenharmony_ci/* [RW 4] The initial number of messages that can be sent to the pxp control
52498c2ecf20Sopenharmony_ci   interface without receiving any ACK. */
52508c2ecf20Sopenharmony_ci#define USDM_REG_INIT_CREDIT_PXP_CTRL				 0xc44c0
52518c2ecf20Sopenharmony_ci/* [ST 32] The number of ACK after placement messages received */
52528c2ecf20Sopenharmony_ci#define USDM_REG_NUM_OF_ACK_AFTER_PLACE 			 0xc4280
52538c2ecf20Sopenharmony_ci/* [ST 32] The number of packet end messages received from the parser */
52548c2ecf20Sopenharmony_ci#define USDM_REG_NUM_OF_PKT_END_MSG				 0xc4278
52558c2ecf20Sopenharmony_ci/* [ST 32] The number of requests received from the pxp async if */
52568c2ecf20Sopenharmony_ci#define USDM_REG_NUM_OF_PXP_ASYNC_REQ				 0xc427c
52578c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 0 */
52588c2ecf20Sopenharmony_ci#define USDM_REG_NUM_OF_Q0_CMD					 0xc4248
52598c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 10 */
52608c2ecf20Sopenharmony_ci#define USDM_REG_NUM_OF_Q10_CMD 				 0xc4270
52618c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 11 */
52628c2ecf20Sopenharmony_ci#define USDM_REG_NUM_OF_Q11_CMD 				 0xc4274
52638c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 1 */
52648c2ecf20Sopenharmony_ci#define USDM_REG_NUM_OF_Q1_CMD					 0xc424c
52658c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 2 */
52668c2ecf20Sopenharmony_ci#define USDM_REG_NUM_OF_Q2_CMD					 0xc4250
52678c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 3 */
52688c2ecf20Sopenharmony_ci#define USDM_REG_NUM_OF_Q3_CMD					 0xc4254
52698c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 4 */
52708c2ecf20Sopenharmony_ci#define USDM_REG_NUM_OF_Q4_CMD					 0xc4258
52718c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 5 */
52728c2ecf20Sopenharmony_ci#define USDM_REG_NUM_OF_Q5_CMD					 0xc425c
52738c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 6 */
52748c2ecf20Sopenharmony_ci#define USDM_REG_NUM_OF_Q6_CMD					 0xc4260
52758c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 7 */
52768c2ecf20Sopenharmony_ci#define USDM_REG_NUM_OF_Q7_CMD					 0xc4264
52778c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 8 */
52788c2ecf20Sopenharmony_ci#define USDM_REG_NUM_OF_Q8_CMD					 0xc4268
52798c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 9 */
52808c2ecf20Sopenharmony_ci#define USDM_REG_NUM_OF_Q9_CMD					 0xc426c
52818c2ecf20Sopenharmony_ci/* [RW 13] The start address in the internal RAM for the packet end message */
52828c2ecf20Sopenharmony_ci#define USDM_REG_PCK_END_MSG_START_ADDR 			 0xc4014
52838c2ecf20Sopenharmony_ci/* [RW 13] The start address in the internal RAM for queue counters */
52848c2ecf20Sopenharmony_ci#define USDM_REG_Q_COUNTER_START_ADDR				 0xc4010
52858c2ecf20Sopenharmony_ci/* [R 1] pxp_ctrl rd_data fifo empty in sdm_dma_rsp block */
52868c2ecf20Sopenharmony_ci#define USDM_REG_RSP_PXP_CTRL_RDATA_EMPTY			 0xc4550
52878c2ecf20Sopenharmony_ci/* [R 1] parser fifo empty in sdm_sync block */
52888c2ecf20Sopenharmony_ci#define USDM_REG_SYNC_PARSER_EMPTY				 0xc4558
52898c2ecf20Sopenharmony_ci/* [R 1] parser serial fifo empty in sdm_sync block */
52908c2ecf20Sopenharmony_ci#define USDM_REG_SYNC_SYNC_EMPTY				 0xc4560
52918c2ecf20Sopenharmony_ci/* [RW 32] Tick for timer counter. Applicable only when
52928c2ecf20Sopenharmony_ci   ~usdm_registers_timer_tick_enable.timer_tick_enable =1 */
52938c2ecf20Sopenharmony_ci#define USDM_REG_TIMER_TICK					 0xc4000
52948c2ecf20Sopenharmony_ci/* [RW 32] Interrupt mask register #0 read/write */
52958c2ecf20Sopenharmony_ci#define USDM_REG_USDM_INT_MASK_0				 0xc42a0
52968c2ecf20Sopenharmony_ci#define USDM_REG_USDM_INT_MASK_1				 0xc42b0
52978c2ecf20Sopenharmony_ci/* [R 32] Interrupt register #0 read */
52988c2ecf20Sopenharmony_ci#define USDM_REG_USDM_INT_STS_0 				 0xc4294
52998c2ecf20Sopenharmony_ci#define USDM_REG_USDM_INT_STS_1 				 0xc42a4
53008c2ecf20Sopenharmony_ci/* [RW 11] Parity mask register #0 read/write */
53018c2ecf20Sopenharmony_ci#define USDM_REG_USDM_PRTY_MASK 				 0xc42c0
53028c2ecf20Sopenharmony_ci/* [R 11] Parity register #0 read */
53038c2ecf20Sopenharmony_ci#define USDM_REG_USDM_PRTY_STS					 0xc42b4
53048c2ecf20Sopenharmony_ci/* [RC 11] Parity register #0 read clear */
53058c2ecf20Sopenharmony_ci#define USDM_REG_USDM_PRTY_STS_CLR				 0xc42b8
53068c2ecf20Sopenharmony_ci/* [RW 5] The number of time_slots in the arbitration cycle */
53078c2ecf20Sopenharmony_ci#define USEM_REG_ARB_CYCLE_SIZE 				 0x300034
53088c2ecf20Sopenharmony_ci/* [RW 3] The source that is associated with arbitration element 0. Source
53098c2ecf20Sopenharmony_ci   decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
53108c2ecf20Sopenharmony_ci   sleeping thread with priority 1; 4- sleeping thread with priority 2 */
53118c2ecf20Sopenharmony_ci#define USEM_REG_ARB_ELEMENT0					 0x300020
53128c2ecf20Sopenharmony_ci/* [RW 3] The source that is associated with arbitration element 1. Source
53138c2ecf20Sopenharmony_ci   decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
53148c2ecf20Sopenharmony_ci   sleeping thread with priority 1; 4- sleeping thread with priority 2.
53158c2ecf20Sopenharmony_ci   Could not be equal to register ~usem_registers_arb_element0.arb_element0 */
53168c2ecf20Sopenharmony_ci#define USEM_REG_ARB_ELEMENT1					 0x300024
53178c2ecf20Sopenharmony_ci/* [RW 3] The source that is associated with arbitration element 2. Source
53188c2ecf20Sopenharmony_ci   decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
53198c2ecf20Sopenharmony_ci   sleeping thread with priority 1; 4- sleeping thread with priority 2.
53208c2ecf20Sopenharmony_ci   Could not be equal to register ~usem_registers_arb_element0.arb_element0
53218c2ecf20Sopenharmony_ci   and ~usem_registers_arb_element1.arb_element1 */
53228c2ecf20Sopenharmony_ci#define USEM_REG_ARB_ELEMENT2					 0x300028
53238c2ecf20Sopenharmony_ci/* [RW 3] The source that is associated with arbitration element 3. Source
53248c2ecf20Sopenharmony_ci   decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
53258c2ecf20Sopenharmony_ci   sleeping thread with priority 1; 4- sleeping thread with priority 2.Could
53268c2ecf20Sopenharmony_ci   not be equal to register ~usem_registers_arb_element0.arb_element0 and
53278c2ecf20Sopenharmony_ci   ~usem_registers_arb_element1.arb_element1 and
53288c2ecf20Sopenharmony_ci   ~usem_registers_arb_element2.arb_element2 */
53298c2ecf20Sopenharmony_ci#define USEM_REG_ARB_ELEMENT3					 0x30002c
53308c2ecf20Sopenharmony_ci/* [RW 3] The source that is associated with arbitration element 4. Source
53318c2ecf20Sopenharmony_ci   decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
53328c2ecf20Sopenharmony_ci   sleeping thread with priority 1; 4- sleeping thread with priority 2.
53338c2ecf20Sopenharmony_ci   Could not be equal to register ~usem_registers_arb_element0.arb_element0
53348c2ecf20Sopenharmony_ci   and ~usem_registers_arb_element1.arb_element1 and
53358c2ecf20Sopenharmony_ci   ~usem_registers_arb_element2.arb_element2 and
53368c2ecf20Sopenharmony_ci   ~usem_registers_arb_element3.arb_element3 */
53378c2ecf20Sopenharmony_ci#define USEM_REG_ARB_ELEMENT4					 0x300030
53388c2ecf20Sopenharmony_ci#define USEM_REG_ENABLE_IN					 0x3000a4
53398c2ecf20Sopenharmony_ci#define USEM_REG_ENABLE_OUT					 0x3000a8
53408c2ecf20Sopenharmony_ci/* [RW 32] This address space contains all registers and memories that are
53418c2ecf20Sopenharmony_ci   placed in SEM_FAST block. The SEM_FAST registers are described in
53428c2ecf20Sopenharmony_ci   appendix B. In order to access the sem_fast registers the base address
53438c2ecf20Sopenharmony_ci   ~fast_memory.fast_memory should be added to eachsem_fast register offset. */
53448c2ecf20Sopenharmony_ci#define USEM_REG_FAST_MEMORY					 0x320000
53458c2ecf20Sopenharmony_ci/* [RW 1] Disables input messages from FIC0 May be updated during run_time
53468c2ecf20Sopenharmony_ci   by the microcode */
53478c2ecf20Sopenharmony_ci#define USEM_REG_FIC0_DISABLE					 0x300224
53488c2ecf20Sopenharmony_ci/* [RW 1] Disables input messages from FIC1 May be updated during run_time
53498c2ecf20Sopenharmony_ci   by the microcode */
53508c2ecf20Sopenharmony_ci#define USEM_REG_FIC1_DISABLE					 0x300234
53518c2ecf20Sopenharmony_ci/* [RW 15] Interrupt table Read and write access to it is not possible in
53528c2ecf20Sopenharmony_ci   the middle of the work */
53538c2ecf20Sopenharmony_ci#define USEM_REG_INT_TABLE					 0x300400
53548c2ecf20Sopenharmony_ci/* [ST 24] Statistics register. The number of messages that entered through
53558c2ecf20Sopenharmony_ci   FIC0 */
53568c2ecf20Sopenharmony_ci#define USEM_REG_MSG_NUM_FIC0					 0x300000
53578c2ecf20Sopenharmony_ci/* [ST 24] Statistics register. The number of messages that entered through
53588c2ecf20Sopenharmony_ci   FIC1 */
53598c2ecf20Sopenharmony_ci#define USEM_REG_MSG_NUM_FIC1					 0x300004
53608c2ecf20Sopenharmony_ci/* [ST 24] Statistics register. The number of messages that were sent to
53618c2ecf20Sopenharmony_ci   FOC0 */
53628c2ecf20Sopenharmony_ci#define USEM_REG_MSG_NUM_FOC0					 0x300008
53638c2ecf20Sopenharmony_ci/* [ST 24] Statistics register. The number of messages that were sent to
53648c2ecf20Sopenharmony_ci   FOC1 */
53658c2ecf20Sopenharmony_ci#define USEM_REG_MSG_NUM_FOC1					 0x30000c
53668c2ecf20Sopenharmony_ci/* [ST 24] Statistics register. The number of messages that were sent to
53678c2ecf20Sopenharmony_ci   FOC2 */
53688c2ecf20Sopenharmony_ci#define USEM_REG_MSG_NUM_FOC2					 0x300010
53698c2ecf20Sopenharmony_ci/* [ST 24] Statistics register. The number of messages that were sent to
53708c2ecf20Sopenharmony_ci   FOC3 */
53718c2ecf20Sopenharmony_ci#define USEM_REG_MSG_NUM_FOC3					 0x300014
53728c2ecf20Sopenharmony_ci/* [RW 1] Disables input messages from the passive buffer May be updated
53738c2ecf20Sopenharmony_ci   during run_time by the microcode */
53748c2ecf20Sopenharmony_ci#define USEM_REG_PAS_DISABLE					 0x30024c
53758c2ecf20Sopenharmony_ci/* [WB 128] Debug only. Passive buffer memory */
53768c2ecf20Sopenharmony_ci#define USEM_REG_PASSIVE_BUFFER 				 0x302000
53778c2ecf20Sopenharmony_ci/* [WB 46] pram memory. B45 is parity; b[44:0] - data. */
53788c2ecf20Sopenharmony_ci#define USEM_REG_PRAM						 0x340000
53798c2ecf20Sopenharmony_ci/* [R 16] Valid sleeping threads indication have bit per thread */
53808c2ecf20Sopenharmony_ci#define USEM_REG_SLEEP_THREADS_VALID				 0x30026c
53818c2ecf20Sopenharmony_ci/* [R 1] EXT_STORE FIFO is empty in sem_slow_ls_ext */
53828c2ecf20Sopenharmony_ci#define USEM_REG_SLOW_EXT_STORE_EMPTY				 0x3002a0
53838c2ecf20Sopenharmony_ci/* [RW 16] List of free threads . There is a bit per thread. */
53848c2ecf20Sopenharmony_ci#define USEM_REG_THREADS_LIST					 0x3002e4
53858c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 0 */
53868c2ecf20Sopenharmony_ci#define USEM_REG_TS_0_AS					 0x300038
53878c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 10 */
53888c2ecf20Sopenharmony_ci#define USEM_REG_TS_10_AS					 0x300060
53898c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 11 */
53908c2ecf20Sopenharmony_ci#define USEM_REG_TS_11_AS					 0x300064
53918c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 12 */
53928c2ecf20Sopenharmony_ci#define USEM_REG_TS_12_AS					 0x300068
53938c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 13 */
53948c2ecf20Sopenharmony_ci#define USEM_REG_TS_13_AS					 0x30006c
53958c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 14 */
53968c2ecf20Sopenharmony_ci#define USEM_REG_TS_14_AS					 0x300070
53978c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 15 */
53988c2ecf20Sopenharmony_ci#define USEM_REG_TS_15_AS					 0x300074
53998c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 16 */
54008c2ecf20Sopenharmony_ci#define USEM_REG_TS_16_AS					 0x300078
54018c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 17 */
54028c2ecf20Sopenharmony_ci#define USEM_REG_TS_17_AS					 0x30007c
54038c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 18 */
54048c2ecf20Sopenharmony_ci#define USEM_REG_TS_18_AS					 0x300080
54058c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 1 */
54068c2ecf20Sopenharmony_ci#define USEM_REG_TS_1_AS					 0x30003c
54078c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 2 */
54088c2ecf20Sopenharmony_ci#define USEM_REG_TS_2_AS					 0x300040
54098c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 3 */
54108c2ecf20Sopenharmony_ci#define USEM_REG_TS_3_AS					 0x300044
54118c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 4 */
54128c2ecf20Sopenharmony_ci#define USEM_REG_TS_4_AS					 0x300048
54138c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 5 */
54148c2ecf20Sopenharmony_ci#define USEM_REG_TS_5_AS					 0x30004c
54158c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 6 */
54168c2ecf20Sopenharmony_ci#define USEM_REG_TS_6_AS					 0x300050
54178c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 7 */
54188c2ecf20Sopenharmony_ci#define USEM_REG_TS_7_AS					 0x300054
54198c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 8 */
54208c2ecf20Sopenharmony_ci#define USEM_REG_TS_8_AS					 0x300058
54218c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 9 */
54228c2ecf20Sopenharmony_ci#define USEM_REG_TS_9_AS					 0x30005c
54238c2ecf20Sopenharmony_ci/* [RW 32] Interrupt mask register #0 read/write */
54248c2ecf20Sopenharmony_ci#define USEM_REG_USEM_INT_MASK_0				 0x300110
54258c2ecf20Sopenharmony_ci#define USEM_REG_USEM_INT_MASK_1				 0x300120
54268c2ecf20Sopenharmony_ci/* [R 32] Interrupt register #0 read */
54278c2ecf20Sopenharmony_ci#define USEM_REG_USEM_INT_STS_0 				 0x300104
54288c2ecf20Sopenharmony_ci#define USEM_REG_USEM_INT_STS_1 				 0x300114
54298c2ecf20Sopenharmony_ci/* [RW 32] Parity mask register #0 read/write */
54308c2ecf20Sopenharmony_ci#define USEM_REG_USEM_PRTY_MASK_0				 0x300130
54318c2ecf20Sopenharmony_ci#define USEM_REG_USEM_PRTY_MASK_1				 0x300140
54328c2ecf20Sopenharmony_ci/* [R 32] Parity register #0 read */
54338c2ecf20Sopenharmony_ci#define USEM_REG_USEM_PRTY_STS_0				 0x300124
54348c2ecf20Sopenharmony_ci#define USEM_REG_USEM_PRTY_STS_1				 0x300134
54358c2ecf20Sopenharmony_ci/* [RC 32] Parity register #0 read clear */
54368c2ecf20Sopenharmony_ci#define USEM_REG_USEM_PRTY_STS_CLR_0				 0x300128
54378c2ecf20Sopenharmony_ci#define USEM_REG_USEM_PRTY_STS_CLR_1				 0x300138
54388c2ecf20Sopenharmony_ci/* [W 7] VF or PF ID for reset error bit. Values 0-63 reset error bit for 64
54398c2ecf20Sopenharmony_ci * VF; values 64-67 reset error for 4 PF; values 68-127 are not valid. */
54408c2ecf20Sopenharmony_ci#define USEM_REG_VFPF_ERR_NUM					 0x300380
54418c2ecf20Sopenharmony_ci#define VFC_MEMORIES_RST_REG_CAM_RST				 (0x1<<0)
54428c2ecf20Sopenharmony_ci#define VFC_MEMORIES_RST_REG_RAM_RST				 (0x1<<1)
54438c2ecf20Sopenharmony_ci#define VFC_REG_MEMORIES_RST					 0x1943c
54448c2ecf20Sopenharmony_ci/* [RW 32] Indirect access to AG context with 32-bits granularity. The bits
54458c2ecf20Sopenharmony_ci * [12:8] of the address should be the offset within the accessed LCID
54468c2ecf20Sopenharmony_ci * context; the bits [7:0] are the accessed LCID.Example: to write to REG10
54478c2ecf20Sopenharmony_ci * LCID100. The RBC address should be 13'ha64. */
54488c2ecf20Sopenharmony_ci#define XCM_REG_AG_CTX						 0x28000
54498c2ecf20Sopenharmony_ci/* [RW 2] The queue index for registration on Aux1 counter flag. */
54508c2ecf20Sopenharmony_ci#define XCM_REG_AUX1_Q						 0x20134
54518c2ecf20Sopenharmony_ci/* [RW 2] Per each decision rule the queue index to register to. */
54528c2ecf20Sopenharmony_ci#define XCM_REG_AUX_CNT_FLG_Q_19				 0x201b0
54538c2ecf20Sopenharmony_ci/* [R 5] Used to read the XX protection CAM occupancy counter. */
54548c2ecf20Sopenharmony_ci#define XCM_REG_CAM_OCCUP					 0x20244
54558c2ecf20Sopenharmony_ci/* [RW 1] CDU AG read Interface enable. If 0 - the request input is
54568c2ecf20Sopenharmony_ci   disregarded; valid output is deasserted; all other signals are treated as
54578c2ecf20Sopenharmony_ci   usual; if 1 - normal activity. */
54588c2ecf20Sopenharmony_ci#define XCM_REG_CDU_AG_RD_IFEN					 0x20044
54598c2ecf20Sopenharmony_ci/* [RW 1] CDU AG write Interface enable. If 0 - the request and valid input
54608c2ecf20Sopenharmony_ci   are disregarded; all other signals are treated as usual; if 1 - normal
54618c2ecf20Sopenharmony_ci   activity. */
54628c2ecf20Sopenharmony_ci#define XCM_REG_CDU_AG_WR_IFEN					 0x20040
54638c2ecf20Sopenharmony_ci/* [RW 1] CDU STORM read Interface enable. If 0 - the request input is
54648c2ecf20Sopenharmony_ci   disregarded; valid output is deasserted; all other signals are treated as
54658c2ecf20Sopenharmony_ci   usual; if 1 - normal activity. */
54668c2ecf20Sopenharmony_ci#define XCM_REG_CDU_SM_RD_IFEN					 0x2004c
54678c2ecf20Sopenharmony_ci/* [RW 1] CDU STORM write Interface enable. If 0 - the request and valid
54688c2ecf20Sopenharmony_ci   input is disregarded; all other signals are treated as usual; if 1 -
54698c2ecf20Sopenharmony_ci   normal activity. */
54708c2ecf20Sopenharmony_ci#define XCM_REG_CDU_SM_WR_IFEN					 0x20048
54718c2ecf20Sopenharmony_ci/* [RW 4] CFC output initial credit. Max credit available - 15.Write writes
54728c2ecf20Sopenharmony_ci   the initial credit value; read returns the current value of the credit
54738c2ecf20Sopenharmony_ci   counter. Must be initialized to 1 at start-up. */
54748c2ecf20Sopenharmony_ci#define XCM_REG_CFC_INIT_CRD					 0x20404
54758c2ecf20Sopenharmony_ci/* [RW 3] The weight of the CP input in the WRR mechanism. 0 stands for
54768c2ecf20Sopenharmony_ci   weight 8 (the most prioritised); 1 stands for weight 1(least
54778c2ecf20Sopenharmony_ci   prioritised); 2 stands for weight 2; tc. */
54788c2ecf20Sopenharmony_ci#define XCM_REG_CP_WEIGHT					 0x200dc
54798c2ecf20Sopenharmony_ci/* [RW 1] Input csem Interface enable. If 0 - the valid input is
54808c2ecf20Sopenharmony_ci   disregarded; acknowledge output is deasserted; all other signals are
54818c2ecf20Sopenharmony_ci   treated as usual; if 1 - normal activity. */
54828c2ecf20Sopenharmony_ci#define XCM_REG_CSEM_IFEN					 0x20028
54838c2ecf20Sopenharmony_ci/* [RC 1] Set at message length mismatch (relative to last indication) at
54848c2ecf20Sopenharmony_ci   the csem interface. */
54858c2ecf20Sopenharmony_ci#define XCM_REG_CSEM_LENGTH_MIS 				 0x20228
54868c2ecf20Sopenharmony_ci/* [RW 3] The weight of the input csem in the WRR mechanism. 0 stands for
54878c2ecf20Sopenharmony_ci   weight 8 (the most prioritised); 1 stands for weight 1(least
54888c2ecf20Sopenharmony_ci   prioritised); 2 stands for weight 2; tc. */
54898c2ecf20Sopenharmony_ci#define XCM_REG_CSEM_WEIGHT					 0x200c4
54908c2ecf20Sopenharmony_ci/* [RW 1] Input dorq Interface enable. If 0 - the valid input is
54918c2ecf20Sopenharmony_ci   disregarded; acknowledge output is deasserted; all other signals are
54928c2ecf20Sopenharmony_ci   treated as usual; if 1 - normal activity. */
54938c2ecf20Sopenharmony_ci#define XCM_REG_DORQ_IFEN					 0x20030
54948c2ecf20Sopenharmony_ci/* [RC 1] Set at message length mismatch (relative to last indication) at
54958c2ecf20Sopenharmony_ci   the dorq interface. */
54968c2ecf20Sopenharmony_ci#define XCM_REG_DORQ_LENGTH_MIS 				 0x20230
54978c2ecf20Sopenharmony_ci/* [RW 3] The weight of the input dorq in the WRR mechanism. 0 stands for
54988c2ecf20Sopenharmony_ci   weight 8 (the most prioritised); 1 stands for weight 1(least
54998c2ecf20Sopenharmony_ci   prioritised); 2 stands for weight 2; tc. */
55008c2ecf20Sopenharmony_ci#define XCM_REG_DORQ_WEIGHT					 0x200cc
55018c2ecf20Sopenharmony_ci/* [RW 8] The Event ID in case the ErrorFlg input message bit is set. */
55028c2ecf20Sopenharmony_ci#define XCM_REG_ERR_EVNT_ID					 0x200b0
55038c2ecf20Sopenharmony_ci/* [RW 28] The CM erroneous header for QM and Timers formatting. */
55048c2ecf20Sopenharmony_ci#define XCM_REG_ERR_XCM_HDR					 0x200ac
55058c2ecf20Sopenharmony_ci/* [RW 8] The Event ID for Timers expiration. */
55068c2ecf20Sopenharmony_ci#define XCM_REG_EXPR_EVNT_ID					 0x200b4
55078c2ecf20Sopenharmony_ci/* [RW 8] FIC0 output initial credit. Max credit available - 255.Write
55088c2ecf20Sopenharmony_ci   writes the initial credit value; read returns the current value of the
55098c2ecf20Sopenharmony_ci   credit counter. Must be initialized to 64 at start-up. */
55108c2ecf20Sopenharmony_ci#define XCM_REG_FIC0_INIT_CRD					 0x2040c
55118c2ecf20Sopenharmony_ci/* [RW 8] FIC1 output initial credit. Max credit available - 255.Write
55128c2ecf20Sopenharmony_ci   writes the initial credit value; read returns the current value of the
55138c2ecf20Sopenharmony_ci   credit counter. Must be initialized to 64 at start-up. */
55148c2ecf20Sopenharmony_ci#define XCM_REG_FIC1_INIT_CRD					 0x20410
55158c2ecf20Sopenharmony_ci#define XCM_REG_GLB_DEL_ACK_MAX_CNT_0				 0x20118
55168c2ecf20Sopenharmony_ci#define XCM_REG_GLB_DEL_ACK_MAX_CNT_1				 0x2011c
55178c2ecf20Sopenharmony_ci#define XCM_REG_GLB_DEL_ACK_TMR_VAL_0				 0x20108
55188c2ecf20Sopenharmony_ci#define XCM_REG_GLB_DEL_ACK_TMR_VAL_1				 0x2010c
55198c2ecf20Sopenharmony_ci/* [RW 1] Arbitratiojn between Input Arbiter groups: 0 - fair Round-Robin; 1
55208c2ecf20Sopenharmony_ci   - strict priority defined by ~xcm_registers_gr_ag_pr.gr_ag_pr;
55218c2ecf20Sopenharmony_ci   ~xcm_registers_gr_ld0_pr.gr_ld0_pr and
55228c2ecf20Sopenharmony_ci   ~xcm_registers_gr_ld1_pr.gr_ld1_pr. */
55238c2ecf20Sopenharmony_ci#define XCM_REG_GR_ARB_TYPE					 0x2020c
55248c2ecf20Sopenharmony_ci/* [RW 2] Load (FIC0) channel group priority. The lowest priority is 0; the
55258c2ecf20Sopenharmony_ci   highest priority is 3. It is supposed that the Channel group is the
55268c2ecf20Sopenharmony_ci   complement of the other 3 groups. */
55278c2ecf20Sopenharmony_ci#define XCM_REG_GR_LD0_PR					 0x20214
55288c2ecf20Sopenharmony_ci/* [RW 2] Load (FIC1) channel group priority. The lowest priority is 0; the
55298c2ecf20Sopenharmony_ci   highest priority is 3. It is supposed that the Channel group is the
55308c2ecf20Sopenharmony_ci   complement of the other 3 groups. */
55318c2ecf20Sopenharmony_ci#define XCM_REG_GR_LD1_PR					 0x20218
55328c2ecf20Sopenharmony_ci/* [RW 1] Input nig0 Interface enable. If 0 - the valid input is
55338c2ecf20Sopenharmony_ci   disregarded; acknowledge output is deasserted; all other signals are
55348c2ecf20Sopenharmony_ci   treated as usual; if 1 - normal activity. */
55358c2ecf20Sopenharmony_ci#define XCM_REG_NIG0_IFEN					 0x20038
55368c2ecf20Sopenharmony_ci/* [RC 1] Set at message length mismatch (relative to last indication) at
55378c2ecf20Sopenharmony_ci   the nig0 interface. */
55388c2ecf20Sopenharmony_ci#define XCM_REG_NIG0_LENGTH_MIS 				 0x20238
55398c2ecf20Sopenharmony_ci/* [RW 3] The weight of the input nig0 in the WRR mechanism. 0 stands for
55408c2ecf20Sopenharmony_ci   weight 8 (the most prioritised); 1 stands for weight 1(least
55418c2ecf20Sopenharmony_ci   prioritised); 2 stands for weight 2; tc. */
55428c2ecf20Sopenharmony_ci#define XCM_REG_NIG0_WEIGHT					 0x200d4
55438c2ecf20Sopenharmony_ci/* [RW 1] Input nig1 Interface enable. If 0 - the valid input is
55448c2ecf20Sopenharmony_ci   disregarded; acknowledge output is deasserted; all other signals are
55458c2ecf20Sopenharmony_ci   treated as usual; if 1 - normal activity. */
55468c2ecf20Sopenharmony_ci#define XCM_REG_NIG1_IFEN					 0x2003c
55478c2ecf20Sopenharmony_ci/* [RC 1] Set at message length mismatch (relative to last indication) at
55488c2ecf20Sopenharmony_ci   the nig1 interface. */
55498c2ecf20Sopenharmony_ci#define XCM_REG_NIG1_LENGTH_MIS 				 0x2023c
55508c2ecf20Sopenharmony_ci/* [RW 5] The number of double REG-pairs; loaded from the STORM context and
55518c2ecf20Sopenharmony_ci   sent to STORM; for a specific connection type. The double REG-pairs are
55528c2ecf20Sopenharmony_ci   used in order to align to STORM context row size of 128 bits. The offset
55538c2ecf20Sopenharmony_ci   of these data in the STORM context is always 0. Index _i stands for the
55548c2ecf20Sopenharmony_ci   connection type (one of 16). */
55558c2ecf20Sopenharmony_ci#define XCM_REG_N_SM_CTX_LD_0					 0x20060
55568c2ecf20Sopenharmony_ci#define XCM_REG_N_SM_CTX_LD_1					 0x20064
55578c2ecf20Sopenharmony_ci#define XCM_REG_N_SM_CTX_LD_2					 0x20068
55588c2ecf20Sopenharmony_ci#define XCM_REG_N_SM_CTX_LD_3					 0x2006c
55598c2ecf20Sopenharmony_ci#define XCM_REG_N_SM_CTX_LD_4					 0x20070
55608c2ecf20Sopenharmony_ci#define XCM_REG_N_SM_CTX_LD_5					 0x20074
55618c2ecf20Sopenharmony_ci/* [RW 1] Input pbf Interface enable. If 0 - the valid input is disregarded;
55628c2ecf20Sopenharmony_ci   acknowledge output is deasserted; all other signals are treated as usual;
55638c2ecf20Sopenharmony_ci   if 1 - normal activity. */
55648c2ecf20Sopenharmony_ci#define XCM_REG_PBF_IFEN					 0x20034
55658c2ecf20Sopenharmony_ci/* [RC 1] Set at message length mismatch (relative to last indication) at
55668c2ecf20Sopenharmony_ci   the pbf interface. */
55678c2ecf20Sopenharmony_ci#define XCM_REG_PBF_LENGTH_MIS					 0x20234
55688c2ecf20Sopenharmony_ci/* [RW 3] The weight of the input pbf in the WRR mechanism. 0 stands for
55698c2ecf20Sopenharmony_ci   weight 8 (the most prioritised); 1 stands for weight 1(least
55708c2ecf20Sopenharmony_ci   prioritised); 2 stands for weight 2; tc. */
55718c2ecf20Sopenharmony_ci#define XCM_REG_PBF_WEIGHT					 0x200d0
55728c2ecf20Sopenharmony_ci#define XCM_REG_PHYS_QNUM3_0					 0x20100
55738c2ecf20Sopenharmony_ci#define XCM_REG_PHYS_QNUM3_1					 0x20104
55748c2ecf20Sopenharmony_ci/* [RW 8] The Event ID for Timers formatting in case of stop done. */
55758c2ecf20Sopenharmony_ci#define XCM_REG_STOP_EVNT_ID					 0x200b8
55768c2ecf20Sopenharmony_ci/* [RC 1] Set at message length mismatch (relative to last indication) at
55778c2ecf20Sopenharmony_ci   the STORM interface. */
55788c2ecf20Sopenharmony_ci#define XCM_REG_STORM_LENGTH_MIS				 0x2021c
55798c2ecf20Sopenharmony_ci/* [RW 3] The weight of the STORM input in the WRR mechanism. 0 stands for
55808c2ecf20Sopenharmony_ci   weight 8 (the most prioritised); 1 stands for weight 1(least
55818c2ecf20Sopenharmony_ci   prioritised); 2 stands for weight 2; tc. */
55828c2ecf20Sopenharmony_ci#define XCM_REG_STORM_WEIGHT					 0x200bc
55838c2ecf20Sopenharmony_ci/* [RW 1] STORM - CM Interface enable. If 0 - the valid input is
55848c2ecf20Sopenharmony_ci   disregarded; acknowledge output is deasserted; all other signals are
55858c2ecf20Sopenharmony_ci   treated as usual; if 1 - normal activity. */
55868c2ecf20Sopenharmony_ci#define XCM_REG_STORM_XCM_IFEN					 0x20010
55878c2ecf20Sopenharmony_ci/* [RW 4] Timers output initial credit. Max credit available - 15.Write
55888c2ecf20Sopenharmony_ci   writes the initial credit value; read returns the current value of the
55898c2ecf20Sopenharmony_ci   credit counter. Must be initialized to 4 at start-up. */
55908c2ecf20Sopenharmony_ci#define XCM_REG_TM_INIT_CRD					 0x2041c
55918c2ecf20Sopenharmony_ci/* [RW 3] The weight of the Timers input in the WRR mechanism. 0 stands for
55928c2ecf20Sopenharmony_ci   weight 8 (the most prioritised); 1 stands for weight 1(least
55938c2ecf20Sopenharmony_ci   prioritised); 2 stands for weight 2; tc. */
55948c2ecf20Sopenharmony_ci#define XCM_REG_TM_WEIGHT					 0x200ec
55958c2ecf20Sopenharmony_ci/* [RW 28] The CM header for Timers expiration command. */
55968c2ecf20Sopenharmony_ci#define XCM_REG_TM_XCM_HDR					 0x200a8
55978c2ecf20Sopenharmony_ci/* [RW 1] Timers - CM Interface enable. If 0 - the valid input is
55988c2ecf20Sopenharmony_ci   disregarded; acknowledge output is deasserted; all other signals are
55998c2ecf20Sopenharmony_ci   treated as usual; if 1 - normal activity. */
56008c2ecf20Sopenharmony_ci#define XCM_REG_TM_XCM_IFEN					 0x2001c
56018c2ecf20Sopenharmony_ci/* [RW 1] Input tsem Interface enable. If 0 - the valid input is
56028c2ecf20Sopenharmony_ci   disregarded; acknowledge output is deasserted; all other signals are
56038c2ecf20Sopenharmony_ci   treated as usual; if 1 - normal activity. */
56048c2ecf20Sopenharmony_ci#define XCM_REG_TSEM_IFEN					 0x20024
56058c2ecf20Sopenharmony_ci/* [RC 1] Set at message length mismatch (relative to last indication) at
56068c2ecf20Sopenharmony_ci   the tsem interface. */
56078c2ecf20Sopenharmony_ci#define XCM_REG_TSEM_LENGTH_MIS 				 0x20224
56088c2ecf20Sopenharmony_ci/* [RW 3] The weight of the input tsem in the WRR mechanism. 0 stands for
56098c2ecf20Sopenharmony_ci   weight 8 (the most prioritised); 1 stands for weight 1(least
56108c2ecf20Sopenharmony_ci   prioritised); 2 stands for weight 2; tc. */
56118c2ecf20Sopenharmony_ci#define XCM_REG_TSEM_WEIGHT					 0x200c0
56128c2ecf20Sopenharmony_ci/* [RW 2] The queue index for registration on UNA greater NXT decision rule. */
56138c2ecf20Sopenharmony_ci#define XCM_REG_UNA_GT_NXT_Q					 0x20120
56148c2ecf20Sopenharmony_ci/* [RW 1] Input usem Interface enable. If 0 - the valid input is
56158c2ecf20Sopenharmony_ci   disregarded; acknowledge output is deasserted; all other signals are
56168c2ecf20Sopenharmony_ci   treated as usual; if 1 - normal activity. */
56178c2ecf20Sopenharmony_ci#define XCM_REG_USEM_IFEN					 0x2002c
56188c2ecf20Sopenharmony_ci/* [RC 1] Message length mismatch (relative to last indication) at the usem
56198c2ecf20Sopenharmony_ci   interface. */
56208c2ecf20Sopenharmony_ci#define XCM_REG_USEM_LENGTH_MIS 				 0x2022c
56218c2ecf20Sopenharmony_ci/* [RW 3] The weight of the input usem in the WRR mechanism. 0 stands for
56228c2ecf20Sopenharmony_ci   weight 8 (the most prioritised); 1 stands for weight 1(least
56238c2ecf20Sopenharmony_ci   prioritised); 2 stands for weight 2; tc. */
56248c2ecf20Sopenharmony_ci#define XCM_REG_USEM_WEIGHT					 0x200c8
56258c2ecf20Sopenharmony_ci#define XCM_REG_WU_DA_CNT_CMD00 				 0x201d4
56268c2ecf20Sopenharmony_ci#define XCM_REG_WU_DA_CNT_CMD01 				 0x201d8
56278c2ecf20Sopenharmony_ci#define XCM_REG_WU_DA_CNT_CMD10 				 0x201dc
56288c2ecf20Sopenharmony_ci#define XCM_REG_WU_DA_CNT_CMD11 				 0x201e0
56298c2ecf20Sopenharmony_ci#define XCM_REG_WU_DA_CNT_UPD_VAL00				 0x201e4
56308c2ecf20Sopenharmony_ci#define XCM_REG_WU_DA_CNT_UPD_VAL01				 0x201e8
56318c2ecf20Sopenharmony_ci#define XCM_REG_WU_DA_CNT_UPD_VAL10				 0x201ec
56328c2ecf20Sopenharmony_ci#define XCM_REG_WU_DA_CNT_UPD_VAL11				 0x201f0
56338c2ecf20Sopenharmony_ci#define XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD00			 0x201c4
56348c2ecf20Sopenharmony_ci#define XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD01			 0x201c8
56358c2ecf20Sopenharmony_ci#define XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD10			 0x201cc
56368c2ecf20Sopenharmony_ci#define XCM_REG_WU_DA_SET_TMR_CNT_FLG_CMD11			 0x201d0
56378c2ecf20Sopenharmony_ci/* [RW 1] CM - CFC Interface enable. If 0 - the valid input is disregarded;
56388c2ecf20Sopenharmony_ci   acknowledge output is deasserted; all other signals are treated as usual;
56398c2ecf20Sopenharmony_ci   if 1 - normal activity. */
56408c2ecf20Sopenharmony_ci#define XCM_REG_XCM_CFC_IFEN					 0x20050
56418c2ecf20Sopenharmony_ci/* [RW 14] Interrupt mask register #0 read/write */
56428c2ecf20Sopenharmony_ci#define XCM_REG_XCM_INT_MASK					 0x202b4
56438c2ecf20Sopenharmony_ci/* [R 14] Interrupt register #0 read */
56448c2ecf20Sopenharmony_ci#define XCM_REG_XCM_INT_STS					 0x202a8
56458c2ecf20Sopenharmony_ci/* [RW 30] Parity mask register #0 read/write */
56468c2ecf20Sopenharmony_ci#define XCM_REG_XCM_PRTY_MASK					 0x202c4
56478c2ecf20Sopenharmony_ci/* [R 30] Parity register #0 read */
56488c2ecf20Sopenharmony_ci#define XCM_REG_XCM_PRTY_STS					 0x202b8
56498c2ecf20Sopenharmony_ci/* [RC 30] Parity register #0 read clear */
56508c2ecf20Sopenharmony_ci#define XCM_REG_XCM_PRTY_STS_CLR				 0x202bc
56518c2ecf20Sopenharmony_ci
56528c2ecf20Sopenharmony_ci/* [RW 4] The size of AG context region 0 in REG-pairs. Designates the MS
56538c2ecf20Sopenharmony_ci   REG-pair number (e.g. if region 0 is 6 REG-pairs; the value should be 5).
56548c2ecf20Sopenharmony_ci   Is used to determine the number of the AG context REG-pairs written back;
56558c2ecf20Sopenharmony_ci   when the Reg1WbFlg isn't set. */
56568c2ecf20Sopenharmony_ci#define XCM_REG_XCM_REG0_SZ					 0x200f4
56578c2ecf20Sopenharmony_ci/* [RW 1] CM - STORM 0 Interface enable. If 0 - the acknowledge input is
56588c2ecf20Sopenharmony_ci   disregarded; valid is deasserted; all other signals are treated as usual;
56598c2ecf20Sopenharmony_ci   if 1 - normal activity. */
56608c2ecf20Sopenharmony_ci#define XCM_REG_XCM_STORM0_IFEN 				 0x20004
56618c2ecf20Sopenharmony_ci/* [RW 1] CM - STORM 1 Interface enable. If 0 - the acknowledge input is
56628c2ecf20Sopenharmony_ci   disregarded; valid is deasserted; all other signals are treated as usual;
56638c2ecf20Sopenharmony_ci   if 1 - normal activity. */
56648c2ecf20Sopenharmony_ci#define XCM_REG_XCM_STORM1_IFEN 				 0x20008
56658c2ecf20Sopenharmony_ci/* [RW 1] CM - Timers Interface enable. If 0 - the valid input is
56668c2ecf20Sopenharmony_ci   disregarded; acknowledge output is deasserted; all other signals are
56678c2ecf20Sopenharmony_ci   treated as usual; if 1 - normal activity. */
56688c2ecf20Sopenharmony_ci#define XCM_REG_XCM_TM_IFEN					 0x20020
56698c2ecf20Sopenharmony_ci/* [RW 1] CM - QM Interface enable. If 0 - the acknowledge input is
56708c2ecf20Sopenharmony_ci   disregarded; valid is deasserted; all other signals are treated as usual;
56718c2ecf20Sopenharmony_ci   if 1 - normal activity. */
56728c2ecf20Sopenharmony_ci#define XCM_REG_XCM_XQM_IFEN					 0x2000c
56738c2ecf20Sopenharmony_ci/* [RW 1] If set the Q index; received from the QM is inserted to event ID. */
56748c2ecf20Sopenharmony_ci#define XCM_REG_XCM_XQM_USE_Q					 0x200f0
56758c2ecf20Sopenharmony_ci/* [RW 4] The value by which CFC updates the activity counter at QM bypass. */
56768c2ecf20Sopenharmony_ci#define XCM_REG_XQM_BYP_ACT_UPD 				 0x200fc
56778c2ecf20Sopenharmony_ci/* [RW 6] QM output initial credit. Max credit available - 32.Write writes
56788c2ecf20Sopenharmony_ci   the initial credit value; read returns the current value of the credit
56798c2ecf20Sopenharmony_ci   counter. Must be initialized to 32 at start-up. */
56808c2ecf20Sopenharmony_ci#define XCM_REG_XQM_INIT_CRD					 0x20420
56818c2ecf20Sopenharmony_ci/* [RW 3] The weight of the QM (primary) input in the WRR mechanism. 0
56828c2ecf20Sopenharmony_ci   stands for weight 8 (the most prioritised); 1 stands for weight 1(least
56838c2ecf20Sopenharmony_ci   prioritised); 2 stands for weight 2; tc. */
56848c2ecf20Sopenharmony_ci#define XCM_REG_XQM_P_WEIGHT					 0x200e4
56858c2ecf20Sopenharmony_ci/* [RW 3] The weight of the QM (secondary) input in the WRR mechanism. 0
56868c2ecf20Sopenharmony_ci   stands for weight 8 (the most prioritised); 1 stands for weight 1(least
56878c2ecf20Sopenharmony_ci   prioritised); 2 stands for weight 2; tc. */
56888c2ecf20Sopenharmony_ci#define XCM_REG_XQM_S_WEIGHT					 0x200e8
56898c2ecf20Sopenharmony_ci/* [RW 28] The CM header value for QM request (primary). */
56908c2ecf20Sopenharmony_ci#define XCM_REG_XQM_XCM_HDR_P					 0x200a0
56918c2ecf20Sopenharmony_ci/* [RW 28] The CM header value for QM request (secondary). */
56928c2ecf20Sopenharmony_ci#define XCM_REG_XQM_XCM_HDR_S					 0x200a4
56938c2ecf20Sopenharmony_ci/* [RW 1] QM - CM Interface enable. If 0 - the valid input is disregarded;
56948c2ecf20Sopenharmony_ci   acknowledge output is deasserted; all other signals are treated as usual;
56958c2ecf20Sopenharmony_ci   if 1 - normal activity. */
56968c2ecf20Sopenharmony_ci#define XCM_REG_XQM_XCM_IFEN					 0x20014
56978c2ecf20Sopenharmony_ci/* [RW 1] Input SDM Interface enable. If 0 - the valid input is disregarded;
56988c2ecf20Sopenharmony_ci   acknowledge output is deasserted; all other signals are treated as usual;
56998c2ecf20Sopenharmony_ci   if 1 - normal activity. */
57008c2ecf20Sopenharmony_ci#define XCM_REG_XSDM_IFEN					 0x20018
57018c2ecf20Sopenharmony_ci/* [RC 1] Set at message length mismatch (relative to last indication) at
57028c2ecf20Sopenharmony_ci   the SDM interface. */
57038c2ecf20Sopenharmony_ci#define XCM_REG_XSDM_LENGTH_MIS 				 0x20220
57048c2ecf20Sopenharmony_ci/* [RW 3] The weight of the SDM input in the WRR mechanism. 0 stands for
57058c2ecf20Sopenharmony_ci   weight 8 (the most prioritised); 1 stands for weight 1(least
57068c2ecf20Sopenharmony_ci   prioritised); 2 stands for weight 2; tc. */
57078c2ecf20Sopenharmony_ci#define XCM_REG_XSDM_WEIGHT					 0x200e0
57088c2ecf20Sopenharmony_ci/* [RW 17] Indirect access to the descriptor table of the XX protection
57098c2ecf20Sopenharmony_ci   mechanism. The fields are: [5:0] - message length; 11:6] - message
57108c2ecf20Sopenharmony_ci   pointer; 16:12] - next pointer. */
57118c2ecf20Sopenharmony_ci#define XCM_REG_XX_DESCR_TABLE					 0x20480
57128c2ecf20Sopenharmony_ci#define XCM_REG_XX_DESCR_TABLE_SIZE				 32
57138c2ecf20Sopenharmony_ci/* [R 6] Used to read the XX protection Free counter. */
57148c2ecf20Sopenharmony_ci#define XCM_REG_XX_FREE 					 0x20240
57158c2ecf20Sopenharmony_ci/* [RW 6] Initial value for the credit counter; responsible for fulfilling
57168c2ecf20Sopenharmony_ci   of the Input Stage XX protection buffer by the XX protection pending
57178c2ecf20Sopenharmony_ci   messages. Max credit available - 3.Write writes the initial credit value;
57188c2ecf20Sopenharmony_ci   read returns the current value of the credit counter. Must be initialized
57198c2ecf20Sopenharmony_ci   to 2 at start-up. */
57208c2ecf20Sopenharmony_ci#define XCM_REG_XX_INIT_CRD					 0x20424
57218c2ecf20Sopenharmony_ci/* [RW 6] The maximum number of pending messages; which may be stored in XX
57228c2ecf20Sopenharmony_ci   protection. ~xcm_registers_xx_free.xx_free read on read. */
57238c2ecf20Sopenharmony_ci#define XCM_REG_XX_MSG_NUM					 0x20428
57248c2ecf20Sopenharmony_ci/* [RW 8] The Event ID; sent to the STORM in case of XX overflow. */
57258c2ecf20Sopenharmony_ci#define XCM_REG_XX_OVFL_EVNT_ID 				 0x20058
57268c2ecf20Sopenharmony_ci#define XMAC_CLEAR_RX_LSS_STATUS_REG_CLEAR_LOCAL_FAULT_STATUS	 (0x1<<0)
57278c2ecf20Sopenharmony_ci#define XMAC_CLEAR_RX_LSS_STATUS_REG_CLEAR_REMOTE_FAULT_STATUS	 (0x1<<1)
57288c2ecf20Sopenharmony_ci#define XMAC_CTRL_REG_LINE_LOCAL_LPBK				 (0x1<<2)
57298c2ecf20Sopenharmony_ci#define XMAC_CTRL_REG_RX_EN					 (0x1<<1)
57308c2ecf20Sopenharmony_ci#define XMAC_CTRL_REG_SOFT_RESET				 (0x1<<6)
57318c2ecf20Sopenharmony_ci#define XMAC_CTRL_REG_TX_EN					 (0x1<<0)
57328c2ecf20Sopenharmony_ci#define XMAC_CTRL_REG_XLGMII_ALIGN_ENB				 (0x1<<7)
57338c2ecf20Sopenharmony_ci#define XMAC_PAUSE_CTRL_REG_RX_PAUSE_EN				 (0x1<<18)
57348c2ecf20Sopenharmony_ci#define XMAC_PAUSE_CTRL_REG_TX_PAUSE_EN				 (0x1<<17)
57358c2ecf20Sopenharmony_ci#define XMAC_PFC_CTRL_HI_REG_FORCE_PFC_XON			 (0x1<<1)
57368c2ecf20Sopenharmony_ci#define XMAC_PFC_CTRL_HI_REG_PFC_REFRESH_EN			 (0x1<<0)
57378c2ecf20Sopenharmony_ci#define XMAC_PFC_CTRL_HI_REG_PFC_STATS_EN			 (0x1<<3)
57388c2ecf20Sopenharmony_ci#define XMAC_PFC_CTRL_HI_REG_RX_PFC_EN				 (0x1<<4)
57398c2ecf20Sopenharmony_ci#define XMAC_PFC_CTRL_HI_REG_TX_PFC_EN				 (0x1<<5)
57408c2ecf20Sopenharmony_ci#define XMAC_REG_CLEAR_RX_LSS_STATUS				 0x60
57418c2ecf20Sopenharmony_ci#define XMAC_REG_CTRL						 0
57428c2ecf20Sopenharmony_ci/* [RW 16] Upper 48 bits of ctrl_sa register. Used as the SA in PAUSE/PFC
57438c2ecf20Sopenharmony_ci * packets transmitted by the MAC */
57448c2ecf20Sopenharmony_ci#define XMAC_REG_CTRL_SA_HI					 0x2c
57458c2ecf20Sopenharmony_ci/* [RW 32] Lower 48 bits of ctrl_sa register. Used as the SA in PAUSE/PFC
57468c2ecf20Sopenharmony_ci * packets transmitted by the MAC */
57478c2ecf20Sopenharmony_ci#define XMAC_REG_CTRL_SA_LO					 0x28
57488c2ecf20Sopenharmony_ci#define XMAC_REG_EEE_CTRL					 0xd8
57498c2ecf20Sopenharmony_ci#define XMAC_REG_EEE_TIMERS_HI					 0xe4
57508c2ecf20Sopenharmony_ci#define XMAC_REG_PAUSE_CTRL					 0x68
57518c2ecf20Sopenharmony_ci#define XMAC_REG_PFC_CTRL					 0x70
57528c2ecf20Sopenharmony_ci#define XMAC_REG_PFC_CTRL_HI					 0x74
57538c2ecf20Sopenharmony_ci#define XMAC_REG_RX_LSS_CTRL					 0x50
57548c2ecf20Sopenharmony_ci#define XMAC_REG_RX_LSS_STATUS					 0x58
57558c2ecf20Sopenharmony_ci/* [RW 14] Maximum packet size in receive direction; exclusive of preamble &
57568c2ecf20Sopenharmony_ci * CRC in strip mode */
57578c2ecf20Sopenharmony_ci#define XMAC_REG_RX_MAX_SIZE					 0x40
57588c2ecf20Sopenharmony_ci#define XMAC_REG_TX_CTRL					 0x20
57598c2ecf20Sopenharmony_ci#define XMAC_RX_LSS_CTRL_REG_LOCAL_FAULT_DISABLE		 (0x1<<0)
57608c2ecf20Sopenharmony_ci#define XMAC_RX_LSS_CTRL_REG_REMOTE_FAULT_DISABLE		 (0x1<<1)
57618c2ecf20Sopenharmony_ci/* [RW 16] Indirect access to the XX table of the XX protection mechanism.
57628c2ecf20Sopenharmony_ci   The fields are:[4:0] - tail pointer; 9:5] - Link List size; 14:10] -
57638c2ecf20Sopenharmony_ci   header pointer. */
57648c2ecf20Sopenharmony_ci#define XCM_REG_XX_TABLE					 0x20500
57658c2ecf20Sopenharmony_ci/* [RW 8] The event id for aggregated interrupt 0 */
57668c2ecf20Sopenharmony_ci#define XSDM_REG_AGG_INT_EVENT_0				 0x166038
57678c2ecf20Sopenharmony_ci#define XSDM_REG_AGG_INT_EVENT_1				 0x16603c
57688c2ecf20Sopenharmony_ci#define XSDM_REG_AGG_INT_EVENT_10				 0x166060
57698c2ecf20Sopenharmony_ci#define XSDM_REG_AGG_INT_EVENT_11				 0x166064
57708c2ecf20Sopenharmony_ci#define XSDM_REG_AGG_INT_EVENT_12				 0x166068
57718c2ecf20Sopenharmony_ci#define XSDM_REG_AGG_INT_EVENT_13				 0x16606c
57728c2ecf20Sopenharmony_ci#define XSDM_REG_AGG_INT_EVENT_14				 0x166070
57738c2ecf20Sopenharmony_ci#define XSDM_REG_AGG_INT_EVENT_2				 0x166040
57748c2ecf20Sopenharmony_ci#define XSDM_REG_AGG_INT_EVENT_3				 0x166044
57758c2ecf20Sopenharmony_ci#define XSDM_REG_AGG_INT_EVENT_4				 0x166048
57768c2ecf20Sopenharmony_ci#define XSDM_REG_AGG_INT_EVENT_5				 0x16604c
57778c2ecf20Sopenharmony_ci#define XSDM_REG_AGG_INT_EVENT_6				 0x166050
57788c2ecf20Sopenharmony_ci#define XSDM_REG_AGG_INT_EVENT_7				 0x166054
57798c2ecf20Sopenharmony_ci#define XSDM_REG_AGG_INT_EVENT_8				 0x166058
57808c2ecf20Sopenharmony_ci#define XSDM_REG_AGG_INT_EVENT_9				 0x16605c
57818c2ecf20Sopenharmony_ci/* [RW 1] For each aggregated interrupt index whether the mode is normal (0)
57828c2ecf20Sopenharmony_ci   or auto-mask-mode (1) */
57838c2ecf20Sopenharmony_ci#define XSDM_REG_AGG_INT_MODE_0 				 0x1661b8
57848c2ecf20Sopenharmony_ci#define XSDM_REG_AGG_INT_MODE_1 				 0x1661bc
57858c2ecf20Sopenharmony_ci/* [RW 13] The start address in the internal RAM for the cfc_rsp lcid */
57868c2ecf20Sopenharmony_ci#define XSDM_REG_CFC_RSP_START_ADDR				 0x166008
57878c2ecf20Sopenharmony_ci/* [RW 16] The maximum value of the completion counter #0 */
57888c2ecf20Sopenharmony_ci#define XSDM_REG_CMP_COUNTER_MAX0				 0x16601c
57898c2ecf20Sopenharmony_ci/* [RW 16] The maximum value of the completion counter #1 */
57908c2ecf20Sopenharmony_ci#define XSDM_REG_CMP_COUNTER_MAX1				 0x166020
57918c2ecf20Sopenharmony_ci/* [RW 16] The maximum value of the completion counter #2 */
57928c2ecf20Sopenharmony_ci#define XSDM_REG_CMP_COUNTER_MAX2				 0x166024
57938c2ecf20Sopenharmony_ci/* [RW 16] The maximum value of the completion counter #3 */
57948c2ecf20Sopenharmony_ci#define XSDM_REG_CMP_COUNTER_MAX3				 0x166028
57958c2ecf20Sopenharmony_ci/* [RW 13] The start address in the internal RAM for the completion
57968c2ecf20Sopenharmony_ci   counters. */
57978c2ecf20Sopenharmony_ci#define XSDM_REG_CMP_COUNTER_START_ADDR 			 0x16600c
57988c2ecf20Sopenharmony_ci#define XSDM_REG_ENABLE_IN1					 0x166238
57998c2ecf20Sopenharmony_ci#define XSDM_REG_ENABLE_IN2					 0x16623c
58008c2ecf20Sopenharmony_ci#define XSDM_REG_ENABLE_OUT1					 0x166240
58018c2ecf20Sopenharmony_ci#define XSDM_REG_ENABLE_OUT2					 0x166244
58028c2ecf20Sopenharmony_ci/* [RW 4] The initial number of messages that can be sent to the pxp control
58038c2ecf20Sopenharmony_ci   interface without receiving any ACK. */
58048c2ecf20Sopenharmony_ci#define XSDM_REG_INIT_CREDIT_PXP_CTRL				 0x1664bc
58058c2ecf20Sopenharmony_ci/* [ST 32] The number of ACK after placement messages received */
58068c2ecf20Sopenharmony_ci#define XSDM_REG_NUM_OF_ACK_AFTER_PLACE 			 0x16627c
58078c2ecf20Sopenharmony_ci/* [ST 32] The number of packet end messages received from the parser */
58088c2ecf20Sopenharmony_ci#define XSDM_REG_NUM_OF_PKT_END_MSG				 0x166274
58098c2ecf20Sopenharmony_ci/* [ST 32] The number of requests received from the pxp async if */
58108c2ecf20Sopenharmony_ci#define XSDM_REG_NUM_OF_PXP_ASYNC_REQ				 0x166278
58118c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 0 */
58128c2ecf20Sopenharmony_ci#define XSDM_REG_NUM_OF_Q0_CMD					 0x166248
58138c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 10 */
58148c2ecf20Sopenharmony_ci#define XSDM_REG_NUM_OF_Q10_CMD 				 0x16626c
58158c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 11 */
58168c2ecf20Sopenharmony_ci#define XSDM_REG_NUM_OF_Q11_CMD 				 0x166270
58178c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 1 */
58188c2ecf20Sopenharmony_ci#define XSDM_REG_NUM_OF_Q1_CMD					 0x16624c
58198c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 3 */
58208c2ecf20Sopenharmony_ci#define XSDM_REG_NUM_OF_Q3_CMD					 0x166250
58218c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 4 */
58228c2ecf20Sopenharmony_ci#define XSDM_REG_NUM_OF_Q4_CMD					 0x166254
58238c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 5 */
58248c2ecf20Sopenharmony_ci#define XSDM_REG_NUM_OF_Q5_CMD					 0x166258
58258c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 6 */
58268c2ecf20Sopenharmony_ci#define XSDM_REG_NUM_OF_Q6_CMD					 0x16625c
58278c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 7 */
58288c2ecf20Sopenharmony_ci#define XSDM_REG_NUM_OF_Q7_CMD					 0x166260
58298c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 8 */
58308c2ecf20Sopenharmony_ci#define XSDM_REG_NUM_OF_Q8_CMD					 0x166264
58318c2ecf20Sopenharmony_ci/* [ST 32] The number of commands received in queue 9 */
58328c2ecf20Sopenharmony_ci#define XSDM_REG_NUM_OF_Q9_CMD					 0x166268
58338c2ecf20Sopenharmony_ci/* [RW 13] The start address in the internal RAM for queue counters */
58348c2ecf20Sopenharmony_ci#define XSDM_REG_Q_COUNTER_START_ADDR				 0x166010
58358c2ecf20Sopenharmony_ci/* [W 17] Generate an operation after completion; bit-16 is
58368c2ecf20Sopenharmony_ci * AggVectIdx_valid; bits 15:8 are AggVectIdx; bits 7:5 are the TRIG and
58378c2ecf20Sopenharmony_ci * bits 4:0 are the T124Param[4:0] */
58388c2ecf20Sopenharmony_ci#define XSDM_REG_OPERATION_GEN					 0x1664c4
58398c2ecf20Sopenharmony_ci/* [R 1] pxp_ctrl rd_data fifo empty in sdm_dma_rsp block */
58408c2ecf20Sopenharmony_ci#define XSDM_REG_RSP_PXP_CTRL_RDATA_EMPTY			 0x166548
58418c2ecf20Sopenharmony_ci/* [R 1] parser fifo empty in sdm_sync block */
58428c2ecf20Sopenharmony_ci#define XSDM_REG_SYNC_PARSER_EMPTY				 0x166550
58438c2ecf20Sopenharmony_ci/* [R 1] parser serial fifo empty in sdm_sync block */
58448c2ecf20Sopenharmony_ci#define XSDM_REG_SYNC_SYNC_EMPTY				 0x166558
58458c2ecf20Sopenharmony_ci/* [RW 32] Tick for timer counter. Applicable only when
58468c2ecf20Sopenharmony_ci   ~xsdm_registers_timer_tick_enable.timer_tick_enable =1 */
58478c2ecf20Sopenharmony_ci#define XSDM_REG_TIMER_TICK					 0x166000
58488c2ecf20Sopenharmony_ci/* [RW 32] Interrupt mask register #0 read/write */
58498c2ecf20Sopenharmony_ci#define XSDM_REG_XSDM_INT_MASK_0				 0x16629c
58508c2ecf20Sopenharmony_ci#define XSDM_REG_XSDM_INT_MASK_1				 0x1662ac
58518c2ecf20Sopenharmony_ci/* [R 32] Interrupt register #0 read */
58528c2ecf20Sopenharmony_ci#define XSDM_REG_XSDM_INT_STS_0 				 0x166290
58538c2ecf20Sopenharmony_ci#define XSDM_REG_XSDM_INT_STS_1 				 0x1662a0
58548c2ecf20Sopenharmony_ci/* [RW 11] Parity mask register #0 read/write */
58558c2ecf20Sopenharmony_ci#define XSDM_REG_XSDM_PRTY_MASK 				 0x1662bc
58568c2ecf20Sopenharmony_ci/* [R 11] Parity register #0 read */
58578c2ecf20Sopenharmony_ci#define XSDM_REG_XSDM_PRTY_STS					 0x1662b0
58588c2ecf20Sopenharmony_ci/* [RC 11] Parity register #0 read clear */
58598c2ecf20Sopenharmony_ci#define XSDM_REG_XSDM_PRTY_STS_CLR				 0x1662b4
58608c2ecf20Sopenharmony_ci/* [RW 5] The number of time_slots in the arbitration cycle */
58618c2ecf20Sopenharmony_ci#define XSEM_REG_ARB_CYCLE_SIZE 				 0x280034
58628c2ecf20Sopenharmony_ci/* [RW 3] The source that is associated with arbitration element 0. Source
58638c2ecf20Sopenharmony_ci   decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
58648c2ecf20Sopenharmony_ci   sleeping thread with priority 1; 4- sleeping thread with priority 2 */
58658c2ecf20Sopenharmony_ci#define XSEM_REG_ARB_ELEMENT0					 0x280020
58668c2ecf20Sopenharmony_ci/* [RW 3] The source that is associated with arbitration element 1. Source
58678c2ecf20Sopenharmony_ci   decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
58688c2ecf20Sopenharmony_ci   sleeping thread with priority 1; 4- sleeping thread with priority 2.
58698c2ecf20Sopenharmony_ci   Could not be equal to register ~xsem_registers_arb_element0.arb_element0 */
58708c2ecf20Sopenharmony_ci#define XSEM_REG_ARB_ELEMENT1					 0x280024
58718c2ecf20Sopenharmony_ci/* [RW 3] The source that is associated with arbitration element 2. Source
58728c2ecf20Sopenharmony_ci   decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
58738c2ecf20Sopenharmony_ci   sleeping thread with priority 1; 4- sleeping thread with priority 2.
58748c2ecf20Sopenharmony_ci   Could not be equal to register ~xsem_registers_arb_element0.arb_element0
58758c2ecf20Sopenharmony_ci   and ~xsem_registers_arb_element1.arb_element1 */
58768c2ecf20Sopenharmony_ci#define XSEM_REG_ARB_ELEMENT2					 0x280028
58778c2ecf20Sopenharmony_ci/* [RW 3] The source that is associated with arbitration element 3. Source
58788c2ecf20Sopenharmony_ci   decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
58798c2ecf20Sopenharmony_ci   sleeping thread with priority 1; 4- sleeping thread with priority 2.Could
58808c2ecf20Sopenharmony_ci   not be equal to register ~xsem_registers_arb_element0.arb_element0 and
58818c2ecf20Sopenharmony_ci   ~xsem_registers_arb_element1.arb_element1 and
58828c2ecf20Sopenharmony_ci   ~xsem_registers_arb_element2.arb_element2 */
58838c2ecf20Sopenharmony_ci#define XSEM_REG_ARB_ELEMENT3					 0x28002c
58848c2ecf20Sopenharmony_ci/* [RW 3] The source that is associated with arbitration element 4. Source
58858c2ecf20Sopenharmony_ci   decoding is: 0- foc0; 1-fic1; 2-sleeping thread with priority 0; 3-
58868c2ecf20Sopenharmony_ci   sleeping thread with priority 1; 4- sleeping thread with priority 2.
58878c2ecf20Sopenharmony_ci   Could not be equal to register ~xsem_registers_arb_element0.arb_element0
58888c2ecf20Sopenharmony_ci   and ~xsem_registers_arb_element1.arb_element1 and
58898c2ecf20Sopenharmony_ci   ~xsem_registers_arb_element2.arb_element2 and
58908c2ecf20Sopenharmony_ci   ~xsem_registers_arb_element3.arb_element3 */
58918c2ecf20Sopenharmony_ci#define XSEM_REG_ARB_ELEMENT4					 0x280030
58928c2ecf20Sopenharmony_ci#define XSEM_REG_ENABLE_IN					 0x2800a4
58938c2ecf20Sopenharmony_ci#define XSEM_REG_ENABLE_OUT					 0x2800a8
58948c2ecf20Sopenharmony_ci/* [RW 32] This address space contains all registers and memories that are
58958c2ecf20Sopenharmony_ci   placed in SEM_FAST block. The SEM_FAST registers are described in
58968c2ecf20Sopenharmony_ci   appendix B. In order to access the sem_fast registers the base address
58978c2ecf20Sopenharmony_ci   ~fast_memory.fast_memory should be added to eachsem_fast register offset. */
58988c2ecf20Sopenharmony_ci#define XSEM_REG_FAST_MEMORY					 0x2a0000
58998c2ecf20Sopenharmony_ci/* [RW 1] Disables input messages from FIC0 May be updated during run_time
59008c2ecf20Sopenharmony_ci   by the microcode */
59018c2ecf20Sopenharmony_ci#define XSEM_REG_FIC0_DISABLE					 0x280224
59028c2ecf20Sopenharmony_ci/* [RW 1] Disables input messages from FIC1 May be updated during run_time
59038c2ecf20Sopenharmony_ci   by the microcode */
59048c2ecf20Sopenharmony_ci#define XSEM_REG_FIC1_DISABLE					 0x280234
59058c2ecf20Sopenharmony_ci/* [RW 15] Interrupt table Read and write access to it is not possible in
59068c2ecf20Sopenharmony_ci   the middle of the work */
59078c2ecf20Sopenharmony_ci#define XSEM_REG_INT_TABLE					 0x280400
59088c2ecf20Sopenharmony_ci/* [ST 24] Statistics register. The number of messages that entered through
59098c2ecf20Sopenharmony_ci   FIC0 */
59108c2ecf20Sopenharmony_ci#define XSEM_REG_MSG_NUM_FIC0					 0x280000
59118c2ecf20Sopenharmony_ci/* [ST 24] Statistics register. The number of messages that entered through
59128c2ecf20Sopenharmony_ci   FIC1 */
59138c2ecf20Sopenharmony_ci#define XSEM_REG_MSG_NUM_FIC1					 0x280004
59148c2ecf20Sopenharmony_ci/* [ST 24] Statistics register. The number of messages that were sent to
59158c2ecf20Sopenharmony_ci   FOC0 */
59168c2ecf20Sopenharmony_ci#define XSEM_REG_MSG_NUM_FOC0					 0x280008
59178c2ecf20Sopenharmony_ci/* [ST 24] Statistics register. The number of messages that were sent to
59188c2ecf20Sopenharmony_ci   FOC1 */
59198c2ecf20Sopenharmony_ci#define XSEM_REG_MSG_NUM_FOC1					 0x28000c
59208c2ecf20Sopenharmony_ci/* [ST 24] Statistics register. The number of messages that were sent to
59218c2ecf20Sopenharmony_ci   FOC2 */
59228c2ecf20Sopenharmony_ci#define XSEM_REG_MSG_NUM_FOC2					 0x280010
59238c2ecf20Sopenharmony_ci/* [ST 24] Statistics register. The number of messages that were sent to
59248c2ecf20Sopenharmony_ci   FOC3 */
59258c2ecf20Sopenharmony_ci#define XSEM_REG_MSG_NUM_FOC3					 0x280014
59268c2ecf20Sopenharmony_ci/* [RW 1] Disables input messages from the passive buffer May be updated
59278c2ecf20Sopenharmony_ci   during run_time by the microcode */
59288c2ecf20Sopenharmony_ci#define XSEM_REG_PAS_DISABLE					 0x28024c
59298c2ecf20Sopenharmony_ci/* [WB 128] Debug only. Passive buffer memory */
59308c2ecf20Sopenharmony_ci#define XSEM_REG_PASSIVE_BUFFER 				 0x282000
59318c2ecf20Sopenharmony_ci/* [WB 46] pram memory. B45 is parity; b[44:0] - data. */
59328c2ecf20Sopenharmony_ci#define XSEM_REG_PRAM						 0x2c0000
59338c2ecf20Sopenharmony_ci/* [R 16] Valid sleeping threads indication have bit per thread */
59348c2ecf20Sopenharmony_ci#define XSEM_REG_SLEEP_THREADS_VALID				 0x28026c
59358c2ecf20Sopenharmony_ci/* [R 1] EXT_STORE FIFO is empty in sem_slow_ls_ext */
59368c2ecf20Sopenharmony_ci#define XSEM_REG_SLOW_EXT_STORE_EMPTY				 0x2802a0
59378c2ecf20Sopenharmony_ci/* [RW 16] List of free threads . There is a bit per thread. */
59388c2ecf20Sopenharmony_ci#define XSEM_REG_THREADS_LIST					 0x2802e4
59398c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 0 */
59408c2ecf20Sopenharmony_ci#define XSEM_REG_TS_0_AS					 0x280038
59418c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 10 */
59428c2ecf20Sopenharmony_ci#define XSEM_REG_TS_10_AS					 0x280060
59438c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 11 */
59448c2ecf20Sopenharmony_ci#define XSEM_REG_TS_11_AS					 0x280064
59458c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 12 */
59468c2ecf20Sopenharmony_ci#define XSEM_REG_TS_12_AS					 0x280068
59478c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 13 */
59488c2ecf20Sopenharmony_ci#define XSEM_REG_TS_13_AS					 0x28006c
59498c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 14 */
59508c2ecf20Sopenharmony_ci#define XSEM_REG_TS_14_AS					 0x280070
59518c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 15 */
59528c2ecf20Sopenharmony_ci#define XSEM_REG_TS_15_AS					 0x280074
59538c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 16 */
59548c2ecf20Sopenharmony_ci#define XSEM_REG_TS_16_AS					 0x280078
59558c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 17 */
59568c2ecf20Sopenharmony_ci#define XSEM_REG_TS_17_AS					 0x28007c
59578c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 18 */
59588c2ecf20Sopenharmony_ci#define XSEM_REG_TS_18_AS					 0x280080
59598c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 1 */
59608c2ecf20Sopenharmony_ci#define XSEM_REG_TS_1_AS					 0x28003c
59618c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 2 */
59628c2ecf20Sopenharmony_ci#define XSEM_REG_TS_2_AS					 0x280040
59638c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 3 */
59648c2ecf20Sopenharmony_ci#define XSEM_REG_TS_3_AS					 0x280044
59658c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 4 */
59668c2ecf20Sopenharmony_ci#define XSEM_REG_TS_4_AS					 0x280048
59678c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 5 */
59688c2ecf20Sopenharmony_ci#define XSEM_REG_TS_5_AS					 0x28004c
59698c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 6 */
59708c2ecf20Sopenharmony_ci#define XSEM_REG_TS_6_AS					 0x280050
59718c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 7 */
59728c2ecf20Sopenharmony_ci#define XSEM_REG_TS_7_AS					 0x280054
59738c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 8 */
59748c2ecf20Sopenharmony_ci#define XSEM_REG_TS_8_AS					 0x280058
59758c2ecf20Sopenharmony_ci/* [RW 3] The arbitration scheme of time_slot 9 */
59768c2ecf20Sopenharmony_ci#define XSEM_REG_TS_9_AS					 0x28005c
59778c2ecf20Sopenharmony_ci/* [W 7] VF or PF ID for reset error bit. Values 0-63 reset error bit for 64
59788c2ecf20Sopenharmony_ci * VF; values 64-67 reset error for 4 PF; values 68-127 are not valid. */
59798c2ecf20Sopenharmony_ci#define XSEM_REG_VFPF_ERR_NUM					 0x280380
59808c2ecf20Sopenharmony_ci/* [RW 32] Interrupt mask register #0 read/write */
59818c2ecf20Sopenharmony_ci#define XSEM_REG_XSEM_INT_MASK_0				 0x280110
59828c2ecf20Sopenharmony_ci#define XSEM_REG_XSEM_INT_MASK_1				 0x280120
59838c2ecf20Sopenharmony_ci/* [R 32] Interrupt register #0 read */
59848c2ecf20Sopenharmony_ci#define XSEM_REG_XSEM_INT_STS_0 				 0x280104
59858c2ecf20Sopenharmony_ci#define XSEM_REG_XSEM_INT_STS_1 				 0x280114
59868c2ecf20Sopenharmony_ci/* [RW 32] Parity mask register #0 read/write */
59878c2ecf20Sopenharmony_ci#define XSEM_REG_XSEM_PRTY_MASK_0				 0x280130
59888c2ecf20Sopenharmony_ci#define XSEM_REG_XSEM_PRTY_MASK_1				 0x280140
59898c2ecf20Sopenharmony_ci/* [R 32] Parity register #0 read */
59908c2ecf20Sopenharmony_ci#define XSEM_REG_XSEM_PRTY_STS_0				 0x280124
59918c2ecf20Sopenharmony_ci#define XSEM_REG_XSEM_PRTY_STS_1				 0x280134
59928c2ecf20Sopenharmony_ci/* [RC 32] Parity register #0 read clear */
59938c2ecf20Sopenharmony_ci#define XSEM_REG_XSEM_PRTY_STS_CLR_0				 0x280128
59948c2ecf20Sopenharmony_ci#define XSEM_REG_XSEM_PRTY_STS_CLR_1				 0x280138
59958c2ecf20Sopenharmony_ci#define MCPR_ACCESS_LOCK_LOCK					 (1L<<31)
59968c2ecf20Sopenharmony_ci#define MCPR_NVM_ACCESS_ENABLE_EN				 (1L<<0)
59978c2ecf20Sopenharmony_ci#define MCPR_NVM_ACCESS_ENABLE_WR_EN				 (1L<<1)
59988c2ecf20Sopenharmony_ci#define MCPR_NVM_ADDR_NVM_ADDR_VALUE				 (0xffffffL<<0)
59998c2ecf20Sopenharmony_ci#define MCPR_NVM_CFG4_FLASH_SIZE				 (0x7L<<0)
60008c2ecf20Sopenharmony_ci#define MCPR_NVM_COMMAND_DOIT					 (1L<<4)
60018c2ecf20Sopenharmony_ci#define MCPR_NVM_COMMAND_DONE					 (1L<<3)
60028c2ecf20Sopenharmony_ci#define MCPR_NVM_COMMAND_FIRST					 (1L<<7)
60038c2ecf20Sopenharmony_ci#define MCPR_NVM_COMMAND_LAST					 (1L<<8)
60048c2ecf20Sopenharmony_ci#define MCPR_NVM_COMMAND_WR					 (1L<<5)
60058c2ecf20Sopenharmony_ci#define MCPR_NVM_SW_ARB_ARB_ARB1				 (1L<<9)
60068c2ecf20Sopenharmony_ci#define MCPR_NVM_SW_ARB_ARB_REQ_CLR1				 (1L<<5)
60078c2ecf20Sopenharmony_ci#define MCPR_NVM_SW_ARB_ARB_REQ_SET1				 (1L<<1)
60088c2ecf20Sopenharmony_ci#define BIGMAC_REGISTER_BMAC_CONTROL				 (0x00<<3)
60098c2ecf20Sopenharmony_ci#define BIGMAC_REGISTER_BMAC_XGXS_CONTROL			 (0x01<<3)
60108c2ecf20Sopenharmony_ci#define BIGMAC_REGISTER_CNT_MAX_SIZE				 (0x05<<3)
60118c2ecf20Sopenharmony_ci#define BIGMAC_REGISTER_RX_CONTROL				 (0x21<<3)
60128c2ecf20Sopenharmony_ci#define BIGMAC_REGISTER_RX_LLFC_MSG_FLDS			 (0x46<<3)
60138c2ecf20Sopenharmony_ci#define BIGMAC_REGISTER_RX_LSS_STATUS				 (0x43<<3)
60148c2ecf20Sopenharmony_ci#define BIGMAC_REGISTER_RX_MAX_SIZE				 (0x23<<3)
60158c2ecf20Sopenharmony_ci#define BIGMAC_REGISTER_RX_STAT_GR64				 (0x26<<3)
60168c2ecf20Sopenharmony_ci#define BIGMAC_REGISTER_RX_STAT_GRIPJ				 (0x42<<3)
60178c2ecf20Sopenharmony_ci#define BIGMAC_REGISTER_TX_CONTROL				 (0x07<<3)
60188c2ecf20Sopenharmony_ci#define BIGMAC_REGISTER_TX_MAX_SIZE				 (0x09<<3)
60198c2ecf20Sopenharmony_ci#define BIGMAC_REGISTER_TX_PAUSE_THRESHOLD			 (0x0A<<3)
60208c2ecf20Sopenharmony_ci#define BIGMAC_REGISTER_TX_SOURCE_ADDR				 (0x08<<3)
60218c2ecf20Sopenharmony_ci#define BIGMAC_REGISTER_TX_STAT_GTBYT				 (0x20<<3)
60228c2ecf20Sopenharmony_ci#define BIGMAC_REGISTER_TX_STAT_GTPKT				 (0x0C<<3)
60238c2ecf20Sopenharmony_ci#define BIGMAC2_REGISTER_BMAC_CONTROL				 (0x00<<3)
60248c2ecf20Sopenharmony_ci#define BIGMAC2_REGISTER_BMAC_XGXS_CONTROL			 (0x01<<3)
60258c2ecf20Sopenharmony_ci#define BIGMAC2_REGISTER_CNT_MAX_SIZE				 (0x05<<3)
60268c2ecf20Sopenharmony_ci#define BIGMAC2_REGISTER_PFC_CONTROL				 (0x06<<3)
60278c2ecf20Sopenharmony_ci#define BIGMAC2_REGISTER_RX_CONTROL				 (0x3A<<3)
60288c2ecf20Sopenharmony_ci#define BIGMAC2_REGISTER_RX_LLFC_MSG_FLDS			 (0x62<<3)
60298c2ecf20Sopenharmony_ci#define BIGMAC2_REGISTER_RX_LSS_STAT				 (0x3E<<3)
60308c2ecf20Sopenharmony_ci#define BIGMAC2_REGISTER_RX_MAX_SIZE				 (0x3C<<3)
60318c2ecf20Sopenharmony_ci#define BIGMAC2_REGISTER_RX_STAT_GR64				 (0x40<<3)
60328c2ecf20Sopenharmony_ci#define BIGMAC2_REGISTER_RX_STAT_GRIPJ				 (0x5f<<3)
60338c2ecf20Sopenharmony_ci#define BIGMAC2_REGISTER_RX_STAT_GRPP				 (0x51<<3)
60348c2ecf20Sopenharmony_ci#define BIGMAC2_REGISTER_TX_CONTROL				 (0x1C<<3)
60358c2ecf20Sopenharmony_ci#define BIGMAC2_REGISTER_TX_MAX_SIZE				 (0x1E<<3)
60368c2ecf20Sopenharmony_ci#define BIGMAC2_REGISTER_TX_PAUSE_CONTROL			 (0x20<<3)
60378c2ecf20Sopenharmony_ci#define BIGMAC2_REGISTER_TX_SOURCE_ADDR			 (0x1D<<3)
60388c2ecf20Sopenharmony_ci#define BIGMAC2_REGISTER_TX_STAT_GTBYT				 (0x39<<3)
60398c2ecf20Sopenharmony_ci#define BIGMAC2_REGISTER_TX_STAT_GTPOK				 (0x22<<3)
60408c2ecf20Sopenharmony_ci#define BIGMAC2_REGISTER_TX_STAT_GTPP				 (0x24<<3)
60418c2ecf20Sopenharmony_ci#define EMAC_LED_1000MB_OVERRIDE				 (1L<<1)
60428c2ecf20Sopenharmony_ci#define EMAC_LED_100MB_OVERRIDE 				 (1L<<2)
60438c2ecf20Sopenharmony_ci#define EMAC_LED_10MB_OVERRIDE					 (1L<<3)
60448c2ecf20Sopenharmony_ci#define EMAC_LED_2500MB_OVERRIDE				 (1L<<12)
60458c2ecf20Sopenharmony_ci#define EMAC_LED_OVERRIDE					 (1L<<0)
60468c2ecf20Sopenharmony_ci#define EMAC_LED_TRAFFIC					 (1L<<6)
60478c2ecf20Sopenharmony_ci#define EMAC_MDIO_COMM_COMMAND_ADDRESS				 (0L<<26)
60488c2ecf20Sopenharmony_ci#define EMAC_MDIO_COMM_COMMAND_READ_22				 (2L<<26)
60498c2ecf20Sopenharmony_ci#define EMAC_MDIO_COMM_COMMAND_READ_45				 (3L<<26)
60508c2ecf20Sopenharmony_ci#define EMAC_MDIO_COMM_COMMAND_WRITE_22				 (1L<<26)
60518c2ecf20Sopenharmony_ci#define EMAC_MDIO_COMM_COMMAND_WRITE_45 			 (1L<<26)
60528c2ecf20Sopenharmony_ci#define EMAC_MDIO_COMM_DATA					 (0xffffL<<0)
60538c2ecf20Sopenharmony_ci#define EMAC_MDIO_COMM_START_BUSY				 (1L<<29)
60548c2ecf20Sopenharmony_ci#define EMAC_MDIO_MODE_AUTO_POLL				 (1L<<4)
60558c2ecf20Sopenharmony_ci#define EMAC_MDIO_MODE_CLAUSE_45				 (1L<<31)
60568c2ecf20Sopenharmony_ci#define EMAC_MDIO_MODE_CLOCK_CNT				 (0x3ffL<<16)
60578c2ecf20Sopenharmony_ci#define EMAC_MDIO_MODE_CLOCK_CNT_BITSHIFT			 16
60588c2ecf20Sopenharmony_ci#define EMAC_MDIO_STATUS_10MB					 (1L<<1)
60598c2ecf20Sopenharmony_ci#define EMAC_MODE_25G_MODE					 (1L<<5)
60608c2ecf20Sopenharmony_ci#define EMAC_MODE_HALF_DUPLEX					 (1L<<1)
60618c2ecf20Sopenharmony_ci#define EMAC_MODE_PORT_GMII					 (2L<<2)
60628c2ecf20Sopenharmony_ci#define EMAC_MODE_PORT_MII					 (1L<<2)
60638c2ecf20Sopenharmony_ci#define EMAC_MODE_PORT_MII_10M					 (3L<<2)
60648c2ecf20Sopenharmony_ci#define EMAC_MODE_RESET 					 (1L<<0)
60658c2ecf20Sopenharmony_ci#define EMAC_REG_EMAC_LED					 0xc
60668c2ecf20Sopenharmony_ci#define EMAC_REG_EMAC_MAC_MATCH 				 0x10
60678c2ecf20Sopenharmony_ci#define EMAC_REG_EMAC_MDIO_COMM 				 0xac
60688c2ecf20Sopenharmony_ci#define EMAC_REG_EMAC_MDIO_MODE 				 0xb4
60698c2ecf20Sopenharmony_ci#define EMAC_REG_EMAC_MDIO_STATUS				 0xb0
60708c2ecf20Sopenharmony_ci#define EMAC_REG_EMAC_MODE					 0x0
60718c2ecf20Sopenharmony_ci#define EMAC_REG_EMAC_RX_MODE					 0xc8
60728c2ecf20Sopenharmony_ci#define EMAC_REG_EMAC_RX_MTU_SIZE				 0x9c
60738c2ecf20Sopenharmony_ci#define EMAC_REG_EMAC_RX_STAT_AC				 0x180
60748c2ecf20Sopenharmony_ci#define EMAC_REG_EMAC_RX_STAT_AC_28				 0x1f4
60758c2ecf20Sopenharmony_ci#define EMAC_REG_EMAC_RX_STAT_AC_COUNT				 23
60768c2ecf20Sopenharmony_ci#define EMAC_REG_EMAC_TX_MODE					 0xbc
60778c2ecf20Sopenharmony_ci#define EMAC_REG_EMAC_TX_STAT_AC				 0x280
60788c2ecf20Sopenharmony_ci#define EMAC_REG_EMAC_TX_STAT_AC_COUNT				 22
60798c2ecf20Sopenharmony_ci#define EMAC_REG_RX_PFC_MODE					 0x320
60808c2ecf20Sopenharmony_ci#define EMAC_REG_RX_PFC_MODE_PRIORITIES				 (1L<<2)
60818c2ecf20Sopenharmony_ci#define EMAC_REG_RX_PFC_MODE_RX_EN				 (1L<<1)
60828c2ecf20Sopenharmony_ci#define EMAC_REG_RX_PFC_MODE_TX_EN				 (1L<<0)
60838c2ecf20Sopenharmony_ci#define EMAC_REG_RX_PFC_PARAM					 0x324
60848c2ecf20Sopenharmony_ci#define EMAC_REG_RX_PFC_PARAM_OPCODE_BITSHIFT			 0
60858c2ecf20Sopenharmony_ci#define EMAC_REG_RX_PFC_PARAM_PRIORITY_EN_BITSHIFT		 16
60868c2ecf20Sopenharmony_ci#define EMAC_REG_RX_PFC_STATS_XOFF_RCVD				 0x328
60878c2ecf20Sopenharmony_ci#define EMAC_REG_RX_PFC_STATS_XOFF_RCVD_COUNT			 (0xffff<<0)
60888c2ecf20Sopenharmony_ci#define EMAC_REG_RX_PFC_STATS_XOFF_SENT				 0x330
60898c2ecf20Sopenharmony_ci#define EMAC_REG_RX_PFC_STATS_XOFF_SENT_COUNT			 (0xffff<<0)
60908c2ecf20Sopenharmony_ci#define EMAC_REG_RX_PFC_STATS_XON_RCVD				 0x32c
60918c2ecf20Sopenharmony_ci#define EMAC_REG_RX_PFC_STATS_XON_RCVD_COUNT			 (0xffff<<0)
60928c2ecf20Sopenharmony_ci#define EMAC_REG_RX_PFC_STATS_XON_SENT				 0x334
60938c2ecf20Sopenharmony_ci#define EMAC_REG_RX_PFC_STATS_XON_SENT_COUNT			 (0xffff<<0)
60948c2ecf20Sopenharmony_ci#define EMAC_RX_MODE_FLOW_EN					 (1L<<2)
60958c2ecf20Sopenharmony_ci#define EMAC_RX_MODE_KEEP_MAC_CONTROL				 (1L<<3)
60968c2ecf20Sopenharmony_ci#define EMAC_RX_MODE_KEEP_VLAN_TAG				 (1L<<10)
60978c2ecf20Sopenharmony_ci#define EMAC_RX_MODE_PROMISCUOUS				 (1L<<8)
60988c2ecf20Sopenharmony_ci#define EMAC_RX_MODE_RESET					 (1L<<0)
60998c2ecf20Sopenharmony_ci#define EMAC_RX_MTU_SIZE_JUMBO_ENA				 (1L<<31)
61008c2ecf20Sopenharmony_ci#define EMAC_TX_MODE_EXT_PAUSE_EN				 (1L<<3)
61018c2ecf20Sopenharmony_ci#define EMAC_TX_MODE_FLOW_EN					 (1L<<4)
61028c2ecf20Sopenharmony_ci#define EMAC_TX_MODE_RESET					 (1L<<0)
61038c2ecf20Sopenharmony_ci#define MISC_REGISTERS_GPIO_0					 0
61048c2ecf20Sopenharmony_ci#define MISC_REGISTERS_GPIO_1					 1
61058c2ecf20Sopenharmony_ci#define MISC_REGISTERS_GPIO_2					 2
61068c2ecf20Sopenharmony_ci#define MISC_REGISTERS_GPIO_3					 3
61078c2ecf20Sopenharmony_ci#define MISC_REGISTERS_GPIO_CLR_POS				 16
61088c2ecf20Sopenharmony_ci#define MISC_REGISTERS_GPIO_FLOAT				 (0xffL<<24)
61098c2ecf20Sopenharmony_ci#define MISC_REGISTERS_GPIO_FLOAT_POS				 24
61108c2ecf20Sopenharmony_ci#define MISC_REGISTERS_GPIO_HIGH				 1
61118c2ecf20Sopenharmony_ci#define MISC_REGISTERS_GPIO_INPUT_HI_Z				 2
61128c2ecf20Sopenharmony_ci#define MISC_REGISTERS_GPIO_INT_CLR_POS 			 24
61138c2ecf20Sopenharmony_ci#define MISC_REGISTERS_GPIO_INT_OUTPUT_CLR			 0
61148c2ecf20Sopenharmony_ci#define MISC_REGISTERS_GPIO_INT_OUTPUT_SET			 1
61158c2ecf20Sopenharmony_ci#define MISC_REGISTERS_GPIO_INT_SET_POS 			 16
61168c2ecf20Sopenharmony_ci#define MISC_REGISTERS_GPIO_LOW 				 0
61178c2ecf20Sopenharmony_ci#define MISC_REGISTERS_GPIO_OUTPUT_HIGH 			 1
61188c2ecf20Sopenharmony_ci#define MISC_REGISTERS_GPIO_OUTPUT_LOW				 0
61198c2ecf20Sopenharmony_ci#define MISC_REGISTERS_GPIO_PORT_SHIFT				 4
61208c2ecf20Sopenharmony_ci#define MISC_REGISTERS_GPIO_SET_POS				 8
61218c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_1_CLEAR			 0x588
61228c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_1_RST_BRB1			 (0x1<<0)
61238c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_1_RST_DORQ			 (0x1<<19)
61248c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_1_RST_HC			 (0x1<<29)
61258c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_1_RST_NIG			 (0x1<<7)
61268c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_1_RST_PXP			 (0x1<<26)
61278c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_1_RST_PXPV			 (0x1<<27)
61288c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_1_RST_XSEM			 (0x1<<22)
61298c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_1_SET				 0x584
61308c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_2_CLEAR			 0x598
61318c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_2_MSTAT0			 (0x1<<24)
61328c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_2_MSTAT1			 (0x1<<25)
61338c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_2_PGLC				 (0x1<<19)
61348c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_2_RST_ATC			 (0x1<<17)
61358c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_2_RST_BMAC0			 (0x1<<0)
61368c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_2_RST_BMAC1			 (0x1<<1)
61378c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_2_RST_EMAC0			 (0x1<<2)
61388c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_2_RST_EMAC0_HARD_CORE		 (0x1<<14)
61398c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_2_RST_EMAC1			 (0x1<<3)
61408c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_2_RST_EMAC1_HARD_CORE		 (0x1<<15)
61418c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_2_RST_GRC			 (0x1<<4)
61428c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_2_RST_MCP_N_HARD_CORE_RST_B	 (0x1<<6)
61438c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_2_RST_MCP_N_RESET_CMN_CORE	 (0x1<<8)
61448c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_2_RST_MCP_N_RESET_CMN_CPU	 (0x1<<7)
61458c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_2_RST_MCP_N_RESET_REG_HARD_CORE (0x1<<5)
61468c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_2_RST_MDIO			 (0x1<<13)
61478c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_2_RST_MISC_CORE		 (0x1<<11)
61488c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_2_RST_PCI_MDIO			 (0x1<<13)
61498c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_2_RST_RBCN			 (0x1<<9)
61508c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_2_SET				 0x594
61518c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_2_UMAC0			 (0x1<<20)
61528c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_2_UMAC1			 (0x1<<21)
61538c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_2_XMAC				 (0x1<<22)
61548c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_2_XMAC_SOFT			 (0x1<<23)
61558c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_3_CLEAR			 0x5a8
61568c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_SERDES0_IDDQ	 (0x1<<1)
61578c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_SERDES0_PWRDWN	 (0x1<<2)
61588c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_SERDES0_PWRDWN_SD (0x1<<3)
61598c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_SERDES0_RSTB_HW  (0x1<<0)
61608c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_IDDQ	 (0x1<<5)
61618c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_PWRDWN	 (0x1<<6)
61628c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_PWRDWN_SD  (0x1<<7)
61638c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_RSTB_HW	 (0x1<<4)
61648c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_3_MISC_NIG_MUX_XGXS0_TXD_FIFO_RSTB (0x1<<8)
61658c2ecf20Sopenharmony_ci#define MISC_REGISTERS_RESET_REG_3_SET				 0x5a4
61668c2ecf20Sopenharmony_ci#define MISC_REGISTERS_SPIO_4					 4
61678c2ecf20Sopenharmony_ci#define MISC_REGISTERS_SPIO_5					 5
61688c2ecf20Sopenharmony_ci#define MISC_REGISTERS_SPIO_7					 7
61698c2ecf20Sopenharmony_ci#define MISC_REGISTERS_SPIO_CLR_POS				 16
61708c2ecf20Sopenharmony_ci#define MISC_REGISTERS_SPIO_FLOAT				 (0xffL<<24)
61718c2ecf20Sopenharmony_ci#define MISC_REGISTERS_SPIO_FLOAT_POS				 24
61728c2ecf20Sopenharmony_ci#define MISC_REGISTERS_SPIO_INPUT_HI_Z				 2
61738c2ecf20Sopenharmony_ci#define MISC_REGISTERS_SPIO_INT_OLD_SET_POS			 16
61748c2ecf20Sopenharmony_ci#define MISC_REGISTERS_SPIO_OUTPUT_HIGH 			 1
61758c2ecf20Sopenharmony_ci#define MISC_REGISTERS_SPIO_OUTPUT_LOW				 0
61768c2ecf20Sopenharmony_ci#define MISC_REGISTERS_SPIO_SET_POS				 8
61778c2ecf20Sopenharmony_ci#define MISC_SPIO_CLR_POS					 16
61788c2ecf20Sopenharmony_ci#define MISC_SPIO_FLOAT					 (0xffL<<24)
61798c2ecf20Sopenharmony_ci#define MISC_SPIO_FLOAT_POS					 24
61808c2ecf20Sopenharmony_ci#define MISC_SPIO_INPUT_HI_Z					 2
61818c2ecf20Sopenharmony_ci#define MISC_SPIO_INT_OLD_SET_POS				 16
61828c2ecf20Sopenharmony_ci#define MISC_SPIO_OUTPUT_HIGH					 1
61838c2ecf20Sopenharmony_ci#define MISC_SPIO_OUTPUT_LOW					 0
61848c2ecf20Sopenharmony_ci#define MISC_SPIO_SET_POS					 8
61858c2ecf20Sopenharmony_ci#define MISC_SPIO_SPIO4					 0x10
61868c2ecf20Sopenharmony_ci#define MISC_SPIO_SPIO5					 0x20
61878c2ecf20Sopenharmony_ci#define HW_LOCK_MAX_RESOURCE_VALUE				 31
61888c2ecf20Sopenharmony_ci#define HW_LOCK_RESOURCE_DCBX_ADMIN_MIB				 13
61898c2ecf20Sopenharmony_ci#define HW_LOCK_RESOURCE_DRV_FLAGS				 10
61908c2ecf20Sopenharmony_ci#define HW_LOCK_RESOURCE_GPIO					 1
61918c2ecf20Sopenharmony_ci#define HW_LOCK_RESOURCE_MDIO					 0
61928c2ecf20Sopenharmony_ci#define HW_LOCK_RESOURCE_NVRAM					 12
61938c2ecf20Sopenharmony_ci#define HW_LOCK_RESOURCE_PORT0_ATT_MASK				 3
61948c2ecf20Sopenharmony_ci#define HW_LOCK_RESOURCE_RECOVERY_LEADER_0			 8
61958c2ecf20Sopenharmony_ci#define HW_LOCK_RESOURCE_RECOVERY_LEADER_1			 9
61968c2ecf20Sopenharmony_ci#define HW_LOCK_RESOURCE_RECOVERY_REG				 11
61978c2ecf20Sopenharmony_ci#define HW_LOCK_RESOURCE_RESET					 5
61988c2ecf20Sopenharmony_ci#define HW_LOCK_RESOURCE_SPIO					 2
61998c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_ATC_HW_INTERRUPT			 (0x1<<4)
62008c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_ATC_PARITY_ERROR			 (0x1<<5)
62018c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_BRB_HW_INTERRUPT			 (0x1<<19)
62028c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_BRB_PARITY_ERROR			 (0x1<<18)
62038c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_CCM_HW_INTERRUPT			 (0x1<<31)
62048c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_CCM_PARITY_ERROR			 (0x1<<30)
62058c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_CDU_HW_INTERRUPT			 (0x1<<9)
62068c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_CDU_PARITY_ERROR			 (0x1<<8)
62078c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_CFC_HW_INTERRUPT			 (0x1<<7)
62088c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_CFC_PARITY_ERROR			 (0x1<<6)
62098c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_CSDM_HW_INTERRUPT			 (0x1<<29)
62108c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_CSDM_PARITY_ERROR			 (0x1<<28)
62118c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_CSEMI_HW_INTERRUPT			 (0x1<<1)
62128c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_CSEMI_PARITY_ERROR			 (0x1<<0)
62138c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_DEBUG_PARITY_ERROR			 (0x1<<18)
62148c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_DMAE_HW_INTERRUPT			 (0x1<<11)
62158c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_DMAE_PARITY_ERROR			 (0x1<<10)
62168c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_DOORBELLQ_HW_INTERRUPT		 (0x1<<13)
62178c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_DOORBELLQ_PARITY_ERROR		 (0x1<<12)
62188c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_GPIO0_FUNCTION_0			 (0x1<<2)
62198c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_IGU_PARITY_ERROR			 (0x1<<12)
62208c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_MCP_LATCHED_ROM_PARITY		 (0x1<<28)
62218c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_MCP_LATCHED_SCPAD_PARITY		 (0x1<<31)
62228c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_MCP_LATCHED_UMP_RX_PARITY		 (0x1<<29)
62238c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_MCP_LATCHED_UMP_TX_PARITY		 (0x1<<30)
62248c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_MISC_HW_INTERRUPT			 (0x1<<15)
62258c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_MISC_PARITY_ERROR			 (0x1<<14)
62268c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_NIG_PARITY_ERROR			 (0x1<<14)
62278c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_PARSER_PARITY_ERROR		 (0x1<<20)
62288c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_PBCLIENT_HW_INTERRUPT		 (0x1<<31)
62298c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_PBCLIENT_PARITY_ERROR		 (0x1<<30)
62308c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_PBF_PARITY_ERROR			 (0x1<<0)
62318c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_PGLUE_HW_INTERRUPT			 (0x1<<2)
62328c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_PGLUE_PARITY_ERROR			 (0x1<<3)
62338c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_PXPPCICLOCKCLIENT_HW_INTERRUPT	 (0x1<<5)
62348c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_PXPPCICLOCKCLIENT_PARITY_ERROR	 (0x1<<4)
62358c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_PXP_HW_INTERRUPT			 (0x1<<3)
62368c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_PXP_PARITY_ERROR			 (0x1<<2)
62378c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_QM_HW_INTERRUPT			 (0x1<<3)
62388c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_QM_PARITY_ERROR			 (0x1<<2)
62398c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_SEARCHER_PARITY_ERROR		 (0x1<<22)
62408c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_SPIO5				 (0x1<<15)
62418c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_TCM_HW_INTERRUPT			 (0x1<<27)
62428c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_TCM_PARITY_ERROR			 (0x1<<26)
62438c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_TIMERS_HW_INTERRUPT		 (0x1<<5)
62448c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_TIMERS_PARITY_ERROR		 (0x1<<4)
62458c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_TSDM_HW_INTERRUPT			 (0x1<<25)
62468c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_TSDM_PARITY_ERROR			 (0x1<<24)
62478c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_TSEMI_HW_INTERRUPT			 (0x1<<29)
62488c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_TSEMI_PARITY_ERROR			 (0x1<<28)
62498c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_UCM_HW_INTERRUPT			 (0x1<<23)
62508c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_UCM_PARITY_ERROR			 (0x1<<22)
62518c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_UPB_HW_INTERRUPT			 (0x1<<27)
62528c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_UPB_PARITY_ERROR			 (0x1<<26)
62538c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_USDM_HW_INTERRUPT			 (0x1<<21)
62548c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_USDM_PARITY_ERROR			 (0x1<<20)
62558c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_USEMI_HW_INTERRUPT			 (0x1<<25)
62568c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_USEMI_PARITY_ERROR			 (0x1<<24)
62578c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_VAUX_PCI_CORE_PARITY_ERROR		 (0x1<<16)
62588c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_XCM_HW_INTERRUPT			 (0x1<<9)
62598c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_XCM_PARITY_ERROR			 (0x1<<8)
62608c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_XSDM_HW_INTERRUPT			 (0x1<<7)
62618c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_XSDM_PARITY_ERROR			 (0x1<<6)
62628c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_XSEMI_HW_INTERRUPT			 (0x1<<11)
62638c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_XSEMI_PARITY_ERROR			 (0x1<<10)
62648c2ecf20Sopenharmony_ci
62658c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_GPIO3_FUNCTION_0			(0x1<<5)
62668c2ecf20Sopenharmony_ci#define AEU_INPUTS_ATTN_BITS_GPIO3_FUNCTION_1			(0x1<<9)
62678c2ecf20Sopenharmony_ci
62688c2ecf20Sopenharmony_ci#define RESERVED_GENERAL_ATTENTION_BIT_0	0
62698c2ecf20Sopenharmony_ci
62708c2ecf20Sopenharmony_ci#define EVEREST_GEN_ATTN_IN_USE_MASK		0x7ffe0
62718c2ecf20Sopenharmony_ci#define EVEREST_LATCHED_ATTN_IN_USE_MASK	0xffe00000
62728c2ecf20Sopenharmony_ci
62738c2ecf20Sopenharmony_ci#define RESERVED_GENERAL_ATTENTION_BIT_6	6
62748c2ecf20Sopenharmony_ci#define RESERVED_GENERAL_ATTENTION_BIT_7	7
62758c2ecf20Sopenharmony_ci#define RESERVED_GENERAL_ATTENTION_BIT_8	8
62768c2ecf20Sopenharmony_ci#define RESERVED_GENERAL_ATTENTION_BIT_9	9
62778c2ecf20Sopenharmony_ci#define RESERVED_GENERAL_ATTENTION_BIT_10	10
62788c2ecf20Sopenharmony_ci#define RESERVED_GENERAL_ATTENTION_BIT_11	11
62798c2ecf20Sopenharmony_ci#define RESERVED_GENERAL_ATTENTION_BIT_12	12
62808c2ecf20Sopenharmony_ci#define RESERVED_GENERAL_ATTENTION_BIT_13	13
62818c2ecf20Sopenharmony_ci#define RESERVED_GENERAL_ATTENTION_BIT_14	14
62828c2ecf20Sopenharmony_ci#define RESERVED_GENERAL_ATTENTION_BIT_15	15
62838c2ecf20Sopenharmony_ci#define RESERVED_GENERAL_ATTENTION_BIT_16	16
62848c2ecf20Sopenharmony_ci#define RESERVED_GENERAL_ATTENTION_BIT_17	17
62858c2ecf20Sopenharmony_ci#define RESERVED_GENERAL_ATTENTION_BIT_18	18
62868c2ecf20Sopenharmony_ci#define RESERVED_GENERAL_ATTENTION_BIT_19	19
62878c2ecf20Sopenharmony_ci#define RESERVED_GENERAL_ATTENTION_BIT_20	20
62888c2ecf20Sopenharmony_ci#define RESERVED_GENERAL_ATTENTION_BIT_21	21
62898c2ecf20Sopenharmony_ci
62908c2ecf20Sopenharmony_ci/* storm asserts attention bits */
62918c2ecf20Sopenharmony_ci#define TSTORM_FATAL_ASSERT_ATTENTION_BIT     RESERVED_GENERAL_ATTENTION_BIT_7
62928c2ecf20Sopenharmony_ci#define USTORM_FATAL_ASSERT_ATTENTION_BIT     RESERVED_GENERAL_ATTENTION_BIT_8
62938c2ecf20Sopenharmony_ci#define CSTORM_FATAL_ASSERT_ATTENTION_BIT     RESERVED_GENERAL_ATTENTION_BIT_9
62948c2ecf20Sopenharmony_ci#define XSTORM_FATAL_ASSERT_ATTENTION_BIT     RESERVED_GENERAL_ATTENTION_BIT_10
62958c2ecf20Sopenharmony_ci
62968c2ecf20Sopenharmony_ci/* mcp error attention bit */
62978c2ecf20Sopenharmony_ci#define MCP_FATAL_ASSERT_ATTENTION_BIT	      RESERVED_GENERAL_ATTENTION_BIT_11
62988c2ecf20Sopenharmony_ci
62998c2ecf20Sopenharmony_ci/*E1H NIG status sync attention mapped to group 4-7*/
63008c2ecf20Sopenharmony_ci#define LINK_SYNC_ATTENTION_BIT_FUNC_0	    RESERVED_GENERAL_ATTENTION_BIT_12
63018c2ecf20Sopenharmony_ci#define LINK_SYNC_ATTENTION_BIT_FUNC_1	    RESERVED_GENERAL_ATTENTION_BIT_13
63028c2ecf20Sopenharmony_ci#define LINK_SYNC_ATTENTION_BIT_FUNC_2	    RESERVED_GENERAL_ATTENTION_BIT_14
63038c2ecf20Sopenharmony_ci#define LINK_SYNC_ATTENTION_BIT_FUNC_3	    RESERVED_GENERAL_ATTENTION_BIT_15
63048c2ecf20Sopenharmony_ci#define LINK_SYNC_ATTENTION_BIT_FUNC_4	    RESERVED_GENERAL_ATTENTION_BIT_16
63058c2ecf20Sopenharmony_ci#define LINK_SYNC_ATTENTION_BIT_FUNC_5	    RESERVED_GENERAL_ATTENTION_BIT_17
63068c2ecf20Sopenharmony_ci#define LINK_SYNC_ATTENTION_BIT_FUNC_6	    RESERVED_GENERAL_ATTENTION_BIT_18
63078c2ecf20Sopenharmony_ci#define LINK_SYNC_ATTENTION_BIT_FUNC_7	    RESERVED_GENERAL_ATTENTION_BIT_19
63088c2ecf20Sopenharmony_ci
63098c2ecf20Sopenharmony_ci
63108c2ecf20Sopenharmony_ci#define LATCHED_ATTN_RBCR			23
63118c2ecf20Sopenharmony_ci#define LATCHED_ATTN_RBCT			24
63128c2ecf20Sopenharmony_ci#define LATCHED_ATTN_RBCN			25
63138c2ecf20Sopenharmony_ci#define LATCHED_ATTN_RBCU			26
63148c2ecf20Sopenharmony_ci#define LATCHED_ATTN_RBCP			27
63158c2ecf20Sopenharmony_ci#define LATCHED_ATTN_TIMEOUT_GRC		28
63168c2ecf20Sopenharmony_ci#define LATCHED_ATTN_RSVD_GRC			29
63178c2ecf20Sopenharmony_ci#define LATCHED_ATTN_ROM_PARITY_MCP		30
63188c2ecf20Sopenharmony_ci#define LATCHED_ATTN_UM_RX_PARITY_MCP		31
63198c2ecf20Sopenharmony_ci#define LATCHED_ATTN_UM_TX_PARITY_MCP		32
63208c2ecf20Sopenharmony_ci#define LATCHED_ATTN_SCPAD_PARITY_MCP		33
63218c2ecf20Sopenharmony_ci
63228c2ecf20Sopenharmony_ci#define GENERAL_ATTEN_WORD(atten_name)	       ((94 + atten_name) / 32)
63238c2ecf20Sopenharmony_ci#define GENERAL_ATTEN_OFFSET(atten_name)\
63248c2ecf20Sopenharmony_ci	(1UL << ((94 + atten_name) % 32))
63258c2ecf20Sopenharmony_ci/*
63268c2ecf20Sopenharmony_ci * This file defines GRC base address for every block.
63278c2ecf20Sopenharmony_ci * This file is included by chipsim, asm microcode and cpp microcode.
63288c2ecf20Sopenharmony_ci * These values are used in Design.xml on regBase attribute
63298c2ecf20Sopenharmony_ci * Use the base with the generated offsets of specific registers.
63308c2ecf20Sopenharmony_ci */
63318c2ecf20Sopenharmony_ci
63328c2ecf20Sopenharmony_ci#define GRCBASE_PXPCS		0x000000
63338c2ecf20Sopenharmony_ci#define GRCBASE_PCICONFIG	0x002000
63348c2ecf20Sopenharmony_ci#define GRCBASE_PCIREG		0x002400
63358c2ecf20Sopenharmony_ci#define GRCBASE_EMAC0		0x008000
63368c2ecf20Sopenharmony_ci#define GRCBASE_EMAC1		0x008400
63378c2ecf20Sopenharmony_ci#define GRCBASE_DBU		0x008800
63388c2ecf20Sopenharmony_ci#define GRCBASE_MISC		0x00A000
63398c2ecf20Sopenharmony_ci#define GRCBASE_DBG		0x00C000
63408c2ecf20Sopenharmony_ci#define GRCBASE_NIG		0x010000
63418c2ecf20Sopenharmony_ci#define GRCBASE_XCM		0x020000
63428c2ecf20Sopenharmony_ci#define GRCBASE_PRS		0x040000
63438c2ecf20Sopenharmony_ci#define GRCBASE_SRCH		0x040400
63448c2ecf20Sopenharmony_ci#define GRCBASE_TSDM		0x042000
63458c2ecf20Sopenharmony_ci#define GRCBASE_TCM		0x050000
63468c2ecf20Sopenharmony_ci#define GRCBASE_BRB1		0x060000
63478c2ecf20Sopenharmony_ci#define GRCBASE_MCP		0x080000
63488c2ecf20Sopenharmony_ci#define GRCBASE_UPB		0x0C1000
63498c2ecf20Sopenharmony_ci#define GRCBASE_CSDM		0x0C2000
63508c2ecf20Sopenharmony_ci#define GRCBASE_USDM		0x0C4000
63518c2ecf20Sopenharmony_ci#define GRCBASE_CCM		0x0D0000
63528c2ecf20Sopenharmony_ci#define GRCBASE_UCM		0x0E0000
63538c2ecf20Sopenharmony_ci#define GRCBASE_CDU		0x101000
63548c2ecf20Sopenharmony_ci#define GRCBASE_DMAE		0x102000
63558c2ecf20Sopenharmony_ci#define GRCBASE_PXP		0x103000
63568c2ecf20Sopenharmony_ci#define GRCBASE_CFC		0x104000
63578c2ecf20Sopenharmony_ci#define GRCBASE_HC		0x108000
63588c2ecf20Sopenharmony_ci#define GRCBASE_PXP2		0x120000
63598c2ecf20Sopenharmony_ci#define GRCBASE_PBF		0x140000
63608c2ecf20Sopenharmony_ci#define GRCBASE_UMAC0		0x160000
63618c2ecf20Sopenharmony_ci#define GRCBASE_UMAC1		0x160400
63628c2ecf20Sopenharmony_ci#define GRCBASE_XPB		0x161000
63638c2ecf20Sopenharmony_ci#define GRCBASE_MSTAT0	    0x162000
63648c2ecf20Sopenharmony_ci#define GRCBASE_MSTAT1	    0x162800
63658c2ecf20Sopenharmony_ci#define GRCBASE_XMAC0		0x163000
63668c2ecf20Sopenharmony_ci#define GRCBASE_XMAC1		0x163800
63678c2ecf20Sopenharmony_ci#define GRCBASE_TIMERS		0x164000
63688c2ecf20Sopenharmony_ci#define GRCBASE_XSDM		0x166000
63698c2ecf20Sopenharmony_ci#define GRCBASE_QM		0x168000
63708c2ecf20Sopenharmony_ci#define GRCBASE_DQ		0x170000
63718c2ecf20Sopenharmony_ci#define GRCBASE_TSEM		0x180000
63728c2ecf20Sopenharmony_ci#define GRCBASE_CSEM		0x200000
63738c2ecf20Sopenharmony_ci#define GRCBASE_XSEM		0x280000
63748c2ecf20Sopenharmony_ci#define GRCBASE_USEM		0x300000
63758c2ecf20Sopenharmony_ci#define GRCBASE_MISC_AEU	GRCBASE_MISC
63768c2ecf20Sopenharmony_ci
63778c2ecf20Sopenharmony_ci
63788c2ecf20Sopenharmony_ci/* offset of configuration space in the pci core register */
63798c2ecf20Sopenharmony_ci#define PCICFG_OFFSET					0x2000
63808c2ecf20Sopenharmony_ci#define PCICFG_VENDOR_ID_OFFSET 			0x00
63818c2ecf20Sopenharmony_ci#define PCICFG_DEVICE_ID_OFFSET 			0x02
63828c2ecf20Sopenharmony_ci#define PCICFG_COMMAND_OFFSET				0x04
63838c2ecf20Sopenharmony_ci#define PCICFG_COMMAND_IO_SPACE 		(1<<0)
63848c2ecf20Sopenharmony_ci#define PCICFG_COMMAND_MEM_SPACE		(1<<1)
63858c2ecf20Sopenharmony_ci#define PCICFG_COMMAND_BUS_MASTER		(1<<2)
63868c2ecf20Sopenharmony_ci#define PCICFG_COMMAND_SPECIAL_CYCLES		(1<<3)
63878c2ecf20Sopenharmony_ci#define PCICFG_COMMAND_MWI_CYCLES		(1<<4)
63888c2ecf20Sopenharmony_ci#define PCICFG_COMMAND_VGA_SNOOP		(1<<5)
63898c2ecf20Sopenharmony_ci#define PCICFG_COMMAND_PERR_ENA 		(1<<6)
63908c2ecf20Sopenharmony_ci#define PCICFG_COMMAND_STEPPING 		(1<<7)
63918c2ecf20Sopenharmony_ci#define PCICFG_COMMAND_SERR_ENA 		(1<<8)
63928c2ecf20Sopenharmony_ci#define PCICFG_COMMAND_FAST_B2B 		(1<<9)
63938c2ecf20Sopenharmony_ci#define PCICFG_COMMAND_INT_DISABLE		(1<<10)
63948c2ecf20Sopenharmony_ci#define PCICFG_COMMAND_RESERVED 		(0x1f<<11)
63958c2ecf20Sopenharmony_ci#define PCICFG_STATUS_OFFSET				0x06
63968c2ecf20Sopenharmony_ci#define PCICFG_REVISION_ID_OFFSET			0x08
63978c2ecf20Sopenharmony_ci#define PCICFG_REVESION_ID_MASK			0xff
63988c2ecf20Sopenharmony_ci#define PCICFG_REVESION_ID_ERROR_VAL		0xff
63998c2ecf20Sopenharmony_ci#define PCICFG_CACHE_LINE_SIZE				0x0c
64008c2ecf20Sopenharmony_ci#define PCICFG_LATENCY_TIMER				0x0d
64018c2ecf20Sopenharmony_ci#define PCICFG_BAR_1_LOW				0x10
64028c2ecf20Sopenharmony_ci#define PCICFG_BAR_1_HIGH				0x14
64038c2ecf20Sopenharmony_ci#define PCICFG_BAR_2_LOW				0x18
64048c2ecf20Sopenharmony_ci#define PCICFG_BAR_2_HIGH				0x1c
64058c2ecf20Sopenharmony_ci#define PCICFG_SUBSYSTEM_VENDOR_ID_OFFSET		0x2c
64068c2ecf20Sopenharmony_ci#define PCICFG_SUBSYSTEM_ID_OFFSET			0x2e
64078c2ecf20Sopenharmony_ci#define PCICFG_INT_LINE 				0x3c
64088c2ecf20Sopenharmony_ci#define PCICFG_INT_PIN					0x3d
64098c2ecf20Sopenharmony_ci#define PCICFG_PM_CAPABILITY				0x48
64108c2ecf20Sopenharmony_ci#define PCICFG_PM_CAPABILITY_VERSION		(0x3<<16)
64118c2ecf20Sopenharmony_ci#define PCICFG_PM_CAPABILITY_CLOCK		(1<<19)
64128c2ecf20Sopenharmony_ci#define PCICFG_PM_CAPABILITY_RESERVED		(1<<20)
64138c2ecf20Sopenharmony_ci#define PCICFG_PM_CAPABILITY_DSI		(1<<21)
64148c2ecf20Sopenharmony_ci#define PCICFG_PM_CAPABILITY_AUX_CURRENT	(0x7<<22)
64158c2ecf20Sopenharmony_ci#define PCICFG_PM_CAPABILITY_D1_SUPPORT 	(1<<25)
64168c2ecf20Sopenharmony_ci#define PCICFG_PM_CAPABILITY_D2_SUPPORT 	(1<<26)
64178c2ecf20Sopenharmony_ci#define PCICFG_PM_CAPABILITY_PME_IN_D0		(1<<27)
64188c2ecf20Sopenharmony_ci#define PCICFG_PM_CAPABILITY_PME_IN_D1		(1<<28)
64198c2ecf20Sopenharmony_ci#define PCICFG_PM_CAPABILITY_PME_IN_D2		(1<<29)
64208c2ecf20Sopenharmony_ci#define PCICFG_PM_CAPABILITY_PME_IN_D3_HOT	(1<<30)
64218c2ecf20Sopenharmony_ci#define PCICFG_PM_CAPABILITY_PME_IN_D3_COLD	(1<<31)
64228c2ecf20Sopenharmony_ci#define PCICFG_PM_CSR_OFFSET				0x4c
64238c2ecf20Sopenharmony_ci#define PCICFG_PM_CSR_STATE			(0x3<<0)
64248c2ecf20Sopenharmony_ci#define PCICFG_PM_CSR_PME_ENABLE		(1<<8)
64258c2ecf20Sopenharmony_ci#define PCICFG_PM_CSR_PME_STATUS		(1<<15)
64268c2ecf20Sopenharmony_ci#define PCICFG_MSI_CAP_ID_OFFSET			0x58
64278c2ecf20Sopenharmony_ci#define PCICFG_MSI_CONTROL_ENABLE		(0x1<<16)
64288c2ecf20Sopenharmony_ci#define PCICFG_MSI_CONTROL_MCAP 		(0x7<<17)
64298c2ecf20Sopenharmony_ci#define PCICFG_MSI_CONTROL_MENA 		(0x7<<20)
64308c2ecf20Sopenharmony_ci#define PCICFG_MSI_CONTROL_64_BIT_ADDR_CAP	(0x1<<23)
64318c2ecf20Sopenharmony_ci#define PCICFG_MSI_CONTROL_MSI_PVMASK_CAPABLE	(0x1<<24)
64328c2ecf20Sopenharmony_ci#define PCICFG_GRC_ADDRESS				0x78
64338c2ecf20Sopenharmony_ci#define PCICFG_GRC_DATA				0x80
64348c2ecf20Sopenharmony_ci#define PCICFG_ME_REGISTER				0x98
64358c2ecf20Sopenharmony_ci#define PCICFG_MSIX_CAP_ID_OFFSET			0xa0
64368c2ecf20Sopenharmony_ci#define PCICFG_MSIX_CONTROL_TABLE_SIZE		(0x7ff<<16)
64378c2ecf20Sopenharmony_ci#define PCICFG_MSIX_CONTROL_RESERVED		(0x7<<27)
64388c2ecf20Sopenharmony_ci#define PCICFG_MSIX_CONTROL_FUNC_MASK		(0x1<<30)
64398c2ecf20Sopenharmony_ci#define PCICFG_MSIX_CONTROL_MSIX_ENABLE 	(0x1<<31)
64408c2ecf20Sopenharmony_ci
64418c2ecf20Sopenharmony_ci#define PCICFG_DEVICE_CONTROL				0xb4
64428c2ecf20Sopenharmony_ci#define PCICFG_DEVICE_STATUS				0xb6
64438c2ecf20Sopenharmony_ci#define PCICFG_DEVICE_STATUS_CORR_ERR_DET	(1<<0)
64448c2ecf20Sopenharmony_ci#define PCICFG_DEVICE_STATUS_NON_FATAL_ERR_DET	(1<<1)
64458c2ecf20Sopenharmony_ci#define PCICFG_DEVICE_STATUS_FATAL_ERR_DET	(1<<2)
64468c2ecf20Sopenharmony_ci#define PCICFG_DEVICE_STATUS_UNSUP_REQ_DET	(1<<3)
64478c2ecf20Sopenharmony_ci#define PCICFG_DEVICE_STATUS_AUX_PWR_DET	(1<<4)
64488c2ecf20Sopenharmony_ci#define PCICFG_DEVICE_STATUS_NO_PEND		(1<<5)
64498c2ecf20Sopenharmony_ci#define PCICFG_LINK_CONTROL				0xbc
64508c2ecf20Sopenharmony_ci
64518c2ecf20Sopenharmony_ci
64528c2ecf20Sopenharmony_ci#define BAR_USTRORM_INTMEM				0x400000
64538c2ecf20Sopenharmony_ci#define BAR_CSTRORM_INTMEM				0x410000
64548c2ecf20Sopenharmony_ci#define BAR_XSTRORM_INTMEM				0x420000
64558c2ecf20Sopenharmony_ci#define BAR_TSTRORM_INTMEM				0x430000
64568c2ecf20Sopenharmony_ci
64578c2ecf20Sopenharmony_ci/* for accessing the IGU in case of status block ACK */
64588c2ecf20Sopenharmony_ci#define BAR_IGU_INTMEM					0x440000
64598c2ecf20Sopenharmony_ci
64608c2ecf20Sopenharmony_ci#define BAR_DOORBELL_OFFSET				0x800000
64618c2ecf20Sopenharmony_ci
64628c2ecf20Sopenharmony_ci#define BAR_ME_REGISTER 				0x450000
64638c2ecf20Sopenharmony_ci
64648c2ecf20Sopenharmony_ci/* config_2 offset */
64658c2ecf20Sopenharmony_ci#define GRC_CONFIG_2_SIZE_REG				0x408
64668c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_BAR1_SIZE			(0xfL<<0)
64678c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_BAR1_SIZE_DISABLED 	(0L<<0)
64688c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_BAR1_SIZE_64K		(1L<<0)
64698c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_BAR1_SIZE_128K		(2L<<0)
64708c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_BAR1_SIZE_256K		(3L<<0)
64718c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_BAR1_SIZE_512K		(4L<<0)
64728c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_BAR1_SIZE_1M		(5L<<0)
64738c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_BAR1_SIZE_2M		(6L<<0)
64748c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_BAR1_SIZE_4M		(7L<<0)
64758c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_BAR1_SIZE_8M		(8L<<0)
64768c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_BAR1_SIZE_16M		(9L<<0)
64778c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_BAR1_SIZE_32M		(10L<<0)
64788c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_BAR1_SIZE_64M		(11L<<0)
64798c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_BAR1_SIZE_128M		(12L<<0)
64808c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_BAR1_SIZE_256M		(13L<<0)
64818c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_BAR1_SIZE_512M		(14L<<0)
64828c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_BAR1_SIZE_1G		(15L<<0)
64838c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_BAR1_64ENA 		(1L<<4)
64848c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_EXP_ROM_RETRY		(1L<<5)
64858c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_CFG_CYCLE_RETRY		(1L<<6)
64868c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_FIRST_CFG_DONE		(1L<<7)
64878c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_EXP_ROM_SIZE		(0xffL<<8)
64888c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_EXP_ROM_SIZE_DISABLED	(0L<<8)
64898c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_EXP_ROM_SIZE_2K		(1L<<8)
64908c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_EXP_ROM_SIZE_4K		(2L<<8)
64918c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_EXP_ROM_SIZE_8K		(3L<<8)
64928c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_EXP_ROM_SIZE_16K		(4L<<8)
64938c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_EXP_ROM_SIZE_32K		(5L<<8)
64948c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_EXP_ROM_SIZE_64K		(6L<<8)
64958c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_EXP_ROM_SIZE_128K		(7L<<8)
64968c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_EXP_ROM_SIZE_256K		(8L<<8)
64978c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_EXP_ROM_SIZE_512K		(9L<<8)
64988c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_EXP_ROM_SIZE_1M		(10L<<8)
64998c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_EXP_ROM_SIZE_2M		(11L<<8)
65008c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_EXP_ROM_SIZE_4M		(12L<<8)
65018c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_EXP_ROM_SIZE_8M		(13L<<8)
65028c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_EXP_ROM_SIZE_16M		(14L<<8)
65038c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_EXP_ROM_SIZE_32M		(15L<<8)
65048c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_BAR_PREFETCH		(1L<<16)
65058c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_RESERVED0			(0x7fffL<<17)
65068c2ecf20Sopenharmony_ci
65078c2ecf20Sopenharmony_ci/* config_3 offset */
65088c2ecf20Sopenharmony_ci#define GRC_CONFIG_3_SIZE_REG				0x40c
65098c2ecf20Sopenharmony_ci#define PCI_CONFIG_3_STICKY_BYTE		(0xffL<<0)
65108c2ecf20Sopenharmony_ci#define PCI_CONFIG_3_FORCE_PME			(1L<<24)
65118c2ecf20Sopenharmony_ci#define PCI_CONFIG_3_PME_STATUS 		(1L<<25)
65128c2ecf20Sopenharmony_ci#define PCI_CONFIG_3_PME_ENABLE 		(1L<<26)
65138c2ecf20Sopenharmony_ci#define PCI_CONFIG_3_PM_STATE			(0x3L<<27)
65148c2ecf20Sopenharmony_ci#define PCI_CONFIG_3_VAUX_PRESET		(1L<<30)
65158c2ecf20Sopenharmony_ci#define PCI_CONFIG_3_PCI_POWER			(1L<<31)
65168c2ecf20Sopenharmony_ci
65178c2ecf20Sopenharmony_ci#define GRC_BAR2_CONFIG 				0x4e0
65188c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_BAR2_SIZE			(0xfL<<0)
65198c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_BAR2_SIZE_DISABLED 	(0L<<0)
65208c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_BAR2_SIZE_64K		(1L<<0)
65218c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_BAR2_SIZE_128K		(2L<<0)
65228c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_BAR2_SIZE_256K		(3L<<0)
65238c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_BAR2_SIZE_512K		(4L<<0)
65248c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_BAR2_SIZE_1M		(5L<<0)
65258c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_BAR2_SIZE_2M		(6L<<0)
65268c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_BAR2_SIZE_4M		(7L<<0)
65278c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_BAR2_SIZE_8M		(8L<<0)
65288c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_BAR2_SIZE_16M		(9L<<0)
65298c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_BAR2_SIZE_32M		(10L<<0)
65308c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_BAR2_SIZE_64M		(11L<<0)
65318c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_BAR2_SIZE_128M		(12L<<0)
65328c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_BAR2_SIZE_256M		(13L<<0)
65338c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_BAR2_SIZE_512M		(14L<<0)
65348c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_BAR2_SIZE_1G		(15L<<0)
65358c2ecf20Sopenharmony_ci#define PCI_CONFIG_2_BAR2_64ENA 		(1L<<4)
65368c2ecf20Sopenharmony_ci
65378c2ecf20Sopenharmony_ci#define PCI_PM_DATA_A					0x410
65388c2ecf20Sopenharmony_ci#define PCI_PM_DATA_B					0x414
65398c2ecf20Sopenharmony_ci#define PCI_ID_VAL1					0x434
65408c2ecf20Sopenharmony_ci#define PCI_ID_VAL2					0x438
65418c2ecf20Sopenharmony_ci#define PCI_ID_VAL3					0x43c
65428c2ecf20Sopenharmony_ci
65438c2ecf20Sopenharmony_ci#define GRC_CONFIG_REG_VF_MSIX_CONTROL		    0x61C
65448c2ecf20Sopenharmony_ci#define GRC_CONFIG_REG_PF_INIT_VF		0x624
65458c2ecf20Sopenharmony_ci#define GRC_CR_PF_INIT_VF_PF_FIRST_VF_NUM_MASK	0xf
65468c2ecf20Sopenharmony_ci/* First VF_NUM for PF is encoded in this register.
65478c2ecf20Sopenharmony_ci * The number of VFs assigned to a PF is assumed to be a multiple of 8.
65488c2ecf20Sopenharmony_ci * Software should program these bits based on Total Number of VFs \
65498c2ecf20Sopenharmony_ci * programmed for each PF.
65508c2ecf20Sopenharmony_ci * Since registers from 0x000-0x7ff are split across functions, each PF will
65518c2ecf20Sopenharmony_ci * have the same location for the same 4 bits
65528c2ecf20Sopenharmony_ci */
65538c2ecf20Sopenharmony_ci
65548c2ecf20Sopenharmony_ci#define PXPCS_TL_CONTROL_5		    0x814
65558c2ecf20Sopenharmony_ci#define PXPCS_TL_CONTROL_5_UNKNOWNTYPE_ERR_ATTN    (1 << 29) /*WC*/
65568c2ecf20Sopenharmony_ci#define PXPCS_TL_CONTROL_5_BOUNDARY4K_ERR_ATTN	   (1 << 28)   /*WC*/
65578c2ecf20Sopenharmony_ci#define PXPCS_TL_CONTROL_5_MRRS_ERR_ATTN   (1 << 27)   /*WC*/
65588c2ecf20Sopenharmony_ci#define PXPCS_TL_CONTROL_5_MPS_ERR_ATTN    (1 << 26)   /*WC*/
65598c2ecf20Sopenharmony_ci#define PXPCS_TL_CONTROL_5_TTX_BRIDGE_FORWARD_ERR  (1 << 25)   /*WC*/
65608c2ecf20Sopenharmony_ci#define PXPCS_TL_CONTROL_5_TTX_TXINTF_OVERFLOW	   (1 << 24)   /*WC*/
65618c2ecf20Sopenharmony_ci#define PXPCS_TL_CONTROL_5_PHY_ERR_ATTN    (1 << 23)   /*RO*/
65628c2ecf20Sopenharmony_ci#define PXPCS_TL_CONTROL_5_DL_ERR_ATTN	   (1 << 22)   /*RO*/
65638c2ecf20Sopenharmony_ci#define PXPCS_TL_CONTROL_5_TTX_ERR_NP_TAG_IN_USE   (1 << 21)   /*WC*/
65648c2ecf20Sopenharmony_ci#define PXPCS_TL_CONTROL_5_TRX_ERR_UNEXP_RTAG  (1 << 20)   /*WC*/
65658c2ecf20Sopenharmony_ci#define PXPCS_TL_CONTROL_5_PRI_SIG_TARGET_ABORT1   (1 << 19)   /*WC*/
65668c2ecf20Sopenharmony_ci#define PXPCS_TL_CONTROL_5_ERR_UNSPPORT1   (1 << 18)   /*WC*/
65678c2ecf20Sopenharmony_ci#define PXPCS_TL_CONTROL_5_ERR_ECRC1   (1 << 17)   /*WC*/
65688c2ecf20Sopenharmony_ci#define PXPCS_TL_CONTROL_5_ERR_MALF_TLP1   (1 << 16)   /*WC*/
65698c2ecf20Sopenharmony_ci#define PXPCS_TL_CONTROL_5_ERR_RX_OFLOW1   (1 << 15)   /*WC*/
65708c2ecf20Sopenharmony_ci#define PXPCS_TL_CONTROL_5_ERR_UNEXP_CPL1  (1 << 14)   /*WC*/
65718c2ecf20Sopenharmony_ci#define PXPCS_TL_CONTROL_5_ERR_MASTER_ABRT1    (1 << 13)   /*WC*/
65728c2ecf20Sopenharmony_ci#define PXPCS_TL_CONTROL_5_ERR_CPL_TIMEOUT1    (1 << 12)   /*WC*/
65738c2ecf20Sopenharmony_ci#define PXPCS_TL_CONTROL_5_ERR_FC_PRTL1    (1 << 11)   /*WC*/
65748c2ecf20Sopenharmony_ci#define PXPCS_TL_CONTROL_5_ERR_PSND_TLP1   (1 << 10)   /*WC*/
65758c2ecf20Sopenharmony_ci#define PXPCS_TL_CONTROL_5_PRI_SIG_TARGET_ABORT    (1 << 9)    /*WC*/
65768c2ecf20Sopenharmony_ci#define PXPCS_TL_CONTROL_5_ERR_UNSPPORT    (1 << 8)    /*WC*/
65778c2ecf20Sopenharmony_ci#define PXPCS_TL_CONTROL_5_ERR_ECRC    (1 << 7)    /*WC*/
65788c2ecf20Sopenharmony_ci#define PXPCS_TL_CONTROL_5_ERR_MALF_TLP    (1 << 6)    /*WC*/
65798c2ecf20Sopenharmony_ci#define PXPCS_TL_CONTROL_5_ERR_RX_OFLOW    (1 << 5)    /*WC*/
65808c2ecf20Sopenharmony_ci#define PXPCS_TL_CONTROL_5_ERR_UNEXP_CPL   (1 << 4)    /*WC*/
65818c2ecf20Sopenharmony_ci#define PXPCS_TL_CONTROL_5_ERR_MASTER_ABRT     (1 << 3)    /*WC*/
65828c2ecf20Sopenharmony_ci#define PXPCS_TL_CONTROL_5_ERR_CPL_TIMEOUT     (1 << 2)    /*WC*/
65838c2ecf20Sopenharmony_ci#define PXPCS_TL_CONTROL_5_ERR_FC_PRTL	   (1 << 1)    /*WC*/
65848c2ecf20Sopenharmony_ci#define PXPCS_TL_CONTROL_5_ERR_PSND_TLP    (1 << 0)    /*WC*/
65858c2ecf20Sopenharmony_ci
65868c2ecf20Sopenharmony_ci
65878c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC345_STAT	   0x854
65888c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC345_STAT_PRI_SIG_TARGET_ABORT4    (1 << 29)   /* WC */
65898c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC345_STAT_ERR_UNSPPORT4\
65908c2ecf20Sopenharmony_ci	(1 << 28) /* Unsupported Request Error Status in function4, if \
65918c2ecf20Sopenharmony_ci	set, generate pcie_err_attn output when this error is seen. WC */
65928c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC345_STAT_ERR_ECRC4\
65938c2ecf20Sopenharmony_ci	(1 << 27) /* ECRC Error TLP Status Status in function 4, if set, \
65948c2ecf20Sopenharmony_ci	generate pcie_err_attn output when this error is seen.. WC */
65958c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC345_STAT_ERR_MALF_TLP4\
65968c2ecf20Sopenharmony_ci	(1 << 26) /* Malformed TLP Status Status in function 4, if set, \
65978c2ecf20Sopenharmony_ci	generate pcie_err_attn output when this error is seen.. WC */
65988c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC345_STAT_ERR_RX_OFLOW4\
65998c2ecf20Sopenharmony_ci	(1 << 25) /* Receiver Overflow Status Status in function 4, if \
66008c2ecf20Sopenharmony_ci	set, generate pcie_err_attn output when this error is seen.. WC \
66018c2ecf20Sopenharmony_ci	*/
66028c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC345_STAT_ERR_UNEXP_CPL4\
66038c2ecf20Sopenharmony_ci	(1 << 24) /* Unexpected Completion Status Status in function 4, \
66048c2ecf20Sopenharmony_ci	if set, generate pcie_err_attn output when this error is seen. WC \
66058c2ecf20Sopenharmony_ci	*/
66068c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC345_STAT_ERR_MASTER_ABRT4\
66078c2ecf20Sopenharmony_ci	(1 << 23) /* Receive UR Statusin function 4. If set, generate \
66088c2ecf20Sopenharmony_ci	pcie_err_attn output when this error is seen. WC */
66098c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC345_STAT_ERR_CPL_TIMEOUT4\
66108c2ecf20Sopenharmony_ci	(1 << 22) /* Completer Timeout Status Status in function 4, if \
66118c2ecf20Sopenharmony_ci	set, generate pcie_err_attn output when this error is seen. WC */
66128c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC345_STAT_ERR_FC_PRTL4\
66138c2ecf20Sopenharmony_ci	(1 << 21) /* Flow Control Protocol Error Status Status in \
66148c2ecf20Sopenharmony_ci	function 4, if set, generate pcie_err_attn output when this error \
66158c2ecf20Sopenharmony_ci	is seen. WC */
66168c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC345_STAT_ERR_PSND_TLP4\
66178c2ecf20Sopenharmony_ci	(1 << 20) /* Poisoned Error Status Status in function 4, if set, \
66188c2ecf20Sopenharmony_ci	generate pcie_err_attn output when this error is seen.. WC */
66198c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC345_STAT_PRI_SIG_TARGET_ABORT3    (1 << 19)   /* WC */
66208c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC345_STAT_ERR_UNSPPORT3\
66218c2ecf20Sopenharmony_ci	(1 << 18) /* Unsupported Request Error Status in function3, if \
66228c2ecf20Sopenharmony_ci	set, generate pcie_err_attn output when this error is seen. WC */
66238c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC345_STAT_ERR_ECRC3\
66248c2ecf20Sopenharmony_ci	(1 << 17) /* ECRC Error TLP Status Status in function 3, if set, \
66258c2ecf20Sopenharmony_ci	generate pcie_err_attn output when this error is seen.. WC */
66268c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC345_STAT_ERR_MALF_TLP3\
66278c2ecf20Sopenharmony_ci	(1 << 16) /* Malformed TLP Status Status in function 3, if set, \
66288c2ecf20Sopenharmony_ci	generate pcie_err_attn output when this error is seen.. WC */
66298c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC345_STAT_ERR_RX_OFLOW3\
66308c2ecf20Sopenharmony_ci	(1 << 15) /* Receiver Overflow Status Status in function 3, if \
66318c2ecf20Sopenharmony_ci	set, generate pcie_err_attn output when this error is seen.. WC \
66328c2ecf20Sopenharmony_ci	*/
66338c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC345_STAT_ERR_UNEXP_CPL3\
66348c2ecf20Sopenharmony_ci	(1 << 14) /* Unexpected Completion Status Status in function 3, \
66358c2ecf20Sopenharmony_ci	if set, generate pcie_err_attn output when this error is seen. WC \
66368c2ecf20Sopenharmony_ci	*/
66378c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC345_STAT_ERR_MASTER_ABRT3\
66388c2ecf20Sopenharmony_ci	(1 << 13) /* Receive UR Statusin function 3. If set, generate \
66398c2ecf20Sopenharmony_ci	pcie_err_attn output when this error is seen. WC */
66408c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC345_STAT_ERR_CPL_TIMEOUT3\
66418c2ecf20Sopenharmony_ci	(1 << 12) /* Completer Timeout Status Status in function 3, if \
66428c2ecf20Sopenharmony_ci	set, generate pcie_err_attn output when this error is seen. WC */
66438c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC345_STAT_ERR_FC_PRTL3\
66448c2ecf20Sopenharmony_ci	(1 << 11) /* Flow Control Protocol Error Status Status in \
66458c2ecf20Sopenharmony_ci	function 3, if set, generate pcie_err_attn output when this error \
66468c2ecf20Sopenharmony_ci	is seen. WC */
66478c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC345_STAT_ERR_PSND_TLP3\
66488c2ecf20Sopenharmony_ci	(1 << 10) /* Poisoned Error Status Status in function 3, if set, \
66498c2ecf20Sopenharmony_ci	generate pcie_err_attn output when this error is seen.. WC */
66508c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC345_STAT_PRI_SIG_TARGET_ABORT2    (1 << 9)    /* WC */
66518c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC345_STAT_ERR_UNSPPORT2\
66528c2ecf20Sopenharmony_ci	(1 << 8) /* Unsupported Request Error Status for Function 2, if \
66538c2ecf20Sopenharmony_ci	set, generate pcie_err_attn output when this error is seen. WC */
66548c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC345_STAT_ERR_ECRC2\
66558c2ecf20Sopenharmony_ci	(1 << 7) /* ECRC Error TLP Status Status for Function 2, if set, \
66568c2ecf20Sopenharmony_ci	generate pcie_err_attn output when this error is seen.. WC */
66578c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC345_STAT_ERR_MALF_TLP2\
66588c2ecf20Sopenharmony_ci	(1 << 6) /* Malformed TLP Status Status for Function 2, if set, \
66598c2ecf20Sopenharmony_ci	generate pcie_err_attn output when this error is seen.. WC */
66608c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC345_STAT_ERR_RX_OFLOW2\
66618c2ecf20Sopenharmony_ci	(1 << 5) /* Receiver Overflow Status Status for Function 2, if \
66628c2ecf20Sopenharmony_ci	set, generate pcie_err_attn output when this error is seen.. WC \
66638c2ecf20Sopenharmony_ci	*/
66648c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC345_STAT_ERR_UNEXP_CPL2\
66658c2ecf20Sopenharmony_ci	(1 << 4) /* Unexpected Completion Status Status for Function 2, \
66668c2ecf20Sopenharmony_ci	if set, generate pcie_err_attn output when this error is seen. WC \
66678c2ecf20Sopenharmony_ci	*/
66688c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC345_STAT_ERR_MASTER_ABRT2\
66698c2ecf20Sopenharmony_ci	(1 << 3) /* Receive UR Statusfor Function 2. If set, generate \
66708c2ecf20Sopenharmony_ci	pcie_err_attn output when this error is seen. WC */
66718c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC345_STAT_ERR_CPL_TIMEOUT2\
66728c2ecf20Sopenharmony_ci	(1 << 2) /* Completer Timeout Status Status for Function 2, if \
66738c2ecf20Sopenharmony_ci	set, generate pcie_err_attn output when this error is seen. WC */
66748c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC345_STAT_ERR_FC_PRTL2\
66758c2ecf20Sopenharmony_ci	(1 << 1) /* Flow Control Protocol Error Status Status for \
66768c2ecf20Sopenharmony_ci	Function 2, if set, generate pcie_err_attn output when this error \
66778c2ecf20Sopenharmony_ci	is seen. WC */
66788c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC345_STAT_ERR_PSND_TLP2\
66798c2ecf20Sopenharmony_ci	(1 << 0) /* Poisoned Error Status Status for Function 2, if set, \
66808c2ecf20Sopenharmony_ci	generate pcie_err_attn output when this error is seen.. WC */
66818c2ecf20Sopenharmony_ci
66828c2ecf20Sopenharmony_ci
66838c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC678_STAT  0x85C
66848c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC678_STAT_PRI_SIG_TARGET_ABORT7    (1 << 29)   /*	 WC */
66858c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC678_STAT_ERR_UNSPPORT7\
66868c2ecf20Sopenharmony_ci	(1 << 28) /* Unsupported Request Error Status in function7, if \
66878c2ecf20Sopenharmony_ci	set, generate pcie_err_attn output when this error is seen. WC */
66888c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC678_STAT_ERR_ECRC7\
66898c2ecf20Sopenharmony_ci	(1 << 27) /* ECRC Error TLP Status Status in function 7, if set, \
66908c2ecf20Sopenharmony_ci	generate pcie_err_attn output when this error is seen.. WC */
66918c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC678_STAT_ERR_MALF_TLP7\
66928c2ecf20Sopenharmony_ci	(1 << 26) /* Malformed TLP Status Status in function 7, if set, \
66938c2ecf20Sopenharmony_ci	generate pcie_err_attn output when this error is seen.. WC */
66948c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC678_STAT_ERR_RX_OFLOW7\
66958c2ecf20Sopenharmony_ci	(1 << 25) /* Receiver Overflow Status Status in function 7, if \
66968c2ecf20Sopenharmony_ci	set, generate pcie_err_attn output when this error is seen.. WC \
66978c2ecf20Sopenharmony_ci	*/
66988c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC678_STAT_ERR_UNEXP_CPL7\
66998c2ecf20Sopenharmony_ci	(1 << 24) /* Unexpected Completion Status Status in function 7, \
67008c2ecf20Sopenharmony_ci	if set, generate pcie_err_attn output when this error is seen. WC \
67018c2ecf20Sopenharmony_ci	*/
67028c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC678_STAT_ERR_MASTER_ABRT7\
67038c2ecf20Sopenharmony_ci	(1 << 23) /* Receive UR Statusin function 7. If set, generate \
67048c2ecf20Sopenharmony_ci	pcie_err_attn output when this error is seen. WC */
67058c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC678_STAT_ERR_CPL_TIMEOUT7\
67068c2ecf20Sopenharmony_ci	(1 << 22) /* Completer Timeout Status Status in function 7, if \
67078c2ecf20Sopenharmony_ci	set, generate pcie_err_attn output when this error is seen. WC */
67088c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC678_STAT_ERR_FC_PRTL7\
67098c2ecf20Sopenharmony_ci	(1 << 21) /* Flow Control Protocol Error Status Status in \
67108c2ecf20Sopenharmony_ci	function 7, if set, generate pcie_err_attn output when this error \
67118c2ecf20Sopenharmony_ci	is seen. WC */
67128c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC678_STAT_ERR_PSND_TLP7\
67138c2ecf20Sopenharmony_ci	(1 << 20) /* Poisoned Error Status Status in function 7, if set, \
67148c2ecf20Sopenharmony_ci	generate pcie_err_attn output when this error is seen.. WC */
67158c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC678_STAT_PRI_SIG_TARGET_ABORT6    (1 << 19)    /*	  WC */
67168c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC678_STAT_ERR_UNSPPORT6\
67178c2ecf20Sopenharmony_ci	(1 << 18) /* Unsupported Request Error Status in function6, if \
67188c2ecf20Sopenharmony_ci	set, generate pcie_err_attn output when this error is seen. WC */
67198c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC678_STAT_ERR_ECRC6\
67208c2ecf20Sopenharmony_ci	(1 << 17) /* ECRC Error TLP Status Status in function 6, if set, \
67218c2ecf20Sopenharmony_ci	generate pcie_err_attn output when this error is seen.. WC */
67228c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC678_STAT_ERR_MALF_TLP6\
67238c2ecf20Sopenharmony_ci	(1 << 16) /* Malformed TLP Status Status in function 6, if set, \
67248c2ecf20Sopenharmony_ci	generate pcie_err_attn output when this error is seen.. WC */
67258c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC678_STAT_ERR_RX_OFLOW6\
67268c2ecf20Sopenharmony_ci	(1 << 15) /* Receiver Overflow Status Status in function 6, if \
67278c2ecf20Sopenharmony_ci	set, generate pcie_err_attn output when this error is seen.. WC \
67288c2ecf20Sopenharmony_ci	*/
67298c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC678_STAT_ERR_UNEXP_CPL6\
67308c2ecf20Sopenharmony_ci	(1 << 14) /* Unexpected Completion Status Status in function 6, \
67318c2ecf20Sopenharmony_ci	if set, generate pcie_err_attn output when this error is seen. WC \
67328c2ecf20Sopenharmony_ci	*/
67338c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC678_STAT_ERR_MASTER_ABRT6\
67348c2ecf20Sopenharmony_ci	(1 << 13) /* Receive UR Statusin function 6. If set, generate \
67358c2ecf20Sopenharmony_ci	pcie_err_attn output when this error is seen. WC */
67368c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC678_STAT_ERR_CPL_TIMEOUT6\
67378c2ecf20Sopenharmony_ci	(1 << 12) /* Completer Timeout Status Status in function 6, if \
67388c2ecf20Sopenharmony_ci	set, generate pcie_err_attn output when this error is seen. WC */
67398c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC678_STAT_ERR_FC_PRTL6\
67408c2ecf20Sopenharmony_ci	(1 << 11) /* Flow Control Protocol Error Status Status in \
67418c2ecf20Sopenharmony_ci	function 6, if set, generate pcie_err_attn output when this error \
67428c2ecf20Sopenharmony_ci	is seen. WC */
67438c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC678_STAT_ERR_PSND_TLP6\
67448c2ecf20Sopenharmony_ci	(1 << 10) /* Poisoned Error Status Status in function 6, if set, \
67458c2ecf20Sopenharmony_ci	generate pcie_err_attn output when this error is seen.. WC */
67468c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC678_STAT_PRI_SIG_TARGET_ABORT5    (1 << 9) /*    WC */
67478c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC678_STAT_ERR_UNSPPORT5\
67488c2ecf20Sopenharmony_ci	(1 << 8) /* Unsupported Request Error Status for Function 5, if \
67498c2ecf20Sopenharmony_ci	set, generate pcie_err_attn output when this error is seen. WC */
67508c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC678_STAT_ERR_ECRC5\
67518c2ecf20Sopenharmony_ci	(1 << 7) /* ECRC Error TLP Status Status for Function 5, if set, \
67528c2ecf20Sopenharmony_ci	generate pcie_err_attn output when this error is seen.. WC */
67538c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC678_STAT_ERR_MALF_TLP5\
67548c2ecf20Sopenharmony_ci	(1 << 6) /* Malformed TLP Status Status for Function 5, if set, \
67558c2ecf20Sopenharmony_ci	generate pcie_err_attn output when this error is seen.. WC */
67568c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC678_STAT_ERR_RX_OFLOW5\
67578c2ecf20Sopenharmony_ci	(1 << 5) /* Receiver Overflow Status Status for Function 5, if \
67588c2ecf20Sopenharmony_ci	set, generate pcie_err_attn output when this error is seen.. WC \
67598c2ecf20Sopenharmony_ci	*/
67608c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC678_STAT_ERR_UNEXP_CPL5\
67618c2ecf20Sopenharmony_ci	(1 << 4) /* Unexpected Completion Status Status for Function 5, \
67628c2ecf20Sopenharmony_ci	if set, generate pcie_err_attn output when this error is seen. WC \
67638c2ecf20Sopenharmony_ci	*/
67648c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC678_STAT_ERR_MASTER_ABRT5\
67658c2ecf20Sopenharmony_ci	(1 << 3) /* Receive UR Statusfor Function 5. If set, generate \
67668c2ecf20Sopenharmony_ci	pcie_err_attn output when this error is seen. WC */
67678c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC678_STAT_ERR_CPL_TIMEOUT5\
67688c2ecf20Sopenharmony_ci	(1 << 2) /* Completer Timeout Status Status for Function 5, if \
67698c2ecf20Sopenharmony_ci	set, generate pcie_err_attn output when this error is seen. WC */
67708c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC678_STAT_ERR_FC_PRTL5\
67718c2ecf20Sopenharmony_ci	(1 << 1) /* Flow Control Protocol Error Status Status for \
67728c2ecf20Sopenharmony_ci	Function 5, if set, generate pcie_err_attn output when this error \
67738c2ecf20Sopenharmony_ci	is seen. WC */
67748c2ecf20Sopenharmony_ci#define PXPCS_TL_FUNC678_STAT_ERR_PSND_TLP5\
67758c2ecf20Sopenharmony_ci	(1 << 0) /* Poisoned Error Status Status for Function 5, if set, \
67768c2ecf20Sopenharmony_ci	generate pcie_err_attn output when this error is seen.. WC */
67778c2ecf20Sopenharmony_ci
67788c2ecf20Sopenharmony_ci
67798c2ecf20Sopenharmony_ci#define BAR_USTRORM_INTMEM				0x400000
67808c2ecf20Sopenharmony_ci#define BAR_CSTRORM_INTMEM				0x410000
67818c2ecf20Sopenharmony_ci#define BAR_XSTRORM_INTMEM				0x420000
67828c2ecf20Sopenharmony_ci#define BAR_TSTRORM_INTMEM				0x430000
67838c2ecf20Sopenharmony_ci
67848c2ecf20Sopenharmony_ci/* for accessing the IGU in case of status block ACK */
67858c2ecf20Sopenharmony_ci#define BAR_IGU_INTMEM					0x440000
67868c2ecf20Sopenharmony_ci
67878c2ecf20Sopenharmony_ci#define BAR_DOORBELL_OFFSET				0x800000
67888c2ecf20Sopenharmony_ci
67898c2ecf20Sopenharmony_ci#define BAR_ME_REGISTER				0x450000
67908c2ecf20Sopenharmony_ci#define ME_REG_PF_NUM_SHIFT		0
67918c2ecf20Sopenharmony_ci#define ME_REG_PF_NUM\
67928c2ecf20Sopenharmony_ci	(7L<<ME_REG_PF_NUM_SHIFT) /* Relative PF Num */
67938c2ecf20Sopenharmony_ci#define ME_REG_VF_VALID		(1<<8)
67948c2ecf20Sopenharmony_ci#define ME_REG_VF_NUM_SHIFT		9
67958c2ecf20Sopenharmony_ci#define ME_REG_VF_NUM_MASK		(0x3f<<ME_REG_VF_NUM_SHIFT)
67968c2ecf20Sopenharmony_ci#define ME_REG_VF_ERR			(0x1<<3)
67978c2ecf20Sopenharmony_ci#define ME_REG_ABS_PF_NUM_SHIFT	16
67988c2ecf20Sopenharmony_ci#define ME_REG_ABS_PF_NUM\
67998c2ecf20Sopenharmony_ci	(7L<<ME_REG_ABS_PF_NUM_SHIFT) /* Absolute PF Num */
68008c2ecf20Sopenharmony_ci
68018c2ecf20Sopenharmony_ci
68028c2ecf20Sopenharmony_ci#define PXP_VF_ADDR_IGU_START				0
68038c2ecf20Sopenharmony_ci#define PXP_VF_ADDR_IGU_SIZE				0x3000
68048c2ecf20Sopenharmony_ci#define PXP_VF_ADDR_IGU_END\
68058c2ecf20Sopenharmony_ci	((PXP_VF_ADDR_IGU_START) + (PXP_VF_ADDR_IGU_SIZE) - 1)
68068c2ecf20Sopenharmony_ci
68078c2ecf20Sopenharmony_ci#define PXP_VF_ADDR_USDM_QUEUES_START			0x3000
68088c2ecf20Sopenharmony_ci#define PXP_VF_ADDR_USDM_QUEUES_SIZE\
68098c2ecf20Sopenharmony_ci	(PXP_VF_ADRR_NUM_QUEUES * PXP_ADDR_QUEUE_SIZE)
68108c2ecf20Sopenharmony_ci#define PXP_VF_ADDR_USDM_QUEUES_END\
68118c2ecf20Sopenharmony_ci	((PXP_VF_ADDR_USDM_QUEUES_START) + (PXP_VF_ADDR_USDM_QUEUES_SIZE) - 1)
68128c2ecf20Sopenharmony_ci
68138c2ecf20Sopenharmony_ci#define PXP_VF_ADDR_CSDM_GLOBAL_START			0x7600
68148c2ecf20Sopenharmony_ci#define PXP_VF_ADDR_CSDM_GLOBAL_SIZE			(PXP_ADDR_REG_SIZE)
68158c2ecf20Sopenharmony_ci#define PXP_VF_ADDR_CSDM_GLOBAL_END\
68168c2ecf20Sopenharmony_ci	((PXP_VF_ADDR_CSDM_GLOBAL_START) + (PXP_VF_ADDR_CSDM_GLOBAL_SIZE) - 1)
68178c2ecf20Sopenharmony_ci
68188c2ecf20Sopenharmony_ci#define PXP_VF_ADDR_DB_START				0x7c00
68198c2ecf20Sopenharmony_ci#define PXP_VF_ADDR_DB_SIZE				0x200
68208c2ecf20Sopenharmony_ci#define PXP_VF_ADDR_DB_END\
68218c2ecf20Sopenharmony_ci	((PXP_VF_ADDR_DB_START) + (PXP_VF_ADDR_DB_SIZE) - 1)
68228c2ecf20Sopenharmony_ci
68238c2ecf20Sopenharmony_ci#define MDIO_REG_BANK_CL73_IEEEB0	0x0
68248c2ecf20Sopenharmony_ci#define MDIO_CL73_IEEEB0_CL73_AN_CONTROL	0x0
68258c2ecf20Sopenharmony_ci#define MDIO_CL73_IEEEB0_CL73_AN_CONTROL_RESTART_AN	0x0200
68268c2ecf20Sopenharmony_ci#define MDIO_CL73_IEEEB0_CL73_AN_CONTROL_AN_EN		0x1000
68278c2ecf20Sopenharmony_ci#define MDIO_CL73_IEEEB0_CL73_AN_CONTROL_MAIN_RST	0x8000
68288c2ecf20Sopenharmony_ci
68298c2ecf20Sopenharmony_ci#define MDIO_REG_BANK_CL73_IEEEB1	0x10
68308c2ecf20Sopenharmony_ci#define MDIO_CL73_IEEEB1_AN_ADV1		0x00
68318c2ecf20Sopenharmony_ci#define MDIO_CL73_IEEEB1_AN_ADV1_PAUSE			0x0400
68328c2ecf20Sopenharmony_ci#define MDIO_CL73_IEEEB1_AN_ADV1_ASYMMETRIC		0x0800
68338c2ecf20Sopenharmony_ci#define MDIO_CL73_IEEEB1_AN_ADV1_PAUSE_BOTH		0x0C00
68348c2ecf20Sopenharmony_ci#define MDIO_CL73_IEEEB1_AN_ADV1_PAUSE_MASK		0x0C00
68358c2ecf20Sopenharmony_ci#define MDIO_CL73_IEEEB1_AN_ADV2		0x01
68368c2ecf20Sopenharmony_ci#define MDIO_CL73_IEEEB1_AN_ADV2_ADVR_1000M		0x0000
68378c2ecf20Sopenharmony_ci#define MDIO_CL73_IEEEB1_AN_ADV2_ADVR_1000M_KX		0x0020
68388c2ecf20Sopenharmony_ci#define MDIO_CL73_IEEEB1_AN_ADV2_ADVR_10G_KX4		0x0040
68398c2ecf20Sopenharmony_ci#define MDIO_CL73_IEEEB1_AN_ADV2_ADVR_10G_KR		0x0080
68408c2ecf20Sopenharmony_ci#define MDIO_CL73_IEEEB1_AN_LP_ADV1		0x03
68418c2ecf20Sopenharmony_ci#define MDIO_CL73_IEEEB1_AN_LP_ADV1_PAUSE		0x0400
68428c2ecf20Sopenharmony_ci#define MDIO_CL73_IEEEB1_AN_LP_ADV1_ASYMMETRIC		0x0800
68438c2ecf20Sopenharmony_ci#define MDIO_CL73_IEEEB1_AN_LP_ADV1_PAUSE_BOTH		0x0C00
68448c2ecf20Sopenharmony_ci#define MDIO_CL73_IEEEB1_AN_LP_ADV1_PAUSE_MASK		0x0C00
68458c2ecf20Sopenharmony_ci#define MDIO_CL73_IEEEB1_AN_LP_ADV2			0x04
68468c2ecf20Sopenharmony_ci
68478c2ecf20Sopenharmony_ci#define MDIO_REG_BANK_RX0				0x80b0
68488c2ecf20Sopenharmony_ci#define MDIO_RX0_RX_STATUS				0x10
68498c2ecf20Sopenharmony_ci#define MDIO_RX0_RX_STATUS_SIGDET			0x8000
68508c2ecf20Sopenharmony_ci#define MDIO_RX0_RX_STATUS_RX_SEQ_DONE			0x1000
68518c2ecf20Sopenharmony_ci#define MDIO_RX0_RX_EQ_BOOST				0x1c
68528c2ecf20Sopenharmony_ci#define MDIO_RX0_RX_EQ_BOOST_EQUALIZER_CTRL_MASK	0x7
68538c2ecf20Sopenharmony_ci#define MDIO_RX0_RX_EQ_BOOST_OFFSET_CTRL		0x10
68548c2ecf20Sopenharmony_ci
68558c2ecf20Sopenharmony_ci#define MDIO_REG_BANK_RX1				0x80c0
68568c2ecf20Sopenharmony_ci#define MDIO_RX1_RX_EQ_BOOST				0x1c
68578c2ecf20Sopenharmony_ci#define MDIO_RX1_RX_EQ_BOOST_EQUALIZER_CTRL_MASK	0x7
68588c2ecf20Sopenharmony_ci#define MDIO_RX1_RX_EQ_BOOST_OFFSET_CTRL		0x10
68598c2ecf20Sopenharmony_ci
68608c2ecf20Sopenharmony_ci#define MDIO_REG_BANK_RX2				0x80d0
68618c2ecf20Sopenharmony_ci#define MDIO_RX2_RX_EQ_BOOST				0x1c
68628c2ecf20Sopenharmony_ci#define MDIO_RX2_RX_EQ_BOOST_EQUALIZER_CTRL_MASK	0x7
68638c2ecf20Sopenharmony_ci#define MDIO_RX2_RX_EQ_BOOST_OFFSET_CTRL		0x10
68648c2ecf20Sopenharmony_ci
68658c2ecf20Sopenharmony_ci#define MDIO_REG_BANK_RX3				0x80e0
68668c2ecf20Sopenharmony_ci#define MDIO_RX3_RX_EQ_BOOST				0x1c
68678c2ecf20Sopenharmony_ci#define MDIO_RX3_RX_EQ_BOOST_EQUALIZER_CTRL_MASK	0x7
68688c2ecf20Sopenharmony_ci#define MDIO_RX3_RX_EQ_BOOST_OFFSET_CTRL		0x10
68698c2ecf20Sopenharmony_ci
68708c2ecf20Sopenharmony_ci#define MDIO_REG_BANK_RX_ALL				0x80f0
68718c2ecf20Sopenharmony_ci#define MDIO_RX_ALL_RX_EQ_BOOST 			0x1c
68728c2ecf20Sopenharmony_ci#define MDIO_RX_ALL_RX_EQ_BOOST_EQUALIZER_CTRL_MASK	0x7
68738c2ecf20Sopenharmony_ci#define MDIO_RX_ALL_RX_EQ_BOOST_OFFSET_CTRL	0x10
68748c2ecf20Sopenharmony_ci
68758c2ecf20Sopenharmony_ci#define MDIO_REG_BANK_TX0				0x8060
68768c2ecf20Sopenharmony_ci#define MDIO_TX0_TX_DRIVER				0x17
68778c2ecf20Sopenharmony_ci#define MDIO_TX0_TX_DRIVER_PREEMPHASIS_MASK		0xf000
68788c2ecf20Sopenharmony_ci#define MDIO_TX0_TX_DRIVER_PREEMPHASIS_SHIFT		12
68798c2ecf20Sopenharmony_ci#define MDIO_TX0_TX_DRIVER_IDRIVER_MASK 		0x0f00
68808c2ecf20Sopenharmony_ci#define MDIO_TX0_TX_DRIVER_IDRIVER_SHIFT		8
68818c2ecf20Sopenharmony_ci#define MDIO_TX0_TX_DRIVER_IPREDRIVER_MASK		0x00f0
68828c2ecf20Sopenharmony_ci#define MDIO_TX0_TX_DRIVER_IPREDRIVER_SHIFT		4
68838c2ecf20Sopenharmony_ci#define MDIO_TX0_TX_DRIVER_IFULLSPD_MASK		0x000e
68848c2ecf20Sopenharmony_ci#define MDIO_TX0_TX_DRIVER_IFULLSPD_SHIFT		1
68858c2ecf20Sopenharmony_ci#define MDIO_TX0_TX_DRIVER_ICBUF1T			1
68868c2ecf20Sopenharmony_ci
68878c2ecf20Sopenharmony_ci#define MDIO_REG_BANK_TX1				0x8070
68888c2ecf20Sopenharmony_ci#define MDIO_TX1_TX_DRIVER				0x17
68898c2ecf20Sopenharmony_ci#define MDIO_TX0_TX_DRIVER_PREEMPHASIS_MASK		0xf000
68908c2ecf20Sopenharmony_ci#define MDIO_TX0_TX_DRIVER_PREEMPHASIS_SHIFT		12
68918c2ecf20Sopenharmony_ci#define MDIO_TX0_TX_DRIVER_IDRIVER_MASK 		0x0f00
68928c2ecf20Sopenharmony_ci#define MDIO_TX0_TX_DRIVER_IDRIVER_SHIFT		8
68938c2ecf20Sopenharmony_ci#define MDIO_TX0_TX_DRIVER_IPREDRIVER_MASK		0x00f0
68948c2ecf20Sopenharmony_ci#define MDIO_TX0_TX_DRIVER_IPREDRIVER_SHIFT		4
68958c2ecf20Sopenharmony_ci#define MDIO_TX0_TX_DRIVER_IFULLSPD_MASK		0x000e
68968c2ecf20Sopenharmony_ci#define MDIO_TX0_TX_DRIVER_IFULLSPD_SHIFT		1
68978c2ecf20Sopenharmony_ci#define MDIO_TX0_TX_DRIVER_ICBUF1T			1
68988c2ecf20Sopenharmony_ci
68998c2ecf20Sopenharmony_ci#define MDIO_REG_BANK_TX2				0x8080
69008c2ecf20Sopenharmony_ci#define MDIO_TX2_TX_DRIVER				0x17
69018c2ecf20Sopenharmony_ci#define MDIO_TX0_TX_DRIVER_PREEMPHASIS_MASK		0xf000
69028c2ecf20Sopenharmony_ci#define MDIO_TX0_TX_DRIVER_PREEMPHASIS_SHIFT		12
69038c2ecf20Sopenharmony_ci#define MDIO_TX0_TX_DRIVER_IDRIVER_MASK 		0x0f00
69048c2ecf20Sopenharmony_ci#define MDIO_TX0_TX_DRIVER_IDRIVER_SHIFT		8
69058c2ecf20Sopenharmony_ci#define MDIO_TX0_TX_DRIVER_IPREDRIVER_MASK		0x00f0
69068c2ecf20Sopenharmony_ci#define MDIO_TX0_TX_DRIVER_IPREDRIVER_SHIFT		4
69078c2ecf20Sopenharmony_ci#define MDIO_TX0_TX_DRIVER_IFULLSPD_MASK		0x000e
69088c2ecf20Sopenharmony_ci#define MDIO_TX0_TX_DRIVER_IFULLSPD_SHIFT		1
69098c2ecf20Sopenharmony_ci#define MDIO_TX0_TX_DRIVER_ICBUF1T			1
69108c2ecf20Sopenharmony_ci
69118c2ecf20Sopenharmony_ci#define MDIO_REG_BANK_TX3				0x8090
69128c2ecf20Sopenharmony_ci#define MDIO_TX3_TX_DRIVER				0x17
69138c2ecf20Sopenharmony_ci#define MDIO_TX0_TX_DRIVER_PREEMPHASIS_MASK		0xf000
69148c2ecf20Sopenharmony_ci#define MDIO_TX0_TX_DRIVER_PREEMPHASIS_SHIFT		12
69158c2ecf20Sopenharmony_ci#define MDIO_TX0_TX_DRIVER_IDRIVER_MASK 		0x0f00
69168c2ecf20Sopenharmony_ci#define MDIO_TX0_TX_DRIVER_IDRIVER_SHIFT		8
69178c2ecf20Sopenharmony_ci#define MDIO_TX0_TX_DRIVER_IPREDRIVER_MASK		0x00f0
69188c2ecf20Sopenharmony_ci#define MDIO_TX0_TX_DRIVER_IPREDRIVER_SHIFT		4
69198c2ecf20Sopenharmony_ci#define MDIO_TX0_TX_DRIVER_IFULLSPD_MASK		0x000e
69208c2ecf20Sopenharmony_ci#define MDIO_TX0_TX_DRIVER_IFULLSPD_SHIFT		1
69218c2ecf20Sopenharmony_ci#define MDIO_TX0_TX_DRIVER_ICBUF1T			1
69228c2ecf20Sopenharmony_ci
69238c2ecf20Sopenharmony_ci#define MDIO_REG_BANK_XGXS_BLOCK0			0x8000
69248c2ecf20Sopenharmony_ci#define MDIO_BLOCK0_XGXS_CONTROL			0x10
69258c2ecf20Sopenharmony_ci
69268c2ecf20Sopenharmony_ci#define MDIO_REG_BANK_XGXS_BLOCK1			0x8010
69278c2ecf20Sopenharmony_ci#define MDIO_BLOCK1_LANE_CTRL0				0x15
69288c2ecf20Sopenharmony_ci#define MDIO_BLOCK1_LANE_CTRL1				0x16
69298c2ecf20Sopenharmony_ci#define MDIO_BLOCK1_LANE_CTRL2				0x17
69308c2ecf20Sopenharmony_ci#define MDIO_BLOCK1_LANE_PRBS				0x19
69318c2ecf20Sopenharmony_ci
69328c2ecf20Sopenharmony_ci#define MDIO_REG_BANK_XGXS_BLOCK2			0x8100
69338c2ecf20Sopenharmony_ci#define MDIO_XGXS_BLOCK2_RX_LN_SWAP			0x10
69348c2ecf20Sopenharmony_ci#define MDIO_XGXS_BLOCK2_RX_LN_SWAP_ENABLE		0x8000
69358c2ecf20Sopenharmony_ci#define MDIO_XGXS_BLOCK2_RX_LN_SWAP_FORCE_ENABLE	0x4000
69368c2ecf20Sopenharmony_ci#define MDIO_XGXS_BLOCK2_TX_LN_SWAP		0x11
69378c2ecf20Sopenharmony_ci#define MDIO_XGXS_BLOCK2_TX_LN_SWAP_ENABLE		0x8000
69388c2ecf20Sopenharmony_ci#define MDIO_XGXS_BLOCK2_UNICORE_MODE_10G	0x14
69398c2ecf20Sopenharmony_ci#define MDIO_XGXS_BLOCK2_UNICORE_MODE_10G_CX4_XGXS	0x0001
69408c2ecf20Sopenharmony_ci#define MDIO_XGXS_BLOCK2_UNICORE_MODE_10G_HIGIG_XGXS	0x0010
69418c2ecf20Sopenharmony_ci#define MDIO_XGXS_BLOCK2_TEST_MODE_LANE 	0x15
69428c2ecf20Sopenharmony_ci
69438c2ecf20Sopenharmony_ci#define MDIO_REG_BANK_GP_STATUS 			0x8120
69448c2ecf20Sopenharmony_ci#define MDIO_GP_STATUS_TOP_AN_STATUS1				0x1B
69458c2ecf20Sopenharmony_ci#define MDIO_GP_STATUS_TOP_AN_STATUS1_CL73_AUTONEG_COMPLETE	0x0001
69468c2ecf20Sopenharmony_ci#define MDIO_GP_STATUS_TOP_AN_STATUS1_CL37_AUTONEG_COMPLETE	0x0002
69478c2ecf20Sopenharmony_ci#define MDIO_GP_STATUS_TOP_AN_STATUS1_LINK_STATUS		0x0004
69488c2ecf20Sopenharmony_ci#define MDIO_GP_STATUS_TOP_AN_STATUS1_DUPLEX_STATUS		0x0008
69498c2ecf20Sopenharmony_ci#define MDIO_GP_STATUS_TOP_AN_STATUS1_CL73_MR_LP_NP_AN_ABLE	0x0010
69508c2ecf20Sopenharmony_ci#define MDIO_GP_STATUS_TOP_AN_STATUS1_CL73_LP_NP_BAM_ABLE	0x0020
69518c2ecf20Sopenharmony_ci#define MDIO_GP_STATUS_TOP_AN_STATUS1_PAUSE_RSOLUTION_TXSIDE	0x0040
69528c2ecf20Sopenharmony_ci#define MDIO_GP_STATUS_TOP_AN_STATUS1_PAUSE_RSOLUTION_RXSIDE	0x0080
69538c2ecf20Sopenharmony_ci#define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_MASK 	0x3f00
69548c2ecf20Sopenharmony_ci#define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_10M		0x0000
69558c2ecf20Sopenharmony_ci#define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_100M 	0x0100
69568c2ecf20Sopenharmony_ci#define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_1G		0x0200
69578c2ecf20Sopenharmony_ci#define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_2_5G 	0x0300
69588c2ecf20Sopenharmony_ci#define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_5G		0x0400
69598c2ecf20Sopenharmony_ci#define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_6G		0x0500
69608c2ecf20Sopenharmony_ci#define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_10G_HIG	0x0600
69618c2ecf20Sopenharmony_ci#define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_10G_CX4	0x0700
69628c2ecf20Sopenharmony_ci#define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_12G_HIG	0x0800
69638c2ecf20Sopenharmony_ci#define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_12_5G	0x0900
69648c2ecf20Sopenharmony_ci#define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_13G		0x0A00
69658c2ecf20Sopenharmony_ci#define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_15G		0x0B00
69668c2ecf20Sopenharmony_ci#define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_16G		0x0C00
69678c2ecf20Sopenharmony_ci#define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_1G_KX	0x0D00
69688c2ecf20Sopenharmony_ci#define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_10G_KX4	0x0E00
69698c2ecf20Sopenharmony_ci#define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_10G_KR	0x0F00
69708c2ecf20Sopenharmony_ci#define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_10G_XFI	0x1B00
69718c2ecf20Sopenharmony_ci#define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_20G_DXGXS	0x1E00
69728c2ecf20Sopenharmony_ci#define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_10G_SFI	0x1F00
69738c2ecf20Sopenharmony_ci#define MDIO_GP_STATUS_TOP_AN_STATUS1_ACTUAL_SPEED_20G_KR2	0x3900
69748c2ecf20Sopenharmony_ci
69758c2ecf20Sopenharmony_ci
69768c2ecf20Sopenharmony_ci#define MDIO_REG_BANK_10G_PARALLEL_DETECT		0x8130
69778c2ecf20Sopenharmony_ci#define MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_STATUS		0x10
69788c2ecf20Sopenharmony_ci#define MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_STATUS_PD_LINK		0x8000
69798c2ecf20Sopenharmony_ci#define MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_CONTROL		0x11
69808c2ecf20Sopenharmony_ci#define MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_CONTROL_PARDET10G_EN	0x1
69818c2ecf20Sopenharmony_ci#define MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_LINK		0x13
69828c2ecf20Sopenharmony_ci#define MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_LINK_CNT		(0xb71<<1)
69838c2ecf20Sopenharmony_ci
69848c2ecf20Sopenharmony_ci#define MDIO_REG_BANK_SERDES_DIGITAL			0x8300
69858c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_A_1000X_CONTROL1			0x10
69868c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_FIBER_MODE 		0x0001
69878c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_TBI_IF			0x0002
69888c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_SIGNAL_DETECT_EN		0x0004
69898c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_INVERT_SIGNAL_DETECT	0x0008
69908c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_AUTODET			0x0010
69918c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_MSTR_MODE			0x0020
69928c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_A_1000X_CONTROL2			0x11
69938c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_A_1000X_CONTROL2_PRL_DT_EN			0x0001
69948c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_A_1000X_CONTROL2_AN_FST_TMR 		0x0040
69958c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_A_1000X_STATUS1			0x14
69968c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_SGMII			0x0001
69978c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_LINK			0x0002
69988c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_DUPLEX			0x0004
69998c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_SPEED_MASK			0x0018
70008c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_SPEED_SHIFT 		3
70018c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_SPEED_2_5G			0x0018
70028c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_SPEED_1G			0x0010
70038c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_SPEED_100M			0x0008
70048c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_A_1000X_STATUS1_SPEED_10M			0x0000
70058c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_A_1000X_STATUS2			0x15
70068c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_A_1000X_STATUS2_AN_DISABLED 		0x0002
70078c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_MISC1				0x18
70088c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_MISC1_REFCLK_SEL_MASK			0xE000
70098c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_MISC1_REFCLK_SEL_25M			0x0000
70108c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_MISC1_REFCLK_SEL_100M			0x2000
70118c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_MISC1_REFCLK_SEL_125M			0x4000
70128c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_MISC1_REFCLK_SEL_156_25M			0x6000
70138c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_MISC1_REFCLK_SEL_187_5M			0x8000
70148c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_SEL			0x0010
70158c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_MASK			0x000f
70168c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_2_5G			0x0000
70178c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_5G			0x0001
70188c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_6G			0x0002
70198c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_10G_HIG			0x0003
70208c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_10G_CX4			0x0004
70218c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_12G			0x0005
70228c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_12_5G			0x0006
70238c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_13G			0x0007
70248c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_15G			0x0008
70258c2ecf20Sopenharmony_ci#define MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_16G			0x0009
70268c2ecf20Sopenharmony_ci
70278c2ecf20Sopenharmony_ci#define MDIO_REG_BANK_OVER_1G				0x8320
70288c2ecf20Sopenharmony_ci#define MDIO_OVER_1G_DIGCTL_3_4 				0x14
70298c2ecf20Sopenharmony_ci#define MDIO_OVER_1G_DIGCTL_3_4_MP_ID_MASK				0xffe0
70308c2ecf20Sopenharmony_ci#define MDIO_OVER_1G_DIGCTL_3_4_MP_ID_SHIFT				5
70318c2ecf20Sopenharmony_ci#define MDIO_OVER_1G_UP1					0x19
70328c2ecf20Sopenharmony_ci#define MDIO_OVER_1G_UP1_2_5G						0x0001
70338c2ecf20Sopenharmony_ci#define MDIO_OVER_1G_UP1_5G						0x0002
70348c2ecf20Sopenharmony_ci#define MDIO_OVER_1G_UP1_6G						0x0004
70358c2ecf20Sopenharmony_ci#define MDIO_OVER_1G_UP1_10G						0x0010
70368c2ecf20Sopenharmony_ci#define MDIO_OVER_1G_UP1_10GH						0x0008
70378c2ecf20Sopenharmony_ci#define MDIO_OVER_1G_UP1_12G						0x0020
70388c2ecf20Sopenharmony_ci#define MDIO_OVER_1G_UP1_12_5G						0x0040
70398c2ecf20Sopenharmony_ci#define MDIO_OVER_1G_UP1_13G						0x0080
70408c2ecf20Sopenharmony_ci#define MDIO_OVER_1G_UP1_15G						0x0100
70418c2ecf20Sopenharmony_ci#define MDIO_OVER_1G_UP1_16G						0x0200
70428c2ecf20Sopenharmony_ci#define MDIO_OVER_1G_UP2					0x1A
70438c2ecf20Sopenharmony_ci#define MDIO_OVER_1G_UP2_IPREDRIVER_MASK				0x0007
70448c2ecf20Sopenharmony_ci#define MDIO_OVER_1G_UP2_IDRIVER_MASK					0x0038
70458c2ecf20Sopenharmony_ci#define MDIO_OVER_1G_UP2_PREEMPHASIS_MASK				0x03C0
70468c2ecf20Sopenharmony_ci#define MDIO_OVER_1G_UP3					0x1B
70478c2ecf20Sopenharmony_ci#define MDIO_OVER_1G_UP3_HIGIG2 					0x0001
70488c2ecf20Sopenharmony_ci#define MDIO_OVER_1G_LP_UP1					0x1C
70498c2ecf20Sopenharmony_ci#define MDIO_OVER_1G_LP_UP2					0x1D
70508c2ecf20Sopenharmony_ci#define MDIO_OVER_1G_LP_UP2_MR_ADV_OVER_1G_MASK 			0x03ff
70518c2ecf20Sopenharmony_ci#define MDIO_OVER_1G_LP_UP2_PREEMPHASIS_MASK				0x0780
70528c2ecf20Sopenharmony_ci#define MDIO_OVER_1G_LP_UP2_PREEMPHASIS_SHIFT				7
70538c2ecf20Sopenharmony_ci#define MDIO_OVER_1G_LP_UP3						0x1E
70548c2ecf20Sopenharmony_ci
70558c2ecf20Sopenharmony_ci#define MDIO_REG_BANK_REMOTE_PHY			0x8330
70568c2ecf20Sopenharmony_ci#define MDIO_REMOTE_PHY_MISC_RX_STATUS				0x10
70578c2ecf20Sopenharmony_ci#define MDIO_REMOTE_PHY_MISC_RX_STATUS_CL37_FSM_RECEIVED_OVER1G_MSG	0x0010
70588c2ecf20Sopenharmony_ci#define MDIO_REMOTE_PHY_MISC_RX_STATUS_CL37_FSM_RECEIVED_BRCM_OUI_MSG	0x0600
70598c2ecf20Sopenharmony_ci
70608c2ecf20Sopenharmony_ci#define MDIO_REG_BANK_BAM_NEXT_PAGE			0x8350
70618c2ecf20Sopenharmony_ci#define MDIO_BAM_NEXT_PAGE_MP5_NEXT_PAGE_CTRL			0x10
70628c2ecf20Sopenharmony_ci#define MDIO_BAM_NEXT_PAGE_MP5_NEXT_PAGE_CTRL_BAM_MODE			0x0001
70638c2ecf20Sopenharmony_ci#define MDIO_BAM_NEXT_PAGE_MP5_NEXT_PAGE_CTRL_TETON_AN			0x0002
70648c2ecf20Sopenharmony_ci
70658c2ecf20Sopenharmony_ci#define MDIO_REG_BANK_CL73_USERB0		0x8370
70668c2ecf20Sopenharmony_ci#define MDIO_CL73_USERB0_CL73_UCTRL				0x10
70678c2ecf20Sopenharmony_ci#define MDIO_CL73_USERB0_CL73_UCTRL_USTAT1_MUXSEL			0x0002
70688c2ecf20Sopenharmony_ci#define MDIO_CL73_USERB0_CL73_USTAT1				0x11
70698c2ecf20Sopenharmony_ci#define MDIO_CL73_USERB0_CL73_USTAT1_LINK_STATUS_CHECK			0x0100
70708c2ecf20Sopenharmony_ci#define MDIO_CL73_USERB0_CL73_USTAT1_AN_GOOD_CHECK_BAM37		0x0400
70718c2ecf20Sopenharmony_ci#define MDIO_CL73_USERB0_CL73_BAM_CTRL1 			0x12
70728c2ecf20Sopenharmony_ci#define MDIO_CL73_USERB0_CL73_BAM_CTRL1_BAM_EN				0x8000
70738c2ecf20Sopenharmony_ci#define MDIO_CL73_USERB0_CL73_BAM_CTRL1_BAM_STATION_MNGR_EN		0x4000
70748c2ecf20Sopenharmony_ci#define MDIO_CL73_USERB0_CL73_BAM_CTRL1_BAM_NP_AFTER_BP_EN		0x2000
70758c2ecf20Sopenharmony_ci#define MDIO_CL73_USERB0_CL73_BAM_CTRL3 			0x14
70768c2ecf20Sopenharmony_ci#define MDIO_CL73_USERB0_CL73_BAM_CTRL3_USE_CL73_HCD_MR 		0x0001
70778c2ecf20Sopenharmony_ci
70788c2ecf20Sopenharmony_ci#define MDIO_REG_BANK_AER_BLOCK 		0xFFD0
70798c2ecf20Sopenharmony_ci#define MDIO_AER_BLOCK_AER_REG					0x1E
70808c2ecf20Sopenharmony_ci
70818c2ecf20Sopenharmony_ci#define MDIO_REG_BANK_COMBO_IEEE0		0xFFE0
70828c2ecf20Sopenharmony_ci#define MDIO_COMBO_IEEE0_MII_CONTROL				0x10
70838c2ecf20Sopenharmony_ci#define MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_MASK			0x2040
70848c2ecf20Sopenharmony_ci#define MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_10			0x0000
70858c2ecf20Sopenharmony_ci#define MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_100			0x2000
70868c2ecf20Sopenharmony_ci#define MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_1000			0x0040
70878c2ecf20Sopenharmony_ci#define MDIO_COMBO_IEEO_MII_CONTROL_FULL_DUPLEX 			0x0100
70888c2ecf20Sopenharmony_ci#define MDIO_COMBO_IEEO_MII_CONTROL_RESTART_AN				0x0200
70898c2ecf20Sopenharmony_ci#define MDIO_COMBO_IEEO_MII_CONTROL_AN_EN				0x1000
70908c2ecf20Sopenharmony_ci#define MDIO_COMBO_IEEO_MII_CONTROL_LOOPBACK				0x4000
70918c2ecf20Sopenharmony_ci#define MDIO_COMBO_IEEO_MII_CONTROL_RESET				0x8000
70928c2ecf20Sopenharmony_ci#define MDIO_COMBO_IEEE0_MII_STATUS				0x11
70938c2ecf20Sopenharmony_ci#define MDIO_COMBO_IEEE0_MII_STATUS_LINK_PASS				0x0004
70948c2ecf20Sopenharmony_ci#define MDIO_COMBO_IEEE0_MII_STATUS_AUTONEG_COMPLETE			0x0020
70958c2ecf20Sopenharmony_ci#define MDIO_COMBO_IEEE0_AUTO_NEG_ADV				0x14
70968c2ecf20Sopenharmony_ci#define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_FULL_DUPLEX			0x0020
70978c2ecf20Sopenharmony_ci#define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_HALF_DUPLEX			0x0040
70988c2ecf20Sopenharmony_ci#define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_MASK			0x0180
70998c2ecf20Sopenharmony_ci#define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_NONE			0x0000
71008c2ecf20Sopenharmony_ci#define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_SYMMETRIC			0x0080
71018c2ecf20Sopenharmony_ci#define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_ASYMMETRIC			0x0100
71028c2ecf20Sopenharmony_ci#define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_BOTH			0x0180
71038c2ecf20Sopenharmony_ci#define MDIO_COMBO_IEEE0_AUTO_NEG_ADV_NEXT_PAGE 			0x8000
71048c2ecf20Sopenharmony_ci#define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1 	0x15
71058c2ecf20Sopenharmony_ci#define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_NEXT_PAGE	0x8000
71068c2ecf20Sopenharmony_ci#define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_ACK		0x4000
71078c2ecf20Sopenharmony_ci#define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_PAUSE_MASK	0x0180
71088c2ecf20Sopenharmony_ci#define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_PAUSE_NONE	0x0000
71098c2ecf20Sopenharmony_ci#define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_PAUSE_BOTH	0x0180
71108c2ecf20Sopenharmony_ci#define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_HALF_DUP_CAP	0x0040
71118c2ecf20Sopenharmony_ci#define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_FULL_DUP_CAP	0x0020
71128c2ecf20Sopenharmony_ci/*WhenthelinkpartnerisinSGMIImode(bit0=1),then
71138c2ecf20Sopenharmony_cibit15=link,bit12=duplex,bits11:10=speed,bit14=acknowledge.
71148c2ecf20Sopenharmony_ciTheotherbitsarereservedandshouldbezero*/
71158c2ecf20Sopenharmony_ci#define MDIO_COMBO_IEEE0_AUTO_NEG_LINK_PARTNER_ABILITY1_SGMII_MODE	0x0001
71168c2ecf20Sopenharmony_ci
71178c2ecf20Sopenharmony_ci
71188c2ecf20Sopenharmony_ci#define MDIO_PMA_DEVAD			0x1
71198c2ecf20Sopenharmony_ci/*ieee*/
71208c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_CTRL		0x0
71218c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_STATUS		0x1
71228c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_10G_CTRL2		0x7
71238c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_TX_DISABLE		0x0009
71248c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_RX_SD		0xa
71258c2ecf20Sopenharmony_ci/*bcm*/
71268c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_BCM_CTRL		0x0096
71278c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_FEC_CTRL		0x00ab
71288c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_PHY_IDENTIFIER	0xc800
71298c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_DIGITAL_CTRL	0xc808
71308c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_DIGITAL_STATUS	0xc809
71318c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_TX_POWER_DOWN	0xca02
71328c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_CMU_PLL_BYPASS	0xca09
71338c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_MISC_CTRL		0xca0a
71348c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_GEN_CTRL		0xca10
71358c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_GEN_CTRL_ROM_RESET_INTERNAL_MP	0x0188
71368c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_GEN_CTRL_ROM_MICRO_RESET		0x018a
71378c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_M8051_MSGIN_REG	0xca12
71388c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_M8051_MSGOUT_REG	0xca13
71398c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_ROM_VER1		0xca19
71408c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_ROM_VER2		0xca1a
71418c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_EDC_FFE_MAIN	0xca1b
71428c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_PLL_BANDWIDTH	0xca1d
71438c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_PLL_CTRL		0xca1e
71448c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_MISC_CTRL0 	0xca23
71458c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_LRM_MODE		0xca3f
71468c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_CDR_BANDWIDTH	0xca46
71478c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_MISC_CTRL1 	0xca85
71488c2ecf20Sopenharmony_ci
71498c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_SFP_TWO_WIRE_CTRL		0x8000
71508c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_SFP_TWO_WIRE_CTRL_STATUS_MASK	0x000c
71518c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_SFP_TWO_WIRE_STATUS_IDLE		0x0000
71528c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_SFP_TWO_WIRE_STATUS_COMPLETE	0x0004
71538c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_SFP_TWO_WIRE_STATUS_IN_PROGRESS	0x0008
71548c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_SFP_TWO_WIRE_STATUS_FAILED 	0x000c
71558c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_SFP_TWO_WIRE_BYTE_CNT	0x8002
71568c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_SFP_TWO_WIRE_MEM_ADDR	0x8003
71578c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_8726_TWO_WIRE_DATA_BUF	0xc820
71588c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_8726_TWO_WIRE_DATA_MASK 0xff
71598c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_8726_TX_CTRL1		0xca01
71608c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_8726_TX_CTRL2		0xca05
71618c2ecf20Sopenharmony_ci
71628c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_8727_TWO_WIRE_SLAVE_ADDR	0x8005
71638c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_8727_TWO_WIRE_DATA_BUF	0x8007
71648c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_8727_TWO_WIRE_DATA_MASK 0xff
71658c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_8727_TX_CTRL1		0xca02
71668c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_8727_TX_CTRL2		0xca05
71678c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_8727_PCS_OPT_CTRL		0xc808
71688c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_8727_GPIO_CTRL		0xc80e
71698c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_8727_PCS_GP		0xc842
71708c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_8727_OPT_CFG_REG		0xc8e4
71718c2ecf20Sopenharmony_ci
71728c2ecf20Sopenharmony_ci#define MDIO_AN_REG_8727_MISC_CTRL		0x8309
71738c2ecf20Sopenharmony_ci
71748c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_8073_CHIP_REV			0xc801
71758c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_8073_SPEED_LINK_STATUS		0xc820
71768c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_8073_XAUI_WA			0xc841
71778c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_8073_OPT_DIGITAL_CTRL		0xcd08
71788c2ecf20Sopenharmony_ci
71798c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_7101_RESET 	0xc000
71808c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_7107_LED_CNTL	0xc007
71818c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_7107_LINK_LED_CNTL 0xc009
71828c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_7101_VER1		0xc026
71838c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_7101_VER2		0xc027
71848c2ecf20Sopenharmony_ci
71858c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_8481_PMD_SIGNAL			0xa811
71868c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_8481_LED1_MASK			0xa82c
71878c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_8481_LED2_MASK			0xa82f
71888c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_8481_LED3_MASK			0xa832
71898c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_8481_LED3_BLINK			0xa834
71908c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_8481_LED5_MASK			0xa838
71918c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_8481_SIGNAL_MASK			0xa835
71928c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_8481_LINK_SIGNAL			0xa83b
71938c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_8481_LINK_SIGNAL_LED4_ENABLE_MASK	0x800
71948c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_8481_LINK_SIGNAL_LED4_ENABLE_SHIFT 11
71958c2ecf20Sopenharmony_ci
71968c2ecf20Sopenharmony_ci
71978c2ecf20Sopenharmony_ci#define MDIO_WIS_DEVAD			0x2
71988c2ecf20Sopenharmony_ci/*bcm*/
71998c2ecf20Sopenharmony_ci#define MDIO_WIS_REG_LASI_CNTL		0x9002
72008c2ecf20Sopenharmony_ci#define MDIO_WIS_REG_LASI_STATUS	0x9005
72018c2ecf20Sopenharmony_ci
72028c2ecf20Sopenharmony_ci#define MDIO_PCS_DEVAD			0x3
72038c2ecf20Sopenharmony_ci#define MDIO_PCS_REG_STATUS		0x0020
72048c2ecf20Sopenharmony_ci#define MDIO_PCS_REG_LASI_STATUS	0x9005
72058c2ecf20Sopenharmony_ci#define MDIO_PCS_REG_7101_DSP_ACCESS	0xD000
72068c2ecf20Sopenharmony_ci#define MDIO_PCS_REG_7101_SPI_MUX	0xD008
72078c2ecf20Sopenharmony_ci#define MDIO_PCS_REG_7101_SPI_CTRL_ADDR 0xE12A
72088c2ecf20Sopenharmony_ci#define MDIO_PCS_REG_7101_SPI_RESET_BIT (5)
72098c2ecf20Sopenharmony_ci#define MDIO_PCS_REG_7101_SPI_FIFO_ADDR 0xE02A
72108c2ecf20Sopenharmony_ci#define MDIO_PCS_REG_7101_SPI_FIFO_ADDR_WRITE_ENABLE_CMD (6)
72118c2ecf20Sopenharmony_ci#define MDIO_PCS_REG_7101_SPI_FIFO_ADDR_BULK_ERASE_CMD	 (0xC7)
72128c2ecf20Sopenharmony_ci#define MDIO_PCS_REG_7101_SPI_FIFO_ADDR_PAGE_PROGRAM_CMD (2)
72138c2ecf20Sopenharmony_ci#define MDIO_PCS_REG_7101_SPI_BYTES_TO_TRANSFER_ADDR 0xE028
72148c2ecf20Sopenharmony_ci
72158c2ecf20Sopenharmony_ci
72168c2ecf20Sopenharmony_ci#define MDIO_XS_DEVAD			0x4
72178c2ecf20Sopenharmony_ci#define MDIO_XS_PLL_SEQUENCER		0x8000
72188c2ecf20Sopenharmony_ci#define MDIO_XS_SFX7101_XGXS_TEST1	0xc00a
72198c2ecf20Sopenharmony_ci
72208c2ecf20Sopenharmony_ci#define MDIO_XS_8706_REG_BANK_RX0	0x80bc
72218c2ecf20Sopenharmony_ci#define MDIO_XS_8706_REG_BANK_RX1	0x80cc
72228c2ecf20Sopenharmony_ci#define MDIO_XS_8706_REG_BANK_RX2	0x80dc
72238c2ecf20Sopenharmony_ci#define MDIO_XS_8706_REG_BANK_RX3	0x80ec
72248c2ecf20Sopenharmony_ci#define MDIO_XS_8706_REG_BANK_RXA	0x80fc
72258c2ecf20Sopenharmony_ci
72268c2ecf20Sopenharmony_ci#define MDIO_XS_REG_8073_RX_CTRL_PCIE	0x80FA
72278c2ecf20Sopenharmony_ci
72288c2ecf20Sopenharmony_ci#define MDIO_AN_DEVAD			0x7
72298c2ecf20Sopenharmony_ci/*ieee*/
72308c2ecf20Sopenharmony_ci#define MDIO_AN_REG_CTRL		0x0000
72318c2ecf20Sopenharmony_ci#define MDIO_AN_REG_STATUS		0x0001
72328c2ecf20Sopenharmony_ci#define MDIO_AN_REG_STATUS_AN_COMPLETE		0x0020
72338c2ecf20Sopenharmony_ci#define MDIO_AN_REG_ADV_PAUSE		0x0010
72348c2ecf20Sopenharmony_ci#define MDIO_AN_REG_ADV_PAUSE_PAUSE		0x0400
72358c2ecf20Sopenharmony_ci#define MDIO_AN_REG_ADV_PAUSE_ASYMMETRIC	0x0800
72368c2ecf20Sopenharmony_ci#define MDIO_AN_REG_ADV_PAUSE_BOTH		0x0C00
72378c2ecf20Sopenharmony_ci#define MDIO_AN_REG_ADV_PAUSE_MASK		0x0C00
72388c2ecf20Sopenharmony_ci#define MDIO_AN_REG_ADV 		0x0011
72398c2ecf20Sopenharmony_ci#define MDIO_AN_REG_ADV2		0x0012
72408c2ecf20Sopenharmony_ci#define MDIO_AN_REG_LP_AUTO_NEG		0x0013
72418c2ecf20Sopenharmony_ci#define MDIO_AN_REG_LP_AUTO_NEG2	0x0014
72428c2ecf20Sopenharmony_ci#define MDIO_AN_REG_MASTER_STATUS	0x0021
72438c2ecf20Sopenharmony_ci#define MDIO_AN_REG_EEE_ADV		0x003c
72448c2ecf20Sopenharmony_ci#define MDIO_AN_REG_LP_EEE_ADV		0x003d
72458c2ecf20Sopenharmony_ci/*bcm*/
72468c2ecf20Sopenharmony_ci#define MDIO_AN_REG_LINK_STATUS 	0x8304
72478c2ecf20Sopenharmony_ci#define MDIO_AN_REG_CL37_CL73		0x8370
72488c2ecf20Sopenharmony_ci#define MDIO_AN_REG_CL37_AN		0xffe0
72498c2ecf20Sopenharmony_ci#define MDIO_AN_REG_CL37_FC_LD		0xffe4
72508c2ecf20Sopenharmony_ci#define		MDIO_AN_REG_CL37_FC_LP		0xffe5
72518c2ecf20Sopenharmony_ci#define		MDIO_AN_REG_1000T_STATUS	0xffea
72528c2ecf20Sopenharmony_ci
72538c2ecf20Sopenharmony_ci#define MDIO_AN_REG_8073_2_5G		0x8329
72548c2ecf20Sopenharmony_ci#define MDIO_AN_REG_8073_BAM		0x8350
72558c2ecf20Sopenharmony_ci
72568c2ecf20Sopenharmony_ci#define MDIO_AN_REG_8481_10GBASE_T_AN_CTRL	0x0020
72578c2ecf20Sopenharmony_ci#define MDIO_AN_REG_8481_LEGACY_MII_CTRL	0xffe0
72588c2ecf20Sopenharmony_ci#define MDIO_AN_REG_8481_MII_CTRL_FORCE_1G	0x40
72598c2ecf20Sopenharmony_ci#define MDIO_AN_REG_8481_LEGACY_MII_STATUS	0xffe1
72608c2ecf20Sopenharmony_ci#define MDIO_AN_REG_848xx_ID_MSB		0xffe2
72618c2ecf20Sopenharmony_ci#define BCM84858_PHY_ID					0x600d
72628c2ecf20Sopenharmony_ci#define MDIO_AN_REG_848xx_ID_LSB		0xffe3
72638c2ecf20Sopenharmony_ci#define MDIO_AN_REG_8481_LEGACY_AN_ADV		0xffe4
72648c2ecf20Sopenharmony_ci#define MDIO_AN_REG_8481_LEGACY_AN_EXPANSION	0xffe6
72658c2ecf20Sopenharmony_ci#define MDIO_AN_REG_8481_1000T_CTRL		0xffe9
72668c2ecf20Sopenharmony_ci#define MDIO_AN_REG_8481_1G_100T_EXT_CTRL	0xfff0
72678c2ecf20Sopenharmony_ci#define MIDO_AN_REG_8481_EXT_CTRL_FORCE_LEDS_OFF	0x0008
72688c2ecf20Sopenharmony_ci#define MDIO_AN_REG_8481_EXPANSION_REG_RD_RW	0xfff5
72698c2ecf20Sopenharmony_ci#define MDIO_AN_REG_8481_EXPANSION_REG_ACCESS	0xfff7
72708c2ecf20Sopenharmony_ci#define MDIO_AN_REG_8481_AUX_CTRL		0xfff8
72718c2ecf20Sopenharmony_ci#define MDIO_AN_REG_8481_LEGACY_SHADOW		0xfffc
72728c2ecf20Sopenharmony_ci
72738c2ecf20Sopenharmony_ci/* BCM84823 only */
72748c2ecf20Sopenharmony_ci#define MDIO_CTL_DEVAD			0x1e
72758c2ecf20Sopenharmony_ci#define MDIO_CTL_REG_84823_MEDIA		0x401a
72768c2ecf20Sopenharmony_ci#define MDIO_CTL_REG_84823_MEDIA_MAC_MASK		0x0018
72778c2ecf20Sopenharmony_ci	/* These pins configure the BCM84823 interface to MAC after reset. */
72788c2ecf20Sopenharmony_ci#define MDIO_CTL_REG_84823_CTRL_MAC_XFI			0x0008
72798c2ecf20Sopenharmony_ci#define MDIO_CTL_REG_84823_MEDIA_MAC_XAUI_M		0x0010
72808c2ecf20Sopenharmony_ci	/* These pins configure the BCM84823 interface to Line after reset. */
72818c2ecf20Sopenharmony_ci#define MDIO_CTL_REG_84823_MEDIA_LINE_MASK		0x0060
72828c2ecf20Sopenharmony_ci#define MDIO_CTL_REG_84823_MEDIA_LINE_XAUI_L		0x0020
72838c2ecf20Sopenharmony_ci#define MDIO_CTL_REG_84823_MEDIA_LINE_XFI		0x0040
72848c2ecf20Sopenharmony_ci	/* When this pin is active high during reset, 10GBASE-T core is power
72858c2ecf20Sopenharmony_ci	 * down, When it is active low the 10GBASE-T is power up
72868c2ecf20Sopenharmony_ci	 */
72878c2ecf20Sopenharmony_ci#define MDIO_CTL_REG_84823_MEDIA_COPPER_CORE_DOWN	0x0080
72888c2ecf20Sopenharmony_ci#define MDIO_CTL_REG_84823_MEDIA_PRIORITY_MASK		0x0100
72898c2ecf20Sopenharmony_ci#define MDIO_CTL_REG_84823_MEDIA_PRIORITY_COPPER	0x0000
72908c2ecf20Sopenharmony_ci#define MDIO_CTL_REG_84823_MEDIA_PRIORITY_FIBER		0x0100
72918c2ecf20Sopenharmony_ci#define MDIO_CTL_REG_84823_MEDIA_FIBER_1G			0x1000
72928c2ecf20Sopenharmony_ci#define MDIO_CTL_REG_84823_USER_CTRL_REG			0x4005
72938c2ecf20Sopenharmony_ci#define MDIO_CTL_REG_84823_USER_CTRL_CMS			0x0080
72948c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_84823_CTL_SLOW_CLK_CNT_HIGH		0xa82b
72958c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_84823_BLINK_RATE_VAL_15P9HZ	0x2f
72968c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_84823_CTL_LED_CTL_1			0xa8e3
72978c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_84833_CTL_LED_CTL_1			0xa8ec
72988c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_84823_LED3_STRETCH_EN			0x0080
72998c2ecf20Sopenharmony_ci/* BCM84858 only */
73008c2ecf20Sopenharmony_ci#define MDIO_PMA_REG_84858_ALLOW_GPHY_ACT			0x8000
73018c2ecf20Sopenharmony_ci
73028c2ecf20Sopenharmony_ci/* BCM84833 only */
73038c2ecf20Sopenharmony_ci#define MDIO_84833_TOP_CFG_FW_REV			0x400f
73048c2ecf20Sopenharmony_ci#define MDIO_84833_TOP_CFG_FW_EEE		0x10b1
73058c2ecf20Sopenharmony_ci#define MDIO_84833_TOP_CFG_FW_NO_EEE		0x1f81
73068c2ecf20Sopenharmony_ci#define MDIO_84833_TOP_CFG_XGPHY_STRAP1			0x401a
73078c2ecf20Sopenharmony_ci#define MDIO_84833_SUPER_ISOLATE		0x8000
73088c2ecf20Sopenharmony_ci/* These are mailbox register set used by 84833/84858. */
73098c2ecf20Sopenharmony_ci#define MDIO_848xx_TOP_CFG_SCRATCH_REG0			0x4005
73108c2ecf20Sopenharmony_ci#define MDIO_848xx_TOP_CFG_SCRATCH_REG1			0x4006
73118c2ecf20Sopenharmony_ci#define MDIO_848xx_TOP_CFG_SCRATCH_REG2			0x4007
73128c2ecf20Sopenharmony_ci#define MDIO_848xx_TOP_CFG_SCRATCH_REG3			0x4008
73138c2ecf20Sopenharmony_ci#define MDIO_848xx_TOP_CFG_SCRATCH_REG4			0x4009
73148c2ecf20Sopenharmony_ci#define MDIO_848xx_TOP_CFG_SCRATCH_REG26		0x4037
73158c2ecf20Sopenharmony_ci#define MDIO_848xx_TOP_CFG_SCRATCH_REG27		0x4038
73168c2ecf20Sopenharmony_ci#define MDIO_848xx_TOP_CFG_SCRATCH_REG28		0x4039
73178c2ecf20Sopenharmony_ci#define MDIO_848xx_TOP_CFG_SCRATCH_REG29		0x403a
73188c2ecf20Sopenharmony_ci#define MDIO_848xx_TOP_CFG_SCRATCH_REG30		0x403b
73198c2ecf20Sopenharmony_ci#define MDIO_848xx_TOP_CFG_SCRATCH_REG31		0x403c
73208c2ecf20Sopenharmony_ci#define MDIO_848xx_CMD_HDLR_COMMAND	(MDIO_848xx_TOP_CFG_SCRATCH_REG0)
73218c2ecf20Sopenharmony_ci#define MDIO_848xx_CMD_HDLR_STATUS	(MDIO_848xx_TOP_CFG_SCRATCH_REG26)
73228c2ecf20Sopenharmony_ci#define MDIO_848xx_CMD_HDLR_DATA1	(MDIO_848xx_TOP_CFG_SCRATCH_REG27)
73238c2ecf20Sopenharmony_ci#define MDIO_848xx_CMD_HDLR_DATA2	(MDIO_848xx_TOP_CFG_SCRATCH_REG28)
73248c2ecf20Sopenharmony_ci#define MDIO_848xx_CMD_HDLR_DATA3	(MDIO_848xx_TOP_CFG_SCRATCH_REG29)
73258c2ecf20Sopenharmony_ci#define MDIO_848xx_CMD_HDLR_DATA4	(MDIO_848xx_TOP_CFG_SCRATCH_REG30)
73268c2ecf20Sopenharmony_ci#define MDIO_848xx_CMD_HDLR_DATA5	(MDIO_848xx_TOP_CFG_SCRATCH_REG31)
73278c2ecf20Sopenharmony_ci
73288c2ecf20Sopenharmony_ci/* Mailbox command set used by 84833/84858 */
73298c2ecf20Sopenharmony_ci#define PHY848xx_CMD_SET_PAIR_SWAP			0x8001
73308c2ecf20Sopenharmony_ci#define PHY848xx_CMD_GET_EEE_MODE			0x8008
73318c2ecf20Sopenharmony_ci#define PHY848xx_CMD_SET_EEE_MODE			0x8009
73328c2ecf20Sopenharmony_ci/* Mailbox status set used by 84833 only */
73338c2ecf20Sopenharmony_ci#define PHY84833_STATUS_CMD_RECEIVED			0x0001
73348c2ecf20Sopenharmony_ci#define PHY84833_STATUS_CMD_IN_PROGRESS			0x0002
73358c2ecf20Sopenharmony_ci#define PHY84833_STATUS_CMD_COMPLETE_PASS		0x0004
73368c2ecf20Sopenharmony_ci#define PHY84833_STATUS_CMD_COMPLETE_ERROR		0x0008
73378c2ecf20Sopenharmony_ci#define PHY84833_STATUS_CMD_OPEN_FOR_CMDS		0x0010
73388c2ecf20Sopenharmony_ci#define PHY84833_STATUS_CMD_SYSTEM_BOOT			0x0020
73398c2ecf20Sopenharmony_ci#define PHY84833_STATUS_CMD_NOT_OPEN_FOR_CMDS		0x0040
73408c2ecf20Sopenharmony_ci#define PHY84833_STATUS_CMD_CLEAR_COMPLETE		0x0080
73418c2ecf20Sopenharmony_ci#define PHY84833_STATUS_CMD_OPEN_OVERRIDE		0xa5a5
73428c2ecf20Sopenharmony_ci/* Mailbox Process */
73438c2ecf20Sopenharmony_ci#define PHY84833_MB_PROCESS1				1
73448c2ecf20Sopenharmony_ci#define PHY84833_MB_PROCESS2				2
73458c2ecf20Sopenharmony_ci#define PHY84833_MB_PROCESS3				3
73468c2ecf20Sopenharmony_ci
73478c2ecf20Sopenharmony_ci/* Mailbox status set used by 84858 only */
73488c2ecf20Sopenharmony_ci#define PHY84858_STATUS_CMD_RECEIVED			0x0001
73498c2ecf20Sopenharmony_ci#define PHY84858_STATUS_CMD_IN_PROGRESS			0x0002
73508c2ecf20Sopenharmony_ci#define PHY84858_STATUS_CMD_COMPLETE_PASS		0x0004
73518c2ecf20Sopenharmony_ci#define PHY84858_STATUS_CMD_COMPLETE_ERROR		0x0008
73528c2ecf20Sopenharmony_ci#define PHY84858_STATUS_CMD_SYSTEM_BUSY			0xbbbb
73538c2ecf20Sopenharmony_ci
73548c2ecf20Sopenharmony_ci
73558c2ecf20Sopenharmony_ci/* Warpcore clause 45 addressing */
73568c2ecf20Sopenharmony_ci#define MDIO_WC_DEVAD					0x3
73578c2ecf20Sopenharmony_ci#define MDIO_WC_REG_IEEE0BLK_MIICNTL			0x0
73588c2ecf20Sopenharmony_ci#define MDIO_WC_REG_IEEE0BLK_AUTONEGNP			0x7
73598c2ecf20Sopenharmony_ci#define MDIO_WC_REG_AN_IEEE1BLK_AN_ADVERTISEMENT0	0x10
73608c2ecf20Sopenharmony_ci#define MDIO_WC_REG_AN_IEEE1BLK_AN_ADVERTISEMENT1	0x11
73618c2ecf20Sopenharmony_ci#define MDIO_WC_REG_AN_IEEE1BLK_AN_ADVERTISEMENT2	0x12
73628c2ecf20Sopenharmony_ci#define MDIO_WC_REG_AN_IEEE1BLK_AN_ADV2_FEC_ABILITY	0x4000
73638c2ecf20Sopenharmony_ci#define MDIO_WC_REG_AN_IEEE1BLK_AN_ADV2_FEC_REQ		0x8000
73648c2ecf20Sopenharmony_ci#define MDIO_WC_REG_PCS_STATUS2				0x0021
73658c2ecf20Sopenharmony_ci#define MDIO_WC_REG_PMD_KR_CONTROL			0x0096
73668c2ecf20Sopenharmony_ci#define MDIO_WC_REG_XGXSBLK0_XGXSCONTROL		0x8000
73678c2ecf20Sopenharmony_ci#define MDIO_WC_REG_XGXSBLK0_MISCCONTROL1		0x800e
73688c2ecf20Sopenharmony_ci#define MDIO_WC_REG_XGXSBLK1_DESKEW			0x8010
73698c2ecf20Sopenharmony_ci#define MDIO_WC_REG_XGXSBLK1_LANECTRL0			0x8015
73708c2ecf20Sopenharmony_ci#define MDIO_WC_REG_XGXSBLK1_LANECTRL1			0x8016
73718c2ecf20Sopenharmony_ci#define MDIO_WC_REG_XGXSBLK1_LANECTRL2			0x8017
73728c2ecf20Sopenharmony_ci#define MDIO_WC_REG_TX0_ANA_CTRL0			0x8061
73738c2ecf20Sopenharmony_ci#define MDIO_WC_REG_TX1_ANA_CTRL0			0x8071
73748c2ecf20Sopenharmony_ci#define MDIO_WC_REG_TX2_ANA_CTRL0			0x8081
73758c2ecf20Sopenharmony_ci#define MDIO_WC_REG_TX3_ANA_CTRL0			0x8091
73768c2ecf20Sopenharmony_ci#define MDIO_WC_REG_TX0_TX_DRIVER			0x8067
73778c2ecf20Sopenharmony_ci#define MDIO_WC_REG_TX0_TX_DRIVER_IFIR_OFFSET			0x01
73788c2ecf20Sopenharmony_ci#define MDIO_WC_REG_TX0_TX_DRIVER_IFIR_MASK				0x000e
73798c2ecf20Sopenharmony_ci#define MDIO_WC_REG_TX0_TX_DRIVER_IPRE_DRIVER_OFFSET		0x04
73808c2ecf20Sopenharmony_ci#define MDIO_WC_REG_TX0_TX_DRIVER_IPRE_DRIVER_MASK			0x00f0
73818c2ecf20Sopenharmony_ci#define MDIO_WC_REG_TX0_TX_DRIVER_IDRIVER_OFFSET		0x08
73828c2ecf20Sopenharmony_ci#define MDIO_WC_REG_TX0_TX_DRIVER_IDRIVER_MASK				0x0f00
73838c2ecf20Sopenharmony_ci#define MDIO_WC_REG_TX0_TX_DRIVER_POST2_COEFF_OFFSET		0x0c
73848c2ecf20Sopenharmony_ci#define MDIO_WC_REG_TX0_TX_DRIVER_POST2_COEFF_MASK			0x7000
73858c2ecf20Sopenharmony_ci#define MDIO_WC_REG_TX1_TX_DRIVER			0x8077
73868c2ecf20Sopenharmony_ci#define MDIO_WC_REG_TX2_TX_DRIVER			0x8087
73878c2ecf20Sopenharmony_ci#define MDIO_WC_REG_TX3_TX_DRIVER			0x8097
73888c2ecf20Sopenharmony_ci#define MDIO_WC_REG_RX0_ANARXCONTROL1G			0x80b9
73898c2ecf20Sopenharmony_ci#define MDIO_WC_REG_RX2_ANARXCONTROL1G			0x80d9
73908c2ecf20Sopenharmony_ci#define MDIO_WC_REG_RX0_PCI_CTRL			0x80ba
73918c2ecf20Sopenharmony_ci#define MDIO_WC_REG_RX1_PCI_CTRL			0x80ca
73928c2ecf20Sopenharmony_ci#define MDIO_WC_REG_RX2_PCI_CTRL			0x80da
73938c2ecf20Sopenharmony_ci#define MDIO_WC_REG_RX3_PCI_CTRL			0x80ea
73948c2ecf20Sopenharmony_ci#define MDIO_WC_REG_RXB_ANA_RX_CONTROL_PCI		0x80fa
73958c2ecf20Sopenharmony_ci#define MDIO_WC_REG_XGXSBLK2_UNICORE_MODE_10G		0x8104
73968c2ecf20Sopenharmony_ci#define MDIO_WC_REG_XGXS_STATUS3			0x8129
73978c2ecf20Sopenharmony_ci#define MDIO_WC_REG_PAR_DET_10G_STATUS			0x8130
73988c2ecf20Sopenharmony_ci#define MDIO_WC_REG_PAR_DET_10G_CTRL			0x8131
73998c2ecf20Sopenharmony_ci#define MDIO_WC_REG_XGXS_X2_CONTROL2			0x8141
74008c2ecf20Sopenharmony_ci#define MDIO_WC_REG_XGXS_X2_CONTROL3			0x8142
74018c2ecf20Sopenharmony_ci#define MDIO_WC_REG_XGXS_RX_LN_SWAP1			0x816B
74028c2ecf20Sopenharmony_ci#define MDIO_WC_REG_XGXS_TX_LN_SWAP1			0x8169
74038c2ecf20Sopenharmony_ci#define MDIO_WC_REG_GP2_STATUS_GP_2_0			0x81d0
74048c2ecf20Sopenharmony_ci#define MDIO_WC_REG_GP2_STATUS_GP_2_1			0x81d1
74058c2ecf20Sopenharmony_ci#define MDIO_WC_REG_GP2_STATUS_GP_2_2			0x81d2
74068c2ecf20Sopenharmony_ci#define MDIO_WC_REG_GP2_STATUS_GP_2_3			0x81d3
74078c2ecf20Sopenharmony_ci#define MDIO_WC_REG_GP2_STATUS_GP_2_4			0x81d4
74088c2ecf20Sopenharmony_ci#define MDIO_WC_REG_GP2_STATUS_GP_2_4_CL73_AN_CMPL 0x1000
74098c2ecf20Sopenharmony_ci#define MDIO_WC_REG_GP2_STATUS_GP_2_4_CL37_AN_CMPL 0x0100
74108c2ecf20Sopenharmony_ci#define MDIO_WC_REG_GP2_STATUS_GP_2_4_CL37_LP_AN_CAP 0x0010
74118c2ecf20Sopenharmony_ci#define MDIO_WC_REG_GP2_STATUS_GP_2_4_CL37_AN_CAP 0x1
74128c2ecf20Sopenharmony_ci#define MDIO_WC_REG_UC_INFO_B0_DEAD_TRAP		0x81EE
74138c2ecf20Sopenharmony_ci#define MDIO_WC_REG_UC_INFO_B1_VERSION			0x81F0
74148c2ecf20Sopenharmony_ci#define MDIO_WC_REG_UC_INFO_B1_FIRMWARE_MODE		0x81F2
74158c2ecf20Sopenharmony_ci#define MDIO_WC_REG_UC_INFO_B1_FIRMWARE_LANE0_OFFSET	0x0
74168c2ecf20Sopenharmony_ci#define MDIO_WC_REG_UC_INFO_B1_FIRMWARE_MODE_DEFAULT	    0x0
74178c2ecf20Sopenharmony_ci#define MDIO_WC_REG_UC_INFO_B1_FIRMWARE_MODE_SFP_OPT_LR	    0x1
74188c2ecf20Sopenharmony_ci#define MDIO_WC_REG_UC_INFO_B1_FIRMWARE_MODE_SFP_DAC	    0x2
74198c2ecf20Sopenharmony_ci#define MDIO_WC_REG_UC_INFO_B1_FIRMWARE_MODE_SFP_XLAUI	    0x3
74208c2ecf20Sopenharmony_ci#define MDIO_WC_REG_UC_INFO_B1_FIRMWARE_MODE_LONG_CH_6G	    0x4
74218c2ecf20Sopenharmony_ci#define MDIO_WC_REG_UC_INFO_B1_FIRMWARE_LANE1_OFFSET	0x4
74228c2ecf20Sopenharmony_ci#define MDIO_WC_REG_UC_INFO_B1_FIRMWARE_LANE2_OFFSET	0x8
74238c2ecf20Sopenharmony_ci#define MDIO_WC_REG_UC_INFO_B1_FIRMWARE_LANE3_OFFSET	0xc
74248c2ecf20Sopenharmony_ci#define MDIO_WC_REG_UC_INFO_B1_CRC			0x81FE
74258c2ecf20Sopenharmony_ci#define MDIO_WC_REG_DSC_SMC				0x8213
74268c2ecf20Sopenharmony_ci#define MDIO_WC_REG_DSC2B0_DSC_MISC_CTRL0		0x821e
74278c2ecf20Sopenharmony_ci#define MDIO_WC_REG_TX_FIR_TAP				0x82e2
74288c2ecf20Sopenharmony_ci#define MDIO_WC_REG_TX_FIR_TAP_PRE_TAP_OFFSET		0x00
74298c2ecf20Sopenharmony_ci#define MDIO_WC_REG_TX_FIR_TAP_PRE_TAP_MASK			0x000f
74308c2ecf20Sopenharmony_ci#define MDIO_WC_REG_TX_FIR_TAP_MAIN_TAP_OFFSET		0x04
74318c2ecf20Sopenharmony_ci#define MDIO_WC_REG_TX_FIR_TAP_MAIN_TAP_MASK		0x03f0
74328c2ecf20Sopenharmony_ci#define MDIO_WC_REG_TX_FIR_TAP_POST_TAP_OFFSET		0x0a
74338c2ecf20Sopenharmony_ci#define MDIO_WC_REG_TX_FIR_TAP_POST_TAP_MASK		0x7c00
74348c2ecf20Sopenharmony_ci#define MDIO_WC_REG_TX_FIR_TAP_ENABLE		0x8000
74358c2ecf20Sopenharmony_ci#define MDIO_WC_REG_CL72_USERB0_CL72_TX_FIR_TAP		0x82e2
74368c2ecf20Sopenharmony_ci#define MDIO_WC_REG_CL72_USERB0_CL72_MISC1_CONTROL	0x82e3
74378c2ecf20Sopenharmony_ci#define MDIO_WC_REG_CL72_USERB0_CL72_OS_DEF_CTRL	0x82e6
74388c2ecf20Sopenharmony_ci#define MDIO_WC_REG_CL72_USERB0_CL72_BR_DEF_CTRL	0x82e7
74398c2ecf20Sopenharmony_ci#define MDIO_WC_REG_CL72_USERB0_CL72_2P5_DEF_CTRL	0x82e8
74408c2ecf20Sopenharmony_ci#define MDIO_WC_REG_CL72_USERB0_CL72_MISC4_CONTROL	0x82ec
74418c2ecf20Sopenharmony_ci#define MDIO_WC_REG_SERDESDIGITAL_CONTROL1000X1		0x8300
74428c2ecf20Sopenharmony_ci#define MDIO_WC_REG_SERDESDIGITAL_CONTROL1000X2		0x8301
74438c2ecf20Sopenharmony_ci#define MDIO_WC_REG_SERDESDIGITAL_CONTROL1000X3		0x8302
74448c2ecf20Sopenharmony_ci#define MDIO_WC_REG_SERDESDIGITAL_STATUS1000X1		0x8304
74458c2ecf20Sopenharmony_ci#define MDIO_WC_REG_SERDESDIGITAL_MISC1			0x8308
74468c2ecf20Sopenharmony_ci#define MDIO_WC_REG_SERDESDIGITAL_MISC2			0x8309
74478c2ecf20Sopenharmony_ci#define MDIO_WC_REG_DIGITAL3_UP1			0x8329
74488c2ecf20Sopenharmony_ci#define MDIO_WC_REG_DIGITAL3_LP_UP1			 0x832c
74498c2ecf20Sopenharmony_ci#define MDIO_WC_REG_DIGITAL4_MISC3			0x833c
74508c2ecf20Sopenharmony_ci#define MDIO_WC_REG_DIGITAL4_MISC5			0x833e
74518c2ecf20Sopenharmony_ci#define MDIO_WC_REG_DIGITAL5_MISC6			0x8345
74528c2ecf20Sopenharmony_ci#define MDIO_WC_REG_DIGITAL5_MISC7			0x8349
74538c2ecf20Sopenharmony_ci#define MDIO_WC_REG_DIGITAL5_LINK_STATUS		0x834d
74548c2ecf20Sopenharmony_ci#define MDIO_WC_REG_DIGITAL5_ACTUAL_SPEED		0x834e
74558c2ecf20Sopenharmony_ci#define MDIO_WC_REG_DIGITAL6_MP5_NEXTPAGECTRL		0x8350
74568c2ecf20Sopenharmony_ci#define MDIO_WC_REG_CL49_USERB0_CTRL			0x8368
74578c2ecf20Sopenharmony_ci#define MDIO_WC_REG_CL73_USERB0_CTRL			0x8370
74588c2ecf20Sopenharmony_ci#define MDIO_WC_REG_CL73_USERB0_USTAT			0x8371
74598c2ecf20Sopenharmony_ci#define MDIO_WC_REG_CL73_BAM_CTRL1			0x8372
74608c2ecf20Sopenharmony_ci#define MDIO_WC_REG_CL73_BAM_CTRL2			0x8373
74618c2ecf20Sopenharmony_ci#define MDIO_WC_REG_CL73_BAM_CTRL3			0x8374
74628c2ecf20Sopenharmony_ci#define MDIO_WC_REG_CL73_BAM_CODE_FIELD			0x837b
74638c2ecf20Sopenharmony_ci#define MDIO_WC_REG_EEE_COMBO_CONTROL0			0x8390
74648c2ecf20Sopenharmony_ci#define MDIO_WC_REG_TX66_CONTROL			0x83b0
74658c2ecf20Sopenharmony_ci#define MDIO_WC_REG_RX66_CONTROL			0x83c0
74668c2ecf20Sopenharmony_ci#define MDIO_WC_REG_RX66_SCW0				0x83c2
74678c2ecf20Sopenharmony_ci#define MDIO_WC_REG_RX66_SCW1				0x83c3
74688c2ecf20Sopenharmony_ci#define MDIO_WC_REG_RX66_SCW2				0x83c4
74698c2ecf20Sopenharmony_ci#define MDIO_WC_REG_RX66_SCW3				0x83c5
74708c2ecf20Sopenharmony_ci#define MDIO_WC_REG_RX66_SCW0_MASK			0x83c6
74718c2ecf20Sopenharmony_ci#define MDIO_WC_REG_RX66_SCW1_MASK			0x83c7
74728c2ecf20Sopenharmony_ci#define MDIO_WC_REG_RX66_SCW2_MASK			0x83c8
74738c2ecf20Sopenharmony_ci#define MDIO_WC_REG_RX66_SCW3_MASK			0x83c9
74748c2ecf20Sopenharmony_ci#define MDIO_WC_REG_FX100_CTRL1				0x8400
74758c2ecf20Sopenharmony_ci#define MDIO_WC_REG_FX100_CTRL3				0x8402
74768c2ecf20Sopenharmony_ci#define MDIO_WC_REG_CL82_USERB1_TX_CTRL5		0x8436
74778c2ecf20Sopenharmony_ci#define MDIO_WC_REG_CL82_USERB1_TX_CTRL6		0x8437
74788c2ecf20Sopenharmony_ci#define MDIO_WC_REG_CL82_USERB1_TX_CTRL7		0x8438
74798c2ecf20Sopenharmony_ci#define MDIO_WC_REG_CL82_USERB1_TX_CTRL9		0x8439
74808c2ecf20Sopenharmony_ci#define MDIO_WC_REG_CL82_USERB1_RX_CTRL10		0x843a
74818c2ecf20Sopenharmony_ci#define MDIO_WC_REG_CL82_USERB1_RX_CTRL11		0x843b
74828c2ecf20Sopenharmony_ci#define MDIO_WC_REG_ETA_CL73_OUI1			0x8453
74838c2ecf20Sopenharmony_ci#define MDIO_WC_REG_ETA_CL73_OUI2			0x8454
74848c2ecf20Sopenharmony_ci#define MDIO_WC_REG_ETA_CL73_OUI3			0x8455
74858c2ecf20Sopenharmony_ci#define MDIO_WC_REG_ETA_CL73_LD_BAM_CODE		0x8456
74868c2ecf20Sopenharmony_ci#define MDIO_WC_REG_ETA_CL73_LD_UD_CODE			0x8457
74878c2ecf20Sopenharmony_ci#define MDIO_WC_REG_MICROBLK_CMD			0xffc2
74888c2ecf20Sopenharmony_ci#define MDIO_WC_REG_MICROBLK_DL_STATUS			0xffc5
74898c2ecf20Sopenharmony_ci#define MDIO_WC_REG_MICROBLK_CMD3			0xffcc
74908c2ecf20Sopenharmony_ci
74918c2ecf20Sopenharmony_ci#define MDIO_WC_REG_AERBLK_AER				0xffde
74928c2ecf20Sopenharmony_ci#define MDIO_WC_REG_COMBO_IEEE0_MIICTRL			0xffe0
74938c2ecf20Sopenharmony_ci#define MDIO_WC_REG_COMBO_IEEE0_MIIISTAT		0xffe1
74948c2ecf20Sopenharmony_ci
74958c2ecf20Sopenharmony_ci#define MDIO_WC0_XGXS_BLK2_LANE_RESET			0x810A
74968c2ecf20Sopenharmony_ci#define MDIO_WC0_XGXS_BLK2_LANE_RESET_RX_BITSHIFT	0
74978c2ecf20Sopenharmony_ci#define MDIO_WC0_XGXS_BLK2_LANE_RESET_TX_BITSHIFT	4
74988c2ecf20Sopenharmony_ci
74998c2ecf20Sopenharmony_ci#define MDIO_WC0_XGXS_BLK6_XGXS_X2_CONTROL2		0x8141
75008c2ecf20Sopenharmony_ci
75018c2ecf20Sopenharmony_ci#define DIGITAL5_ACTUAL_SPEED_TX_MASK			0x003f
75028c2ecf20Sopenharmony_ci
75038c2ecf20Sopenharmony_ci/* 54618se */
75048c2ecf20Sopenharmony_ci#define MDIO_REG_GPHY_PHYID_LSB				0x3
75058c2ecf20Sopenharmony_ci#define MDIO_REG_GPHY_ID_54618SE		0x5cd5
75068c2ecf20Sopenharmony_ci#define MDIO_REG_GPHY_CL45_ADDR_REG			0xd
75078c2ecf20Sopenharmony_ci#define MDIO_REG_GPHY_CL45_DATA_REG			0xe
75088c2ecf20Sopenharmony_ci#define MDIO_REG_GPHY_EEE_RESOLVED		0x803e
75098c2ecf20Sopenharmony_ci#define MDIO_REG_GPHY_EXP_ACCESS_GATE			0x15
75108c2ecf20Sopenharmony_ci#define MDIO_REG_GPHY_EXP_ACCESS			0x17
75118c2ecf20Sopenharmony_ci#define MDIO_REG_GPHY_EXP_ACCESS_TOP		0xd00
75128c2ecf20Sopenharmony_ci#define MDIO_REG_GPHY_EXP_TOP_2K_BUF		0x40
75138c2ecf20Sopenharmony_ci#define MDIO_REG_GPHY_AUX_STATUS			0x19
75148c2ecf20Sopenharmony_ci#define MDIO_REG_INTR_STATUS				0x1a
75158c2ecf20Sopenharmony_ci#define MDIO_REG_INTR_MASK				0x1b
75168c2ecf20Sopenharmony_ci#define MDIO_REG_INTR_MASK_LINK_STATUS			(0x1 << 1)
75178c2ecf20Sopenharmony_ci#define MDIO_REG_GPHY_SHADOW				0x1c
75188c2ecf20Sopenharmony_ci#define MDIO_REG_GPHY_SHADOW_LED_SEL1			(0x0d << 10)
75198c2ecf20Sopenharmony_ci#define MDIO_REG_GPHY_SHADOW_LED_SEL2			(0x0e << 10)
75208c2ecf20Sopenharmony_ci#define MDIO_REG_GPHY_SHADOW_WR_ENA			(0x1 << 15)
75218c2ecf20Sopenharmony_ci#define MDIO_REG_GPHY_SHADOW_AUTO_DET_MED		(0x1e << 10)
75228c2ecf20Sopenharmony_ci#define MDIO_REG_GPHY_SHADOW_INVERT_FIB_SD		(0x1 << 8)
75238c2ecf20Sopenharmony_ci
75248c2ecf20Sopenharmony_ci#define IGU_FUNC_BASE			0x0400
75258c2ecf20Sopenharmony_ci
75268c2ecf20Sopenharmony_ci#define IGU_ADDR_MSIX			0x0000
75278c2ecf20Sopenharmony_ci#define IGU_ADDR_INT_ACK		0x0200
75288c2ecf20Sopenharmony_ci#define IGU_ADDR_PROD_UPD		0x0201
75298c2ecf20Sopenharmony_ci#define IGU_ADDR_ATTN_BITS_UPD	0x0202
75308c2ecf20Sopenharmony_ci#define IGU_ADDR_ATTN_BITS_SET	0x0203
75318c2ecf20Sopenharmony_ci#define IGU_ADDR_ATTN_BITS_CLR	0x0204
75328c2ecf20Sopenharmony_ci#define IGU_ADDR_COALESCE_NOW	0x0205
75338c2ecf20Sopenharmony_ci#define IGU_ADDR_SIMD_MASK		0x0206
75348c2ecf20Sopenharmony_ci#define IGU_ADDR_SIMD_NOMASK	0x0207
75358c2ecf20Sopenharmony_ci#define IGU_ADDR_MSI_CTL		0x0210
75368c2ecf20Sopenharmony_ci#define IGU_ADDR_MSI_ADDR_LO	0x0211
75378c2ecf20Sopenharmony_ci#define IGU_ADDR_MSI_ADDR_HI	0x0212
75388c2ecf20Sopenharmony_ci#define IGU_ADDR_MSI_DATA		0x0213
75398c2ecf20Sopenharmony_ci
75408c2ecf20Sopenharmony_ci#define IGU_USE_REGISTER_ustorm_type_0_sb_cleanup  0
75418c2ecf20Sopenharmony_ci#define IGU_USE_REGISTER_ustorm_type_1_sb_cleanup  1
75428c2ecf20Sopenharmony_ci#define IGU_USE_REGISTER_cstorm_type_0_sb_cleanup  2
75438c2ecf20Sopenharmony_ci#define IGU_USE_REGISTER_cstorm_type_1_sb_cleanup  3
75448c2ecf20Sopenharmony_ci
75458c2ecf20Sopenharmony_ci#define COMMAND_REG_INT_ACK	    0x0
75468c2ecf20Sopenharmony_ci#define COMMAND_REG_PROD_UPD	    0x4
75478c2ecf20Sopenharmony_ci#define COMMAND_REG_ATTN_BITS_UPD   0x8
75488c2ecf20Sopenharmony_ci#define COMMAND_REG_ATTN_BITS_SET   0xc
75498c2ecf20Sopenharmony_ci#define COMMAND_REG_ATTN_BITS_CLR   0x10
75508c2ecf20Sopenharmony_ci#define COMMAND_REG_COALESCE_NOW    0x14
75518c2ecf20Sopenharmony_ci#define COMMAND_REG_SIMD_MASK	    0x18
75528c2ecf20Sopenharmony_ci#define COMMAND_REG_SIMD_NOMASK     0x1c
75538c2ecf20Sopenharmony_ci
75548c2ecf20Sopenharmony_ci
75558c2ecf20Sopenharmony_ci#define IGU_MEM_BASE						0x0000
75568c2ecf20Sopenharmony_ci
75578c2ecf20Sopenharmony_ci#define IGU_MEM_MSIX_BASE					0x0000
75588c2ecf20Sopenharmony_ci#define IGU_MEM_MSIX_UPPER					0x007f
75598c2ecf20Sopenharmony_ci#define IGU_MEM_MSIX_RESERVED_UPPER			0x01ff
75608c2ecf20Sopenharmony_ci
75618c2ecf20Sopenharmony_ci#define IGU_MEM_PBA_MSIX_BASE				0x0200
75628c2ecf20Sopenharmony_ci#define IGU_MEM_PBA_MSIX_UPPER				0x0200
75638c2ecf20Sopenharmony_ci
75648c2ecf20Sopenharmony_ci#define IGU_CMD_BACKWARD_COMP_PROD_UPD		0x0201
75658c2ecf20Sopenharmony_ci#define IGU_MEM_PBA_MSIX_RESERVED_UPPER 	0x03ff
75668c2ecf20Sopenharmony_ci
75678c2ecf20Sopenharmony_ci#define IGU_CMD_INT_ACK_BASE				0x0400
75688c2ecf20Sopenharmony_ci#define IGU_CMD_INT_ACK_UPPER\
75698c2ecf20Sopenharmony_ci	(IGU_CMD_INT_ACK_BASE + MAX_SB_PER_PORT * NUM_OF_PORTS_PER_PATH - 1)
75708c2ecf20Sopenharmony_ci#define IGU_CMD_INT_ACK_RESERVED_UPPER		0x04ff
75718c2ecf20Sopenharmony_ci
75728c2ecf20Sopenharmony_ci#define IGU_CMD_E2_PROD_UPD_BASE			0x0500
75738c2ecf20Sopenharmony_ci#define IGU_CMD_E2_PROD_UPD_UPPER\
75748c2ecf20Sopenharmony_ci	(IGU_CMD_E2_PROD_UPD_BASE + MAX_SB_PER_PORT * NUM_OF_PORTS_PER_PATH - 1)
75758c2ecf20Sopenharmony_ci#define IGU_CMD_E2_PROD_UPD_RESERVED_UPPER	0x059f
75768c2ecf20Sopenharmony_ci
75778c2ecf20Sopenharmony_ci#define IGU_CMD_ATTN_BIT_UPD_UPPER			0x05a0
75788c2ecf20Sopenharmony_ci#define IGU_CMD_ATTN_BIT_SET_UPPER			0x05a1
75798c2ecf20Sopenharmony_ci#define IGU_CMD_ATTN_BIT_CLR_UPPER			0x05a2
75808c2ecf20Sopenharmony_ci
75818c2ecf20Sopenharmony_ci#define IGU_REG_SISR_MDPC_WMASK_UPPER		0x05a3
75828c2ecf20Sopenharmony_ci#define IGU_REG_SISR_MDPC_WMASK_LSB_UPPER	0x05a4
75838c2ecf20Sopenharmony_ci#define IGU_REG_SISR_MDPC_WMASK_MSB_UPPER	0x05a5
75848c2ecf20Sopenharmony_ci#define IGU_REG_SISR_MDPC_WOMASK_UPPER		0x05a6
75858c2ecf20Sopenharmony_ci
75868c2ecf20Sopenharmony_ci#define IGU_REG_RESERVED_UPPER				0x05ff
75878c2ecf20Sopenharmony_ci/* Fields of IGU PF CONFIGURATION REGISTER */
75888c2ecf20Sopenharmony_ci#define IGU_PF_CONF_FUNC_EN	  (0x1<<0)  /* function enable	      */
75898c2ecf20Sopenharmony_ci#define IGU_PF_CONF_MSI_MSIX_EN   (0x1<<1)  /* MSI/MSIX enable	      */
75908c2ecf20Sopenharmony_ci#define IGU_PF_CONF_INT_LINE_EN   (0x1<<2)  /* INT enable	      */
75918c2ecf20Sopenharmony_ci#define IGU_PF_CONF_ATTN_BIT_EN   (0x1<<3)  /* attention enable       */
75928c2ecf20Sopenharmony_ci#define IGU_PF_CONF_SINGLE_ISR_EN (0x1<<4)  /* single ISR mode enable */
75938c2ecf20Sopenharmony_ci#define IGU_PF_CONF_SIMD_MODE	  (0x1<<5)  /* simd all ones mode     */
75948c2ecf20Sopenharmony_ci
75958c2ecf20Sopenharmony_ci/* Fields of IGU VF CONFIGURATION REGISTER */
75968c2ecf20Sopenharmony_ci#define IGU_VF_CONF_FUNC_EN	   (0x1<<0)  /* function enable        */
75978c2ecf20Sopenharmony_ci#define IGU_VF_CONF_MSI_MSIX_EN    (0x1<<1)  /* MSI/MSIX enable        */
75988c2ecf20Sopenharmony_ci#define IGU_VF_CONF_PARENT_MASK    (0x3<<2)  /* Parent PF	       */
75998c2ecf20Sopenharmony_ci#define IGU_VF_CONF_PARENT_SHIFT   2	     /* Parent PF	       */
76008c2ecf20Sopenharmony_ci#define IGU_VF_CONF_SINGLE_ISR_EN  (0x1<<4)  /* single ISR mode enable */
76018c2ecf20Sopenharmony_ci
76028c2ecf20Sopenharmony_ci
76038c2ecf20Sopenharmony_ci#define IGU_BC_DSB_NUM_SEGS    5
76048c2ecf20Sopenharmony_ci#define IGU_BC_NDSB_NUM_SEGS   2
76058c2ecf20Sopenharmony_ci#define IGU_NORM_DSB_NUM_SEGS  2
76068c2ecf20Sopenharmony_ci#define IGU_NORM_NDSB_NUM_SEGS 1
76078c2ecf20Sopenharmony_ci#define IGU_BC_BASE_DSB_PROD   128
76088c2ecf20Sopenharmony_ci#define IGU_NORM_BASE_DSB_PROD 136
76098c2ecf20Sopenharmony_ci
76108c2ecf20Sopenharmony_ci	/* FID (if VF - [6] = 0; [5:0] = VF number; if PF - [6] = 1; \
76118c2ecf20Sopenharmony_ci	[5:2] = 0; [1:0] = PF number) */
76128c2ecf20Sopenharmony_ci#define IGU_FID_ENCODE_IS_PF	    (0x1<<6)
76138c2ecf20Sopenharmony_ci#define IGU_FID_ENCODE_IS_PF_SHIFT  6
76148c2ecf20Sopenharmony_ci#define IGU_FID_VF_NUM_MASK	    (0x3f)
76158c2ecf20Sopenharmony_ci#define IGU_FID_PF_NUM_MASK	    (0x7)
76168c2ecf20Sopenharmony_ci
76178c2ecf20Sopenharmony_ci#define IGU_REG_MAPPING_MEMORY_VALID		(1<<0)
76188c2ecf20Sopenharmony_ci#define IGU_REG_MAPPING_MEMORY_VECTOR_MASK	(0x3F<<1)
76198c2ecf20Sopenharmony_ci#define IGU_REG_MAPPING_MEMORY_VECTOR_SHIFT	1
76208c2ecf20Sopenharmony_ci#define IGU_REG_MAPPING_MEMORY_FID_MASK	(0x7F<<7)
76218c2ecf20Sopenharmony_ci#define IGU_REG_MAPPING_MEMORY_FID_SHIFT	7
76228c2ecf20Sopenharmony_ci
76238c2ecf20Sopenharmony_ci
76248c2ecf20Sopenharmony_ci#define CDU_REGION_NUMBER_XCM_AG 2
76258c2ecf20Sopenharmony_ci#define CDU_REGION_NUMBER_UCM_AG 4
76268c2ecf20Sopenharmony_ci
76278c2ecf20Sopenharmony_ci
76288c2ecf20Sopenharmony_ci/* String-to-compress [31:8] = CID (all 24 bits)
76298c2ecf20Sopenharmony_ci * String-to-compress [7:4] = Region
76308c2ecf20Sopenharmony_ci * String-to-compress [3:0] = Type
76318c2ecf20Sopenharmony_ci */
76328c2ecf20Sopenharmony_ci#define CDU_VALID_DATA(_cid, _region, _type)\
76338c2ecf20Sopenharmony_ci	(((_cid) << 8) | (((_region)&0xf)<<4) | (((_type)&0xf)))
76348c2ecf20Sopenharmony_ci#define CDU_CRC8(_cid, _region, _type)\
76358c2ecf20Sopenharmony_ci	(calc_crc8(CDU_VALID_DATA(_cid, _region, _type), 0xff))
76368c2ecf20Sopenharmony_ci#define CDU_RSRVD_VALUE_TYPE_A(_cid, _region, _type)\
76378c2ecf20Sopenharmony_ci	(0x80 | ((CDU_CRC8(_cid, _region, _type)) & 0x7f))
76388c2ecf20Sopenharmony_ci#define CDU_RSRVD_VALUE_TYPE_B(_crc, _type)\
76398c2ecf20Sopenharmony_ci	(0x80 | ((_type)&0xf << 3) | ((CDU_CRC8(_cid, _region, _type)) & 0x7))
76408c2ecf20Sopenharmony_ci#define CDU_RSRVD_INVALIDATE_CONTEXT_VALUE(_val) ((_val) & ~0x80)
76418c2ecf20Sopenharmony_ci
76428c2ecf20Sopenharmony_ci/* IdleChk registers */
76438c2ecf20Sopenharmony_ci#define PXP_REG_HST_VF_DISABLED_ERROR_VALID			 0x1030bc
76448c2ecf20Sopenharmony_ci#define PXP_REG_HST_VF_DISABLED_ERROR_DATA			 0x1030b8
76458c2ecf20Sopenharmony_ci#define PXP_REG_HST_PER_VIOLATION_VALID				 0x1030e0
76468c2ecf20Sopenharmony_ci#define PXP_REG_HST_INCORRECT_ACCESS_VALID			 0x1030cc
76478c2ecf20Sopenharmony_ci#define PXP2_REG_RD_CPL_ERR_DETAILS				 0x120778
76488c2ecf20Sopenharmony_ci#define PXP2_REG_RD_CPL_ERR_DETAILS2				 0x12077c
76498c2ecf20Sopenharmony_ci#define PXP2_REG_RQ_GARB					 0x120748
76508c2ecf20Sopenharmony_ci#define PBF_REG_DISABLE_NEW_TASK_PROC_Q0			 0x15c1bc
76518c2ecf20Sopenharmony_ci#define PBF_REG_DISABLE_NEW_TASK_PROC_Q1			 0x15c1c0
76528c2ecf20Sopenharmony_ci#define PBF_REG_DISABLE_NEW_TASK_PROC_Q2			 0x15c1c4
76538c2ecf20Sopenharmony_ci#define PBF_REG_DISABLE_NEW_TASK_PROC_Q3			 0x15c1c8
76548c2ecf20Sopenharmony_ci#define PBF_REG_DISABLE_NEW_TASK_PROC_Q4			 0x15c1cc
76558c2ecf20Sopenharmony_ci#define PBF_REG_DISABLE_NEW_TASK_PROC_Q5			 0x15c1d0
76568c2ecf20Sopenharmony_ci#define PBF_REG_CREDIT_Q2					 0x140344
76578c2ecf20Sopenharmony_ci#define PBF_REG_CREDIT_Q3					 0x140348
76588c2ecf20Sopenharmony_ci#define PBF_REG_CREDIT_Q4					 0x14034c
76598c2ecf20Sopenharmony_ci#define PBF_REG_CREDIT_Q5					 0x140350
76608c2ecf20Sopenharmony_ci#define PBF_REG_INIT_CRD_Q2					 0x15c238
76618c2ecf20Sopenharmony_ci#define PBF_REG_INIT_CRD_Q3					 0x15c23c
76628c2ecf20Sopenharmony_ci#define PBF_REG_INIT_CRD_Q4					 0x15c240
76638c2ecf20Sopenharmony_ci#define PBF_REG_INIT_CRD_Q5					 0x15c244
76648c2ecf20Sopenharmony_ci#define PBF_REG_TASK_CNT_Q0					 0x140374
76658c2ecf20Sopenharmony_ci#define PBF_REG_TASK_CNT_Q1					 0x140378
76668c2ecf20Sopenharmony_ci#define PBF_REG_TASK_CNT_Q2					 0x14037c
76678c2ecf20Sopenharmony_ci#define PBF_REG_TASK_CNT_Q3					 0x140380
76688c2ecf20Sopenharmony_ci#define PBF_REG_TASK_CNT_Q4					 0x140384
76698c2ecf20Sopenharmony_ci#define PBF_REG_TASK_CNT_Q5					 0x140388
76708c2ecf20Sopenharmony_ci#define PBF_REG_TASK_CNT_LB_Q					 0x140370
76718c2ecf20Sopenharmony_ci#define QM_REG_BYTECRD0						 0x16e6fc
76728c2ecf20Sopenharmony_ci#define QM_REG_BYTECRD1						 0x16e700
76738c2ecf20Sopenharmony_ci#define QM_REG_BYTECRD2						 0x16e704
76748c2ecf20Sopenharmony_ci#define QM_REG_BYTECRD3						 0x16e7ac
76758c2ecf20Sopenharmony_ci#define QM_REG_BYTECRD4						 0x16e7b0
76768c2ecf20Sopenharmony_ci#define QM_REG_BYTECRD5						 0x16e7b4
76778c2ecf20Sopenharmony_ci#define QM_REG_BYTECRD6						 0x16e7b8
76788c2ecf20Sopenharmony_ci#define QM_REG_BYTECRDCMDQ_0					 0x16e6e8
76798c2ecf20Sopenharmony_ci#define QM_REG_BYTECRDERRREG					 0x16e708
76808c2ecf20Sopenharmony_ci#define MISC_REG_GRC_TIMEOUT_ATTN_FULL_FID			 0xa714
76818c2ecf20Sopenharmony_ci#define QM_REG_VOQCREDIT_2					 0x1682d8
76828c2ecf20Sopenharmony_ci#define QM_REG_VOQCREDIT_3					 0x1682dc
76838c2ecf20Sopenharmony_ci#define QM_REG_VOQCREDIT_5					 0x1682e4
76848c2ecf20Sopenharmony_ci#define QM_REG_VOQCREDIT_6					 0x1682e8
76858c2ecf20Sopenharmony_ci#define QM_REG_VOQINITCREDIT_3					 0x16806c
76868c2ecf20Sopenharmony_ci#define QM_REG_VOQINITCREDIT_6					 0x168078
76878c2ecf20Sopenharmony_ci#define QM_REG_FWVOQ0TOHWVOQ					 0x16e7bc
76888c2ecf20Sopenharmony_ci#define QM_REG_FWVOQ1TOHWVOQ					 0x16e7c0
76898c2ecf20Sopenharmony_ci#define QM_REG_FWVOQ2TOHWVOQ					 0x16e7c4
76908c2ecf20Sopenharmony_ci#define QM_REG_FWVOQ3TOHWVOQ					 0x16e7c8
76918c2ecf20Sopenharmony_ci#define QM_REG_FWVOQ4TOHWVOQ					 0x16e7cc
76928c2ecf20Sopenharmony_ci#define QM_REG_FWVOQ5TOHWVOQ					 0x16e7d0
76938c2ecf20Sopenharmony_ci#define QM_REG_FWVOQ6TOHWVOQ					 0x16e7d4
76948c2ecf20Sopenharmony_ci#define QM_REG_FWVOQ7TOHWVOQ					 0x16e7d8
76958c2ecf20Sopenharmony_ci#define NIG_REG_INGRESS_EOP_PORT0_EMPTY				 0x104ec
76968c2ecf20Sopenharmony_ci#define NIG_REG_INGRESS_EOP_PORT1_EMPTY				 0x104f8
76978c2ecf20Sopenharmony_ci#define NIG_REG_INGRESS_RMP0_DSCR_EMPTY				 0x10530
76988c2ecf20Sopenharmony_ci#define NIG_REG_INGRESS_RMP1_DSCR_EMPTY				 0x10538
76998c2ecf20Sopenharmony_ci#define NIG_REG_INGRESS_LB_PBF_DELAY_EMPTY			 0x10508
77008c2ecf20Sopenharmony_ci#define NIG_REG_EGRESS_MNG0_FIFO_EMPTY				 0x10460
77018c2ecf20Sopenharmony_ci#define NIG_REG_EGRESS_MNG1_FIFO_EMPTY				 0x10474
77028c2ecf20Sopenharmony_ci#define NIG_REG_EGRESS_DEBUG_FIFO_EMPTY				 0x10418
77038c2ecf20Sopenharmony_ci#define NIG_REG_EGRESS_DELAY0_EMPTY				 0x10420
77048c2ecf20Sopenharmony_ci#define NIG_REG_EGRESS_DELAY1_EMPTY				 0x10428
77058c2ecf20Sopenharmony_ci#define NIG_REG_LLH0_FIFO_EMPTY					 0x10548
77068c2ecf20Sopenharmony_ci#define NIG_REG_LLH1_FIFO_EMPTY					 0x10558
77078c2ecf20Sopenharmony_ci#define NIG_REG_P0_TX_MNG_HOST_FIFO_EMPTY			 0x182a8
77088c2ecf20Sopenharmony_ci#define NIG_REG_P0_TLLH_FIFO_EMPTY				 0x18308
77098c2ecf20Sopenharmony_ci#define NIG_REG_P0_HBUF_DSCR_EMPTY				 0x18318
77108c2ecf20Sopenharmony_ci#define NIG_REG_P1_HBUF_DSCR_EMPTY				 0x18348
77118c2ecf20Sopenharmony_ci#define NIG_REG_P0_RX_MACFIFO_EMPTY				 0x18570
77128c2ecf20Sopenharmony_ci#define NIG_REG_P0_TX_MACFIFO_EMPTY				 0x18578
77138c2ecf20Sopenharmony_ci#define NIG_REG_EGRESS_DELAY2_EMPTY				 0x1862c
77148c2ecf20Sopenharmony_ci#define NIG_REG_EGRESS_DELAY3_EMPTY				 0x18630
77158c2ecf20Sopenharmony_ci#define NIG_REG_EGRESS_DELAY4_EMPTY				 0x18634
77168c2ecf20Sopenharmony_ci#define NIG_REG_EGRESS_DELAY5_EMPTY				 0x18638
77178c2ecf20Sopenharmony_ci
77188c2ecf20Sopenharmony_ci/******************************************************************************
77198c2ecf20Sopenharmony_ci * Description:
77208c2ecf20Sopenharmony_ci *	   Calculates crc 8 on a word value: polynomial 0-1-2-8
77218c2ecf20Sopenharmony_ci *	   Code was translated from Verilog.
77228c2ecf20Sopenharmony_ci * Return:
77238c2ecf20Sopenharmony_ci *****************************************************************************/
77248c2ecf20Sopenharmony_cistatic inline u8 calc_crc8(u32 data, u8 crc)
77258c2ecf20Sopenharmony_ci{
77268c2ecf20Sopenharmony_ci	u8 D[32];
77278c2ecf20Sopenharmony_ci	u8 NewCRC[8];
77288c2ecf20Sopenharmony_ci	u8 C[8];
77298c2ecf20Sopenharmony_ci	u8 crc_res;
77308c2ecf20Sopenharmony_ci	u8 i;
77318c2ecf20Sopenharmony_ci
77328c2ecf20Sopenharmony_ci	/* split the data into 31 bits */
77338c2ecf20Sopenharmony_ci	for (i = 0; i < 32; i++) {
77348c2ecf20Sopenharmony_ci		D[i] = (u8)(data & 1);
77358c2ecf20Sopenharmony_ci		data = data >> 1;
77368c2ecf20Sopenharmony_ci	}
77378c2ecf20Sopenharmony_ci
77388c2ecf20Sopenharmony_ci	/* split the crc into 8 bits */
77398c2ecf20Sopenharmony_ci	for (i = 0; i < 8; i++) {
77408c2ecf20Sopenharmony_ci		C[i] = crc & 1;
77418c2ecf20Sopenharmony_ci		crc = crc >> 1;
77428c2ecf20Sopenharmony_ci	}
77438c2ecf20Sopenharmony_ci
77448c2ecf20Sopenharmony_ci	NewCRC[0] = D[31] ^ D[30] ^ D[28] ^ D[23] ^ D[21] ^ D[19] ^ D[18] ^
77458c2ecf20Sopenharmony_ci		    D[16] ^ D[14] ^ D[12] ^ D[8] ^ D[7] ^ D[6] ^ D[0] ^ C[4] ^
77468c2ecf20Sopenharmony_ci		    C[6] ^ C[7];
77478c2ecf20Sopenharmony_ci	NewCRC[1] = D[30] ^ D[29] ^ D[28] ^ D[24] ^ D[23] ^ D[22] ^ D[21] ^
77488c2ecf20Sopenharmony_ci		    D[20] ^ D[18] ^ D[17] ^ D[16] ^ D[15] ^ D[14] ^ D[13] ^
77498c2ecf20Sopenharmony_ci		    D[12] ^ D[9] ^ D[6] ^ D[1] ^ D[0] ^ C[0] ^ C[4] ^ C[5] ^
77508c2ecf20Sopenharmony_ci		    C[6];
77518c2ecf20Sopenharmony_ci	NewCRC[2] = D[29] ^ D[28] ^ D[25] ^ D[24] ^ D[22] ^ D[17] ^ D[15] ^
77528c2ecf20Sopenharmony_ci		    D[13] ^ D[12] ^ D[10] ^ D[8] ^ D[6] ^ D[2] ^ D[1] ^ D[0] ^
77538c2ecf20Sopenharmony_ci		    C[0] ^ C[1] ^ C[4] ^ C[5];
77548c2ecf20Sopenharmony_ci	NewCRC[3] = D[30] ^ D[29] ^ D[26] ^ D[25] ^ D[23] ^ D[18] ^ D[16] ^
77558c2ecf20Sopenharmony_ci		    D[14] ^ D[13] ^ D[11] ^ D[9] ^ D[7] ^ D[3] ^ D[2] ^ D[1] ^
77568c2ecf20Sopenharmony_ci		    C[1] ^ C[2] ^ C[5] ^ C[6];
77578c2ecf20Sopenharmony_ci	NewCRC[4] = D[31] ^ D[30] ^ D[27] ^ D[26] ^ D[24] ^ D[19] ^ D[17] ^
77588c2ecf20Sopenharmony_ci		    D[15] ^ D[14] ^ D[12] ^ D[10] ^ D[8] ^ D[4] ^ D[3] ^ D[2] ^
77598c2ecf20Sopenharmony_ci		    C[0] ^ C[2] ^ C[3] ^ C[6] ^ C[7];
77608c2ecf20Sopenharmony_ci	NewCRC[5] = D[31] ^ D[28] ^ D[27] ^ D[25] ^ D[20] ^ D[18] ^ D[16] ^
77618c2ecf20Sopenharmony_ci		    D[15] ^ D[13] ^ D[11] ^ D[9] ^ D[5] ^ D[4] ^ D[3] ^ C[1] ^
77628c2ecf20Sopenharmony_ci		    C[3] ^ C[4] ^ C[7];
77638c2ecf20Sopenharmony_ci	NewCRC[6] = D[29] ^ D[28] ^ D[26] ^ D[21] ^ D[19] ^ D[17] ^ D[16] ^
77648c2ecf20Sopenharmony_ci		    D[14] ^ D[12] ^ D[10] ^ D[6] ^ D[5] ^ D[4] ^ C[2] ^ C[4] ^
77658c2ecf20Sopenharmony_ci		    C[5];
77668c2ecf20Sopenharmony_ci	NewCRC[7] = D[30] ^ D[29] ^ D[27] ^ D[22] ^ D[20] ^ D[18] ^ D[17] ^
77678c2ecf20Sopenharmony_ci		    D[15] ^ D[13] ^ D[11] ^ D[7] ^ D[6] ^ D[5] ^ C[3] ^ C[5] ^
77688c2ecf20Sopenharmony_ci		    C[6];
77698c2ecf20Sopenharmony_ci
77708c2ecf20Sopenharmony_ci	crc_res = 0;
77718c2ecf20Sopenharmony_ci	for (i = 0; i < 8; i++)
77728c2ecf20Sopenharmony_ci		crc_res |= (NewCRC[i] << i);
77738c2ecf20Sopenharmony_ci
77748c2ecf20Sopenharmony_ci	return crc_res;
77758c2ecf20Sopenharmony_ci}
77768c2ecf20Sopenharmony_ci#endif /* BNX2X_REG_H */
7777