xref: /onnv-gate/usr/src/uts/common/io/chxge/com/suni1x10gexp_regs.h (revision 3833:45d8d0ee8613)
1*3833Sxw161283 
2*3833Sxw161283 /*
3*3833Sxw161283  * Copyright 1994-2005 The FreeBSD Project. All rights reserved.
4*3833Sxw161283  *
5*3833Sxw161283  * Redistribution and use in source and binary forms, with or without
6*3833Sxw161283  * modification, are permitted provided that the following conditions are met:
7*3833Sxw161283  *
8*3833Sxw161283  * 1. Redistributions of source code must retain the above copyright notice,
9*3833Sxw161283  *    this list of conditions and the following disclaimer.
10*3833Sxw161283  * 2. Redistributions in binary form must reproduce the above copyright notice,
11*3833Sxw161283  *    this list of conditions and the following disclaimer in the documentation
12*3833Sxw161283  *    and/or other materials provided with the distribution.
13*3833Sxw161283  *
14*3833Sxw161283  * THIS SOFTWARE IS PROVIDED BY THE FREEBSD PROJECT ``AS IS'' AND ANY EXPRESS
15*3833Sxw161283  * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16*3833Sxw161283  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
17*3833Sxw161283  * NO EVENT SHALL THE FREEBSD PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
18*3833Sxw161283  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
19*3833Sxw161283  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
20*3833Sxw161283  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
21*3833Sxw161283  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22*3833Sxw161283  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23*3833Sxw161283  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24*3833Sxw161283  *
25*3833Sxw161283  * The views and conclusions contained in the software and documentation are
26*3833Sxw161283  * those of the authors and should not be interpreted as representing official
27*3833Sxw161283  * policies, either expressed or implied, of the FreeBSD Project.
28*3833Sxw161283  */
29*3833Sxw161283 
30*3833Sxw161283 
31*3833Sxw161283 #pragma ident	"%Z%%M%	%I%	%E% SMI"	/* suni1x10gexp_regs.h */
32*3833Sxw161283 
33*3833Sxw161283 #ifndef _SUNI1x10GEXP_REGS_H
34*3833Sxw161283 #define _SUNI1x10GEXP_REGS_H
35*3833Sxw161283 
36*3833Sxw161283 
37*3833Sxw161283 /*
38*3833Sxw161283 ** Space allocated for each Exact Match Filter
39*3833Sxw161283 **     There are 8 filter configurations
40*3833Sxw161283 */
41*3833Sxw161283 #define SUNI1x10GEXP_REG_SIZEOF_MAC_FILTER 0x0003
42*3833Sxw161283 
43*3833Sxw161283 #define mSUNI1x10GEXP_MAC_FILTER_OFFSET(filterId)       ( (filterId) * SUNI1x10GEXP_REG_SIZEOF_MAC_FILTER )
44*3833Sxw161283 
45*3833Sxw161283 /*
46*3833Sxw161283 ** Space allocated for VLAN-Id Filter
47*3833Sxw161283 **      There are 8 filter configurations
48*3833Sxw161283 */
49*3833Sxw161283 #define SUNI1x10GEXP_REG_SIZEOF_MAC_VID_FILTER 0x0001
50*3833Sxw161283 
51*3833Sxw161283 #define mSUNI1x10GEXP_MAC_VID_FILTER_OFFSET(filterId)   ( (filterId) * SUNI1x10GEXP_REG_SIZEOF_MAC_VID_FILTER )
52*3833Sxw161283 
53*3833Sxw161283 /*
54*3833Sxw161283 ** Space allocated for each MSTAT Counter
55*3833Sxw161283 */
56*3833Sxw161283 #define SUNI1x10GEXP_REG_SIZEOF_MSTAT_COUNT 0x0004
57*3833Sxw161283 
58*3833Sxw161283 #define mSUNI1x10GEXP_MSTAT_COUNT_OFFSET(countId)       ( (countId) * SUNI1x10GEXP_REG_SIZEOF_MSTAT_COUNT )
59*3833Sxw161283 
60*3833Sxw161283 
61*3833Sxw161283 /******************************************************************************/
62*3833Sxw161283 /** S/UNI-1x10GE-XP REGISTER ADDRESS MAP                                     **/
63*3833Sxw161283 /******************************************************************************/
64*3833Sxw161283 /* Refer to the Register Bit Masks bellow for the naming of each register and */
65*3833Sxw161283 /* to the S/UNI-1x10GE-XP Data Sheet for the signification of each bit        */
66*3833Sxw161283 /******************************************************************************/
67*3833Sxw161283 
68*3833Sxw161283 
69*3833Sxw161283 #define SUNI1x10GEXP_REG_IDENTIFICATION                                  0x0000
70*3833Sxw161283 #define SUNI1x10GEXP_REG_PRODUCT_REVISION                                0x0001
71*3833Sxw161283 #define SUNI1x10GEXP_REG_CONFIG_AND_RESET_CONTROL                        0x0002
72*3833Sxw161283 #define SUNI1x10GEXP_REG_LOOPBACK_MISC_CTRL                              0x0003
73*3833Sxw161283 #define SUNI1x10GEXP_REG_DEVICE_STATUS                                   0x0004
74*3833Sxw161283 #define SUNI1x10GEXP_REG_GLOBAL_PERFORMANCE_MONITOR_UPDATE               0x0005
75*3833Sxw161283 
76*3833Sxw161283 #define SUNI1x10GEXP_REG_MDIO_COMMAND                                    0x0006
77*3833Sxw161283 #define SUNI1x10GEXP_REG_MDIO_INTERRUPT_ENABLE                           0x0007
78*3833Sxw161283 #define SUNI1x10GEXP_REG_MDIO_INTERRUPT_STATUS                           0x0008
79*3833Sxw161283 #define SUNI1x10GEXP_REG_MMD_PHY_ADDRESS                                 0x0009
80*3833Sxw161283 #define SUNI1x10GEXP_REG_MMD_CONTROL_ADDRESS_DATA                        0x000A
81*3833Sxw161283 #define SUNI1x10GEXP_REG_MDIO_READ_STATUS_DATA                           0x000B
82*3833Sxw161283 
83*3833Sxw161283 #define SUNI1x10GEXP_REG_OAM_INTF_CTRL                                   0x000C
84*3833Sxw161283 #define SUNI1x10GEXP_REG_MASTER_INTERRUPT_STATUS                         0x000D
85*3833Sxw161283 #define SUNI1x10GEXP_REG_GLOBAL_INTERRUPT_ENABLE                         0x000E
86*3833Sxw161283 #define SUNI1x10GEXP_REG_FREE                                            0x000F
87*3833Sxw161283 
88*3833Sxw161283 #define SUNI1x10GEXP_REG_XTEF_MISC_CTRL                                  0x0010
89*3833Sxw161283 #define SUNI1x10GEXP_REG_XRF_MISC_CTRL                                   0x0011
90*3833Sxw161283 
91*3833Sxw161283 #define SUNI1x10GEXP_REG_SERDES_3125_CONFIG_1                            0x0100
92*3833Sxw161283 #define SUNI1x10GEXP_REG_SERDES_3125_CONFIG_2                            0x0101
93*3833Sxw161283 #define SUNI1x10GEXP_REG_SERDES_3125_INTERRUPT_ENABLE                    0x0102
94*3833Sxw161283 #define SUNI1x10GEXP_REG_SERDES_3125_INTERRUPT_VISIBLE                   0x0103
95*3833Sxw161283 #define SUNI1x10GEXP_REG_SERDES_3125_INTERRUPT_STATUS                    0x0104
96*3833Sxw161283 #define SUNI1x10GEXP_REG_SERDES_3125_TEST_CONFIG                         0x0107
97*3833Sxw161283 
98*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_CONFIG_1                                   0x2040
99*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_CONFIG_2                                   0x2041
100*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_CONFIG_3                                   0x2042
101*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_INTERRUPT                                  0x2043
102*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_MAX_FRAME_LENGTH                           0x2045
103*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_SA_15_0                                    0x2046
104*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_SA_31_16                                   0x2047
105*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_SA_47_32                                   0x2048
106*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_RECEIVE_FIFO_THRESHOLD                     0x2049
107*3833Sxw161283 #define mSUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_LOW(filterId) (0x204A + mSUNI1x10GEXP_MAC_FILTER_OFFSET(filterId))
108*3833Sxw161283 #define mSUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_MID(filterId) (0x204B + mSUNI1x10GEXP_MAC_FILTER_OFFSET(filterId))
109*3833Sxw161283 #define mSUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_HIGH(filterId)(0x204C + mSUNI1x10GEXP_MAC_FILTER_OFFSET(filterId))
110*3833Sxw161283 #define mSUNI1x10GEXP_REG_RXXG_EXACT_MATCH_VID(filterId)      (0x2062 + mSUNI1x10GEXP_MAC_VID_FILTER_OFFSET(filterId)
111*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_0_LOW                     0x204A
112*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_0_MID                     0x204B
113*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_0_HIGH                    0x204C
114*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_1_LOW                     0x204D
115*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_1_MID                     0x204E
116*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_1_HIGH                    0x204F
117*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_2_LOW                     0x2050
118*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_2_MID                     0x2051
119*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_2_HIGH                    0x2052
120*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_3_LOW                     0x2053
121*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_3_MID                     0x2054
122*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_3_HIGH                    0x2055
123*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_4_LOW                     0x2056
124*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_4_MID                     0x2057
125*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_4_HIGH                    0x2058
126*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_5_LOW                     0x2059
127*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_5_MID                     0x205A
128*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_5_HIGH                    0x205B
129*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_6_LOW                     0x205C
130*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_6_MID                     0x205D
131*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_6_HIGH                    0x205E
132*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_7_LOW                     0x205F
133*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_7_MID                     0x2060
134*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_7_HIGH                    0x2061
135*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_VID_0                          0x2062
136*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_VID_1                          0x2063
137*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_VID_2                          0x2064
138*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_VID_3                          0x2065
139*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_VID_4                          0x2066
140*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_VID_5                          0x2067
141*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_VID_6                          0x2068
142*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_VID_7                          0x2069
143*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_LOW                         0x206A
144*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDLOW                      0x206B
145*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDHIGH                     0x206C
146*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_HIGH                        0x206D
147*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_ADDRESS_FILTER_CONTROL_0                   0x206E
148*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_ADDRESS_FILTER_CONTROL_1                   0x206F
149*3833Sxw161283 #define SUNI1x10GEXP_REG_RXXG_ADDRESS_FILTER_CONTROL_2                   0x2070
150*3833Sxw161283 
151*3833Sxw161283 #define SUNI1x10GEXP_REG_XRF_PATTERN_GEN_CTRL                            0x2081
152*3833Sxw161283 #define SUNI1x10GEXP_REG_XRF_8BTB_ERR_COUNT_LANE_0                       0x2084
153*3833Sxw161283 #define SUNI1x10GEXP_REG_XRF_8BTB_ERR_COUNT_LANE_1                       0x2085
154*3833Sxw161283 #define SUNI1x10GEXP_REG_XRF_8BTB_ERR_COUNT_LANE_2                       0x2086
155*3833Sxw161283 #define SUNI1x10GEXP_REG_XRF_8BTB_ERR_COUNT_LANE_3                       0x2087
156*3833Sxw161283 #define SUNI1x10GEXP_REG_XRF_INTERRUPT_ENABLE                            0x2088
157*3833Sxw161283 #define SUNI1x10GEXP_REG_XRF_INTERRUPT_STATUS                            0x2089
158*3833Sxw161283 #define SUNI1x10GEXP_REG_XRF_ERR_STATUS                                  0x208A
159*3833Sxw161283 #define SUNI1x10GEXP_REG_XRF_DIAG_INTERRUPT_ENABLE                       0x208B
160*3833Sxw161283 #define SUNI1x10GEXP_REG_XRF_DIAG_INTERRUPT_STATUS                       0x208C
161*3833Sxw161283 #define SUNI1x10GEXP_REG_XRF_CODE_ERR_THRES                              0x2092
162*3833Sxw161283 
163*3833Sxw161283 #define SUNI1x10GEXP_REG_RXOAM_CONFIG                                    0x20C0
164*3833Sxw161283 #define SUNI1x10GEXP_REG_RXOAM_FILTER_1_CONFIG                           0x20C1
165*3833Sxw161283 #define SUNI1x10GEXP_REG_RXOAM_FILTER_2_CONFIG                           0x20C2
166*3833Sxw161283 #define SUNI1x10GEXP_REG_RXOAM_CONFIG_2                                  0x20C3
167*3833Sxw161283 #define SUNI1x10GEXP_REG_RXOAM_HEC_CONFIG                                0x20C4
168*3833Sxw161283 #define SUNI1x10GEXP_REG_RXOAM_HEC_ERR_THRES                             0x20C5
169*3833Sxw161283 #define SUNI1x10GEXP_REG_RXOAM_INTERRUPT_ENABLE                          0x20C7
170*3833Sxw161283 #define SUNI1x10GEXP_REG_RXOAM_INTERRUPT_STATUS                          0x20C8
171*3833Sxw161283 #define SUNI1x10GEXP_REG_RXOAM_STATUS                                    0x20C9
172*3833Sxw161283 #define SUNI1x10GEXP_REG_RXOAM_HEC_ERR_COUNT                             0x20CA
173*3833Sxw161283 #define SUNI1x10GEXP_REG_RXOAM_FIFO_OVERFLOW_COUNT                       0x20CB
174*3833Sxw161283 #define SUNI1x10GEXP_REG_RXOAM_FILTER_MISMATCH_COUNT_LSB                 0x20CC
175*3833Sxw161283 #define SUNI1x10GEXP_REG_RXOAM_FILTER_MISMATCH_COUNT_MSB                 0x20CD
176*3833Sxw161283 #define SUNI1x10GEXP_REG_RXOAM_FILTER_1_MISMATCH_COUNT_LSB               0x20CE
177*3833Sxw161283 #define SUNI1x10GEXP_REG_RXOAM_FILTER_1_MISMATCH_COUNT_MSB               0x20CF
178*3833Sxw161283 #define SUNI1x10GEXP_REG_RXOAM_FILTER_2_MISMATCH_COUNT_LSB               0x20D0
179*3833Sxw161283 #define SUNI1x10GEXP_REG_RXOAM_FILTER_2_MISMATCH_COUNT_MSB               0x20D1
180*3833Sxw161283 #define SUNI1x10GEXP_REG_RXOAM_OAM_EXTRACT_COUNT_LSB                     0x20D2
181*3833Sxw161283 #define SUNI1x10GEXP_REG_RXOAM_OAM_EXTRACT_COUNT_MSB                     0x20D3
182*3833Sxw161283 #define SUNI1x10GEXP_REG_RXOAM_MINI_PACKET_COUNT_LSB                     0x20D4
183*3833Sxw161283 #define SUNI1x10GEXP_REG_RXOAM_MINI_PACKET_COUNT_MSB                     0x20D5
184*3833Sxw161283 #define SUNI1x10GEXP_REG_RXOAM_FILTER_MISMATCH_THRES_LSB                 0x20D6
185*3833Sxw161283 #define SUNI1x10GEXP_REG_RXOAM_FILTER_MISMATCH_THRES_MSB                 0x20D7
186*3833Sxw161283 
187*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_CONTROL                                   0x2100
188*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_ROLLOVER_0                        0x2101
189*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_ROLLOVER_1                        0x2102
190*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_ROLLOVER_2                        0x2103
191*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_ROLLOVER_3                        0x2104
192*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_INTERRUPT_MASK_0                          0x2105
193*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_INTERRUPT_MASK_1                          0x2106
194*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_INTERRUPT_MASK_2                          0x2107
195*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_INTERRUPT_MASK_3                          0x2108
196*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_WRITE_ADDRESS                     0x2109
197*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_WRITE_DATA_LOW                    0x210A
198*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_WRITE_DATA_MIDDLE                 0x210B
199*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_WRITE_DATA_HIGH                   0x210C
200*3833Sxw161283 #define mSUNI1x10GEXP_REG_MSTAT_COUNTER_LOW(countId)   (0x2110 + mSUNI1x10GEXP_MSTAT_COUNT_OFFSET(countId))
201*3833Sxw161283 #define mSUNI1x10GEXP_REG_MSTAT_COUNTER_MID(countId)   (0x2111 + mSUNI1x10GEXP_MSTAT_COUNT_OFFSET(countId))
202*3833Sxw161283 #define mSUNI1x10GEXP_REG_MSTAT_COUNTER_HIGH(countId)  (0x2112 + mSUNI1x10GEXP_MSTAT_COUNT_OFFSET(countId))
203*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_0_LOW                             0x2110
204*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_0_MID                             0x2111
205*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_0_HIGH                            0x2112
206*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_0_RESVD                           0x2113
207*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_1_LOW                             0x2114
208*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_1_MID                             0x2115
209*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_1_HIGH                            0x2116
210*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_1_RESVD                           0x2117
211*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_2_LOW                             0x2118
212*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_2_MID                             0x2119
213*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_2_HIGH                            0x211A
214*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_2_RESVD                           0x211B
215*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_3_LOW                             0x211C
216*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_3_MID                             0x211D
217*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_3_HIGH                            0x211E
218*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_3_RESVD                           0x211F
219*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_4_LOW                             0x2120
220*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_4_MID                             0x2121
221*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_4_HIGH                            0x2122
222*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_4_RESVD                           0x2123
223*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_5_LOW                             0x2124
224*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_5_MID                             0x2125
225*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_5_HIGH                            0x2126
226*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_5_RESVD                           0x2127
227*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_6_LOW                             0x2128
228*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_6_MID                             0x2129
229*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_6_HIGH                            0x212A
230*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_6_RESVD                           0x212B
231*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_7_LOW                             0x212C
232*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_7_MID                             0x212D
233*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_7_HIGH                            0x212E
234*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_7_RESVD                           0x212F
235*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_8_LOW                             0x2130
236*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_8_MID                             0x2131
237*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_8_HIGH                            0x2132
238*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_8_RESVD                           0x2133
239*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_9_LOW                             0x2134
240*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_9_MID                             0x2135
241*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_9_HIGH                            0x2136
242*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_9_RESVD                           0x2137
243*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_10_LOW                            0x2138
244*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_10_MID                            0x2139
245*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_10_HIGH                           0x213A
246*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_10_RESVD                          0x213B
247*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_11_LOW                            0x213C
248*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_11_MID                            0x213D
249*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_11_HIGH                           0x213E
250*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_11_RESVD                          0x213F
251*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_12_LOW                            0x2140
252*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_12_MID                            0x2141
253*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_12_HIGH                           0x2142
254*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_12_RESVD                          0x2143
255*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_13_LOW                            0x2144
256*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_13_MID                            0x2145
257*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_13_HIGH                           0x2146
258*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_13_RESVD                          0x2147
259*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_14_LOW                            0x2148
260*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_14_MID                            0x2149
261*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_14_HIGH                           0x214A
262*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_14_RESVD                          0x214B
263*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_15_LOW                            0x214C
264*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_15_MID                            0x214D
265*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_15_HIGH                           0x214E
266*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_15_RESVD                          0x214F
267*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_16_LOW                            0x2150
268*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_16_MID                            0x2151
269*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_16_HIGH                           0x2152
270*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_16_RESVD                          0x2153
271*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_17_LOW                            0x2154
272*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_17_MID                            0x2155
273*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_17_HIGH                           0x2156
274*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_17_RESVD                          0x2157
275*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_18_LOW                            0x2158
276*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_18_MID                            0x2159
277*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_18_HIGH                           0x215A
278*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_18_RESVD                          0x215B
279*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_19_LOW                            0x215C
280*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_19_MID                            0x215D
281*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_19_HIGH                           0x215E
282*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_19_RESVD                          0x215F
283*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_20_LOW                            0x2160
284*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_20_MID                            0x2161
285*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_20_HIGH                           0x2162
286*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_20_RESVD                          0x2163
287*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_21_LOW                            0x2164
288*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_21_MID                            0x2165
289*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_21_HIGH                           0x2166
290*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_21_RESVD                          0x2167
291*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_22_LOW                            0x2168
292*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_22_MID                            0x2169
293*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_22_HIGH                           0x216A
294*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_22_RESVD                          0x216B
295*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_23_LOW                            0x216C
296*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_23_MID                            0x216D
297*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_23_HIGH                           0x216E
298*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_23_RESVD                          0x216F
299*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_24_LOW                            0x2170
300*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_24_MID                            0x2171
301*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_24_HIGH                           0x2172
302*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_24_RESVD                          0x2173
303*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_25_LOW                            0x2174
304*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_25_MID                            0x2175
305*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_25_HIGH                           0x2176
306*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_25_RESVD                          0x2177
307*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_26_LOW                            0x2178
308*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_26_MID                            0x2179
309*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_26_HIGH                           0x217a
310*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_26_RESVD                          0x217b
311*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_27_LOW                            0x217c
312*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_27_MID                            0x217d
313*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_27_HIGH                           0x217e
314*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_27_RESVD                          0x217f
315*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_28_LOW                            0x2180
316*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_28_MID                            0x2181
317*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_28_HIGH                           0x2182
318*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_28_RESVD                          0x2183
319*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_29_LOW                            0x2184
320*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_29_MID                            0x2185
321*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_29_HIGH                           0x2186
322*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_29_RESVD                          0x2187
323*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_30_LOW                            0x2188
324*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_30_MID                            0x2189
325*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_30_HIGH                           0x218A
326*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_30_RESVD                          0x218B
327*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_31_LOW                            0x218C
328*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_31_MID                            0x218D
329*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_31_HIGH                           0x218E
330*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_31_RESVD                          0x218F
331*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_32_LOW                            0x2190
332*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_32_MID                            0x2191
333*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_32_HIGH                           0x2192
334*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_32_RESVD                          0x2193
335*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_33_LOW                            0x2194
336*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_33_MID                            0x2195
337*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_33_HIGH                           0x2196
338*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_33_RESVD                          0x2197
339*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_34_LOW                            0x2198
340*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_34_MID                            0x2199
341*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_34_HIGH                           0x219A
342*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_34_RESVD                          0x219B
343*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_35_LOW                            0x219C
344*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_35_MID                            0x219D
345*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_35_HIGH                           0x219E
346*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_35_RESVD                          0x219F
347*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_36_LOW                            0x21A0
348*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_36_MID                            0x21A1
349*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_36_HIGH                           0x21A2
350*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_36_RESVD                          0x21A3
351*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_37_LOW                            0x21A4
352*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_37_MID                            0x21A5
353*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_37_HIGH                           0x21A6
354*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_37_RESVD                          0x21A7
355*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_38_LOW                            0x21A8
356*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_38_MID                            0x21A9
357*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_38_HIGH                           0x21AA
358*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_38_RESVD                          0x21AB
359*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_39_LOW                            0x21AC
360*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_39_MID                            0x21AD
361*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_39_HIGH                           0x21AE
362*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_39_RESVD                          0x21AF
363*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_40_LOW                            0x21B0
364*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_40_MID                            0x21B1
365*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_40_HIGH                           0x21B2
366*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_40_RESVD                          0x21B3
367*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_41_LOW                            0x21B4
368*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_41_MID                            0x21B5
369*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_41_HIGH                           0x21B6
370*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_41_RESVD                          0x21B7
371*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_42_LOW                            0x21B8
372*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_42_MID                            0x21B9
373*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_42_HIGH                           0x21BA
374*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_42_RESVD                          0x21BB
375*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_43_LOW                            0x21BC
376*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_43_MID                            0x21BD
377*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_43_HIGH                           0x21BE
378*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_43_RESVD                          0x21BF
379*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_44_LOW                            0x21C0
380*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_44_MID                            0x21C1
381*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_44_HIGH                           0x21C2
382*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_44_RESVD                          0x21C3
383*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_45_LOW                            0x21C4
384*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_45_MID                            0x21C5
385*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_45_HIGH                           0x21C6
386*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_45_RESVD                          0x21C7
387*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_46_LOW                            0x21C8
388*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_46_MID                            0x21C9
389*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_46_HIGH                           0x21CA
390*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_46_RESVD                          0x21CB
391*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_47_LOW                            0x21CC
392*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_47_MID                            0x21CD
393*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_47_HIGH                           0x21CE
394*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_47_RESVD                          0x21CF
395*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_48_LOW                            0x21D0
396*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_48_MID                            0x21D1
397*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_48_HIGH                           0x21D2
398*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_48_RESVD                          0x21D3
399*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_49_LOW                            0x21D4
400*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_49_MID                            0x21D5
401*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_49_HIGH                           0x21D6
402*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_49_RESVD                          0x21D7
403*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_50_LOW                            0x21D8
404*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_50_MID                            0x21D9
405*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_50_HIGH                           0x21DA
406*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_50_RESVD                          0x21DB
407*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_51_LOW                            0x21DC
408*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_51_MID                            0x21DD
409*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_51_HIGH                           0x21DE
410*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_51_RESVD                          0x21DF
411*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_52_LOW                            0x21E0
412*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_52_MID                            0x21E1
413*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_52_HIGH                           0x21E2
414*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_52_RESVD                          0x21E3
415*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_53_LOW                            0x21E4
416*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_53_MID                            0x21E5
417*3833Sxw161283 #define SUNI1x10GEXP_REG_MSTAT_COUNTER_53_HIGH                           0x21E6
418*3833Sxw161283 #define SUNI1x10GEXP_CNTR_MAC_ETHERNET_NUM                               51
419*3833Sxw161283 
420*3833Sxw161283 #define SUNI1x10GEXP_REG_IFLX_GLOBAL_CONFIG                              0x2200
421*3833Sxw161283 #define SUNI1x10GEXP_REG_IFLX_CHANNEL_PROVISION                          0x2201
422*3833Sxw161283 #define SUNI1x10GEXP_REG_IFLX_FIFO_OVERFLOW_ENABLE                       0x2209
423*3833Sxw161283 #define SUNI1x10GEXP_REG_IFLX_FIFO_OVERFLOW_INTERRUPT                    0x220A
424*3833Sxw161283 #define SUNI1x10GEXP_REG_IFLX_INDIR_CHANNEL_ADDRESS                      0x220D
425*3833Sxw161283 #define SUNI1x10GEXP_REG_IFLX_INDIR_LOGICAL_FIFO_LOW_LIMIT_PROVISION     0x220E
426*3833Sxw161283 #define SUNI1x10GEXP_REG_IFLX_INDIR_LOGICAL_FIFO_HIGH_LIMIT              0x220F
427*3833Sxw161283 #define SUNI1x10GEXP_REG_IFLX_INDIR_FULL_ALMOST_FULL_STATUS_LIMIT        0x2210
428*3833Sxw161283 #define SUNI1x10GEXP_REG_IFLX_INDIR_EMPTY_ALMOST_EMPTY_STATUS_LIMIT      0x2211
429*3833Sxw161283 
430*3833Sxw161283 #define SUNI1x10GEXP_REG_PL4MOS_CONFIG                                   0x2240
431*3833Sxw161283 #define SUNI1x10GEXP_REG_PL4MOS_MASK                                     0x2241
432*3833Sxw161283 #define SUNI1x10GEXP_REG_PL4MOS_FAIRNESS_MASKING                         0x2242
433*3833Sxw161283 #define SUNI1x10GEXP_REG_PL4MOS_MAXBURST1                                0x2243
434*3833Sxw161283 #define SUNI1x10GEXP_REG_PL4MOS_MAXBURST2                                0x2244
435*3833Sxw161283 #define SUNI1x10GEXP_REG_PL4MOS_TRANSFER_SIZE                            0x2245
436*3833Sxw161283 
437*3833Sxw161283 #define SUNI1x10GEXP_REG_PL4ODP_CONFIG                                   0x2280
438*3833Sxw161283 #define SUNI1x10GEXP_REG_PL4ODP_INTERRUPT_MASK                           0x2282
439*3833Sxw161283 #define SUNI1x10GEXP_REG_PL4ODP_INTERRUPT                                0x2283
440*3833Sxw161283 #define SUNI1x10GEXP_REG_PL4ODP_CONFIG_MAX_T                             0x2284
441*3833Sxw161283 
442*3833Sxw161283 #define SUNI1x10GEXP_REG_PL4IO_LOCK_DETECT_STATUS                        0x2300
443*3833Sxw161283 #define SUNI1x10GEXP_REG_PL4IO_LOCK_DETECT_CHANGE                        0x2301
444*3833Sxw161283 #define SUNI1x10GEXP_REG_PL4IO_LOCK_DETECT_MASK                          0x2302
445*3833Sxw161283 #define SUNI1x10GEXP_REG_PL4IO_LOCK_DETECT_LIMITS                        0x2303
446*3833Sxw161283 #define SUNI1x10GEXP_REG_PL4IO_CALENDAR_REPETITIONS                      0x2304
447*3833Sxw161283 #define SUNI1x10GEXP_REG_PL4IO_CONFIG                                    0x2305
448*3833Sxw161283 
449*3833Sxw161283 #define SUNI1x10GEXP_REG_TXXG_CONFIG_1                                   0x3040
450*3833Sxw161283 #define SUNI1x10GEXP_REG_TXXG_CONFIG_2                                   0x3041
451*3833Sxw161283 #define SUNI1x10GEXP_REG_TXXG_CONFIG_3                                   0x3042
452*3833Sxw161283 #define SUNI1x10GEXP_REG_TXXG_INTERRUPT                                  0x3043
453*3833Sxw161283 #define SUNI1x10GEXP_REG_TXXG_STATUS                                     0x3044
454*3833Sxw161283 #define SUNI1x10GEXP_REG_TXXG_MAX_FRAME_SIZE                             0x3045
455*3833Sxw161283 #define SUNI1x10GEXP_REG_TXXG_MIN_FRAME_SIZE                             0x3046
456*3833Sxw161283 #define SUNI1x10GEXP_REG_TXXG_SA_15_0                                    0x3047
457*3833Sxw161283 #define SUNI1x10GEXP_REG_TXXG_SA_31_16                                   0x3048
458*3833Sxw161283 #define SUNI1x10GEXP_REG_TXXG_SA_47_32                                   0x3049
459*3833Sxw161283 #define SUNI1x10GEXP_REG_TXXG_PAUSE_TIMER                                0x304D
460*3833Sxw161283 #define SUNI1x10GEXP_REG_TXXG_PAUSE_TIMER_INTERVAL                       0x304E
461*3833Sxw161283 #define SUNI1x10GEXP_REG_TXXG_FILTER_ERROR_COUNTER                       0x3051
462*3833Sxw161283 #define SUNI1x10GEXP_REG_TXXG_PAUSE_QUANTUM_CONFIG                       0x3052
463*3833Sxw161283 
464*3833Sxw161283 #define SUNI1x10GEXP_REG_XTEF_CTRL                                       0x3080
465*3833Sxw161283 #define SUNI1x10GEXP_REG_XTEF_INTERRUPT_STATUS                           0x3084
466*3833Sxw161283 #define SUNI1x10GEXP_REG_XTEF_INTERRUPT_ENABLE                           0x3085
467*3833Sxw161283 #define SUNI1x10GEXP_REG_XTEF_VISIBILITY                                 0x3086
468*3833Sxw161283 
469*3833Sxw161283 #define SUNI1x10GEXP_REG_TXOAM_OAM_CONFIG                                0x30C0
470*3833Sxw161283 #define SUNI1x10GEXP_REG_TXOAM_MINI_RATE_CONFIG                          0x30C1
471*3833Sxw161283 #define SUNI1x10GEXP_REG_TXOAM_MINI_GAP_FIFO_CONFIG                      0x30C2
472*3833Sxw161283 #define SUNI1x10GEXP_REG_TXOAM_P1P2_STATIC_VALUES                        0x30C3
473*3833Sxw161283 #define SUNI1x10GEXP_REG_TXOAM_P3P4_STATIC_VALUES                        0x30C4
474*3833Sxw161283 #define SUNI1x10GEXP_REG_TXOAM_P5P6_STATIC_VALUES                        0x30C5
475*3833Sxw161283 #define SUNI1x10GEXP_REG_TXOAM_INTERRUPT_ENABLE                          0x30C6
476*3833Sxw161283 #define SUNI1x10GEXP_REG_TXOAM_INTERRUPT_STATUS                          0x30C7
477*3833Sxw161283 #define SUNI1x10GEXP_REG_TXOAM_INSERT_COUNT_LSB                          0x30C8
478*3833Sxw161283 #define SUNI1x10GEXP_REG_TXOAM_INSERT_COUNT_MSB                          0x30C9
479*3833Sxw161283 #define SUNI1x10GEXP_REG_TXOAM_OAM_MINI_COUNT_LSB                        0x30CA
480*3833Sxw161283 #define SUNI1x10GEXP_REG_TXOAM_OAM_MINI_COUNT_MSB                        0x30CB
481*3833Sxw161283 #define SUNI1x10GEXP_REG_TXOAM_P1P2_MINI_MASK                            0x30CC
482*3833Sxw161283 #define SUNI1x10GEXP_REG_TXOAM_P3P4_MINI_MASK                            0x30CD
483*3833Sxw161283 #define SUNI1x10GEXP_REG_TXOAM_P5P6_MINI_MASK                            0x30CE
484*3833Sxw161283 #define SUNI1x10GEXP_REG_TXOAM_COSET                                     0x30CF
485*3833Sxw161283 #define SUNI1x10GEXP_REG_TXOAM_EMPTY_FIFO_INS_OP_CNT_LSB                 0x30D0
486*3833Sxw161283 #define SUNI1x10GEXP_REG_TXOAM_EMPTY_FIFO_INS_OP_CNT_MSB                 0x30D1
487*3833Sxw161283 #define SUNI1x10GEXP_REG_TXOAM_STATIC_VALUE_MINI_COUNT_LSB               0x30D2
488*3833Sxw161283 #define SUNI1x10GEXP_REG_TXOAM_STATIC_VALUE_MINI_COUNT_MSB               0x30D3
489*3833Sxw161283 
490*3833Sxw161283 
491*3833Sxw161283 #define SUNI1x10GEXP_REG_EFLX_GLOBAL_CONFIG                              0x3200
492*3833Sxw161283 #define SUNI1x10GEXP_REG_EFLX_ERCU_GLOBAL_STATUS                         0x3201
493*3833Sxw161283 #define SUNI1x10GEXP_REG_EFLX_INDIR_CHANNEL_ADDRESS                      0x3202
494*3833Sxw161283 #define SUNI1x10GEXP_REG_EFLX_INDIR_FIFO_LOW_LIMIT                       0x3203
495*3833Sxw161283 #define SUNI1x10GEXP_REG_EFLX_INDIR_FIFO_HIGH_LIMIT                      0x3204
496*3833Sxw161283 #define SUNI1x10GEXP_REG_EFLX_INDIR_FULL_ALMOST_FULL_STATUS_AND_LIMIT    0x3205
497*3833Sxw161283 #define SUNI1x10GEXP_REG_EFLX_INDIR_EMPTY_ALMOST_EMPTY_STATUS_AND_LIMIT  0x3206
498*3833Sxw161283 #define SUNI1x10GEXP_REG_EFLX_INDIR_FIFO_CUT_THROUGH_THRESHOLD           0x3207
499*3833Sxw161283 #define SUNI1x10GEXP_REG_EFLX_FIFO_OVERFLOW_ERROR_ENABLE                 0x320C
500*3833Sxw161283 #define SUNI1x10GEXP_REG_EFLX_FIFO_OVERFLOW_ERROR_INDICATION             0x320D
501*3833Sxw161283 #define SUNI1x10GEXP_REG_EFLX_CHANNEL_PROVISION                          0x3210
502*3833Sxw161283 
503*3833Sxw161283 #define SUNI1x10GEXP_REG_PL4IDU_CONFIG                                   0x3280
504*3833Sxw161283 #define SUNI1x10GEXP_REG_PL4IDU_INTERRUPT_MASK                           0x3282
505*3833Sxw161283 #define SUNI1x10GEXP_REG_PL4IDU_INTERRUPT                                0x3283
506*3833Sxw161283 
507*3833Sxw161283 
508*3833Sxw161283 /*----------------------------------------*/
509*3833Sxw161283 #define SUNI1x10GEXP_REG_MAX_OFFSET                                      0x3480
510*3833Sxw161283 
511*3833Sxw161283 /******************************************************************************/
512*3833Sxw161283 /*                 -- End register offset definitions --                      */
513*3833Sxw161283 /******************************************************************************/
514*3833Sxw161283 
515*3833Sxw161283 /******************************************************************************/
516*3833Sxw161283 /** SUNI-1x10GE-XP REGISTER BIT MASKS                                        **/
517*3833Sxw161283 /******************************************************************************/
518*3833Sxw161283 
519*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_BITS_1   0x00001
520*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_BITS_2   0x00003
521*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_BITS_3   0x00007
522*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_BITS_4   0x0000f
523*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_BITS_5   0x0001f
524*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_BITS_6   0x0003f
525*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_BITS_7   0x0007f
526*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_BITS_8   0x000ff
527*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_BITS_9   0x001ff
528*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_BITS_10  0x003ff
529*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_BITS_11  0x007ff
530*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_BITS_12  0x00fff
531*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_BITS_13  0x01fff
532*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_BITS_14  0x03fff
533*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_BITS_15  0x07fff
534*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_BITS_16  0x0ffff
535*3833Sxw161283 
536*3833Sxw161283 #define mSUNI1x10GEXP_CLR_MSBITS_1(v)  ((v) & SUNI1x10GEXP_BITMSK_BITS_15)
537*3833Sxw161283 #define mSUNI1x10GEXP_CLR_MSBITS_2(v)  ((v) & SUNI1x10GEXP_BITMSK_BITS_14)
538*3833Sxw161283 #define mSUNI1x10GEXP_CLR_MSBITS_3(v)  ((v) & SUNI1x10GEXP_BITMSK_BITS_13)
539*3833Sxw161283 #define mSUNI1x10GEXP_CLR_MSBITS_4(v)  ((v) & SUNI1x10GEXP_BITMSK_BITS_12)
540*3833Sxw161283 #define mSUNI1x10GEXP_CLR_MSBITS_5(v)  ((v) & SUNI1x10GEXP_BITMSK_BITS_11)
541*3833Sxw161283 #define mSUNI1x10GEXP_CLR_MSBITS_6(v)  ((v) & SUNI1x10GEXP_BITMSK_BITS_10)
542*3833Sxw161283 #define mSUNI1x10GEXP_CLR_MSBITS_7(v)  ((v) & SUNI1x10GEXP_BITMSK_BITS_9)
543*3833Sxw161283 #define mSUNI1x10GEXP_CLR_MSBITS_8(v)  ((v) & SUNI1x10GEXP_BITMSK_BITS_8)
544*3833Sxw161283 #define mSUNI1x10GEXP_CLR_MSBITS_9(v)  ((v) & SUNI1x10GEXP_BITMSK_BITS_7)
545*3833Sxw161283 #define mSUNI1x10GEXP_CLR_MSBITS_10(v) ((v) & SUNI1x10GEXP_BITMSK_BITS_6)
546*3833Sxw161283 #define mSUNI1x10GEXP_CLR_MSBITS_11(v) ((v) & SUNI1x10GEXP_BITMSK_BITS_5)
547*3833Sxw161283 #define mSUNI1x10GEXP_CLR_MSBITS_12(v) ((v) & SUNI1x10GEXP_BITMSK_BITS_4)
548*3833Sxw161283 #define mSUNI1x10GEXP_CLR_MSBITS_13(v) ((v) & SUNI1x10GEXP_BITMSK_BITS_3)
549*3833Sxw161283 #define mSUNI1x10GEXP_CLR_MSBITS_14(v) ((v) & SUNI1x10GEXP_BITMSK_BITS_2)
550*3833Sxw161283 #define mSUNI1x10GEXP_CLR_MSBITS_15(v) ((v) & SUNI1x10GEXP_BITMSK_BITS_1)
551*3833Sxw161283 
552*3833Sxw161283 #define mSUNI1x10GEXP_GET_BIT(val, bitMsk) (((val)&(bitMsk)) ? 1:0)
553*3833Sxw161283 
554*3833Sxw161283 
555*3833Sxw161283 
556*3833Sxw161283 /*----------------------------------------------------------------------------
557*3833Sxw161283  * Register 0x0001: S/UNI-1x10GE-XP Product Revision
558*3833Sxw161283  *    Bit 3-0  REVISION
559*3833Sxw161283  *----------------------------------------------------------------------------*/
560*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_REVISION  0x000F
561*3833Sxw161283 
562*3833Sxw161283 /*----------------------------------------------------------------------------
563*3833Sxw161283  * Register 0x0002: S/UNI-1x10GE-XP Configuration and Reset Control
564*3833Sxw161283  *    Bit 2  XAUI_ARESETB
565*3833Sxw161283  *    Bit 1  PL4_ARESETB
566*3833Sxw161283  *    Bit 0  DRESETB
567*3833Sxw161283  *----------------------------------------------------------------------------*/
568*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_XAUI_ARESET  0x0004
569*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4_ARESET   0x0002
570*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_DRESETB      0x0001
571*3833Sxw161283 
572*3833Sxw161283 /*----------------------------------------------------------------------------
573*3833Sxw161283  * Register 0x0003: S/UNI-1x10GE-XP Loop Back and Miscellaneous Control
574*3833Sxw161283  *    Bit 11  PL4IO_OUTCLKSEL
575*3833Sxw161283  *    Bit 9   SYSPCSLB
576*3833Sxw161283  *    Bit 8   LINEPCSLB
577*3833Sxw161283  *    Bit 7   MSTAT_BYPASS
578*3833Sxw161283  *    Bit 6   RXXG_BYPASS
579*3833Sxw161283  *    Bit 5   TXXG_BYPASS
580*3833Sxw161283  *    Bit 4   SOP_PAD_EN
581*3833Sxw161283  *    Bit 1   LOS_INV
582*3833Sxw161283  *    Bit 0   OVERRIDE_LOS
583*3833Sxw161283  *----------------------------------------------------------------------------*/
584*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4IO_OUTCLKSEL  0x0800
585*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_SYSPCSLB         0x0200
586*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_LINEPCSLB        0x0100
587*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_MSTAT_BYPASS     0x0080
588*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXXG_BYPASS      0x0040
589*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXXG_BYPASS      0x0020
590*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_SOP_PAD_EN       0x0010
591*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_LOS_INV          0x0002
592*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_OVERRIDE_LOS     0x0001
593*3833Sxw161283 
594*3833Sxw161283 /*----------------------------------------------------------------------------
595*3833Sxw161283  * Register 0x0004: S/UNI-1x10GE-XP Device Status
596*3833Sxw161283  *    Bit 9 TOP_SXRA_EXPIRED
597*3833Sxw161283  *    Bit 8 TOP_MDIO_BUSY
598*3833Sxw161283  *    Bit 7 TOP_DTRB
599*3833Sxw161283  *    Bit 6 TOP_EXPIRED
600*3833Sxw161283  *    Bit 5 TOP_PAUSED
601*3833Sxw161283  *    Bit 4 TOP_PL4_ID_DOOL
602*3833Sxw161283  *    Bit 3 TOP_PL4_IS_DOOL
603*3833Sxw161283  *    Bit 2 TOP_PL4_ID_ROOL
604*3833Sxw161283  *    Bit 1 TOP_PL4_IS_ROOL
605*3833Sxw161283  *    Bit 0 TOP_PL4_OUT_ROOL
606*3833Sxw161283  *----------------------------------------------------------------------------*/
607*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TOP_SXRA_EXPIRED  0x0200
608*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TOP_MDIO_BUSY     0x0100
609*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TOP_DTRB          0x0080
610*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TOP_EXPIRED       0x0040
611*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TOP_PAUSED        0x0020
612*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TOP_PL4_ID_DOOL   0x0010
613*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TOP_PL4_IS_DOOL   0x0008
614*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TOP_PL4_ID_ROOL   0x0004
615*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TOP_PL4_IS_ROOL   0x0002
616*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TOP_PL4_OUT_ROOL  0x0001
617*3833Sxw161283 
618*3833Sxw161283 /*----------------------------------------------------------------------------
619*3833Sxw161283  * Register 0x0005: Global Performance Update and Clock Monitors
620*3833Sxw161283  *    Bit 15 TIP
621*3833Sxw161283  *    Bit 8  XAUI_REF_CLKA
622*3833Sxw161283  *    Bit 7  RXLANE3CLKA
623*3833Sxw161283  *    Bit 6  RXLANE2CLKA
624*3833Sxw161283  *    Bit 5  RXLANE1CLKA
625*3833Sxw161283  *    Bit 4  RXLANE0CLKA
626*3833Sxw161283  *    Bit 3  CSUCLKA
627*3833Sxw161283  *    Bit 2  TDCLKA
628*3833Sxw161283  *    Bit 1  RSCLKA
629*3833Sxw161283  *    Bit 0  RDCLKA
630*3833Sxw161283  *----------------------------------------------------------------------------*/
631*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TIP            0x8000
632*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_XAUI_REF_CLKA  0x0100
633*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXLANE3CLKA    0x0080
634*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXLANE2CLKA    0x0040
635*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXLANE1CLKA    0x0020
636*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXLANE0CLKA    0x0010
637*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_CSUCLKA        0x0008
638*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TDCLKA         0x0004
639*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RSCLKA         0x0002
640*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RDCLKA         0x0001
641*3833Sxw161283 
642*3833Sxw161283 /*----------------------------------------------------------------------------
643*3833Sxw161283  * Register 0x0006: MDIO Command
644*3833Sxw161283  *    Bit 4 MDIO_RDINC
645*3833Sxw161283  *    Bit 3 MDIO_RSTAT
646*3833Sxw161283  *    Bit 2 MDIO_LCTLD
647*3833Sxw161283  *    Bit 1 MDIO_LCTLA
648*3833Sxw161283  *    Bit 0 MDIO_SPRE
649*3833Sxw161283  *----------------------------------------------------------------------------*/
650*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_MDIO_RDINC  0x0010
651*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_MDIO_RSTAT  0x0008
652*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_MDIO_LCTLD  0x0004
653*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_MDIO_LCTLA  0x0002
654*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_MDIO_SPRE   0x0001
655*3833Sxw161283 
656*3833Sxw161283 /*----------------------------------------------------------------------------
657*3833Sxw161283  * Register 0x0007: MDIO Interrupt Enable
658*3833Sxw161283  *    Bit 0 MDIO_BUSY_EN
659*3833Sxw161283  *----------------------------------------------------------------------------*/
660*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_MDIO_BUSY_EN  0x0001
661*3833Sxw161283 
662*3833Sxw161283 /*----------------------------------------------------------------------------
663*3833Sxw161283  * Register 0x0008: MDIO Interrupt Status
664*3833Sxw161283  *    Bit 0 MDIO_BUSYI
665*3833Sxw161283  *----------------------------------------------------------------------------*/
666*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_MDIO_BUSYI  0x0001
667*3833Sxw161283 
668*3833Sxw161283 /*----------------------------------------------------------------------------
669*3833Sxw161283  * Register 0x0009: MMD PHY Address
670*3833Sxw161283  *    Bit 12-8 MDIO_DEVADR
671*3833Sxw161283  *    Bit 4-0 MDIO_PRTADR
672*3833Sxw161283  *----------------------------------------------------------------------------*/
673*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_MDIO_DEVADR  0x1F00
674*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_MDIO_DEVADR  8
675*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_MDIO_PRTADR  0x001F
676*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_MDIO_PRTADR  0
677*3833Sxw161283 
678*3833Sxw161283 /*----------------------------------------------------------------------------
679*3833Sxw161283  * Register 0x000C: OAM Interface Control
680*3833Sxw161283  *    Bit 6 MDO_OD_ENB
681*3833Sxw161283  *    Bit 5 MDI_INV
682*3833Sxw161283  *    Bit 4 MDI_SEL
683*3833Sxw161283  *    Bit 3 RXOAMEN
684*3833Sxw161283  *    Bit 2 RXOAMCLKEN
685*3833Sxw161283  *    Bit 1 TXOAMEN
686*3833Sxw161283  *    Bit 0 TXOAMCLKEN
687*3833Sxw161283  *----------------------------------------------------------------------------*/
688*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_MDO_OD_ENB  0x0040
689*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_MDI_INV     0x0020
690*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_MDI_SEL     0x0010
691*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAMEN     0x0008
692*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAMCLKEN  0x0004
693*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXOAMEN     0x0002
694*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXOAMCLKEN  0x0001
695*3833Sxw161283 
696*3833Sxw161283 /*----------------------------------------------------------------------------
697*3833Sxw161283  * Register 0x000D: S/UNI-1x10GE-XP Master Interrupt Status
698*3833Sxw161283  *    Bit 15 TOP_PL4IO_INT
699*3833Sxw161283  *    Bit 14 TOP_IRAM_INT
700*3833Sxw161283  *    Bit 13 TOP_ERAM_INT
701*3833Sxw161283  *    Bit 12 TOP_XAUI_INT
702*3833Sxw161283  *    Bit 11 TOP_MSTAT_INT
703*3833Sxw161283  *    Bit 10 TOP_RXXG_INT
704*3833Sxw161283  *    Bit 9 TOP_TXXG_INT
705*3833Sxw161283  *    Bit 8 TOP_XRF_INT
706*3833Sxw161283  *    Bit 7 TOP_XTEF_INT
707*3833Sxw161283  *    Bit 6 TOP_MDIO_BUSY_INT
708*3833Sxw161283  *    Bit 5 TOP_RXOAM_INT
709*3833Sxw161283  *    Bit 4 TOP_TXOAM_INT
710*3833Sxw161283  *    Bit 3 TOP_IFLX_INT
711*3833Sxw161283  *    Bit 2 TOP_EFLX_INT
712*3833Sxw161283  *    Bit 1 TOP_PL4ODP_INT
713*3833Sxw161283  *    Bit 0 TOP_PL4IDU_INT
714*3833Sxw161283  *----------------------------------------------------------------------------*/
715*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TOP_PL4IO_INT      0x8000
716*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TOP_IRAM_INT       0x4000
717*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TOP_ERAM_INT       0x2000
718*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TOP_XAUI_INT       0x1000
719*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TOP_MSTAT_INT      0x0800
720*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TOP_RXXG_INT       0x0400
721*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TOP_TXXG_INT       0x0200
722*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TOP_XRF_INT        0x0100
723*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TOP_XTEF_INT       0x0080
724*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TOP_MDIO_BUSY_INT  0x0040
725*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TOP_RXOAM_INT      0x0020
726*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TOP_TXOAM_INT      0x0010
727*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TOP_IFLX_INT       0x0008
728*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TOP_EFLX_INT       0x0004
729*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TOP_PL4ODP_INT     0x0002
730*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TOP_PL4IDU_INT     0x0001
731*3833Sxw161283 
732*3833Sxw161283 /*----------------------------------------------------------------------------
733*3833Sxw161283  * Register 0x000E:PM3393 Global interrupt enable
734*3833Sxw161283  *    Bit 15 TOP_INTE
735*3833Sxw161283  *----------------------------------------------------------------------------*/
736*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TOP_INTE  0x8000
737*3833Sxw161283 
738*3833Sxw161283 /*----------------------------------------------------------------------------
739*3833Sxw161283  * Register 0x0010: XTEF Miscellaneous Control
740*3833Sxw161283  *    Bit 7 RF_VAL
741*3833Sxw161283  *    Bit 6 RF_OVERRIDE
742*3833Sxw161283  *    Bit 5 LF_VAL
743*3833Sxw161283  *    Bit 4 LF_OVERRIDE
744*3833Sxw161283  *----------------------------------------------------------------------------*/
745*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RF_VAL             0x0080
746*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RF_OVERRIDE        0x0040
747*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_LF_VAL             0x0020
748*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_LF_OVERRIDE        0x0010
749*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_LFRF_OVERRIDE_VAL  0x00F0
750*3833Sxw161283 
751*3833Sxw161283 /*----------------------------------------------------------------------------
752*3833Sxw161283  * Register 0x0011: XRF Miscellaneous Control
753*3833Sxw161283  *    Bit 6-4 EN_IDLE_REP
754*3833Sxw161283  *----------------------------------------------------------------------------*/
755*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_EN_IDLE_REP  0x0070
756*3833Sxw161283 
757*3833Sxw161283 /*----------------------------------------------------------------------------
758*3833Sxw161283  * Register 0x0100: SERDES 3125 Configuration Register 1
759*3833Sxw161283  *    Bit 10 RXEQB_3
760*3833Sxw161283  *    Bit 8  RXEQB_2
761*3833Sxw161283  *    Bit 6  RXEQB_1
762*3833Sxw161283  *    Bit 4  RXEQB_0
763*3833Sxw161283  *----------------------------------------------------------------------------*/
764*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXEQB    0x0FF0
765*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_RXEQB_3  10
766*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_RXEQB_2  8
767*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_RXEQB_1  6
768*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_RXEQB_0  4
769*3833Sxw161283 
770*3833Sxw161283 /*----------------------------------------------------------------------------
771*3833Sxw161283  * Register 0x0101: SERDES 3125 Configuration Register 2
772*3833Sxw161283  *    Bit 12 YSEL
773*3833Sxw161283  *    Bit  7 PRE_EMPH_3
774*3833Sxw161283  *    Bit  6 PRE_EMPH_2
775*3833Sxw161283  *    Bit  5 PRE_EMPH_1
776*3833Sxw161283  *    Bit  4 PRE_EMPH_0
777*3833Sxw161283  *----------------------------------------------------------------------------*/
778*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_YSEL        0x1000
779*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PRE_EMPH    0x00F0
780*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PRE_EMPH_3  0x0080
781*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PRE_EMPH_2  0x0040
782*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PRE_EMPH_1  0x0020
783*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PRE_EMPH_0  0x0010
784*3833Sxw161283 
785*3833Sxw161283 /*----------------------------------------------------------------------------
786*3833Sxw161283  * Register 0x0102: SERDES 3125 Interrupt Enable Register
787*3833Sxw161283  *    Bit 3 LASIE
788*3833Sxw161283  *    Bit 2 SPLL_RAE
789*3833Sxw161283  *    Bit 1 MPLL_RAE
790*3833Sxw161283  *    Bit 0 PLL_LOCKE
791*3833Sxw161283  *----------------------------------------------------------------------------*/
792*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_LASIE      0x0008
793*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_SPLL_RAE   0x0004
794*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_MPLL_RAE   0x0002
795*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PLL_LOCKE  0x0001
796*3833Sxw161283 
797*3833Sxw161283 /*----------------------------------------------------------------------------
798*3833Sxw161283  * Register 0x0103: SERDES 3125 Interrupt Visibility Register
799*3833Sxw161283  *    Bit 3 LASIV
800*3833Sxw161283  *    Bit 2 SPLL_RAV
801*3833Sxw161283  *    Bit 1 MPLL_RAV
802*3833Sxw161283  *    Bit 0 PLL_LOCKV
803*3833Sxw161283  *----------------------------------------------------------------------------*/
804*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_LASIV      0x0008
805*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_SPLL_RAV   0x0004
806*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_MPLL_RAV   0x0002
807*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PLL_LOCKV  0x0001
808*3833Sxw161283 
809*3833Sxw161283 /*----------------------------------------------------------------------------
810*3833Sxw161283  * Register 0x0104: SERDES 3125 Interrupt Status Register
811*3833Sxw161283  *    Bit 3 LASII
812*3833Sxw161283  *    Bit 2 SPLL_RAI
813*3833Sxw161283  *    Bit 1 MPLL_RAI
814*3833Sxw161283  *    Bit 0 PLL_LOCKI
815*3833Sxw161283  *----------------------------------------------------------------------------*/
816*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_LASII      0x0008
817*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_SPLL_RAI   0x0004
818*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_MPLL_RAI   0x0002
819*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PLL_LOCKI  0x0001
820*3833Sxw161283 
821*3833Sxw161283 /*----------------------------------------------------------------------------
822*3833Sxw161283  * Register 0x0107: SERDES 3125 Test Configuration
823*3833Sxw161283  *    Bit 12 DUALTX
824*3833Sxw161283  *    Bit 10 HC_1
825*3833Sxw161283  *    Bit  9 HC_0
826*3833Sxw161283  *----------------------------------------------------------------------------*/
827*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_DUALTX  0x1000
828*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_HC      0x0600
829*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_HC_0    9
830*3833Sxw161283 
831*3833Sxw161283 /*----------------------------------------------------------------------------
832*3833Sxw161283  * Register 0x2040: RXXG Configuration 1
833*3833Sxw161283  *    Bit 15  RXXG_RXEN
834*3833Sxw161283  *    Bit 14  RXXG_ROCF
835*3833Sxw161283  *    Bit 13  RXXG_PAD_STRIP
836*3833Sxw161283  *    Bit 10  RXXG_PUREP
837*3833Sxw161283  *    Bit 9   RXXG_LONGP
838*3833Sxw161283  *    Bit 8   RXXG_PARF
839*3833Sxw161283  *    Bit 7   RXXG_FLCHK
840*3833Sxw161283  *    Bit 5   RXXG_PASS_CTRL
841*3833Sxw161283  *    Bit 3   RXXG_CRC_STRIP
842*3833Sxw161283  *    Bit 2-0 RXXG_MIFG
843*3833Sxw161283  *----------------------------------------------------------------------------*/
844*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXXG_RXEN       0x8000
845*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXXG_ROCF       0x4000
846*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXXG_PAD_STRIP  0x2000
847*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXXG_PUREP      0x0400
848*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXXG_LONGP      0x0200
849*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXXG_PARF       0x0100
850*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXXG_FLCHK      0x0080
851*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXXG_PASS_CTRL  0x0020
852*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXXG_CRC_STRIP  0x0008
853*3833Sxw161283 
854*3833Sxw161283 /*----------------------------------------------------------------------------
855*3833Sxw161283  * Register 0x02041: RXXG Configuration 2
856*3833Sxw161283  *    Bit 7-0 RXXG_HDRSIZE
857*3833Sxw161283  *----------------------------------------------------------------------------*/
858*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXXG_HDRSIZE  0x00FF
859*3833Sxw161283 
860*3833Sxw161283 /*----------------------------------------------------------------------------
861*3833Sxw161283  * Register 0x2042: RXXG Configuration 3
862*3833Sxw161283  *    Bit 15 RXXG_MIN_LERRE
863*3833Sxw161283  *    Bit 14 RXXG_MAX_LERRE
864*3833Sxw161283  *    Bit 12 RXXG_LINE_ERRE
865*3833Sxw161283  *    Bit 10 RXXG_RX_OVRE
866*3833Sxw161283  *    Bit 9  RXXG_ADR_FILTERE
867*3833Sxw161283  *    Bit 8  RXXG_ERR_FILTERE
868*3833Sxw161283  *    Bit 5  RXXG_PRMB_ERRE
869*3833Sxw161283  *----------------------------------------------------------------------------*/
870*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXXG_MIN_LERRE     0x8000
871*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXXG_MAX_LERRE     0x4000
872*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXXG_LINE_ERRE     0x1000
873*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXXG_RX_OVRE       0x0400
874*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXXG_ADR_FILTERE   0x0200
875*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXXG_ERR_FILTERRE  0x0100
876*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXXG_PRMB_ERRE     0x0020
877*3833Sxw161283 
878*3833Sxw161283 /*----------------------------------------------------------------------------
879*3833Sxw161283  * Register 0x2043: RXXG Interrupt
880*3833Sxw161283  *    Bit 15 RXXG_MIN_LERRI
881*3833Sxw161283  *    Bit 14 RXXG_MAX_LERRI
882*3833Sxw161283  *    Bit 12 RXXG_LINE_ERRI
883*3833Sxw161283  *    Bit 10 RXXG_RX_OVRI
884*3833Sxw161283  *    Bit 9  RXXG_ADR_FILTERI
885*3833Sxw161283  *    Bit 8  RXXG_ERR_FILTERI
886*3833Sxw161283  *    Bit 5  RXXG_PRMB_ERRE
887*3833Sxw161283  *----------------------------------------------------------------------------*/
888*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXXG_MIN_LERRI    0x8000
889*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXXG_MAX_LERRI    0x4000
890*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXXG_LINE_ERRI    0x1000
891*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXXG_RX_OVRI      0x0400
892*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXXG_ADR_FILTERI  0x0200
893*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXXG_ERR_FILTERI  0x0100
894*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXXG_PRMB_ERRE    0x0020
895*3833Sxw161283 
896*3833Sxw161283 /*----------------------------------------------------------------------------
897*3833Sxw161283  * Register 0x2049: RXXG Receive FIFO Threshold
898*3833Sxw161283  *    Bit 2-0 RXXG_CUT_THRU
899*3833Sxw161283  *----------------------------------------------------------------------------*/
900*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXXG_CUT_THRU  0x0007
901*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_RXXG_CUT_THRU  0
902*3833Sxw161283 
903*3833Sxw161283 /*----------------------------------------------------------------------------
904*3833Sxw161283  * Register 0x2062H - 0x2069: RXXG Exact Match VID
905*3833Sxw161283  *    Bit 11-0 RXXG_VID_MATCH
906*3833Sxw161283  *----------------------------------------------------------------------------*/
907*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXXG_VID_MATCH  0x0FFF
908*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_RXXG_VID_MATCH  0
909*3833Sxw161283 
910*3833Sxw161283 /*----------------------------------------------------------------------------
911*3833Sxw161283  * Register 0x206EH - 0x206F: RXXG Address Filter Control
912*3833Sxw161283  *    Bit 3 RXXG_FORWARD_ENABLE
913*3833Sxw161283  *    Bit 2 RXXG_VLAN_ENABLE
914*3833Sxw161283  *    Bit 1 RXXG_SRC_ADDR
915*3833Sxw161283  *    Bit 0 RXXG_MATCH_ENABLE
916*3833Sxw161283  *----------------------------------------------------------------------------*/
917*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXXG_FORWARD_ENABLE  0x0008
918*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXXG_VLAN_ENABLE     0x0004
919*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXXG_SRC_ADDR        0x0002
920*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXXG_MATCH_ENABLE    0x0001
921*3833Sxw161283 
922*3833Sxw161283 /*----------------------------------------------------------------------------
923*3833Sxw161283  * Register 0x2070: RXXG Address Filter Control 2
924*3833Sxw161283  *    Bit 1 RXXG_PMODE
925*3833Sxw161283  *    Bit 0 RXXG_MHASH_EN
926*3833Sxw161283  *----------------------------------------------------------------------------*/
927*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXXG_PMODE     0x0002
928*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXXG_MHASH_EN  0x0001
929*3833Sxw161283 
930*3833Sxw161283 /*----------------------------------------------------------------------------
931*3833Sxw161283  * Register 0x2081: XRF Control Register 2
932*3833Sxw161283  *    Bit 6   EN_PKT_GEN
933*3833Sxw161283  *    Bit 4-2 PATT
934*3833Sxw161283  *----------------------------------------------------------------------------*/
935*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_EN_PKT_GEN  0x0040
936*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PATT        0x001C
937*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_PATT        2
938*3833Sxw161283 
939*3833Sxw161283 /*----------------------------------------------------------------------------
940*3833Sxw161283  * Register 0x2088: XRF Interrupt Enable
941*3833Sxw161283  *    Bit 12-9 LANE_HICERE
942*3833Sxw161283  *    Bit 8-5  HS_SD_LANEE
943*3833Sxw161283  *    Bit 4    ALIGN_STATUS_ERRE
944*3833Sxw161283  *    Bit 3-0  LANE_SYNC_STAT_ERRE
945*3833Sxw161283  *----------------------------------------------------------------------------*/
946*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_LANE_HICERE          0x1E00
947*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_LANE_HICERE          9
948*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_HS_SD_LANEE          0x01E0
949*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_HS_SD_LANEE          5
950*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_ALIGN_STATUS_ERRE    0x0010
951*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_LANE_SYNC_STAT_ERRE  0x000F
952*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_LANE_SYNC_STAT_ERRE  0
953*3833Sxw161283 
954*3833Sxw161283 /*----------------------------------------------------------------------------
955*3833Sxw161283  * Register 0x2089: XRF Interrupt Status
956*3833Sxw161283  *    Bit 12-9 LANE_HICERI
957*3833Sxw161283  *    Bit 8-5  HS_SD_LANEI
958*3833Sxw161283  *    Bit 4    ALIGN_STATUS_ERRI
959*3833Sxw161283  *    Bit 3-0  LANE_SYNC_STAT_ERRI
960*3833Sxw161283  *----------------------------------------------------------------------------*/
961*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_LANE_HICERI          0x1E00
962*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_LANE_HICERI          9
963*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_HS_SD_LANEI          0x01E0
964*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_HS_SD_LANEI          5
965*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_ALIGN_STATUS_ERRI    0x0010
966*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_LANE_SYNC_STAT_ERRI  0x000F
967*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_LANE_SYNC_STAT_ERRI  0
968*3833Sxw161283 
969*3833Sxw161283 /*----------------------------------------------------------------------------
970*3833Sxw161283  * Register 0x208A: XRF Error Status
971*3833Sxw161283  *    Bit 8-5  HS_SD_LANE
972*3833Sxw161283  *    Bit 4    ALIGN_STATUS_ERR
973*3833Sxw161283  *    Bit 3-0  LANE_SYNC_STAT_ERR
974*3833Sxw161283  *----------------------------------------------------------------------------*/
975*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_HS_SD_LANE3          0x0100
976*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_HS_SD_LANE2          0x0080
977*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_HS_SD_LANE1          0x0040
978*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_HS_SD_LANE0          0x0020
979*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_ALIGN_STATUS_ERR     0x0010
980*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_LANE3_SYNC_STAT_ERR  0x0008
981*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_LANE2_SYNC_STAT_ERR  0x0004
982*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_LANE1_SYNC_STAT_ERR  0x0002
983*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_LANE0_SYNC_STAT_ERR  0x0001
984*3833Sxw161283 
985*3833Sxw161283 /*----------------------------------------------------------------------------
986*3833Sxw161283  * Register 0x208B: XRF Diagnostic Interrupt Enable
987*3833Sxw161283  *    Bit 7-4 LANE_OVERRUNE
988*3833Sxw161283  *    Bit 3-0 LANE_UNDERRUNE
989*3833Sxw161283  *----------------------------------------------------------------------------*/
990*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_LANE_OVERRUNE   0x00F0
991*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_LANE_OVERRUNE   4
992*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_LANE_UNDERRUNE  0x000F
993*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_LANE_UNDERRUNE  0
994*3833Sxw161283 
995*3833Sxw161283 /*----------------------------------------------------------------------------
996*3833Sxw161283  * Register 0x208C: XRF Diagnostic Interrupt Status
997*3833Sxw161283  *    Bit 7-4 LANE_OVERRUNI
998*3833Sxw161283  *    Bit 3-0 LANE_UNDERRUNI
999*3833Sxw161283  *----------------------------------------------------------------------------*/
1000*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_LANE_OVERRUNI   0x00F0
1001*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_LANE_OVERRUNI   4
1002*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_LANE_UNDERRUNI  0x000F
1003*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_LANE_UNDERRUNI  0
1004*3833Sxw161283 
1005*3833Sxw161283 /*----------------------------------------------------------------------------
1006*3833Sxw161283  * Register 0x20C0: RXOAM Configuration
1007*3833Sxw161283  *    Bit 15    RXOAM_BUSY
1008*3833Sxw161283  *    Bit 14-12 RXOAM_F2_SEL
1009*3833Sxw161283  *    Bit 10-8  RXOAM_F1_SEL
1010*3833Sxw161283  *    Bit 7-6   RXOAM_FILTER_CTRL
1011*3833Sxw161283  *    Bit 5-0   RXOAM_PX_EN
1012*3833Sxw161283  *----------------------------------------------------------------------------*/
1013*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAM_BUSY         0x8000
1014*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAM_F2_SEL       0x7000
1015*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_RXOAM_F2_SEL       12
1016*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAM_F1_SEL       0x0700
1017*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_RXOAM_F1_SEL       8
1018*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAM_FILTER_CTRL  0x00C0
1019*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_RXOAM_FILTER_CTRL  6
1020*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAM_PX_EN        0x003F
1021*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_RXOAM_PX_EN        0
1022*3833Sxw161283 
1023*3833Sxw161283 /*----------------------------------------------------------------------------
1024*3833Sxw161283  * Register 0x20C1,0x20C2: RXOAM Filter Configuration
1025*3833Sxw161283  *    Bit 15-8 RXOAM_FX_MASK
1026*3833Sxw161283  *    Bit 7-0  RXOAM_FX_VAL
1027*3833Sxw161283  *----------------------------------------------------------------------------*/
1028*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAM_FX_MASK  0xFF00
1029*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_RXOAM_FX_MASK  8
1030*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAM_FX_VAL   0x00FF
1031*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_RXOAM_FX_VAl   0
1032*3833Sxw161283 
1033*3833Sxw161283 /*----------------------------------------------------------------------------
1034*3833Sxw161283  * Register 0x20C3: RXOAM Configuration Register 2
1035*3833Sxw161283  *    Bit 13    RXOAM_REC_BYTE_VAL
1036*3833Sxw161283  *    Bit 11-10 RXOAM_BYPASS_MODE
1037*3833Sxw161283  *    Bit 5-0   RXOAM_PX_CLEAR
1038*3833Sxw161283  *----------------------------------------------------------------------------*/
1039*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAM_REC_BYTE_VAL  0x2000
1040*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAM_BYPASS_MODE   0x0C00
1041*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_RXOAM_BYPASS_MODE   10
1042*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAM_PX_CLEAR      0x003F
1043*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_RXOAM_PX_CLEAR      0
1044*3833Sxw161283 
1045*3833Sxw161283 /*----------------------------------------------------------------------------
1046*3833Sxw161283  * Register 0x20C4: RXOAM HEC Configuration
1047*3833Sxw161283  *    Bit 15-8 RXOAM_COSET
1048*3833Sxw161283  *    Bit 2    RXOAM_HEC_ERR_PKT
1049*3833Sxw161283  *    Bit 0    RXOAM_HEC_EN
1050*3833Sxw161283  *----------------------------------------------------------------------------*/
1051*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAM_COSET        0xFF00
1052*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_RXOAM_COSET        8
1053*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAM_HEC_ERR_PKT  0x0004
1054*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAM_HEC_EN       0x0001
1055*3833Sxw161283 
1056*3833Sxw161283 /*----------------------------------------------------------------------------
1057*3833Sxw161283  * Register 0x20C7: RXOAM Interrupt Enable
1058*3833Sxw161283  *    Bit 10 RXOAM_FILTER_THRSHE
1059*3833Sxw161283  *    Bit 9  RXOAM_OAM_ERRE
1060*3833Sxw161283  *    Bit 8  RXOAM_HECE_THRSHE
1061*3833Sxw161283  *    Bit 7  RXOAM_SOPE
1062*3833Sxw161283  *    Bit 6  RXOAM_RFE
1063*3833Sxw161283  *    Bit 5  RXOAM_LFE
1064*3833Sxw161283  *    Bit 4  RXOAM_DV_ERRE
1065*3833Sxw161283  *    Bit 3  RXOAM_DATA_INVALIDE
1066*3833Sxw161283  *    Bit 2  RXOAM_FILTER_DROPE
1067*3833Sxw161283  *    Bit 1  RXOAM_HECE
1068*3833Sxw161283  *    Bit 0  RXOAM_OFLE
1069*3833Sxw161283  *----------------------------------------------------------------------------*/
1070*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAM_FILTER_THRSHE  0x0400
1071*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAM_OAM_ERRE       0x0200
1072*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAM_HECE_THRSHE    0x0100
1073*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAM_SOPE           0x0080
1074*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAM_RFE            0x0040
1075*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAM_LFE            0x0020
1076*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAM_DV_ERRE        0x0010
1077*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAM_DATA_INVALIDE  0x0008
1078*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAM_FILTER_DROPE   0x0004
1079*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAM_HECE           0x0002
1080*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAM_OFLE           0x0001
1081*3833Sxw161283 
1082*3833Sxw161283 /*----------------------------------------------------------------------------
1083*3833Sxw161283  * Register 0x20C8: RXOAM Interrupt Status
1084*3833Sxw161283  *    Bit 10 RXOAM_FILTER_THRSHI
1085*3833Sxw161283  *    Bit 9  RXOAM_OAM_ERRI
1086*3833Sxw161283  *    Bit 8  RXOAM_HECE_THRSHI
1087*3833Sxw161283  *    Bit 7  RXOAM_SOPI
1088*3833Sxw161283  *    Bit 6  RXOAM_RFI
1089*3833Sxw161283  *    Bit 5  RXOAM_LFI
1090*3833Sxw161283  *    Bit 4  RXOAM_DV_ERRI
1091*3833Sxw161283  *    Bit 3  RXOAM_DATA_INVALIDI
1092*3833Sxw161283  *    Bit 2  RXOAM_FILTER_DROPI
1093*3833Sxw161283  *    Bit 1  RXOAM_HECI
1094*3833Sxw161283  *    Bit 0  RXOAM_OFLI
1095*3833Sxw161283  *----------------------------------------------------------------------------*/
1096*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAM_FILTER_THRSHI  0x0400
1097*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAM_OAM_ERRI       0x0200
1098*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAM_HECE_THRSHI    0x0100
1099*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAM_SOPI           0x0080
1100*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAM_RFI            0x0040
1101*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAM_LFI            0x0020
1102*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAM_DV_ERRI        0x0010
1103*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAM_DATA_INVALIDI  0x0008
1104*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAM_FILTER_DROPI   0x0004
1105*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAM_HECI           0x0002
1106*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAM_OFLI           0x0001
1107*3833Sxw161283 
1108*3833Sxw161283 /*----------------------------------------------------------------------------
1109*3833Sxw161283  * Register 0x20C9: RXOAM Status
1110*3833Sxw161283  *    Bit 10 RXOAM_FILTER_THRSHV
1111*3833Sxw161283  *    Bit 8  RXOAM_HECE_THRSHV
1112*3833Sxw161283  *    Bit 6  RXOAM_RFV
1113*3833Sxw161283  *    Bit 5  RXOAM_LFV
1114*3833Sxw161283  *----------------------------------------------------------------------------*/
1115*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAM_FILTER_THRSHV  0x0400
1116*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAM_HECE_THRSHV    0x0100
1117*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAM_RFV            0x0040
1118*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_RXOAM_LFV            0x0020
1119*3833Sxw161283 
1120*3833Sxw161283 /*----------------------------------------------------------------------------
1121*3833Sxw161283  * Register 0x2100: MSTAT Control
1122*3833Sxw161283  *    Bit 2 MSTAT_WRITE
1123*3833Sxw161283  *    Bit 1 MSTAT_CLEAR
1124*3833Sxw161283  *    Bit 0 MSTAT_SNAP
1125*3833Sxw161283  *----------------------------------------------------------------------------*/
1126*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_MSTAT_WRITE  0x0004
1127*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_MSTAT_CLEAR  0x0002
1128*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_MSTAT_SNAP   0x0001
1129*3833Sxw161283 
1130*3833Sxw161283 /*----------------------------------------------------------------------------
1131*3833Sxw161283  * Register 0x2109: MSTAT Counter Write Address
1132*3833Sxw161283  *    Bit 5-0 MSTAT_WRITE_ADDRESS
1133*3833Sxw161283  *----------------------------------------------------------------------------*/
1134*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_MSTAT_WRITE_ADDRESS 0x003F
1135*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_MSTAT_WRITE_ADDRESS 0
1136*3833Sxw161283 
1137*3833Sxw161283 /*----------------------------------------------------------------------------
1138*3833Sxw161283  * Register 0x2200: IFLX Global Configuration Register
1139*3833Sxw161283  *    Bit 15   IFLX_IRCU_ENABLE
1140*3833Sxw161283  *    Bit 14   IFLX_IDSWT_ENABLE
1141*3833Sxw161283  *    Bit 13-0 IFLX_IFD_CNT
1142*3833Sxw161283  *----------------------------------------------------------------------------*/
1143*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_IFLX_IRCU_ENABLE   0x8000
1144*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_IFLX_IDSWT_ENABLE  0x4000
1145*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_IFLX_IFD_CNT       0x3FFF
1146*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_IFLX_IFD_CNT       0
1147*3833Sxw161283 
1148*3833Sxw161283 /*----------------------------------------------------------------------------
1149*3833Sxw161283  * Register 0x2209: IFLX FIFO Overflow Enable
1150*3833Sxw161283  *    Bit 0 IFLX_OVFE
1151*3833Sxw161283  *----------------------------------------------------------------------------*/
1152*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_IFLX_OVFE 0x0001
1153*3833Sxw161283 
1154*3833Sxw161283 /*----------------------------------------------------------------------------
1155*3833Sxw161283  * Register 0x220A: IFLX FIFO Overflow Interrupt
1156*3833Sxw161283  *    Bit 0 IFLX_OVFI
1157*3833Sxw161283  *----------------------------------------------------------------------------*/
1158*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_IFLX_OVFI 0x0001
1159*3833Sxw161283 
1160*3833Sxw161283 /*----------------------------------------------------------------------------
1161*3833Sxw161283  * Register 0x220D: IFLX Indirect Channel Address
1162*3833Sxw161283  *    Bit 15 IFLX_BUSY
1163*3833Sxw161283  *    Bit 14 IFLX_RWB
1164*3833Sxw161283  *----------------------------------------------------------------------------*/
1165*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_IFLX_BUSY  0x8000
1166*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_IFLX_RWB   0x4000
1167*3833Sxw161283 
1168*3833Sxw161283 /*----------------------------------------------------------------------------
1169*3833Sxw161283  * Register 0x220E: IFLX Indirect Logical FIFO Low Limit & Provision
1170*3833Sxw161283  *    Bit 9-0 IFLX_LOLIM
1171*3833Sxw161283  *----------------------------------------------------------------------------*/
1172*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_IFLX_LOLIM  0x03FF
1173*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_IFLX_LOLIM  0
1174*3833Sxw161283 
1175*3833Sxw161283 /*----------------------------------------------------------------------------
1176*3833Sxw161283  * Register 0x220F: IFLX Indirect Logical FIFO High Limit
1177*3833Sxw161283  *    Bit 9-0 IFLX_HILIM
1178*3833Sxw161283  *----------------------------------------------------------------------------*/
1179*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_IFLX_HILIM  0x03FF
1180*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_IFLX_HILIM  0
1181*3833Sxw161283 
1182*3833Sxw161283 /*----------------------------------------------------------------------------
1183*3833Sxw161283  * Register 0x2210: IFLX Indirect Full/Almost Full Status & Limit
1184*3833Sxw161283  *    Bit 15   IFLX_FULL
1185*3833Sxw161283  *    Bit 14   IFLX_AFULL
1186*3833Sxw161283  *    Bit 13-0 IFLX_AFTH
1187*3833Sxw161283  *----------------------------------------------------------------------------*/
1188*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_IFLX_FULL   0x8000
1189*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_IFLX_AFULL  0x4000
1190*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_IFLX_AFTH   0x3FFF
1191*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_IFLX_AFTH   0
1192*3833Sxw161283 
1193*3833Sxw161283 /*----------------------------------------------------------------------------
1194*3833Sxw161283  * Register 0x2211: IFLX Indirect Empty/Almost Empty Status & Limit
1195*3833Sxw161283  *    Bit 15   IFLX_EMPTY
1196*3833Sxw161283  *    Bit 14   IFLX_AEMPTY
1197*3833Sxw161283  *    Bit 13-0 IFLX_AETH
1198*3833Sxw161283  *----------------------------------------------------------------------------*/
1199*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_IFLX_EMPTY   0x8000
1200*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_IFLX_AEMPTY  0x4000
1201*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_IFLX_AETH    0x3FFF
1202*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_IFLX_AETH    0
1203*3833Sxw161283 
1204*3833Sxw161283 /*----------------------------------------------------------------------------
1205*3833Sxw161283  * Register 0x2240: PL4MOS Configuration Register
1206*3833Sxw161283  *    Bit 3 PL4MOS_RE_INIT
1207*3833Sxw161283  *    Bit 2 PL4MOS_EN
1208*3833Sxw161283  *    Bit 1 PL4MOS_NO_STATUS
1209*3833Sxw161283  *----------------------------------------------------------------------------*/
1210*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4MOS_RE_INIT          0x0008
1211*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4MOS_EN               0x0004
1212*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4MOS_NO_STATUS        0x0002
1213*3833Sxw161283 
1214*3833Sxw161283 /*----------------------------------------------------------------------------
1215*3833Sxw161283  * Register 0x2243: PL4MOS MaxBurst1 Register
1216*3833Sxw161283  *    Bit 11-0 PL4MOS_MAX_BURST1
1217*3833Sxw161283  *----------------------------------------------------------------------------*/
1218*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4MOS_MAX_BURST1  0x0FFF
1219*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_PL4MOS_MAX_BURST1  0
1220*3833Sxw161283 
1221*3833Sxw161283 /*----------------------------------------------------------------------------
1222*3833Sxw161283  * Register 0x2244: PL4MOS MaxBurst2 Register
1223*3833Sxw161283  *    Bit 11-0 PL4MOS_MAX_BURST2
1224*3833Sxw161283  *----------------------------------------------------------------------------*/
1225*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4MOS_MAX_BURST2  0x0FFF
1226*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_PL4MOS_MAX_BURST2  0
1227*3833Sxw161283 
1228*3833Sxw161283 /*----------------------------------------------------------------------------
1229*3833Sxw161283  * Register 0x2245: PL4MOS Transfer Size Register
1230*3833Sxw161283  *    Bit 7-0 PL4MOS_MAX_TRANSFER
1231*3833Sxw161283  *----------------------------------------------------------------------------*/
1232*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4MOS_MAX_TRANSFER  0x00FF
1233*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_PL4MOS_MAX_TRANSFER  0
1234*3833Sxw161283 
1235*3833Sxw161283 /*----------------------------------------------------------------------------
1236*3833Sxw161283  * Register 0x2280: PL4ODP Configuration
1237*3833Sxw161283  *    Bit 15-12 PL4ODP_REPEAT_T
1238*3833Sxw161283  *    Bit 8     PL4ODP_SOP_RULE
1239*3833Sxw161283  *    Bit 1     PL4ODP_EN_PORTS
1240*3833Sxw161283  *    Bit 0     PL4ODP_EN_DFWD
1241*3833Sxw161283  *----------------------------------------------------------------------------*/
1242*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4ODP_REPEAT_T   0xF000
1243*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_PL4ODP_REPEAT_T   12
1244*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4ODP_SOP_RULE   0x0100
1245*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4ODP_EN_PORTS   0x0002
1246*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4ODP_EN_DFWD    0x0001
1247*3833Sxw161283 
1248*3833Sxw161283 /*----------------------------------------------------------------------------
1249*3833Sxw161283  * Register 0x2282: PL4ODP Interrupt Mask
1250*3833Sxw161283  *    Bit 0 PL4ODP_OUT_DISE
1251*3833Sxw161283  *----------------------------------------------------------------------------*/
1252*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4ODP_OUT_DISE     0x0001
1253*3833Sxw161283 
1254*3833Sxw161283 
1255*3833Sxw161283 
1256*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4ODP_PPE_EOPEOBE  0x0080
1257*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4ODP_PPE_ERREOPE  0x0040
1258*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4ODP_PPE_MEOPE    0x0008
1259*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4ODP_PPE_MSOPE    0x0004
1260*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4ODP_ES_OVRE      0x0002
1261*3833Sxw161283 
1262*3833Sxw161283 
1263*3833Sxw161283 /*----------------------------------------------------------------------------
1264*3833Sxw161283  * Register 0x2283: PL4ODP Interrupt
1265*3833Sxw161283  *    Bit 0 PL4ODP_OUT_DISI
1266*3833Sxw161283  *----------------------------------------------------------------------------*/
1267*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4ODP_OUT_DISI     0x0001
1268*3833Sxw161283 
1269*3833Sxw161283 
1270*3833Sxw161283 
1271*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4ODP_PPE_EOPEOBI  0x0080
1272*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4ODP_PPE_ERREOPI  0x0040
1273*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4ODP_PPE_MEOPI    0x0008
1274*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4ODP_PPE_MSOPI    0x0004
1275*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4ODP_ES_OVRI      0x0002
1276*3833Sxw161283 
1277*3833Sxw161283 /*----------------------------------------------------------------------------
1278*3833Sxw161283  * Register 0x2300:  PL4IO Lock Detect Status
1279*3833Sxw161283  *    Bit 15 PL4IO_OUT_ROOLV
1280*3833Sxw161283  *    Bit 12 PL4IO_IS_ROOLV
1281*3833Sxw161283  *    Bit 11 PL4IO_DIP2_ERRV
1282*3833Sxw161283  *    Bit 8  PL4IO_ID_ROOLV
1283*3833Sxw161283  *    Bit 4  PL4IO_IS_DOOLV
1284*3833Sxw161283  *    Bit 0  PL4IO_ID_DOOLV
1285*3833Sxw161283  *----------------------------------------------------------------------------*/
1286*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4IO_OUT_ROOLV  0x8000
1287*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4IO_IS_ROOLV   0x1000
1288*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4IO_DIP2_ERRV  0x0800
1289*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4IO_ID_ROOLV   0x0100
1290*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4IO_IS_DOOLV   0x0010
1291*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4IO_ID_DOOLV   0x0001
1292*3833Sxw161283 
1293*3833Sxw161283 /*----------------------------------------------------------------------------
1294*3833Sxw161283  * Register 0x2301:  PL4IO Lock Detect Change
1295*3833Sxw161283  *    Bit 15 PL4IO_OUT_ROOLI
1296*3833Sxw161283  *    Bit 12 PL4IO_IS_ROOLI
1297*3833Sxw161283  *    Bit 11 PL4IO_DIP2_ERRI
1298*3833Sxw161283  *    Bit 8  PL4IO_ID_ROOLI
1299*3833Sxw161283  *    Bit 4  PL4IO_IS_DOOLI
1300*3833Sxw161283  *    Bit 0  PL4IO_ID_DOOLI
1301*3833Sxw161283  *----------------------------------------------------------------------------*/
1302*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4IO_OUT_ROOLI  0x8000
1303*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4IO_IS_ROOLI   0x1000
1304*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4IO_DIP2_ERRI  0x0800
1305*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4IO_ID_ROOLI   0x0100
1306*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4IO_IS_DOOLI   0x0010
1307*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4IO_ID_DOOLI   0x0001
1308*3833Sxw161283 
1309*3833Sxw161283 /*----------------------------------------------------------------------------
1310*3833Sxw161283  * Register 0x2302:  PL4IO Lock Detect Mask
1311*3833Sxw161283  *    Bit 15 PL4IO_OUT_ROOLE
1312*3833Sxw161283  *    Bit 12 PL4IO_IS_ROOLE
1313*3833Sxw161283  *    Bit 11 PL4IO_DIP2_ERRE
1314*3833Sxw161283  *    Bit 8  PL4IO_ID_ROOLE
1315*3833Sxw161283  *    Bit 4  PL4IO_IS_DOOLE
1316*3833Sxw161283  *    Bit 0  PL4IO_ID_DOOLE
1317*3833Sxw161283  *----------------------------------------------------------------------------*/
1318*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4IO_OUT_ROOLE  0x8000
1319*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4IO_IS_ROOLE   0x1000
1320*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4IO_DIP2_ERRE  0x0800
1321*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4IO_ID_ROOLE   0x0100
1322*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4IO_IS_DOOLE   0x0010
1323*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4IO_ID_DOOLE   0x0001
1324*3833Sxw161283 
1325*3833Sxw161283 /*----------------------------------------------------------------------------
1326*3833Sxw161283  * Register 0x2303:  PL4IO Lock Detect Limits
1327*3833Sxw161283  *    Bit 15-8 PL4IO_REF_LIMIT
1328*3833Sxw161283  *    Bit 7-0  PL4IO_TRAN_LIMIT
1329*3833Sxw161283  *----------------------------------------------------------------------------*/
1330*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4IO_REF_LIMIT   0xFF00
1331*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_PL4IO_REF_LIMIT   8
1332*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4IO_TRAN_LIMIT  0x00FF
1333*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_PL4IO_TRAN_LIMIT  0
1334*3833Sxw161283 
1335*3833Sxw161283 /*----------------------------------------------------------------------------
1336*3833Sxw161283  * Register 0x2304:  PL4IO Calendar Repetitions
1337*3833Sxw161283  *    Bit 15-8 PL4IO_IN_MUL
1338*3833Sxw161283  *    Bit 7-0  PL4IO_OUT_MUL
1339*3833Sxw161283  *----------------------------------------------------------------------------*/
1340*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4IO_IN_MUL   0xFF00
1341*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_PL4IO_IN_MUL   8
1342*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4IO_OUT_MUL  0x00FF
1343*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_PL4IO_OUT_MUL  0
1344*3833Sxw161283 
1345*3833Sxw161283 /*----------------------------------------------------------------------------
1346*3833Sxw161283  * Register 0x2305:  PL4IO Configuration
1347*3833Sxw161283  *    Bit 15  PL4IO_DIP2_ERR_CHK
1348*3833Sxw161283  *    Bit 11  PL4IO_ODAT_DIS
1349*3833Sxw161283  *    Bit 10  PL4IO_TRAIN_DIS
1350*3833Sxw161283  *    Bit 9   PL4IO_OSTAT_DIS
1351*3833Sxw161283  *    Bit 8   PL4IO_ISTAT_DIS
1352*3833Sxw161283  *    Bit 7   PL4IO_NO_ISTAT
1353*3833Sxw161283  *    Bit 6   PL4IO_STAT_OUTSEL
1354*3833Sxw161283  *    Bit 5   PL4IO_INSEL
1355*3833Sxw161283  *    Bit 4   PL4IO_DLSEL
1356*3833Sxw161283  *    Bit 1-0 PL4IO_OUTSEL
1357*3833Sxw161283  *----------------------------------------------------------------------------*/
1358*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4IO_DIP2_ERR_CHK  0x8000
1359*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4IO_ODAT_DIS      0x0800
1360*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4IO_TRAIN_DIS     0x0400
1361*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4IO_OSTAT_DIS     0x0200
1362*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4IO_ISTAT_DIS     0x0100
1363*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4IO_NO_ISTAT      0x0080
1364*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4IO_STAT_OUTSEL   0x0040
1365*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4IO_INSEL         0x0020
1366*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4IO_DLSEL         0x0010
1367*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4IO_OUTSEL        0x0003
1368*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_PL4IO_OUTSEL        0
1369*3833Sxw161283 
1370*3833Sxw161283 /*----------------------------------------------------------------------------
1371*3833Sxw161283  * Register 0x3040: TXXG Configuration Register 1
1372*3833Sxw161283  *    Bit 15   TXXG_TXEN0
1373*3833Sxw161283  *    Bit 13   TXXG_HOSTPAUSE
1374*3833Sxw161283  *    Bit 12-7 TXXG_IPGT
1375*3833Sxw161283  *    Bit 5    TXXG_32BIT_ALIGN
1376*3833Sxw161283  *    Bit 4    TXXG_CRCEN
1377*3833Sxw161283  *    Bit 3    TXXG_FCTX
1378*3833Sxw161283  *    Bit 2    TXXG_FCRX
1379*3833Sxw161283  *    Bit 1    TXXG_PADEN
1380*3833Sxw161283  *    Bit 0    TXXG_SPRE
1381*3833Sxw161283  *----------------------------------------------------------------------------*/
1382*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXXG_TXEN0        0x8000
1383*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXXG_HOSTPAUSE    0x2000
1384*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXXG_IPGT         0x1F80
1385*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_TXXG_IPGT         7
1386*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXXG_32BIT_ALIGN  0x0020
1387*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXXG_CRCEN        0x0010
1388*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXXG_FCTX         0x0008
1389*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXXG_FCRX         0x0004
1390*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXXG_PADEN        0x0002
1391*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXXG_SPRE         0x0001
1392*3833Sxw161283 
1393*3833Sxw161283 /*----------------------------------------------------------------------------
1394*3833Sxw161283  * Register 0x3041: TXXG Configuration Register 2
1395*3833Sxw161283  *    Bit 7-0   TXXG_HDRSIZE
1396*3833Sxw161283  *----------------------------------------------------------------------------*/
1397*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXXG_HDRSIZE  0x00FF
1398*3833Sxw161283 
1399*3833Sxw161283 /*----------------------------------------------------------------------------
1400*3833Sxw161283  * Register 0x3042: TXXG Configuration Register 3
1401*3833Sxw161283  *    Bit 15 TXXG_FIFO_ERRE
1402*3833Sxw161283  *    Bit 14 TXXG_FIFO_UDRE
1403*3833Sxw161283  *    Bit 13 TXXG_MAX_LERRE
1404*3833Sxw161283  *    Bit 12 TXXG_MIN_LERRE
1405*3833Sxw161283  *    Bit 11 TXXG_XFERE
1406*3833Sxw161283  *----------------------------------------------------------------------------*/
1407*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXXG_FIFO_ERRE  0x8000
1408*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXXG_FIFO_UDRE  0x4000
1409*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXXG_MAX_LERRE  0x2000
1410*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXXG_MIN_LERRE  0x1000
1411*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXXG_XFERE      0x0800
1412*3833Sxw161283 
1413*3833Sxw161283 /*----------------------------------------------------------------------------
1414*3833Sxw161283  * Register 0x3043: TXXG Interrupt
1415*3833Sxw161283  *    Bit 15 TXXG_FIFO_ERRI
1416*3833Sxw161283  *    Bit 14 TXXG_FIFO_UDRI
1417*3833Sxw161283  *    Bit 13 TXXG_MAX_LERRI
1418*3833Sxw161283  *    Bit 12 TXXG_MIN_LERRI
1419*3833Sxw161283  *    Bit 11 TXXG_XFERI
1420*3833Sxw161283  *----------------------------------------------------------------------------*/
1421*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXXG_FIFO_ERRI  0x8000
1422*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXXG_FIFO_UDRI  0x4000
1423*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXXG_MAX_LERRI  0x2000
1424*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXXG_MIN_LERRI  0x1000
1425*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXXG_XFERI      0x0800
1426*3833Sxw161283 
1427*3833Sxw161283 /*----------------------------------------------------------------------------
1428*3833Sxw161283  * Register 0x3044: TXXG Status Register
1429*3833Sxw161283  *    Bit 1 TXXG_TXACTIVE
1430*3833Sxw161283  *    Bit 0 TXXG_PAUSED
1431*3833Sxw161283  *----------------------------------------------------------------------------*/
1432*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXXG_TXACTIVE  0x0002
1433*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXXG_PAUSED    0x0001
1434*3833Sxw161283 
1435*3833Sxw161283 /*----------------------------------------------------------------------------
1436*3833Sxw161283  * Register 0x3046: TXXG TX_MINFR -  Transmit Min Frame Size Register
1437*3833Sxw161283  *    Bit 7-0 TXXG_TX_MINFR
1438*3833Sxw161283  *----------------------------------------------------------------------------*/
1439*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXXG_TX_MINFR  0x00FF
1440*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_TXXG_TX_MINFR  0
1441*3833Sxw161283 
1442*3833Sxw161283 /*----------------------------------------------------------------------------
1443*3833Sxw161283  * Register 0x3052: TXXG Pause Quantum Value Configuration Register
1444*3833Sxw161283  *    Bit 7-0 TXXG_FC_PAUSE_QNTM
1445*3833Sxw161283  *----------------------------------------------------------------------------*/
1446*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXXG_FC_PAUSE_QNTM  0x00FF
1447*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_TXXG_FC_PAUSE_QNTM  0
1448*3833Sxw161283 
1449*3833Sxw161283 /*----------------------------------------------------------------------------
1450*3833Sxw161283  * Register 0x3080: XTEF Control
1451*3833Sxw161283  *    Bit 3-0 XTEF_FORCE_PARITY_ERR
1452*3833Sxw161283  *----------------------------------------------------------------------------*/
1453*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_XTEF_FORCE_PARITY_ERR  0x000F
1454*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_XTEF_FORCE_PARITY_ERR  0
1455*3833Sxw161283 
1456*3833Sxw161283 /*----------------------------------------------------------------------------
1457*3833Sxw161283  * Register 0x3084: XTEF Interrupt Event Register
1458*3833Sxw161283  *    Bit 0 XTEF_LOST_SYNCI
1459*3833Sxw161283  *----------------------------------------------------------------------------*/
1460*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_XTEF_LOST_SYNCI  0x0001
1461*3833Sxw161283 
1462*3833Sxw161283 /*----------------------------------------------------------------------------
1463*3833Sxw161283  * Register 0x3085: XTEF Interrupt Enable Register
1464*3833Sxw161283  *    Bit 0 XTEF_LOST_SYNCE
1465*3833Sxw161283  *----------------------------------------------------------------------------*/
1466*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_XTEF_LOST_SYNCE  0x0001
1467*3833Sxw161283 
1468*3833Sxw161283 /*----------------------------------------------------------------------------
1469*3833Sxw161283  * Register 0x3086: XTEF Visibility Register
1470*3833Sxw161283  *    Bit 0 XTEF_LOST_SYNCV
1471*3833Sxw161283  *----------------------------------------------------------------------------*/
1472*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_XTEF_LOST_SYNCV  0x0001
1473*3833Sxw161283 
1474*3833Sxw161283 /*----------------------------------------------------------------------------
1475*3833Sxw161283  * Register 0x30C0: TXOAM OAM Configuration
1476*3833Sxw161283  *    Bit 15   TXOAM_HEC_EN
1477*3833Sxw161283  *    Bit 14   TXOAM_EMPTYCODE_EN
1478*3833Sxw161283  *    Bit 13   TXOAM_FORCE_IDLE
1479*3833Sxw161283  *    Bit 12   TXOAM_IGNORE_IDLE
1480*3833Sxw161283  *    Bit 11-6 TXOAM_PX_OVERWRITE
1481*3833Sxw161283  *    Bit 5-0  TXOAM_PX_SEL
1482*3833Sxw161283  *----------------------------------------------------------------------------*/
1483*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXOAM_HEC_EN        0x8000
1484*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXOAM_EMPTYCODE_EN  0x4000
1485*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXOAM_FORCE_IDLE    0x2000
1486*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXOAM_IGNORE_IDLE   0x1000
1487*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXOAM_PX_OVERWRITE  0x0FC0
1488*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_TXOAM_PX_OVERWRITE  6
1489*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXOAM_PX_SEL        0x003F
1490*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_TXOAM_PX_SEL        0
1491*3833Sxw161283 
1492*3833Sxw161283 /*----------------------------------------------------------------------------
1493*3833Sxw161283  * Register 0x30C1: TXOAM Mini-Packet Rate Configuration
1494*3833Sxw161283  *    Bit 15   TXOAM_MINIDIS
1495*3833Sxw161283  *    Bit 14   TXOAM_BUSY
1496*3833Sxw161283  *    Bit 13   TXOAM_TRANS_EN
1497*3833Sxw161283  *    Bit 10-0 TXOAM_MINIRATE
1498*3833Sxw161283  *----------------------------------------------------------------------------*/
1499*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXOAM_MINIDIS   0x8000
1500*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXOAM_BUSY      0x4000
1501*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXOAM_TRANS_EN  0x2000
1502*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXOAM_MINIRATE  0x07FF
1503*3833Sxw161283 
1504*3833Sxw161283 /*----------------------------------------------------------------------------
1505*3833Sxw161283  * Register 0x30C2: TXOAM Mini-Packet Gap and FIFO Configuration
1506*3833Sxw161283  *    Bit 13-10 TXOAM_FTHRESH
1507*3833Sxw161283  *    Bit 9-6   TXOAM_MINIPOST
1508*3833Sxw161283  *    Bit 5-0   TXOAM_MINIPRE
1509*3833Sxw161283  *----------------------------------------------------------------------------*/
1510*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXOAM_FTHRESH   0x3C00
1511*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_TXOAM_FTHRESH   10
1512*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXOAM_MINIPOST  0x03C0
1513*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_TXOAM_MINIPOST  6
1514*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXOAM_MINIPRE   0x003F
1515*3833Sxw161283 
1516*3833Sxw161283 /*----------------------------------------------------------------------------
1517*3833Sxw161283  * Register 0x30C6: TXOAM Interrupt Enable
1518*3833Sxw161283  *    Bit 2 TXOAM_SOP_ERRE
1519*3833Sxw161283  *    Bit 1 TXOAM_OFLE
1520*3833Sxw161283  *    Bit 0 TXOAM_ERRE
1521*3833Sxw161283  *----------------------------------------------------------------------------*/
1522*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXOAM_SOP_ERRE    0x0004
1523*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXOAM_OFLE        0x0002
1524*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXOAM_ERRE        0x0001
1525*3833Sxw161283 
1526*3833Sxw161283 /*----------------------------------------------------------------------------
1527*3833Sxw161283  * Register 0x30C7: TXOAM Interrupt Status
1528*3833Sxw161283  *    Bit 2 TXOAM_SOP_ERRI
1529*3833Sxw161283  *    Bit 1 TXOAM_OFLI
1530*3833Sxw161283  *    Bit 0 TXOAM_ERRI
1531*3833Sxw161283  *----------------------------------------------------------------------------*/
1532*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXOAM_SOP_ERRI    0x0004
1533*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXOAM_OFLI        0x0002
1534*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXOAM_ERRI        0x0001
1535*3833Sxw161283 
1536*3833Sxw161283 /*----------------------------------------------------------------------------
1537*3833Sxw161283  * Register 0x30CF: TXOAM Coset
1538*3833Sxw161283  *    Bit 7-0 TXOAM_COSET
1539*3833Sxw161283  *----------------------------------------------------------------------------*/
1540*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_TXOAM_COSET  0x00FF
1541*3833Sxw161283 
1542*3833Sxw161283 /*----------------------------------------------------------------------------
1543*3833Sxw161283  * Register 0x3200: EFLX Global Configuration
1544*3833Sxw161283  *    Bit 15 EFLX_ERCU_EN
1545*3833Sxw161283  *    Bit 7  EFLX_EN_EDSWT
1546*3833Sxw161283  *----------------------------------------------------------------------------*/
1547*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_EFLX_ERCU_EN   0x8000
1548*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_EFLX_EN_EDSWT  0x0080
1549*3833Sxw161283 
1550*3833Sxw161283 /*----------------------------------------------------------------------------
1551*3833Sxw161283  * Register 0x3201: EFLX ERCU Global Status
1552*3833Sxw161283  *    Bit 13 EFLX_OVF_ERR
1553*3833Sxw161283  *----------------------------------------------------------------------------*/
1554*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_EFLX_OVF_ERR  0x2000
1555*3833Sxw161283 
1556*3833Sxw161283 /*----------------------------------------------------------------------------
1557*3833Sxw161283  * Register 0x3202: EFLX Indirect Channel Address
1558*3833Sxw161283  *    Bit 15 EFLX_BUSY
1559*3833Sxw161283  *    Bit 14 EFLX_RDWRB
1560*3833Sxw161283  *----------------------------------------------------------------------------*/
1561*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_EFLX_BUSY   0x8000
1562*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_EFLX_RDWRB  0x4000
1563*3833Sxw161283 
1564*3833Sxw161283 /*----------------------------------------------------------------------------
1565*3833Sxw161283  * Register 0x3203: EFLX Indirect Logical FIFO Low Limit
1566*3833Sxw161283  *----------------------------------------------------------------------------*/
1567*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_EFLX_LOLIM                    0x03FF
1568*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_EFLX_LOLIM                    0
1569*3833Sxw161283 
1570*3833Sxw161283 /*----------------------------------------------------------------------------
1571*3833Sxw161283  * Register 0x3204: EFLX Indirect Logical FIFO High Limit
1572*3833Sxw161283  *----------------------------------------------------------------------------*/
1573*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_EFLX_HILIM                    0x03FF
1574*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_EFLX_HILIM                    0
1575*3833Sxw161283 
1576*3833Sxw161283 /*----------------------------------------------------------------------------
1577*3833Sxw161283  * Register 0x3205: EFLX Indirect Full/Almost-Full Status and Limit
1578*3833Sxw161283  *    Bit 15   EFLX_FULL
1579*3833Sxw161283  *    Bit 14   EFLX_AFULL
1580*3833Sxw161283  *    Bit 13-0 EFLX_AFTH
1581*3833Sxw161283  *----------------------------------------------------------------------------*/
1582*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_EFLX_FULL   0x8000
1583*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_EFLX_AFULL  0x4000
1584*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_EFLX_AFTH   0x3FFF
1585*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_EFLX_AFTH   0
1586*3833Sxw161283 
1587*3833Sxw161283 /*----------------------------------------------------------------------------
1588*3833Sxw161283  * Register 0x3206: EFLX Indirect Empty/Almost-Empty Status and Limit
1589*3833Sxw161283  *    Bit 15   EFLX_EMPTY
1590*3833Sxw161283  *    Bit 14   EFLX_AEMPTY
1591*3833Sxw161283  *    Bit 13-0 EFLX_AETH
1592*3833Sxw161283  *----------------------------------------------------------------------------*/
1593*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_EFLX_EMPTY   0x8000
1594*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_EFLX_AEMPTY  0x4000
1595*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_EFLX_AETH    0x3FFF
1596*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_EFLX_AETH    0
1597*3833Sxw161283 
1598*3833Sxw161283 /*----------------------------------------------------------------------------
1599*3833Sxw161283  * Register 0x3207: EFLX Indirect FIFO Cut-Through Threshold
1600*3833Sxw161283  *----------------------------------------------------------------------------*/
1601*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_EFLX_CUT_THRU                 0x3FFF
1602*3833Sxw161283 #define SUNI1x10GEXP_BITOFF_EFLX_CUT_THRU                 0
1603*3833Sxw161283 
1604*3833Sxw161283 /*----------------------------------------------------------------------------
1605*3833Sxw161283  * Register 0x320C: EFLX FIFO Overflow Error Enable
1606*3833Sxw161283  *    Bit 0 EFLX_OVFE
1607*3833Sxw161283  *----------------------------------------------------------------------------*/
1608*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_EFLX_OVFE  0x0001
1609*3833Sxw161283 
1610*3833Sxw161283 /*----------------------------------------------------------------------------
1611*3833Sxw161283  * Register 0x320D: EFLX FIFO Overflow Error Indication
1612*3833Sxw161283  *    Bit 0 EFLX_OVFI
1613*3833Sxw161283  *----------------------------------------------------------------------------*/
1614*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_EFLX_OVFI  0x0001
1615*3833Sxw161283 
1616*3833Sxw161283 /*----------------------------------------------------------------------------
1617*3833Sxw161283  * Register 0x3210: EFLX Channel Provision
1618*3833Sxw161283  *    Bit 0 EFLX_PROV
1619*3833Sxw161283  *----------------------------------------------------------------------------*/
1620*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_EFLX_PROV  0x0001
1621*3833Sxw161283 
1622*3833Sxw161283 /*----------------------------------------------------------------------------
1623*3833Sxw161283  * Register 0x3280: PL4IDU Configuration
1624*3833Sxw161283  *    Bit 2 PL4IDU_SYNCH_ON_TRAIN
1625*3833Sxw161283  *    Bit 1 PL4IDU_EN_PORTS
1626*3833Sxw161283  *    Bit 0 PL4IDU_EN_DFWD
1627*3833Sxw161283  *----------------------------------------------------------------------------*/
1628*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4IDU_SYNCH_ON_TRAIN  0x0004
1629*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4IDU_EN_PORTS        0x0002
1630*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4IDU_EN_DFWD         0x0001
1631*3833Sxw161283 
1632*3833Sxw161283 /*----------------------------------------------------------------------------
1633*3833Sxw161283  * Register 0x3282: PL4IDU Interrupt Mask
1634*3833Sxw161283  *    Bit 1 PL4IDU_DIP4E
1635*3833Sxw161283  *----------------------------------------------------------------------------*/
1636*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4IDU_DIP4E       0x0002
1637*3833Sxw161283 
1638*3833Sxw161283 /*----------------------------------------------------------------------------
1639*3833Sxw161283  * Register 0x3283: PL4IDU Interrupt
1640*3833Sxw161283  *    Bit 1 PL4IDU_DIP4I
1641*3833Sxw161283  *----------------------------------------------------------------------------*/
1642*3833Sxw161283 #define SUNI1x10GEXP_BITMSK_PL4IDU_DIP4I       0x0002
1643*3833Sxw161283 
1644*3833Sxw161283 
1645*3833Sxw161283 
1646*3833Sxw161283 #endif /* _SUNI1x10GEXP_REGS_H */
1647*3833Sxw161283 
1648