18c2ecf20Sopenharmony_ci/*****************************************************************************
28c2ecf20Sopenharmony_ci *                                                                           *
38c2ecf20Sopenharmony_ci * File: suni1x10gexp_regs.h                                                 *
48c2ecf20Sopenharmony_ci * $Revision: 1.9 $                                                          *
58c2ecf20Sopenharmony_ci * $Date: 2005/06/22 00:17:04 $                                              *
68c2ecf20Sopenharmony_ci * Description:                                                              *
78c2ecf20Sopenharmony_ci *  PMC/SIERRA (pm3393) MAC-PHY functionality.                               *
88c2ecf20Sopenharmony_ci *  part of the Chelsio 10Gb Ethernet Driver.                                *
98c2ecf20Sopenharmony_ci *                                                                           *
108c2ecf20Sopenharmony_ci * This program is free software; you can redistribute it and/or modify      *
118c2ecf20Sopenharmony_ci * it under the terms of the GNU General Public License, version 2, as       *
128c2ecf20Sopenharmony_ci * published by the Free Software Foundation.                                *
138c2ecf20Sopenharmony_ci *                                                                           *
148c2ecf20Sopenharmony_ci * You should have received a copy of the GNU General Public License along   *
158c2ecf20Sopenharmony_ci * with this program; if not, see <http://www.gnu.org/licenses/>.            *
168c2ecf20Sopenharmony_ci *                                                                           *
178c2ecf20Sopenharmony_ci * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED    *
188c2ecf20Sopenharmony_ci * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF      *
198c2ecf20Sopenharmony_ci * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.                     *
208c2ecf20Sopenharmony_ci *                                                                           *
218c2ecf20Sopenharmony_ci * http://www.chelsio.com                                                    *
228c2ecf20Sopenharmony_ci *                                                                           *
238c2ecf20Sopenharmony_ci * Maintainers: maintainers@chelsio.com                                      *
248c2ecf20Sopenharmony_ci *                                                                           *
258c2ecf20Sopenharmony_ci * Authors: PMC/SIERRA                                                       *
268c2ecf20Sopenharmony_ci *                                                                           *
278c2ecf20Sopenharmony_ci * History:                                                                  *
288c2ecf20Sopenharmony_ci *                                                                           *
298c2ecf20Sopenharmony_ci ****************************************************************************/
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ci#ifndef _CXGB_SUNI1x10GEXP_REGS_H_
328c2ecf20Sopenharmony_ci#define _CXGB_SUNI1x10GEXP_REGS_H_
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci/*
358c2ecf20Sopenharmony_ci** Space allocated for each Exact Match Filter
368c2ecf20Sopenharmony_ci**     There are 8 filter configurations
378c2ecf20Sopenharmony_ci*/
388c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_SIZEOF_MAC_FILTER 0x0003
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_ci#define mSUNI1x10GEXP_MAC_FILTER_OFFSET(filterId)       ( (filterId) * SUNI1x10GEXP_REG_SIZEOF_MAC_FILTER )
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ci/*
438c2ecf20Sopenharmony_ci** Space allocated for VLAN-Id Filter
448c2ecf20Sopenharmony_ci**      There are 8 filter configurations
458c2ecf20Sopenharmony_ci*/
468c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_SIZEOF_MAC_VID_FILTER 0x0001
478c2ecf20Sopenharmony_ci
488c2ecf20Sopenharmony_ci#define mSUNI1x10GEXP_MAC_VID_FILTER_OFFSET(filterId)   ( (filterId) * SUNI1x10GEXP_REG_SIZEOF_MAC_VID_FILTER )
498c2ecf20Sopenharmony_ci
508c2ecf20Sopenharmony_ci/*
518c2ecf20Sopenharmony_ci** Space allocated for each MSTAT Counter
528c2ecf20Sopenharmony_ci*/
538c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_SIZEOF_MSTAT_COUNT 0x0004
548c2ecf20Sopenharmony_ci
558c2ecf20Sopenharmony_ci#define mSUNI1x10GEXP_MSTAT_COUNT_OFFSET(countId)       ( (countId) * SUNI1x10GEXP_REG_SIZEOF_MSTAT_COUNT )
568c2ecf20Sopenharmony_ci
578c2ecf20Sopenharmony_ci
588c2ecf20Sopenharmony_ci/******************************************************************************/
598c2ecf20Sopenharmony_ci/** S/UNI-1x10GE-XP REGISTER ADDRESS MAP                                     **/
608c2ecf20Sopenharmony_ci/******************************************************************************/
618c2ecf20Sopenharmony_ci/* Refer to the Register Bit Masks bellow for the naming of each register and */
628c2ecf20Sopenharmony_ci/* to the S/UNI-1x10GE-XP Data Sheet for the signification of each bit        */
638c2ecf20Sopenharmony_ci/******************************************************************************/
648c2ecf20Sopenharmony_ci
658c2ecf20Sopenharmony_ci
668c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_IDENTIFICATION                                  0x0000
678c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_PRODUCT_REVISION                                0x0001
688c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_CONFIG_AND_RESET_CONTROL                        0x0002
698c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_LOOPBACK_MISC_CTRL                              0x0003
708c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_DEVICE_STATUS                                   0x0004
718c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_GLOBAL_PERFORMANCE_MONITOR_UPDATE               0x0005
728c2ecf20Sopenharmony_ci
738c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MDIO_COMMAND                                    0x0006
748c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MDIO_INTERRUPT_ENABLE                           0x0007
758c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MDIO_INTERRUPT_STATUS                           0x0008
768c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MMD_PHY_ADDRESS                                 0x0009
778c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MMD_CONTROL_ADDRESS_DATA                        0x000A
788c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MDIO_READ_STATUS_DATA                           0x000B
798c2ecf20Sopenharmony_ci
808c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_OAM_INTF_CTRL                                   0x000C
818c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MASTER_INTERRUPT_STATUS                         0x000D
828c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_GLOBAL_INTERRUPT_ENABLE                         0x000E
838c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_FREE                                            0x000F
848c2ecf20Sopenharmony_ci
858c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_XTEF_MISC_CTRL                                  0x0010
868c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_XRF_MISC_CTRL                                   0x0011
878c2ecf20Sopenharmony_ci
888c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_SERDES_3125_CONFIG_1                            0x0100
898c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_SERDES_3125_CONFIG_2                            0x0101
908c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_SERDES_3125_INTERRUPT_ENABLE                    0x0102
918c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_SERDES_3125_INTERRUPT_VISIBLE                   0x0103
928c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_SERDES_3125_INTERRUPT_STATUS                    0x0104
938c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_SERDES_3125_TEST_CONFIG                         0x0107
948c2ecf20Sopenharmony_ci
958c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_CONFIG_1                                   0x2040
968c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_CONFIG_2                                   0x2041
978c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_CONFIG_3                                   0x2042
988c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_INTERRUPT                                  0x2043
998c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_MAX_FRAME_LENGTH                           0x2045
1008c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_SA_15_0                                    0x2046
1018c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_SA_31_16                                   0x2047
1028c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_SA_47_32                                   0x2048
1038c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_RECEIVE_FIFO_THRESHOLD                     0x2049
1048c2ecf20Sopenharmony_ci#define mSUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_LOW(filterId) (0x204A + mSUNI1x10GEXP_MAC_FILTER_OFFSET(filterId))
1058c2ecf20Sopenharmony_ci#define mSUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_MID(filterId) (0x204B + mSUNI1x10GEXP_MAC_FILTER_OFFSET(filterId))
1068c2ecf20Sopenharmony_ci#define mSUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_HIGH(filterId)(0x204C + mSUNI1x10GEXP_MAC_FILTER_OFFSET(filterId))
1078c2ecf20Sopenharmony_ci#define mSUNI1x10GEXP_REG_RXXG_EXACT_MATCH_VID(filterId)      (0x2062 + mSUNI1x10GEXP_MAC_VID_FILTER_OFFSET(filterId))
1088c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_0_LOW                     0x204A
1098c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_0_MID                     0x204B
1108c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_0_HIGH                    0x204C
1118c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_1_LOW                     0x204D
1128c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_1_MID                     0x204E
1138c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_1_HIGH                    0x204F
1148c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_2_LOW                     0x2050
1158c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_2_MID                     0x2051
1168c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_2_HIGH                    0x2052
1178c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_3_LOW                     0x2053
1188c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_3_MID                     0x2054
1198c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_3_HIGH                    0x2055
1208c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_4_LOW                     0x2056
1218c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_4_MID                     0x2057
1228c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_4_HIGH                    0x2058
1238c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_5_LOW                     0x2059
1248c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_5_MID                     0x205A
1258c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_5_HIGH                    0x205B
1268c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_6_LOW                     0x205C
1278c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_6_MID                     0x205D
1288c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_6_HIGH                    0x205E
1298c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_7_LOW                     0x205F
1308c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_7_MID                     0x2060
1318c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_7_HIGH                    0x2061
1328c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_VID_0                          0x2062
1338c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_VID_1                          0x2063
1348c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_VID_2                          0x2064
1358c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_VID_3                          0x2065
1368c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_VID_4                          0x2066
1378c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_VID_5                          0x2067
1388c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_VID_6                          0x2068
1398c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_VID_7                          0x2069
1408c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_LOW                         0x206A
1418c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDLOW                      0x206B
1428c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDHIGH                     0x206C
1438c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_HIGH                        0x206D
1448c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_ADDRESS_FILTER_CONTROL_0                   0x206E
1458c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_ADDRESS_FILTER_CONTROL_1                   0x206F
1468c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXXG_ADDRESS_FILTER_CONTROL_2                   0x2070
1478c2ecf20Sopenharmony_ci
1488c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_XRF_PATTERN_GEN_CTRL                            0x2081
1498c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_XRF_8BTB_ERR_COUNT_LANE_0                       0x2084
1508c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_XRF_8BTB_ERR_COUNT_LANE_1                       0x2085
1518c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_XRF_8BTB_ERR_COUNT_LANE_2                       0x2086
1528c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_XRF_8BTB_ERR_COUNT_LANE_3                       0x2087
1538c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_XRF_INTERRUPT_ENABLE                            0x2088
1548c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_XRF_INTERRUPT_STATUS                            0x2089
1558c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_XRF_ERR_STATUS                                  0x208A
1568c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_XRF_DIAG_INTERRUPT_ENABLE                       0x208B
1578c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_XRF_DIAG_INTERRUPT_STATUS                       0x208C
1588c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_XRF_CODE_ERR_THRES                              0x2092
1598c2ecf20Sopenharmony_ci
1608c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXOAM_CONFIG                                    0x20C0
1618c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXOAM_FILTER_1_CONFIG                           0x20C1
1628c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXOAM_FILTER_2_CONFIG                           0x20C2
1638c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXOAM_CONFIG_2                                  0x20C3
1648c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXOAM_HEC_CONFIG                                0x20C4
1658c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXOAM_HEC_ERR_THRES                             0x20C5
1668c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXOAM_INTERRUPT_ENABLE                          0x20C7
1678c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXOAM_INTERRUPT_STATUS                          0x20C8
1688c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXOAM_STATUS                                    0x20C9
1698c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXOAM_HEC_ERR_COUNT                             0x20CA
1708c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXOAM_FIFO_OVERFLOW_COUNT                       0x20CB
1718c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXOAM_FILTER_MISMATCH_COUNT_LSB                 0x20CC
1728c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXOAM_FILTER_MISMATCH_COUNT_MSB                 0x20CD
1738c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXOAM_FILTER_1_MISMATCH_COUNT_LSB               0x20CE
1748c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXOAM_FILTER_1_MISMATCH_COUNT_MSB               0x20CF
1758c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXOAM_FILTER_2_MISMATCH_COUNT_LSB               0x20D0
1768c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXOAM_FILTER_2_MISMATCH_COUNT_MSB               0x20D1
1778c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXOAM_OAM_EXTRACT_COUNT_LSB                     0x20D2
1788c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXOAM_OAM_EXTRACT_COUNT_MSB                     0x20D3
1798c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXOAM_MINI_PACKET_COUNT_LSB                     0x20D4
1808c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXOAM_MINI_PACKET_COUNT_MSB                     0x20D5
1818c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXOAM_FILTER_MISMATCH_THRES_LSB                 0x20D6
1828c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_RXOAM_FILTER_MISMATCH_THRES_MSB                 0x20D7
1838c2ecf20Sopenharmony_ci
1848c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_CONTROL                                   0x2100
1858c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_ROLLOVER_0                        0x2101
1868c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_ROLLOVER_1                        0x2102
1878c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_ROLLOVER_2                        0x2103
1888c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_ROLLOVER_3                        0x2104
1898c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_INTERRUPT_MASK_0                          0x2105
1908c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_INTERRUPT_MASK_1                          0x2106
1918c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_INTERRUPT_MASK_2                          0x2107
1928c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_INTERRUPT_MASK_3                          0x2108
1938c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_WRITE_ADDRESS                     0x2109
1948c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_WRITE_DATA_LOW                    0x210A
1958c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_WRITE_DATA_MIDDLE                 0x210B
1968c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_WRITE_DATA_HIGH                   0x210C
1978c2ecf20Sopenharmony_ci#define mSUNI1x10GEXP_REG_MSTAT_COUNTER_LOW(countId)   (0x2110 + mSUNI1x10GEXP_MSTAT_COUNT_OFFSET(countId))
1988c2ecf20Sopenharmony_ci#define mSUNI1x10GEXP_REG_MSTAT_COUNTER_MID(countId)   (0x2111 + mSUNI1x10GEXP_MSTAT_COUNT_OFFSET(countId))
1998c2ecf20Sopenharmony_ci#define mSUNI1x10GEXP_REG_MSTAT_COUNTER_HIGH(countId)  (0x2112 + mSUNI1x10GEXP_MSTAT_COUNT_OFFSET(countId))
2008c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_0_LOW                             0x2110
2018c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_0_MID                             0x2111
2028c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_0_HIGH                            0x2112
2038c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_0_RESVD                           0x2113
2048c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_1_LOW                             0x2114
2058c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_1_MID                             0x2115
2068c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_1_HIGH                            0x2116
2078c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_1_RESVD                           0x2117
2088c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_2_LOW                             0x2118
2098c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_2_MID                             0x2119
2108c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_2_HIGH                            0x211A
2118c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_2_RESVD                           0x211B
2128c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_3_LOW                             0x211C
2138c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_3_MID                             0x211D
2148c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_3_HIGH                            0x211E
2158c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_3_RESVD                           0x211F
2168c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_4_LOW                             0x2120
2178c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_4_MID                             0x2121
2188c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_4_HIGH                            0x2122
2198c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_4_RESVD                           0x2123
2208c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_5_LOW                             0x2124
2218c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_5_MID                             0x2125
2228c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_5_HIGH                            0x2126
2238c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_5_RESVD                           0x2127
2248c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_6_LOW                             0x2128
2258c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_6_MID                             0x2129
2268c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_6_HIGH                            0x212A
2278c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_6_RESVD                           0x212B
2288c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_7_LOW                             0x212C
2298c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_7_MID                             0x212D
2308c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_7_HIGH                            0x212E
2318c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_7_RESVD                           0x212F
2328c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_8_LOW                             0x2130
2338c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_8_MID                             0x2131
2348c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_8_HIGH                            0x2132
2358c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_8_RESVD                           0x2133
2368c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_9_LOW                             0x2134
2378c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_9_MID                             0x2135
2388c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_9_HIGH                            0x2136
2398c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_9_RESVD                           0x2137
2408c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_10_LOW                            0x2138
2418c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_10_MID                            0x2139
2428c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_10_HIGH                           0x213A
2438c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_10_RESVD                          0x213B
2448c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_11_LOW                            0x213C
2458c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_11_MID                            0x213D
2468c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_11_HIGH                           0x213E
2478c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_11_RESVD                          0x213F
2488c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_12_LOW                            0x2140
2498c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_12_MID                            0x2141
2508c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_12_HIGH                           0x2142
2518c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_12_RESVD                          0x2143
2528c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_13_LOW                            0x2144
2538c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_13_MID                            0x2145
2548c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_13_HIGH                           0x2146
2558c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_13_RESVD                          0x2147
2568c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_14_LOW                            0x2148
2578c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_14_MID                            0x2149
2588c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_14_HIGH                           0x214A
2598c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_14_RESVD                          0x214B
2608c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_15_LOW                            0x214C
2618c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_15_MID                            0x214D
2628c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_15_HIGH                           0x214E
2638c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_15_RESVD                          0x214F
2648c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_16_LOW                            0x2150
2658c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_16_MID                            0x2151
2668c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_16_HIGH                           0x2152
2678c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_16_RESVD                          0x2153
2688c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_17_LOW                            0x2154
2698c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_17_MID                            0x2155
2708c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_17_HIGH                           0x2156
2718c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_17_RESVD                          0x2157
2728c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_18_LOW                            0x2158
2738c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_18_MID                            0x2159
2748c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_18_HIGH                           0x215A
2758c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_18_RESVD                          0x215B
2768c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_19_LOW                            0x215C
2778c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_19_MID                            0x215D
2788c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_19_HIGH                           0x215E
2798c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_19_RESVD                          0x215F
2808c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_20_LOW                            0x2160
2818c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_20_MID                            0x2161
2828c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_20_HIGH                           0x2162
2838c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_20_RESVD                          0x2163
2848c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_21_LOW                            0x2164
2858c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_21_MID                            0x2165
2868c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_21_HIGH                           0x2166
2878c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_21_RESVD                          0x2167
2888c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_22_LOW                            0x2168
2898c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_22_MID                            0x2169
2908c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_22_HIGH                           0x216A
2918c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_22_RESVD                          0x216B
2928c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_23_LOW                            0x216C
2938c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_23_MID                            0x216D
2948c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_23_HIGH                           0x216E
2958c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_23_RESVD                          0x216F
2968c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_24_LOW                            0x2170
2978c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_24_MID                            0x2171
2988c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_24_HIGH                           0x2172
2998c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_24_RESVD                          0x2173
3008c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_25_LOW                            0x2174
3018c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_25_MID                            0x2175
3028c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_25_HIGH                           0x2176
3038c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_25_RESVD                          0x2177
3048c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_26_LOW                            0x2178
3058c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_26_MID                            0x2179
3068c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_26_HIGH                           0x217a
3078c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_26_RESVD                          0x217b
3088c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_27_LOW                            0x217c
3098c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_27_MID                            0x217d
3108c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_27_HIGH                           0x217e
3118c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_27_RESVD                          0x217f
3128c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_28_LOW                            0x2180
3138c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_28_MID                            0x2181
3148c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_28_HIGH                           0x2182
3158c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_28_RESVD                          0x2183
3168c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_29_LOW                            0x2184
3178c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_29_MID                            0x2185
3188c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_29_HIGH                           0x2186
3198c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_29_RESVD                          0x2187
3208c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_30_LOW                            0x2188
3218c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_30_MID                            0x2189
3228c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_30_HIGH                           0x218A
3238c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_30_RESVD                          0x218B
3248c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_31_LOW                            0x218C
3258c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_31_MID                            0x218D
3268c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_31_HIGH                           0x218E
3278c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_31_RESVD                          0x218F
3288c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_32_LOW                            0x2190
3298c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_32_MID                            0x2191
3308c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_32_HIGH                           0x2192
3318c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_32_RESVD                          0x2193
3328c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_33_LOW                            0x2194
3338c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_33_MID                            0x2195
3348c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_33_HIGH                           0x2196
3358c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_33_RESVD                          0x2197
3368c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_34_LOW                            0x2198
3378c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_34_MID                            0x2199
3388c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_34_HIGH                           0x219A
3398c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_34_RESVD                          0x219B
3408c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_35_LOW                            0x219C
3418c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_35_MID                            0x219D
3428c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_35_HIGH                           0x219E
3438c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_35_RESVD                          0x219F
3448c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_36_LOW                            0x21A0
3458c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_36_MID                            0x21A1
3468c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_36_HIGH                           0x21A2
3478c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_36_RESVD                          0x21A3
3488c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_37_LOW                            0x21A4
3498c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_37_MID                            0x21A5
3508c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_37_HIGH                           0x21A6
3518c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_37_RESVD                          0x21A7
3528c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_38_LOW                            0x21A8
3538c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_38_MID                            0x21A9
3548c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_38_HIGH                           0x21AA
3558c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_38_RESVD                          0x21AB
3568c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_39_LOW                            0x21AC
3578c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_39_MID                            0x21AD
3588c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_39_HIGH                           0x21AE
3598c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_39_RESVD                          0x21AF
3608c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_40_LOW                            0x21B0
3618c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_40_MID                            0x21B1
3628c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_40_HIGH                           0x21B2
3638c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_40_RESVD                          0x21B3
3648c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_41_LOW                            0x21B4
3658c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_41_MID                            0x21B5
3668c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_41_HIGH                           0x21B6
3678c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_41_RESVD                          0x21B7
3688c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_42_LOW                            0x21B8
3698c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_42_MID                            0x21B9
3708c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_42_HIGH                           0x21BA
3718c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_42_RESVD                          0x21BB
3728c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_43_LOW                            0x21BC
3738c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_43_MID                            0x21BD
3748c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_43_HIGH                           0x21BE
3758c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_43_RESVD                          0x21BF
3768c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_44_LOW                            0x21C0
3778c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_44_MID                            0x21C1
3788c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_44_HIGH                           0x21C2
3798c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_44_RESVD                          0x21C3
3808c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_45_LOW                            0x21C4
3818c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_45_MID                            0x21C5
3828c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_45_HIGH                           0x21C6
3838c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_45_RESVD                          0x21C7
3848c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_46_LOW                            0x21C8
3858c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_46_MID                            0x21C9
3868c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_46_HIGH                           0x21CA
3878c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_46_RESVD                          0x21CB
3888c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_47_LOW                            0x21CC
3898c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_47_MID                            0x21CD
3908c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_47_HIGH                           0x21CE
3918c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_47_RESVD                          0x21CF
3928c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_48_LOW                            0x21D0
3938c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_48_MID                            0x21D1
3948c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_48_HIGH                           0x21D2
3958c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_48_RESVD                          0x21D3
3968c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_49_LOW                            0x21D4
3978c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_49_MID                            0x21D5
3988c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_49_HIGH                           0x21D6
3998c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_49_RESVD                          0x21D7
4008c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_50_LOW                            0x21D8
4018c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_50_MID                            0x21D9
4028c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_50_HIGH                           0x21DA
4038c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_50_RESVD                          0x21DB
4048c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_51_LOW                            0x21DC
4058c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_51_MID                            0x21DD
4068c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_51_HIGH                           0x21DE
4078c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_51_RESVD                          0x21DF
4088c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_52_LOW                            0x21E0
4098c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_52_MID                            0x21E1
4108c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_52_HIGH                           0x21E2
4118c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_52_RESVD                          0x21E3
4128c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_53_LOW                            0x21E4
4138c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_53_MID                            0x21E5
4148c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MSTAT_COUNTER_53_HIGH                           0x21E6
4158c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_CNTR_MAC_ETHERNET_NUM                               51
4168c2ecf20Sopenharmony_ci
4178c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_IFLX_GLOBAL_CONFIG                              0x2200
4188c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_IFLX_CHANNEL_PROVISION                          0x2201
4198c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_IFLX_FIFO_OVERFLOW_ENABLE                       0x2209
4208c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_IFLX_FIFO_OVERFLOW_INTERRUPT                    0x220A
4218c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_IFLX_INDIR_CHANNEL_ADDRESS                      0x220D
4228c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_IFLX_INDIR_LOGICAL_FIFO_LOW_LIMIT_PROVISION     0x220E
4238c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_IFLX_INDIR_LOGICAL_FIFO_HIGH_LIMIT              0x220F
4248c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_IFLX_INDIR_FULL_ALMOST_FULL_STATUS_LIMIT        0x2210
4258c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_IFLX_INDIR_EMPTY_ALMOST_EMPTY_STATUS_LIMIT      0x2211
4268c2ecf20Sopenharmony_ci
4278c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_PL4MOS_CONFIG                                   0x2240
4288c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_PL4MOS_MASK                                     0x2241
4298c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_PL4MOS_FAIRNESS_MASKING                         0x2242
4308c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_PL4MOS_MAXBURST1                                0x2243
4318c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_PL4MOS_MAXBURST2                                0x2244
4328c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_PL4MOS_TRANSFER_SIZE                            0x2245
4338c2ecf20Sopenharmony_ci
4348c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_PL4ODP_CONFIG                                   0x2280
4358c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_PL4ODP_INTERRUPT_MASK                           0x2282
4368c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_PL4ODP_INTERRUPT                                0x2283
4378c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_PL4ODP_CONFIG_MAX_T                             0x2284
4388c2ecf20Sopenharmony_ci
4398c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_PL4IO_LOCK_DETECT_STATUS                        0x2300
4408c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_PL4IO_LOCK_DETECT_CHANGE                        0x2301
4418c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_PL4IO_LOCK_DETECT_MASK                          0x2302
4428c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_PL4IO_LOCK_DETECT_LIMITS                        0x2303
4438c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_PL4IO_CALENDAR_REPETITIONS                      0x2304
4448c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_PL4IO_CONFIG                                    0x2305
4458c2ecf20Sopenharmony_ci
4468c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_TXXG_CONFIG_1                                   0x3040
4478c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_TXXG_CONFIG_2                                   0x3041
4488c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_TXXG_CONFIG_3                                   0x3042
4498c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_TXXG_INTERRUPT                                  0x3043
4508c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_TXXG_STATUS                                     0x3044
4518c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_TXXG_MAX_FRAME_SIZE                             0x3045
4528c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_TXXG_MIN_FRAME_SIZE                             0x3046
4538c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_TXXG_SA_15_0                                    0x3047
4548c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_TXXG_SA_31_16                                   0x3048
4558c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_TXXG_SA_47_32                                   0x3049
4568c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_TXXG_PAUSE_TIMER                                0x304D
4578c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_TXXG_PAUSE_TIMER_INTERVAL                       0x304E
4588c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_TXXG_FILTER_ERROR_COUNTER                       0x3051
4598c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_TXXG_PAUSE_QUANTUM_CONFIG                       0x3052
4608c2ecf20Sopenharmony_ci
4618c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_XTEF_CTRL                                       0x3080
4628c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_XTEF_INTERRUPT_STATUS                           0x3084
4638c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_XTEF_INTERRUPT_ENABLE                           0x3085
4648c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_XTEF_VISIBILITY                                 0x3086
4658c2ecf20Sopenharmony_ci
4668c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_TXOAM_OAM_CONFIG                                0x30C0
4678c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_TXOAM_MINI_RATE_CONFIG                          0x30C1
4688c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_TXOAM_MINI_GAP_FIFO_CONFIG                      0x30C2
4698c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_TXOAM_P1P2_STATIC_VALUES                        0x30C3
4708c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_TXOAM_P3P4_STATIC_VALUES                        0x30C4
4718c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_TXOAM_P5P6_STATIC_VALUES                        0x30C5
4728c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_TXOAM_INTERRUPT_ENABLE                          0x30C6
4738c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_TXOAM_INTERRUPT_STATUS                          0x30C7
4748c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_TXOAM_INSERT_COUNT_LSB                          0x30C8
4758c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_TXOAM_INSERT_COUNT_MSB                          0x30C9
4768c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_TXOAM_OAM_MINI_COUNT_LSB                        0x30CA
4778c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_TXOAM_OAM_MINI_COUNT_MSB                        0x30CB
4788c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_TXOAM_P1P2_MINI_MASK                            0x30CC
4798c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_TXOAM_P3P4_MINI_MASK                            0x30CD
4808c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_TXOAM_P5P6_MINI_MASK                            0x30CE
4818c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_TXOAM_COSET                                     0x30CF
4828c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_TXOAM_EMPTY_FIFO_INS_OP_CNT_LSB                 0x30D0
4838c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_TXOAM_EMPTY_FIFO_INS_OP_CNT_MSB                 0x30D1
4848c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_TXOAM_STATIC_VALUE_MINI_COUNT_LSB               0x30D2
4858c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_TXOAM_STATIC_VALUE_MINI_COUNT_MSB               0x30D3
4868c2ecf20Sopenharmony_ci
4878c2ecf20Sopenharmony_ci
4888c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_EFLX_GLOBAL_CONFIG                              0x3200
4898c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_EFLX_ERCU_GLOBAL_STATUS                         0x3201
4908c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_EFLX_INDIR_CHANNEL_ADDRESS                      0x3202
4918c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_EFLX_INDIR_FIFO_LOW_LIMIT                       0x3203
4928c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_EFLX_INDIR_FIFO_HIGH_LIMIT                      0x3204
4938c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_EFLX_INDIR_FULL_ALMOST_FULL_STATUS_AND_LIMIT    0x3205
4948c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_EFLX_INDIR_EMPTY_ALMOST_EMPTY_STATUS_AND_LIMIT  0x3206
4958c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_EFLX_INDIR_FIFO_CUT_THROUGH_THRESHOLD           0x3207
4968c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_EFLX_FIFO_OVERFLOW_ERROR_ENABLE                 0x320C
4978c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_EFLX_FIFO_OVERFLOW_ERROR_INDICATION             0x320D
4988c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_EFLX_CHANNEL_PROVISION                          0x3210
4998c2ecf20Sopenharmony_ci
5008c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_PL4IDU_CONFIG                                   0x3280
5018c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_PL4IDU_INTERRUPT_MASK                           0x3282
5028c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_PL4IDU_INTERRUPT                                0x3283
5038c2ecf20Sopenharmony_ci
5048c2ecf20Sopenharmony_ci
5058c2ecf20Sopenharmony_ci/*----------------------------------------*/
5068c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_REG_MAX_OFFSET                                      0x3480
5078c2ecf20Sopenharmony_ci
5088c2ecf20Sopenharmony_ci/******************************************************************************/
5098c2ecf20Sopenharmony_ci/*                 -- End register offset definitions --                      */
5108c2ecf20Sopenharmony_ci/******************************************************************************/
5118c2ecf20Sopenharmony_ci
5128c2ecf20Sopenharmony_ci/******************************************************************************/
5138c2ecf20Sopenharmony_ci/** SUNI-1x10GE-XP REGISTER BIT MASKS                                        **/
5148c2ecf20Sopenharmony_ci/******************************************************************************/
5158c2ecf20Sopenharmony_ci
5168c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_BITS_1   0x00001
5178c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_BITS_2   0x00003
5188c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_BITS_3   0x00007
5198c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_BITS_4   0x0000f
5208c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_BITS_5   0x0001f
5218c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_BITS_6   0x0003f
5228c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_BITS_7   0x0007f
5238c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_BITS_8   0x000ff
5248c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_BITS_9   0x001ff
5258c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_BITS_10  0x003ff
5268c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_BITS_11  0x007ff
5278c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_BITS_12  0x00fff
5288c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_BITS_13  0x01fff
5298c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_BITS_14  0x03fff
5308c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_BITS_15  0x07fff
5318c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_BITS_16  0x0ffff
5328c2ecf20Sopenharmony_ci
5338c2ecf20Sopenharmony_ci#define mSUNI1x10GEXP_CLR_MSBITS_1(v)  ((v) & SUNI1x10GEXP_BITMSK_BITS_15)
5348c2ecf20Sopenharmony_ci#define mSUNI1x10GEXP_CLR_MSBITS_2(v)  ((v) & SUNI1x10GEXP_BITMSK_BITS_14)
5358c2ecf20Sopenharmony_ci#define mSUNI1x10GEXP_CLR_MSBITS_3(v)  ((v) & SUNI1x10GEXP_BITMSK_BITS_13)
5368c2ecf20Sopenharmony_ci#define mSUNI1x10GEXP_CLR_MSBITS_4(v)  ((v) & SUNI1x10GEXP_BITMSK_BITS_12)
5378c2ecf20Sopenharmony_ci#define mSUNI1x10GEXP_CLR_MSBITS_5(v)  ((v) & SUNI1x10GEXP_BITMSK_BITS_11)
5388c2ecf20Sopenharmony_ci#define mSUNI1x10GEXP_CLR_MSBITS_6(v)  ((v) & SUNI1x10GEXP_BITMSK_BITS_10)
5398c2ecf20Sopenharmony_ci#define mSUNI1x10GEXP_CLR_MSBITS_7(v)  ((v) & SUNI1x10GEXP_BITMSK_BITS_9)
5408c2ecf20Sopenharmony_ci#define mSUNI1x10GEXP_CLR_MSBITS_8(v)  ((v) & SUNI1x10GEXP_BITMSK_BITS_8)
5418c2ecf20Sopenharmony_ci#define mSUNI1x10GEXP_CLR_MSBITS_9(v)  ((v) & SUNI1x10GEXP_BITMSK_BITS_7)
5428c2ecf20Sopenharmony_ci#define mSUNI1x10GEXP_CLR_MSBITS_10(v) ((v) & SUNI1x10GEXP_BITMSK_BITS_6)
5438c2ecf20Sopenharmony_ci#define mSUNI1x10GEXP_CLR_MSBITS_11(v) ((v) & SUNI1x10GEXP_BITMSK_BITS_5)
5448c2ecf20Sopenharmony_ci#define mSUNI1x10GEXP_CLR_MSBITS_12(v) ((v) & SUNI1x10GEXP_BITMSK_BITS_4)
5458c2ecf20Sopenharmony_ci#define mSUNI1x10GEXP_CLR_MSBITS_13(v) ((v) & SUNI1x10GEXP_BITMSK_BITS_3)
5468c2ecf20Sopenharmony_ci#define mSUNI1x10GEXP_CLR_MSBITS_14(v) ((v) & SUNI1x10GEXP_BITMSK_BITS_2)
5478c2ecf20Sopenharmony_ci#define mSUNI1x10GEXP_CLR_MSBITS_15(v) ((v) & SUNI1x10GEXP_BITMSK_BITS_1)
5488c2ecf20Sopenharmony_ci
5498c2ecf20Sopenharmony_ci#define mSUNI1x10GEXP_GET_BIT(val, bitMsk) (((val)&(bitMsk)) ? 1:0)
5508c2ecf20Sopenharmony_ci
5518c2ecf20Sopenharmony_ci
5528c2ecf20Sopenharmony_ci
5538c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
5548c2ecf20Sopenharmony_ci * Register 0x0001: S/UNI-1x10GE-XP Product Revision
5558c2ecf20Sopenharmony_ci *    Bit 3-0  REVISION
5568c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
5578c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_REVISION  0x000F
5588c2ecf20Sopenharmony_ci
5598c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
5608c2ecf20Sopenharmony_ci * Register 0x0002: S/UNI-1x10GE-XP Configuration and Reset Control
5618c2ecf20Sopenharmony_ci *    Bit 2  XAUI_ARESETB
5628c2ecf20Sopenharmony_ci *    Bit 1  PL4_ARESETB
5638c2ecf20Sopenharmony_ci *    Bit 0  DRESETB
5648c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
5658c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_XAUI_ARESET  0x0004
5668c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4_ARESET   0x0002
5678c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_DRESETB      0x0001
5688c2ecf20Sopenharmony_ci
5698c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
5708c2ecf20Sopenharmony_ci * Register 0x0003: S/UNI-1x10GE-XP Loop Back and Miscellaneous Control
5718c2ecf20Sopenharmony_ci *    Bit 11  PL4IO_OUTCLKSEL
5728c2ecf20Sopenharmony_ci *    Bit 9   SYSPCSLB
5738c2ecf20Sopenharmony_ci *    Bit 8   LINEPCSLB
5748c2ecf20Sopenharmony_ci *    Bit 7   MSTAT_BYPASS
5758c2ecf20Sopenharmony_ci *    Bit 6   RXXG_BYPASS
5768c2ecf20Sopenharmony_ci *    Bit 5   TXXG_BYPASS
5778c2ecf20Sopenharmony_ci *    Bit 4   SOP_PAD_EN
5788c2ecf20Sopenharmony_ci *    Bit 1   LOS_INV
5798c2ecf20Sopenharmony_ci *    Bit 0   OVERRIDE_LOS
5808c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
5818c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4IO_OUTCLKSEL  0x0800
5828c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_SYSPCSLB         0x0200
5838c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_LINEPCSLB        0x0100
5848c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_MSTAT_BYPASS     0x0080
5858c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXXG_BYPASS      0x0040
5868c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXXG_BYPASS      0x0020
5878c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_SOP_PAD_EN       0x0010
5888c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_LOS_INV          0x0002
5898c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_OVERRIDE_LOS     0x0001
5908c2ecf20Sopenharmony_ci
5918c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
5928c2ecf20Sopenharmony_ci * Register 0x0004: S/UNI-1x10GE-XP Device Status
5938c2ecf20Sopenharmony_ci *    Bit 9 TOP_SXRA_EXPIRED
5948c2ecf20Sopenharmony_ci *    Bit 8 TOP_MDIO_BUSY
5958c2ecf20Sopenharmony_ci *    Bit 7 TOP_DTRB
5968c2ecf20Sopenharmony_ci *    Bit 6 TOP_EXPIRED
5978c2ecf20Sopenharmony_ci *    Bit 5 TOP_PAUSED
5988c2ecf20Sopenharmony_ci *    Bit 4 TOP_PL4_ID_DOOL
5998c2ecf20Sopenharmony_ci *    Bit 3 TOP_PL4_IS_DOOL
6008c2ecf20Sopenharmony_ci *    Bit 2 TOP_PL4_ID_ROOL
6018c2ecf20Sopenharmony_ci *    Bit 1 TOP_PL4_IS_ROOL
6028c2ecf20Sopenharmony_ci *    Bit 0 TOP_PL4_OUT_ROOL
6038c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
6048c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TOP_SXRA_EXPIRED  0x0200
6058c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TOP_MDIO_BUSY     0x0100
6068c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TOP_DTRB          0x0080
6078c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TOP_EXPIRED       0x0040
6088c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TOP_PAUSED        0x0020
6098c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TOP_PL4_ID_DOOL   0x0010
6108c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TOP_PL4_IS_DOOL   0x0008
6118c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TOP_PL4_ID_ROOL   0x0004
6128c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TOP_PL4_IS_ROOL   0x0002
6138c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TOP_PL4_OUT_ROOL  0x0001
6148c2ecf20Sopenharmony_ci
6158c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
6168c2ecf20Sopenharmony_ci * Register 0x0005: Global Performance Update and Clock Monitors
6178c2ecf20Sopenharmony_ci *    Bit 15 TIP
6188c2ecf20Sopenharmony_ci *    Bit 8  XAUI_REF_CLKA
6198c2ecf20Sopenharmony_ci *    Bit 7  RXLANE3CLKA
6208c2ecf20Sopenharmony_ci *    Bit 6  RXLANE2CLKA
6218c2ecf20Sopenharmony_ci *    Bit 5  RXLANE1CLKA
6228c2ecf20Sopenharmony_ci *    Bit 4  RXLANE0CLKA
6238c2ecf20Sopenharmony_ci *    Bit 3  CSUCLKA
6248c2ecf20Sopenharmony_ci *    Bit 2  TDCLKA
6258c2ecf20Sopenharmony_ci *    Bit 1  RSCLKA
6268c2ecf20Sopenharmony_ci *    Bit 0  RDCLKA
6278c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
6288c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TIP            0x8000
6298c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_XAUI_REF_CLKA  0x0100
6308c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXLANE3CLKA    0x0080
6318c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXLANE2CLKA    0x0040
6328c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXLANE1CLKA    0x0020
6338c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXLANE0CLKA    0x0010
6348c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_CSUCLKA        0x0008
6358c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TDCLKA         0x0004
6368c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RSCLKA         0x0002
6378c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RDCLKA         0x0001
6388c2ecf20Sopenharmony_ci
6398c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
6408c2ecf20Sopenharmony_ci * Register 0x0006: MDIO Command
6418c2ecf20Sopenharmony_ci *    Bit 4 MDIO_RDINC
6428c2ecf20Sopenharmony_ci *    Bit 3 MDIO_RSTAT
6438c2ecf20Sopenharmony_ci *    Bit 2 MDIO_LCTLD
6448c2ecf20Sopenharmony_ci *    Bit 1 MDIO_LCTLA
6458c2ecf20Sopenharmony_ci *    Bit 0 MDIO_SPRE
6468c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
6478c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_MDIO_RDINC  0x0010
6488c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_MDIO_RSTAT  0x0008
6498c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_MDIO_LCTLD  0x0004
6508c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_MDIO_LCTLA  0x0002
6518c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_MDIO_SPRE   0x0001
6528c2ecf20Sopenharmony_ci
6538c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
6548c2ecf20Sopenharmony_ci * Register 0x0007: MDIO Interrupt Enable
6558c2ecf20Sopenharmony_ci *    Bit 0 MDIO_BUSY_EN
6568c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
6578c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_MDIO_BUSY_EN  0x0001
6588c2ecf20Sopenharmony_ci
6598c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
6608c2ecf20Sopenharmony_ci * Register 0x0008: MDIO Interrupt Status
6618c2ecf20Sopenharmony_ci *    Bit 0 MDIO_BUSYI
6628c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
6638c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_MDIO_BUSYI  0x0001
6648c2ecf20Sopenharmony_ci
6658c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
6668c2ecf20Sopenharmony_ci * Register 0x0009: MMD PHY Address
6678c2ecf20Sopenharmony_ci *    Bit 12-8 MDIO_DEVADR
6688c2ecf20Sopenharmony_ci *    Bit 4-0 MDIO_PRTADR
6698c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
6708c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_MDIO_DEVADR  0x1F00
6718c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_MDIO_DEVADR  8
6728c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_MDIO_PRTADR  0x001F
6738c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_MDIO_PRTADR  0
6748c2ecf20Sopenharmony_ci
6758c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
6768c2ecf20Sopenharmony_ci * Register 0x000C: OAM Interface Control
6778c2ecf20Sopenharmony_ci *    Bit 6 MDO_OD_ENB
6788c2ecf20Sopenharmony_ci *    Bit 5 MDI_INV
6798c2ecf20Sopenharmony_ci *    Bit 4 MDI_SEL
6808c2ecf20Sopenharmony_ci *    Bit 3 RXOAMEN
6818c2ecf20Sopenharmony_ci *    Bit 2 RXOAMCLKEN
6828c2ecf20Sopenharmony_ci *    Bit 1 TXOAMEN
6838c2ecf20Sopenharmony_ci *    Bit 0 TXOAMCLKEN
6848c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
6858c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_MDO_OD_ENB  0x0040
6868c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_MDI_INV     0x0020
6878c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_MDI_SEL     0x0010
6888c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAMEN     0x0008
6898c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAMCLKEN  0x0004
6908c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXOAMEN     0x0002
6918c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXOAMCLKEN  0x0001
6928c2ecf20Sopenharmony_ci
6938c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
6948c2ecf20Sopenharmony_ci * Register 0x000D: S/UNI-1x10GE-XP Master Interrupt Status
6958c2ecf20Sopenharmony_ci *    Bit 15 TOP_PL4IO_INT
6968c2ecf20Sopenharmony_ci *    Bit 14 TOP_IRAM_INT
6978c2ecf20Sopenharmony_ci *    Bit 13 TOP_ERAM_INT
6988c2ecf20Sopenharmony_ci *    Bit 12 TOP_XAUI_INT
6998c2ecf20Sopenharmony_ci *    Bit 11 TOP_MSTAT_INT
7008c2ecf20Sopenharmony_ci *    Bit 10 TOP_RXXG_INT
7018c2ecf20Sopenharmony_ci *    Bit 9 TOP_TXXG_INT
7028c2ecf20Sopenharmony_ci *    Bit 8 TOP_XRF_INT
7038c2ecf20Sopenharmony_ci *    Bit 7 TOP_XTEF_INT
7048c2ecf20Sopenharmony_ci *    Bit 6 TOP_MDIO_BUSY_INT
7058c2ecf20Sopenharmony_ci *    Bit 5 TOP_RXOAM_INT
7068c2ecf20Sopenharmony_ci *    Bit 4 TOP_TXOAM_INT
7078c2ecf20Sopenharmony_ci *    Bit 3 TOP_IFLX_INT
7088c2ecf20Sopenharmony_ci *    Bit 2 TOP_EFLX_INT
7098c2ecf20Sopenharmony_ci *    Bit 1 TOP_PL4ODP_INT
7108c2ecf20Sopenharmony_ci *    Bit 0 TOP_PL4IDU_INT
7118c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
7128c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TOP_PL4IO_INT      0x8000
7138c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TOP_IRAM_INT       0x4000
7148c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TOP_ERAM_INT       0x2000
7158c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TOP_XAUI_INT       0x1000
7168c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TOP_MSTAT_INT      0x0800
7178c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TOP_RXXG_INT       0x0400
7188c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TOP_TXXG_INT       0x0200
7198c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TOP_XRF_INT        0x0100
7208c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TOP_XTEF_INT       0x0080
7218c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TOP_MDIO_BUSY_INT  0x0040
7228c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TOP_RXOAM_INT      0x0020
7238c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TOP_TXOAM_INT      0x0010
7248c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TOP_IFLX_INT       0x0008
7258c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TOP_EFLX_INT       0x0004
7268c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TOP_PL4ODP_INT     0x0002
7278c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TOP_PL4IDU_INT     0x0001
7288c2ecf20Sopenharmony_ci
7298c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
7308c2ecf20Sopenharmony_ci * Register 0x000E:PM3393 Global interrupt enable
7318c2ecf20Sopenharmony_ci *    Bit 15 TOP_INTE
7328c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
7338c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TOP_INTE  0x8000
7348c2ecf20Sopenharmony_ci
7358c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
7368c2ecf20Sopenharmony_ci * Register 0x0010: XTEF Miscellaneous Control
7378c2ecf20Sopenharmony_ci *    Bit 7 RF_VAL
7388c2ecf20Sopenharmony_ci *    Bit 6 RF_OVERRIDE
7398c2ecf20Sopenharmony_ci *    Bit 5 LF_VAL
7408c2ecf20Sopenharmony_ci *    Bit 4 LF_OVERRIDE
7418c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
7428c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RF_VAL             0x0080
7438c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RF_OVERRIDE        0x0040
7448c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_LF_VAL             0x0020
7458c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_LF_OVERRIDE        0x0010
7468c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_LFRF_OVERRIDE_VAL  0x00F0
7478c2ecf20Sopenharmony_ci
7488c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
7498c2ecf20Sopenharmony_ci * Register 0x0011: XRF Miscellaneous Control
7508c2ecf20Sopenharmony_ci *    Bit 6-4 EN_IDLE_REP
7518c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
7528c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_EN_IDLE_REP  0x0070
7538c2ecf20Sopenharmony_ci
7548c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
7558c2ecf20Sopenharmony_ci * Register 0x0100: SERDES 3125 Configuration Register 1
7568c2ecf20Sopenharmony_ci *    Bit 10 RXEQB_3
7578c2ecf20Sopenharmony_ci *    Bit 8  RXEQB_2
7588c2ecf20Sopenharmony_ci *    Bit 6  RXEQB_1
7598c2ecf20Sopenharmony_ci *    Bit 4  RXEQB_0
7608c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
7618c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXEQB    0x0FF0
7628c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_RXEQB_3  10
7638c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_RXEQB_2  8
7648c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_RXEQB_1  6
7658c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_RXEQB_0  4
7668c2ecf20Sopenharmony_ci
7678c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
7688c2ecf20Sopenharmony_ci * Register 0x0101: SERDES 3125 Configuration Register 2
7698c2ecf20Sopenharmony_ci *    Bit 12 YSEL
7708c2ecf20Sopenharmony_ci *    Bit  7 PRE_EMPH_3
7718c2ecf20Sopenharmony_ci *    Bit  6 PRE_EMPH_2
7728c2ecf20Sopenharmony_ci *    Bit  5 PRE_EMPH_1
7738c2ecf20Sopenharmony_ci *    Bit  4 PRE_EMPH_0
7748c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
7758c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_YSEL        0x1000
7768c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PRE_EMPH    0x00F0
7778c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PRE_EMPH_3  0x0080
7788c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PRE_EMPH_2  0x0040
7798c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PRE_EMPH_1  0x0020
7808c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PRE_EMPH_0  0x0010
7818c2ecf20Sopenharmony_ci
7828c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
7838c2ecf20Sopenharmony_ci * Register 0x0102: SERDES 3125 Interrupt Enable Register
7848c2ecf20Sopenharmony_ci *    Bit 3 LASIE
7858c2ecf20Sopenharmony_ci *    Bit 2 SPLL_RAE
7868c2ecf20Sopenharmony_ci *    Bit 1 MPLL_RAE
7878c2ecf20Sopenharmony_ci *    Bit 0 PLL_LOCKE
7888c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
7898c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_LASIE      0x0008
7908c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_SPLL_RAE   0x0004
7918c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_MPLL_RAE   0x0002
7928c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PLL_LOCKE  0x0001
7938c2ecf20Sopenharmony_ci
7948c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
7958c2ecf20Sopenharmony_ci * Register 0x0103: SERDES 3125 Interrupt Visibility Register
7968c2ecf20Sopenharmony_ci *    Bit 3 LASIV
7978c2ecf20Sopenharmony_ci *    Bit 2 SPLL_RAV
7988c2ecf20Sopenharmony_ci *    Bit 1 MPLL_RAV
7998c2ecf20Sopenharmony_ci *    Bit 0 PLL_LOCKV
8008c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
8018c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_LASIV      0x0008
8028c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_SPLL_RAV   0x0004
8038c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_MPLL_RAV   0x0002
8048c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PLL_LOCKV  0x0001
8058c2ecf20Sopenharmony_ci
8068c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
8078c2ecf20Sopenharmony_ci * Register 0x0104: SERDES 3125 Interrupt Status Register
8088c2ecf20Sopenharmony_ci *    Bit 3 LASII
8098c2ecf20Sopenharmony_ci *    Bit 2 SPLL_RAI
8108c2ecf20Sopenharmony_ci *    Bit 1 MPLL_RAI
8118c2ecf20Sopenharmony_ci *    Bit 0 PLL_LOCKI
8128c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
8138c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_LASII      0x0008
8148c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_SPLL_RAI   0x0004
8158c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_MPLL_RAI   0x0002
8168c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PLL_LOCKI  0x0001
8178c2ecf20Sopenharmony_ci
8188c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
8198c2ecf20Sopenharmony_ci * Register 0x0107: SERDES 3125 Test Configuration
8208c2ecf20Sopenharmony_ci *    Bit 12 DUALTX
8218c2ecf20Sopenharmony_ci *    Bit 10 HC_1
8228c2ecf20Sopenharmony_ci *    Bit  9 HC_0
8238c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
8248c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_DUALTX  0x1000
8258c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_HC      0x0600
8268c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_HC_0    9
8278c2ecf20Sopenharmony_ci
8288c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
8298c2ecf20Sopenharmony_ci * Register 0x2040: RXXG Configuration 1
8308c2ecf20Sopenharmony_ci *    Bit 15  RXXG_RXEN
8318c2ecf20Sopenharmony_ci *    Bit 14  RXXG_ROCF
8328c2ecf20Sopenharmony_ci *    Bit 13  RXXG_PAD_STRIP
8338c2ecf20Sopenharmony_ci *    Bit 10  RXXG_PUREP
8348c2ecf20Sopenharmony_ci *    Bit 9   RXXG_LONGP
8358c2ecf20Sopenharmony_ci *    Bit 8   RXXG_PARF
8368c2ecf20Sopenharmony_ci *    Bit 7   RXXG_FLCHK
8378c2ecf20Sopenharmony_ci *    Bit 5   RXXG_PASS_CTRL
8388c2ecf20Sopenharmony_ci *    Bit 3   RXXG_CRC_STRIP
8398c2ecf20Sopenharmony_ci *    Bit 2-0 RXXG_MIFG
8408c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
8418c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXXG_RXEN       0x8000
8428c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXXG_ROCF       0x4000
8438c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXXG_PAD_STRIP  0x2000
8448c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXXG_PUREP      0x0400
8458c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXXG_LONGP      0x0200
8468c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXXG_PARF       0x0100
8478c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXXG_FLCHK      0x0080
8488c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXXG_PASS_CTRL  0x0020
8498c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXXG_CRC_STRIP  0x0008
8508c2ecf20Sopenharmony_ci
8518c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
8528c2ecf20Sopenharmony_ci * Register 0x02041: RXXG Configuration 2
8538c2ecf20Sopenharmony_ci *    Bit 7-0 RXXG_HDRSIZE
8548c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
8558c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXXG_HDRSIZE  0x00FF
8568c2ecf20Sopenharmony_ci
8578c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
8588c2ecf20Sopenharmony_ci * Register 0x2042: RXXG Configuration 3
8598c2ecf20Sopenharmony_ci *    Bit 15 RXXG_MIN_LERRE
8608c2ecf20Sopenharmony_ci *    Bit 14 RXXG_MAX_LERRE
8618c2ecf20Sopenharmony_ci *    Bit 12 RXXG_LINE_ERRE
8628c2ecf20Sopenharmony_ci *    Bit 10 RXXG_RX_OVRE
8638c2ecf20Sopenharmony_ci *    Bit 9  RXXG_ADR_FILTERE
8648c2ecf20Sopenharmony_ci *    Bit 8  RXXG_ERR_FILTERE
8658c2ecf20Sopenharmony_ci *    Bit 5  RXXG_PRMB_ERRE
8668c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
8678c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXXG_MIN_LERRE     0x8000
8688c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXXG_MAX_LERRE     0x4000
8698c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXXG_LINE_ERRE     0x1000
8708c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXXG_RX_OVRE       0x0400
8718c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXXG_ADR_FILTERE   0x0200
8728c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXXG_ERR_FILTERRE  0x0100
8738c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXXG_PRMB_ERRE     0x0020
8748c2ecf20Sopenharmony_ci
8758c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
8768c2ecf20Sopenharmony_ci * Register 0x2043: RXXG Interrupt
8778c2ecf20Sopenharmony_ci *    Bit 15 RXXG_MIN_LERRI
8788c2ecf20Sopenharmony_ci *    Bit 14 RXXG_MAX_LERRI
8798c2ecf20Sopenharmony_ci *    Bit 12 RXXG_LINE_ERRI
8808c2ecf20Sopenharmony_ci *    Bit 10 RXXG_RX_OVRI
8818c2ecf20Sopenharmony_ci *    Bit 9  RXXG_ADR_FILTERI
8828c2ecf20Sopenharmony_ci *    Bit 8  RXXG_ERR_FILTERI
8838c2ecf20Sopenharmony_ci *    Bit 5  RXXG_PRMB_ERRE
8848c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
8858c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXXG_MIN_LERRI    0x8000
8868c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXXG_MAX_LERRI    0x4000
8878c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXXG_LINE_ERRI    0x1000
8888c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXXG_RX_OVRI      0x0400
8898c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXXG_ADR_FILTERI  0x0200
8908c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXXG_ERR_FILTERI  0x0100
8918c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXXG_PRMB_ERRE    0x0020
8928c2ecf20Sopenharmony_ci
8938c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
8948c2ecf20Sopenharmony_ci * Register 0x2049: RXXG Receive FIFO Threshold
8958c2ecf20Sopenharmony_ci *    Bit 2-0 RXXG_CUT_THRU
8968c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
8978c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXXG_CUT_THRU  0x0007
8988c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_RXXG_CUT_THRU  0
8998c2ecf20Sopenharmony_ci
9008c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
9018c2ecf20Sopenharmony_ci * Register 0x2062H - 0x2069: RXXG Exact Match VID
9028c2ecf20Sopenharmony_ci *    Bit 11-0 RXXG_VID_MATCH
9038c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
9048c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXXG_VID_MATCH  0x0FFF
9058c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_RXXG_VID_MATCH  0
9068c2ecf20Sopenharmony_ci
9078c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
9088c2ecf20Sopenharmony_ci * Register 0x206EH - 0x206F: RXXG Address Filter Control
9098c2ecf20Sopenharmony_ci *    Bit 3 RXXG_FORWARD_ENABLE
9108c2ecf20Sopenharmony_ci *    Bit 2 RXXG_VLAN_ENABLE
9118c2ecf20Sopenharmony_ci *    Bit 1 RXXG_SRC_ADDR
9128c2ecf20Sopenharmony_ci *    Bit 0 RXXG_MATCH_ENABLE
9138c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
9148c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXXG_FORWARD_ENABLE  0x0008
9158c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXXG_VLAN_ENABLE     0x0004
9168c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXXG_SRC_ADDR        0x0002
9178c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXXG_MATCH_ENABLE    0x0001
9188c2ecf20Sopenharmony_ci
9198c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
9208c2ecf20Sopenharmony_ci * Register 0x2070: RXXG Address Filter Control 2
9218c2ecf20Sopenharmony_ci *    Bit 1 RXXG_PMODE
9228c2ecf20Sopenharmony_ci *    Bit 0 RXXG_MHASH_EN
9238c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
9248c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXXG_PMODE     0x0002
9258c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXXG_MHASH_EN  0x0001
9268c2ecf20Sopenharmony_ci
9278c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
9288c2ecf20Sopenharmony_ci * Register 0x2081: XRF Control Register 2
9298c2ecf20Sopenharmony_ci *    Bit 6   EN_PKT_GEN
9308c2ecf20Sopenharmony_ci *    Bit 4-2 PATT
9318c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
9328c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_EN_PKT_GEN  0x0040
9338c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PATT        0x001C
9348c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_PATT        2
9358c2ecf20Sopenharmony_ci
9368c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
9378c2ecf20Sopenharmony_ci * Register 0x2088: XRF Interrupt Enable
9388c2ecf20Sopenharmony_ci *    Bit 12-9 LANE_HICERE
9398c2ecf20Sopenharmony_ci *    Bit 8-5  HS_SD_LANEE
9408c2ecf20Sopenharmony_ci *    Bit 4    ALIGN_STATUS_ERRE
9418c2ecf20Sopenharmony_ci *    Bit 3-0  LANE_SYNC_STAT_ERRE
9428c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
9438c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_LANE_HICERE          0x1E00
9448c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_LANE_HICERE          9
9458c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_HS_SD_LANEE          0x01E0
9468c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_HS_SD_LANEE          5
9478c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_ALIGN_STATUS_ERRE    0x0010
9488c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_LANE_SYNC_STAT_ERRE  0x000F
9498c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_LANE_SYNC_STAT_ERRE  0
9508c2ecf20Sopenharmony_ci
9518c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
9528c2ecf20Sopenharmony_ci * Register 0x2089: XRF Interrupt Status
9538c2ecf20Sopenharmony_ci *    Bit 12-9 LANE_HICERI
9548c2ecf20Sopenharmony_ci *    Bit 8-5  HS_SD_LANEI
9558c2ecf20Sopenharmony_ci *    Bit 4    ALIGN_STATUS_ERRI
9568c2ecf20Sopenharmony_ci *    Bit 3-0  LANE_SYNC_STAT_ERRI
9578c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
9588c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_LANE_HICERI          0x1E00
9598c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_LANE_HICERI          9
9608c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_HS_SD_LANEI          0x01E0
9618c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_HS_SD_LANEI          5
9628c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_ALIGN_STATUS_ERRI    0x0010
9638c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_LANE_SYNC_STAT_ERRI  0x000F
9648c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_LANE_SYNC_STAT_ERRI  0
9658c2ecf20Sopenharmony_ci
9668c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
9678c2ecf20Sopenharmony_ci * Register 0x208A: XRF Error Status
9688c2ecf20Sopenharmony_ci *    Bit 8-5  HS_SD_LANE
9698c2ecf20Sopenharmony_ci *    Bit 4    ALIGN_STATUS_ERR
9708c2ecf20Sopenharmony_ci *    Bit 3-0  LANE_SYNC_STAT_ERR
9718c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
9728c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_HS_SD_LANE3          0x0100
9738c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_HS_SD_LANE2          0x0080
9748c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_HS_SD_LANE1          0x0040
9758c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_HS_SD_LANE0          0x0020
9768c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_ALIGN_STATUS_ERR     0x0010
9778c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_LANE3_SYNC_STAT_ERR  0x0008
9788c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_LANE2_SYNC_STAT_ERR  0x0004
9798c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_LANE1_SYNC_STAT_ERR  0x0002
9808c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_LANE0_SYNC_STAT_ERR  0x0001
9818c2ecf20Sopenharmony_ci
9828c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
9838c2ecf20Sopenharmony_ci * Register 0x208B: XRF Diagnostic Interrupt Enable
9848c2ecf20Sopenharmony_ci *    Bit 7-4 LANE_OVERRUNE
9858c2ecf20Sopenharmony_ci *    Bit 3-0 LANE_UNDERRUNE
9868c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
9878c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_LANE_OVERRUNE   0x00F0
9888c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_LANE_OVERRUNE   4
9898c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_LANE_UNDERRUNE  0x000F
9908c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_LANE_UNDERRUNE  0
9918c2ecf20Sopenharmony_ci
9928c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
9938c2ecf20Sopenharmony_ci * Register 0x208C: XRF Diagnostic Interrupt Status
9948c2ecf20Sopenharmony_ci *    Bit 7-4 LANE_OVERRUNI
9958c2ecf20Sopenharmony_ci *    Bit 3-0 LANE_UNDERRUNI
9968c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
9978c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_LANE_OVERRUNI   0x00F0
9988c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_LANE_OVERRUNI   4
9998c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_LANE_UNDERRUNI  0x000F
10008c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_LANE_UNDERRUNI  0
10018c2ecf20Sopenharmony_ci
10028c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
10038c2ecf20Sopenharmony_ci * Register 0x20C0: RXOAM Configuration
10048c2ecf20Sopenharmony_ci *    Bit 15    RXOAM_BUSY
10058c2ecf20Sopenharmony_ci *    Bit 14-12 RXOAM_F2_SEL
10068c2ecf20Sopenharmony_ci *    Bit 10-8  RXOAM_F1_SEL
10078c2ecf20Sopenharmony_ci *    Bit 7-6   RXOAM_FILTER_CTRL
10088c2ecf20Sopenharmony_ci *    Bit 5-0   RXOAM_PX_EN
10098c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
10108c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAM_BUSY         0x8000
10118c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAM_F2_SEL       0x7000
10128c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_RXOAM_F2_SEL       12
10138c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAM_F1_SEL       0x0700
10148c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_RXOAM_F1_SEL       8
10158c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAM_FILTER_CTRL  0x00C0
10168c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_RXOAM_FILTER_CTRL  6
10178c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAM_PX_EN        0x003F
10188c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_RXOAM_PX_EN        0
10198c2ecf20Sopenharmony_ci
10208c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
10218c2ecf20Sopenharmony_ci * Register 0x20C1,0x20C2: RXOAM Filter Configuration
10228c2ecf20Sopenharmony_ci *    Bit 15-8 RXOAM_FX_MASK
10238c2ecf20Sopenharmony_ci *    Bit 7-0  RXOAM_FX_VAL
10248c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
10258c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAM_FX_MASK  0xFF00
10268c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_RXOAM_FX_MASK  8
10278c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAM_FX_VAL   0x00FF
10288c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_RXOAM_FX_VAl   0
10298c2ecf20Sopenharmony_ci
10308c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
10318c2ecf20Sopenharmony_ci * Register 0x20C3: RXOAM Configuration Register 2
10328c2ecf20Sopenharmony_ci *    Bit 13    RXOAM_REC_BYTE_VAL
10338c2ecf20Sopenharmony_ci *    Bit 11-10 RXOAM_BYPASS_MODE
10348c2ecf20Sopenharmony_ci *    Bit 5-0   RXOAM_PX_CLEAR
10358c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
10368c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAM_REC_BYTE_VAL  0x2000
10378c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAM_BYPASS_MODE   0x0C00
10388c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_RXOAM_BYPASS_MODE   10
10398c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAM_PX_CLEAR      0x003F
10408c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_RXOAM_PX_CLEAR      0
10418c2ecf20Sopenharmony_ci
10428c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
10438c2ecf20Sopenharmony_ci * Register 0x20C4: RXOAM HEC Configuration
10448c2ecf20Sopenharmony_ci *    Bit 15-8 RXOAM_COSET
10458c2ecf20Sopenharmony_ci *    Bit 2    RXOAM_HEC_ERR_PKT
10468c2ecf20Sopenharmony_ci *    Bit 0    RXOAM_HEC_EN
10478c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
10488c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAM_COSET        0xFF00
10498c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_RXOAM_COSET        8
10508c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAM_HEC_ERR_PKT  0x0004
10518c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAM_HEC_EN       0x0001
10528c2ecf20Sopenharmony_ci
10538c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
10548c2ecf20Sopenharmony_ci * Register 0x20C7: RXOAM Interrupt Enable
10558c2ecf20Sopenharmony_ci *    Bit 10 RXOAM_FILTER_THRSHE
10568c2ecf20Sopenharmony_ci *    Bit 9  RXOAM_OAM_ERRE
10578c2ecf20Sopenharmony_ci *    Bit 8  RXOAM_HECE_THRSHE
10588c2ecf20Sopenharmony_ci *    Bit 7  RXOAM_SOPE
10598c2ecf20Sopenharmony_ci *    Bit 6  RXOAM_RFE
10608c2ecf20Sopenharmony_ci *    Bit 5  RXOAM_LFE
10618c2ecf20Sopenharmony_ci *    Bit 4  RXOAM_DV_ERRE
10628c2ecf20Sopenharmony_ci *    Bit 3  RXOAM_DATA_INVALIDE
10638c2ecf20Sopenharmony_ci *    Bit 2  RXOAM_FILTER_DROPE
10648c2ecf20Sopenharmony_ci *    Bit 1  RXOAM_HECE
10658c2ecf20Sopenharmony_ci *    Bit 0  RXOAM_OFLE
10668c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
10678c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAM_FILTER_THRSHE  0x0400
10688c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAM_OAM_ERRE       0x0200
10698c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAM_HECE_THRSHE    0x0100
10708c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAM_SOPE           0x0080
10718c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAM_RFE            0x0040
10728c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAM_LFE            0x0020
10738c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAM_DV_ERRE        0x0010
10748c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAM_DATA_INVALIDE  0x0008
10758c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAM_FILTER_DROPE   0x0004
10768c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAM_HECE           0x0002
10778c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAM_OFLE           0x0001
10788c2ecf20Sopenharmony_ci
10798c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
10808c2ecf20Sopenharmony_ci * Register 0x20C8: RXOAM Interrupt Status
10818c2ecf20Sopenharmony_ci *    Bit 10 RXOAM_FILTER_THRSHI
10828c2ecf20Sopenharmony_ci *    Bit 9  RXOAM_OAM_ERRI
10838c2ecf20Sopenharmony_ci *    Bit 8  RXOAM_HECE_THRSHI
10848c2ecf20Sopenharmony_ci *    Bit 7  RXOAM_SOPI
10858c2ecf20Sopenharmony_ci *    Bit 6  RXOAM_RFI
10868c2ecf20Sopenharmony_ci *    Bit 5  RXOAM_LFI
10878c2ecf20Sopenharmony_ci *    Bit 4  RXOAM_DV_ERRI
10888c2ecf20Sopenharmony_ci *    Bit 3  RXOAM_DATA_INVALIDI
10898c2ecf20Sopenharmony_ci *    Bit 2  RXOAM_FILTER_DROPI
10908c2ecf20Sopenharmony_ci *    Bit 1  RXOAM_HECI
10918c2ecf20Sopenharmony_ci *    Bit 0  RXOAM_OFLI
10928c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
10938c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAM_FILTER_THRSHI  0x0400
10948c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAM_OAM_ERRI       0x0200
10958c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAM_HECE_THRSHI    0x0100
10968c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAM_SOPI           0x0080
10978c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAM_RFI            0x0040
10988c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAM_LFI            0x0020
10998c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAM_DV_ERRI        0x0010
11008c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAM_DATA_INVALIDI  0x0008
11018c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAM_FILTER_DROPI   0x0004
11028c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAM_HECI           0x0002
11038c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAM_OFLI           0x0001
11048c2ecf20Sopenharmony_ci
11058c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
11068c2ecf20Sopenharmony_ci * Register 0x20C9: RXOAM Status
11078c2ecf20Sopenharmony_ci *    Bit 10 RXOAM_FILTER_THRSHV
11088c2ecf20Sopenharmony_ci *    Bit 8  RXOAM_HECE_THRSHV
11098c2ecf20Sopenharmony_ci *    Bit 6  RXOAM_RFV
11108c2ecf20Sopenharmony_ci *    Bit 5  RXOAM_LFV
11118c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
11128c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAM_FILTER_THRSHV  0x0400
11138c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAM_HECE_THRSHV    0x0100
11148c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAM_RFV            0x0040
11158c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_RXOAM_LFV            0x0020
11168c2ecf20Sopenharmony_ci
11178c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
11188c2ecf20Sopenharmony_ci * Register 0x2100: MSTAT Control
11198c2ecf20Sopenharmony_ci *    Bit 2 MSTAT_WRITE
11208c2ecf20Sopenharmony_ci *    Bit 1 MSTAT_CLEAR
11218c2ecf20Sopenharmony_ci *    Bit 0 MSTAT_SNAP
11228c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
11238c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_MSTAT_WRITE  0x0004
11248c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_MSTAT_CLEAR  0x0002
11258c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_MSTAT_SNAP   0x0001
11268c2ecf20Sopenharmony_ci
11278c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
11288c2ecf20Sopenharmony_ci * Register 0x2109: MSTAT Counter Write Address
11298c2ecf20Sopenharmony_ci *    Bit 5-0 MSTAT_WRITE_ADDRESS
11308c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
11318c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_MSTAT_WRITE_ADDRESS 0x003F
11328c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_MSTAT_WRITE_ADDRESS 0
11338c2ecf20Sopenharmony_ci
11348c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
11358c2ecf20Sopenharmony_ci * Register 0x2200: IFLX Global Configuration Register
11368c2ecf20Sopenharmony_ci *    Bit 15   IFLX_IRCU_ENABLE
11378c2ecf20Sopenharmony_ci *    Bit 14   IFLX_IDSWT_ENABLE
11388c2ecf20Sopenharmony_ci *    Bit 13-0 IFLX_IFD_CNT
11398c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
11408c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_IFLX_IRCU_ENABLE   0x8000
11418c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_IFLX_IDSWT_ENABLE  0x4000
11428c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_IFLX_IFD_CNT       0x3FFF
11438c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_IFLX_IFD_CNT       0
11448c2ecf20Sopenharmony_ci
11458c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
11468c2ecf20Sopenharmony_ci * Register 0x2209: IFLX FIFO Overflow Enable
11478c2ecf20Sopenharmony_ci *    Bit 0 IFLX_OVFE
11488c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
11498c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_IFLX_OVFE 0x0001
11508c2ecf20Sopenharmony_ci
11518c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
11528c2ecf20Sopenharmony_ci * Register 0x220A: IFLX FIFO Overflow Interrupt
11538c2ecf20Sopenharmony_ci *    Bit 0 IFLX_OVFI
11548c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
11558c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_IFLX_OVFI 0x0001
11568c2ecf20Sopenharmony_ci
11578c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
11588c2ecf20Sopenharmony_ci * Register 0x220D: IFLX Indirect Channel Address
11598c2ecf20Sopenharmony_ci *    Bit 15 IFLX_BUSY
11608c2ecf20Sopenharmony_ci *    Bit 14 IFLX_RWB
11618c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
11628c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_IFLX_BUSY  0x8000
11638c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_IFLX_RWB   0x4000
11648c2ecf20Sopenharmony_ci
11658c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
11668c2ecf20Sopenharmony_ci * Register 0x220E: IFLX Indirect Logical FIFO Low Limit & Provision
11678c2ecf20Sopenharmony_ci *    Bit 9-0 IFLX_LOLIM
11688c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
11698c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_IFLX_LOLIM  0x03FF
11708c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_IFLX_LOLIM  0
11718c2ecf20Sopenharmony_ci
11728c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
11738c2ecf20Sopenharmony_ci * Register 0x220F: IFLX Indirect Logical FIFO High Limit
11748c2ecf20Sopenharmony_ci *    Bit 9-0 IFLX_HILIM
11758c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
11768c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_IFLX_HILIM  0x03FF
11778c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_IFLX_HILIM  0
11788c2ecf20Sopenharmony_ci
11798c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
11808c2ecf20Sopenharmony_ci * Register 0x2210: IFLX Indirect Full/Almost Full Status & Limit
11818c2ecf20Sopenharmony_ci *    Bit 15   IFLX_FULL
11828c2ecf20Sopenharmony_ci *    Bit 14   IFLX_AFULL
11838c2ecf20Sopenharmony_ci *    Bit 13-0 IFLX_AFTH
11848c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
11858c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_IFLX_FULL   0x8000
11868c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_IFLX_AFULL  0x4000
11878c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_IFLX_AFTH   0x3FFF
11888c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_IFLX_AFTH   0
11898c2ecf20Sopenharmony_ci
11908c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
11918c2ecf20Sopenharmony_ci * Register 0x2211: IFLX Indirect Empty/Almost Empty Status & Limit
11928c2ecf20Sopenharmony_ci *    Bit 15   IFLX_EMPTY
11938c2ecf20Sopenharmony_ci *    Bit 14   IFLX_AEMPTY
11948c2ecf20Sopenharmony_ci *    Bit 13-0 IFLX_AETH
11958c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
11968c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_IFLX_EMPTY   0x8000
11978c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_IFLX_AEMPTY  0x4000
11988c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_IFLX_AETH    0x3FFF
11998c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_IFLX_AETH    0
12008c2ecf20Sopenharmony_ci
12018c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
12028c2ecf20Sopenharmony_ci * Register 0x2240: PL4MOS Configuration Register
12038c2ecf20Sopenharmony_ci *    Bit 3 PL4MOS_RE_INIT
12048c2ecf20Sopenharmony_ci *    Bit 2 PL4MOS_EN
12058c2ecf20Sopenharmony_ci *    Bit 1 PL4MOS_NO_STATUS
12068c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
12078c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4MOS_RE_INIT          0x0008
12088c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4MOS_EN               0x0004
12098c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4MOS_NO_STATUS        0x0002
12108c2ecf20Sopenharmony_ci
12118c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
12128c2ecf20Sopenharmony_ci * Register 0x2243: PL4MOS MaxBurst1 Register
12138c2ecf20Sopenharmony_ci *    Bit 11-0 PL4MOS_MAX_BURST1
12148c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
12158c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4MOS_MAX_BURST1  0x0FFF
12168c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_PL4MOS_MAX_BURST1  0
12178c2ecf20Sopenharmony_ci
12188c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
12198c2ecf20Sopenharmony_ci * Register 0x2244: PL4MOS MaxBurst2 Register
12208c2ecf20Sopenharmony_ci *    Bit 11-0 PL4MOS_MAX_BURST2
12218c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
12228c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4MOS_MAX_BURST2  0x0FFF
12238c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_PL4MOS_MAX_BURST2  0
12248c2ecf20Sopenharmony_ci
12258c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
12268c2ecf20Sopenharmony_ci * Register 0x2245: PL4MOS Transfer Size Register
12278c2ecf20Sopenharmony_ci *    Bit 7-0 PL4MOS_MAX_TRANSFER
12288c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
12298c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4MOS_MAX_TRANSFER  0x00FF
12308c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_PL4MOS_MAX_TRANSFER  0
12318c2ecf20Sopenharmony_ci
12328c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
12338c2ecf20Sopenharmony_ci * Register 0x2280: PL4ODP Configuration
12348c2ecf20Sopenharmony_ci *    Bit 15-12 PL4ODP_REPEAT_T
12358c2ecf20Sopenharmony_ci *    Bit 8     PL4ODP_SOP_RULE
12368c2ecf20Sopenharmony_ci *    Bit 1     PL4ODP_EN_PORTS
12378c2ecf20Sopenharmony_ci *    Bit 0     PL4ODP_EN_DFWD
12388c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
12398c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4ODP_REPEAT_T   0xF000
12408c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_PL4ODP_REPEAT_T   12
12418c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4ODP_SOP_RULE   0x0100
12428c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4ODP_EN_PORTS   0x0002
12438c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4ODP_EN_DFWD    0x0001
12448c2ecf20Sopenharmony_ci
12458c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
12468c2ecf20Sopenharmony_ci * Register 0x2282: PL4ODP Interrupt Mask
12478c2ecf20Sopenharmony_ci *    Bit 0 PL4ODP_OUT_DISE
12488c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
12498c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4ODP_OUT_DISE     0x0001
12508c2ecf20Sopenharmony_ci
12518c2ecf20Sopenharmony_ci
12528c2ecf20Sopenharmony_ci
12538c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4ODP_PPE_EOPEOBE  0x0080
12548c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4ODP_PPE_ERREOPE  0x0040
12558c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4ODP_PPE_MEOPE    0x0008
12568c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4ODP_PPE_MSOPE    0x0004
12578c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4ODP_ES_OVRE      0x0002
12588c2ecf20Sopenharmony_ci
12598c2ecf20Sopenharmony_ci
12608c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
12618c2ecf20Sopenharmony_ci * Register 0x2283: PL4ODP Interrupt
12628c2ecf20Sopenharmony_ci *    Bit 0 PL4ODP_OUT_DISI
12638c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
12648c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4ODP_OUT_DISI     0x0001
12658c2ecf20Sopenharmony_ci
12668c2ecf20Sopenharmony_ci
12678c2ecf20Sopenharmony_ci
12688c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4ODP_PPE_EOPEOBI  0x0080
12698c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4ODP_PPE_ERREOPI  0x0040
12708c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4ODP_PPE_MEOPI    0x0008
12718c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4ODP_PPE_MSOPI    0x0004
12728c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4ODP_ES_OVRI      0x0002
12738c2ecf20Sopenharmony_ci
12748c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
12758c2ecf20Sopenharmony_ci * Register 0x2300:  PL4IO Lock Detect Status
12768c2ecf20Sopenharmony_ci *    Bit 15 PL4IO_OUT_ROOLV
12778c2ecf20Sopenharmony_ci *    Bit 12 PL4IO_IS_ROOLV
12788c2ecf20Sopenharmony_ci *    Bit 11 PL4IO_DIP2_ERRV
12798c2ecf20Sopenharmony_ci *    Bit 8  PL4IO_ID_ROOLV
12808c2ecf20Sopenharmony_ci *    Bit 4  PL4IO_IS_DOOLV
12818c2ecf20Sopenharmony_ci *    Bit 0  PL4IO_ID_DOOLV
12828c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
12838c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4IO_OUT_ROOLV  0x8000
12848c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4IO_IS_ROOLV   0x1000
12858c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4IO_DIP2_ERRV  0x0800
12868c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4IO_ID_ROOLV   0x0100
12878c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4IO_IS_DOOLV   0x0010
12888c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4IO_ID_DOOLV   0x0001
12898c2ecf20Sopenharmony_ci
12908c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
12918c2ecf20Sopenharmony_ci * Register 0x2301:  PL4IO Lock Detect Change
12928c2ecf20Sopenharmony_ci *    Bit 15 PL4IO_OUT_ROOLI
12938c2ecf20Sopenharmony_ci *    Bit 12 PL4IO_IS_ROOLI
12948c2ecf20Sopenharmony_ci *    Bit 11 PL4IO_DIP2_ERRI
12958c2ecf20Sopenharmony_ci *    Bit 8  PL4IO_ID_ROOLI
12968c2ecf20Sopenharmony_ci *    Bit 4  PL4IO_IS_DOOLI
12978c2ecf20Sopenharmony_ci *    Bit 0  PL4IO_ID_DOOLI
12988c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
12998c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4IO_OUT_ROOLI  0x8000
13008c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4IO_IS_ROOLI   0x1000
13018c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4IO_DIP2_ERRI  0x0800
13028c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4IO_ID_ROOLI   0x0100
13038c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4IO_IS_DOOLI   0x0010
13048c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4IO_ID_DOOLI   0x0001
13058c2ecf20Sopenharmony_ci
13068c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
13078c2ecf20Sopenharmony_ci * Register 0x2302:  PL4IO Lock Detect Mask
13088c2ecf20Sopenharmony_ci *    Bit 15 PL4IO_OUT_ROOLE
13098c2ecf20Sopenharmony_ci *    Bit 12 PL4IO_IS_ROOLE
13108c2ecf20Sopenharmony_ci *    Bit 11 PL4IO_DIP2_ERRE
13118c2ecf20Sopenharmony_ci *    Bit 8  PL4IO_ID_ROOLE
13128c2ecf20Sopenharmony_ci *    Bit 4  PL4IO_IS_DOOLE
13138c2ecf20Sopenharmony_ci *    Bit 0  PL4IO_ID_DOOLE
13148c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
13158c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4IO_OUT_ROOLE  0x8000
13168c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4IO_IS_ROOLE   0x1000
13178c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4IO_DIP2_ERRE  0x0800
13188c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4IO_ID_ROOLE   0x0100
13198c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4IO_IS_DOOLE   0x0010
13208c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4IO_ID_DOOLE   0x0001
13218c2ecf20Sopenharmony_ci
13228c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
13238c2ecf20Sopenharmony_ci * Register 0x2303:  PL4IO Lock Detect Limits
13248c2ecf20Sopenharmony_ci *    Bit 15-8 PL4IO_REF_LIMIT
13258c2ecf20Sopenharmony_ci *    Bit 7-0  PL4IO_TRAN_LIMIT
13268c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
13278c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4IO_REF_LIMIT   0xFF00
13288c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_PL4IO_REF_LIMIT   8
13298c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4IO_TRAN_LIMIT  0x00FF
13308c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_PL4IO_TRAN_LIMIT  0
13318c2ecf20Sopenharmony_ci
13328c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
13338c2ecf20Sopenharmony_ci * Register 0x2304:  PL4IO Calendar Repetitions
13348c2ecf20Sopenharmony_ci *    Bit 15-8 PL4IO_IN_MUL
13358c2ecf20Sopenharmony_ci *    Bit 7-0  PL4IO_OUT_MUL
13368c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
13378c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4IO_IN_MUL   0xFF00
13388c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_PL4IO_IN_MUL   8
13398c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4IO_OUT_MUL  0x00FF
13408c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_PL4IO_OUT_MUL  0
13418c2ecf20Sopenharmony_ci
13428c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
13438c2ecf20Sopenharmony_ci * Register 0x2305:  PL4IO Configuration
13448c2ecf20Sopenharmony_ci *    Bit 15  PL4IO_DIP2_ERR_CHK
13458c2ecf20Sopenharmony_ci *    Bit 11  PL4IO_ODAT_DIS
13468c2ecf20Sopenharmony_ci *    Bit 10  PL4IO_TRAIN_DIS
13478c2ecf20Sopenharmony_ci *    Bit 9   PL4IO_OSTAT_DIS
13488c2ecf20Sopenharmony_ci *    Bit 8   PL4IO_ISTAT_DIS
13498c2ecf20Sopenharmony_ci *    Bit 7   PL4IO_NO_ISTAT
13508c2ecf20Sopenharmony_ci *    Bit 6   PL4IO_STAT_OUTSEL
13518c2ecf20Sopenharmony_ci *    Bit 5   PL4IO_INSEL
13528c2ecf20Sopenharmony_ci *    Bit 4   PL4IO_DLSEL
13538c2ecf20Sopenharmony_ci *    Bit 1-0 PL4IO_OUTSEL
13548c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
13558c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4IO_DIP2_ERR_CHK  0x8000
13568c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4IO_ODAT_DIS      0x0800
13578c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4IO_TRAIN_DIS     0x0400
13588c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4IO_OSTAT_DIS     0x0200
13598c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4IO_ISTAT_DIS     0x0100
13608c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4IO_NO_ISTAT      0x0080
13618c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4IO_STAT_OUTSEL   0x0040
13628c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4IO_INSEL         0x0020
13638c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4IO_DLSEL         0x0010
13648c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4IO_OUTSEL        0x0003
13658c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_PL4IO_OUTSEL        0
13668c2ecf20Sopenharmony_ci
13678c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
13688c2ecf20Sopenharmony_ci * Register 0x3040: TXXG Configuration Register 1
13698c2ecf20Sopenharmony_ci *    Bit 15   TXXG_TXEN0
13708c2ecf20Sopenharmony_ci *    Bit 13   TXXG_HOSTPAUSE
13718c2ecf20Sopenharmony_ci *    Bit 12-7 TXXG_IPGT
13728c2ecf20Sopenharmony_ci *    Bit 5    TXXG_32BIT_ALIGN
13738c2ecf20Sopenharmony_ci *    Bit 4    TXXG_CRCEN
13748c2ecf20Sopenharmony_ci *    Bit 3    TXXG_FCTX
13758c2ecf20Sopenharmony_ci *    Bit 2    TXXG_FCRX
13768c2ecf20Sopenharmony_ci *    Bit 1    TXXG_PADEN
13778c2ecf20Sopenharmony_ci *    Bit 0    TXXG_SPRE
13788c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
13798c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXXG_TXEN0        0x8000
13808c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXXG_HOSTPAUSE    0x2000
13818c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXXG_IPGT         0x1F80
13828c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_TXXG_IPGT         7
13838c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXXG_32BIT_ALIGN  0x0020
13848c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXXG_CRCEN        0x0010
13858c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXXG_FCTX         0x0008
13868c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXXG_FCRX         0x0004
13878c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXXG_PADEN        0x0002
13888c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXXG_SPRE         0x0001
13898c2ecf20Sopenharmony_ci
13908c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
13918c2ecf20Sopenharmony_ci * Register 0x3041: TXXG Configuration Register 2
13928c2ecf20Sopenharmony_ci *    Bit 7-0   TXXG_HDRSIZE
13938c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
13948c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXXG_HDRSIZE  0x00FF
13958c2ecf20Sopenharmony_ci
13968c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
13978c2ecf20Sopenharmony_ci * Register 0x3042: TXXG Configuration Register 3
13988c2ecf20Sopenharmony_ci *    Bit 15 TXXG_FIFO_ERRE
13998c2ecf20Sopenharmony_ci *    Bit 14 TXXG_FIFO_UDRE
14008c2ecf20Sopenharmony_ci *    Bit 13 TXXG_MAX_LERRE
14018c2ecf20Sopenharmony_ci *    Bit 12 TXXG_MIN_LERRE
14028c2ecf20Sopenharmony_ci *    Bit 11 TXXG_XFERE
14038c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
14048c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXXG_FIFO_ERRE  0x8000
14058c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXXG_FIFO_UDRE  0x4000
14068c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXXG_MAX_LERRE  0x2000
14078c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXXG_MIN_LERRE  0x1000
14088c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXXG_XFERE      0x0800
14098c2ecf20Sopenharmony_ci
14108c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
14118c2ecf20Sopenharmony_ci * Register 0x3043: TXXG Interrupt
14128c2ecf20Sopenharmony_ci *    Bit 15 TXXG_FIFO_ERRI
14138c2ecf20Sopenharmony_ci *    Bit 14 TXXG_FIFO_UDRI
14148c2ecf20Sopenharmony_ci *    Bit 13 TXXG_MAX_LERRI
14158c2ecf20Sopenharmony_ci *    Bit 12 TXXG_MIN_LERRI
14168c2ecf20Sopenharmony_ci *    Bit 11 TXXG_XFERI
14178c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
14188c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXXG_FIFO_ERRI  0x8000
14198c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXXG_FIFO_UDRI  0x4000
14208c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXXG_MAX_LERRI  0x2000
14218c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXXG_MIN_LERRI  0x1000
14228c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXXG_XFERI      0x0800
14238c2ecf20Sopenharmony_ci
14248c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
14258c2ecf20Sopenharmony_ci * Register 0x3044: TXXG Status Register
14268c2ecf20Sopenharmony_ci *    Bit 1 TXXG_TXACTIVE
14278c2ecf20Sopenharmony_ci *    Bit 0 TXXG_PAUSED
14288c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
14298c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXXG_TXACTIVE  0x0002
14308c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXXG_PAUSED    0x0001
14318c2ecf20Sopenharmony_ci
14328c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
14338c2ecf20Sopenharmony_ci * Register 0x3046: TXXG TX_MINFR -  Transmit Min Frame Size Register
14348c2ecf20Sopenharmony_ci *    Bit 7-0 TXXG_TX_MINFR
14358c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
14368c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXXG_TX_MINFR  0x00FF
14378c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_TXXG_TX_MINFR  0
14388c2ecf20Sopenharmony_ci
14398c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
14408c2ecf20Sopenharmony_ci * Register 0x3052: TXXG Pause Quantum Value Configuration Register
14418c2ecf20Sopenharmony_ci *    Bit 7-0 TXXG_FC_PAUSE_QNTM
14428c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
14438c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXXG_FC_PAUSE_QNTM  0x00FF
14448c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_TXXG_FC_PAUSE_QNTM  0
14458c2ecf20Sopenharmony_ci
14468c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
14478c2ecf20Sopenharmony_ci * Register 0x3080: XTEF Control
14488c2ecf20Sopenharmony_ci *    Bit 3-0 XTEF_FORCE_PARITY_ERR
14498c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
14508c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_XTEF_FORCE_PARITY_ERR  0x000F
14518c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_XTEF_FORCE_PARITY_ERR  0
14528c2ecf20Sopenharmony_ci
14538c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
14548c2ecf20Sopenharmony_ci * Register 0x3084: XTEF Interrupt Event Register
14558c2ecf20Sopenharmony_ci *    Bit 0 XTEF_LOST_SYNCI
14568c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
14578c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_XTEF_LOST_SYNCI  0x0001
14588c2ecf20Sopenharmony_ci
14598c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
14608c2ecf20Sopenharmony_ci * Register 0x3085: XTEF Interrupt Enable Register
14618c2ecf20Sopenharmony_ci *    Bit 0 XTEF_LOST_SYNCE
14628c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
14638c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_XTEF_LOST_SYNCE  0x0001
14648c2ecf20Sopenharmony_ci
14658c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
14668c2ecf20Sopenharmony_ci * Register 0x3086: XTEF Visibility Register
14678c2ecf20Sopenharmony_ci *    Bit 0 XTEF_LOST_SYNCV
14688c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
14698c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_XTEF_LOST_SYNCV  0x0001
14708c2ecf20Sopenharmony_ci
14718c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
14728c2ecf20Sopenharmony_ci * Register 0x30C0: TXOAM OAM Configuration
14738c2ecf20Sopenharmony_ci *    Bit 15   TXOAM_HEC_EN
14748c2ecf20Sopenharmony_ci *    Bit 14   TXOAM_EMPTYCODE_EN
14758c2ecf20Sopenharmony_ci *    Bit 13   TXOAM_FORCE_IDLE
14768c2ecf20Sopenharmony_ci *    Bit 12   TXOAM_IGNORE_IDLE
14778c2ecf20Sopenharmony_ci *    Bit 11-6 TXOAM_PX_OVERWRITE
14788c2ecf20Sopenharmony_ci *    Bit 5-0  TXOAM_PX_SEL
14798c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
14808c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXOAM_HEC_EN        0x8000
14818c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXOAM_EMPTYCODE_EN  0x4000
14828c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXOAM_FORCE_IDLE    0x2000
14838c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXOAM_IGNORE_IDLE   0x1000
14848c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXOAM_PX_OVERWRITE  0x0FC0
14858c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_TXOAM_PX_OVERWRITE  6
14868c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXOAM_PX_SEL        0x003F
14878c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_TXOAM_PX_SEL        0
14888c2ecf20Sopenharmony_ci
14898c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
14908c2ecf20Sopenharmony_ci * Register 0x30C1: TXOAM Mini-Packet Rate Configuration
14918c2ecf20Sopenharmony_ci *    Bit 15   TXOAM_MINIDIS
14928c2ecf20Sopenharmony_ci *    Bit 14   TXOAM_BUSY
14938c2ecf20Sopenharmony_ci *    Bit 13   TXOAM_TRANS_EN
14948c2ecf20Sopenharmony_ci *    Bit 10-0 TXOAM_MINIRATE
14958c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
14968c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXOAM_MINIDIS   0x8000
14978c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXOAM_BUSY      0x4000
14988c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXOAM_TRANS_EN  0x2000
14998c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXOAM_MINIRATE  0x07FF
15008c2ecf20Sopenharmony_ci
15018c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
15028c2ecf20Sopenharmony_ci * Register 0x30C2: TXOAM Mini-Packet Gap and FIFO Configuration
15038c2ecf20Sopenharmony_ci *    Bit 13-10 TXOAM_FTHRESH
15048c2ecf20Sopenharmony_ci *    Bit 9-6   TXOAM_MINIPOST
15058c2ecf20Sopenharmony_ci *    Bit 5-0   TXOAM_MINIPRE
15068c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
15078c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXOAM_FTHRESH   0x3C00
15088c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_TXOAM_FTHRESH   10
15098c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXOAM_MINIPOST  0x03C0
15108c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_TXOAM_MINIPOST  6
15118c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXOAM_MINIPRE   0x003F
15128c2ecf20Sopenharmony_ci
15138c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
15148c2ecf20Sopenharmony_ci * Register 0x30C6: TXOAM Interrupt Enable
15158c2ecf20Sopenharmony_ci *    Bit 2 TXOAM_SOP_ERRE
15168c2ecf20Sopenharmony_ci *    Bit 1 TXOAM_OFLE
15178c2ecf20Sopenharmony_ci *    Bit 0 TXOAM_ERRE
15188c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
15198c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXOAM_SOP_ERRE    0x0004
15208c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXOAM_OFLE        0x0002
15218c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXOAM_ERRE        0x0001
15228c2ecf20Sopenharmony_ci
15238c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
15248c2ecf20Sopenharmony_ci * Register 0x30C7: TXOAM Interrupt Status
15258c2ecf20Sopenharmony_ci *    Bit 2 TXOAM_SOP_ERRI
15268c2ecf20Sopenharmony_ci *    Bit 1 TXOAM_OFLI
15278c2ecf20Sopenharmony_ci *    Bit 0 TXOAM_ERRI
15288c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
15298c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXOAM_SOP_ERRI    0x0004
15308c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXOAM_OFLI        0x0002
15318c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXOAM_ERRI        0x0001
15328c2ecf20Sopenharmony_ci
15338c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
15348c2ecf20Sopenharmony_ci * Register 0x30CF: TXOAM Coset
15358c2ecf20Sopenharmony_ci *    Bit 7-0 TXOAM_COSET
15368c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
15378c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_TXOAM_COSET  0x00FF
15388c2ecf20Sopenharmony_ci
15398c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
15408c2ecf20Sopenharmony_ci * Register 0x3200: EFLX Global Configuration
15418c2ecf20Sopenharmony_ci *    Bit 15 EFLX_ERCU_EN
15428c2ecf20Sopenharmony_ci *    Bit 7  EFLX_EN_EDSWT
15438c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
15448c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_EFLX_ERCU_EN   0x8000
15458c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_EFLX_EN_EDSWT  0x0080
15468c2ecf20Sopenharmony_ci
15478c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
15488c2ecf20Sopenharmony_ci * Register 0x3201: EFLX ERCU Global Status
15498c2ecf20Sopenharmony_ci *    Bit 13 EFLX_OVF_ERR
15508c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
15518c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_EFLX_OVF_ERR  0x2000
15528c2ecf20Sopenharmony_ci
15538c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
15548c2ecf20Sopenharmony_ci * Register 0x3202: EFLX Indirect Channel Address
15558c2ecf20Sopenharmony_ci *    Bit 15 EFLX_BUSY
15568c2ecf20Sopenharmony_ci *    Bit 14 EFLX_RDWRB
15578c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
15588c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_EFLX_BUSY   0x8000
15598c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_EFLX_RDWRB  0x4000
15608c2ecf20Sopenharmony_ci
15618c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
15628c2ecf20Sopenharmony_ci * Register 0x3203: EFLX Indirect Logical FIFO Low Limit
15638c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
15648c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_EFLX_LOLIM                    0x03FF
15658c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_EFLX_LOLIM                    0
15668c2ecf20Sopenharmony_ci
15678c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
15688c2ecf20Sopenharmony_ci * Register 0x3204: EFLX Indirect Logical FIFO High Limit
15698c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
15708c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_EFLX_HILIM                    0x03FF
15718c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_EFLX_HILIM                    0
15728c2ecf20Sopenharmony_ci
15738c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
15748c2ecf20Sopenharmony_ci * Register 0x3205: EFLX Indirect Full/Almost-Full Status and Limit
15758c2ecf20Sopenharmony_ci *    Bit 15   EFLX_FULL
15768c2ecf20Sopenharmony_ci *    Bit 14   EFLX_AFULL
15778c2ecf20Sopenharmony_ci *    Bit 13-0 EFLX_AFTH
15788c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
15798c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_EFLX_FULL   0x8000
15808c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_EFLX_AFULL  0x4000
15818c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_EFLX_AFTH   0x3FFF
15828c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_EFLX_AFTH   0
15838c2ecf20Sopenharmony_ci
15848c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
15858c2ecf20Sopenharmony_ci * Register 0x3206: EFLX Indirect Empty/Almost-Empty Status and Limit
15868c2ecf20Sopenharmony_ci *    Bit 15   EFLX_EMPTY
15878c2ecf20Sopenharmony_ci *    Bit 14   EFLX_AEMPTY
15888c2ecf20Sopenharmony_ci *    Bit 13-0 EFLX_AETH
15898c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
15908c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_EFLX_EMPTY   0x8000
15918c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_EFLX_AEMPTY  0x4000
15928c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_EFLX_AETH    0x3FFF
15938c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_EFLX_AETH    0
15948c2ecf20Sopenharmony_ci
15958c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
15968c2ecf20Sopenharmony_ci * Register 0x3207: EFLX Indirect FIFO Cut-Through Threshold
15978c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
15988c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_EFLX_CUT_THRU                 0x3FFF
15998c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITOFF_EFLX_CUT_THRU                 0
16008c2ecf20Sopenharmony_ci
16018c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
16028c2ecf20Sopenharmony_ci * Register 0x320C: EFLX FIFO Overflow Error Enable
16038c2ecf20Sopenharmony_ci *    Bit 0 EFLX_OVFE
16048c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
16058c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_EFLX_OVFE  0x0001
16068c2ecf20Sopenharmony_ci
16078c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
16088c2ecf20Sopenharmony_ci * Register 0x320D: EFLX FIFO Overflow Error Indication
16098c2ecf20Sopenharmony_ci *    Bit 0 EFLX_OVFI
16108c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
16118c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_EFLX_OVFI  0x0001
16128c2ecf20Sopenharmony_ci
16138c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
16148c2ecf20Sopenharmony_ci * Register 0x3210: EFLX Channel Provision
16158c2ecf20Sopenharmony_ci *    Bit 0 EFLX_PROV
16168c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
16178c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_EFLX_PROV  0x0001
16188c2ecf20Sopenharmony_ci
16198c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
16208c2ecf20Sopenharmony_ci * Register 0x3280: PL4IDU Configuration
16218c2ecf20Sopenharmony_ci *    Bit 2 PL4IDU_SYNCH_ON_TRAIN
16228c2ecf20Sopenharmony_ci *    Bit 1 PL4IDU_EN_PORTS
16238c2ecf20Sopenharmony_ci *    Bit 0 PL4IDU_EN_DFWD
16248c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
16258c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4IDU_SYNCH_ON_TRAIN  0x0004
16268c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4IDU_EN_PORTS        0x0002
16278c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4IDU_EN_DFWD         0x0001
16288c2ecf20Sopenharmony_ci
16298c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
16308c2ecf20Sopenharmony_ci * Register 0x3282: PL4IDU Interrupt Mask
16318c2ecf20Sopenharmony_ci *    Bit 1 PL4IDU_DIP4E
16328c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
16338c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4IDU_DIP4E       0x0002
16348c2ecf20Sopenharmony_ci
16358c2ecf20Sopenharmony_ci/*----------------------------------------------------------------------------
16368c2ecf20Sopenharmony_ci * Register 0x3283: PL4IDU Interrupt
16378c2ecf20Sopenharmony_ci *    Bit 1 PL4IDU_DIP4I
16388c2ecf20Sopenharmony_ci *----------------------------------------------------------------------------*/
16398c2ecf20Sopenharmony_ci#define SUNI1x10GEXP_BITMSK_PL4IDU_DIP4I       0x0002
16408c2ecf20Sopenharmony_ci
16418c2ecf20Sopenharmony_ci#endif /* _CXGB_SUNI1x10GEXP_REGS_H_ */
16428c2ecf20Sopenharmony_ci
1643