Commit | Line | Data |
---|---|---|
8199d3a7 CL |
1 | /***************************************************************************** |
2 | * * | |
3 | * File: suni1x10gexp_regs.h * | |
559fb51b SB |
4 | * $Revision: 1.9 $ * |
5 | * $Date: 2005/06/22 00:17:04 $ * | |
8199d3a7 CL |
6 | * Description: * |
7 | * PMC/SIERRA (pm3393) MAC-PHY functionality. * | |
8 | * part of the Chelsio 10Gb Ethernet Driver. * | |
9 | * * | |
10 | * This program is free software; you can redistribute it and/or modify * | |
11 | * it under the terms of the GNU General Public License, version 2, as * | |
12 | * published by the Free Software Foundation. * | |
13 | * * | |
14 | * You should have received a copy of the GNU General Public License along * | |
15 | * with this program; if not, write to the Free Software Foundation, Inc., * | |
16 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * | |
17 | * * | |
18 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED * | |
19 | * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF * | |
20 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. * | |
21 | * * | |
22 | * http://www.chelsio.com * | |
23 | * * | |
8199d3a7 CL |
24 | * Maintainers: maintainers@chelsio.com * |
25 | * * | |
559fb51b | 26 | * Authors: PMC/SIERRA * |
8199d3a7 CL |
27 | * * |
28 | * History: * | |
29 | * * | |
30 | ****************************************************************************/ | |
31 | ||
559fb51b SB |
32 | #ifndef _CXGB_SUNI1x10GEXP_REGS_H_ |
33 | #define _CXGB_SUNI1x10GEXP_REGS_H_ | |
8199d3a7 CL |
34 | |
35 | /******************************************************************************/ | |
36 | /** S/UNI-1x10GE-XP REGISTER ADDRESS MAP **/ | |
37 | /******************************************************************************/ | |
38 | /* Refer to the Register Bit Masks bellow for the naming of each register and */ | |
39 | /* to the S/UNI-1x10GE-XP Data Sheet for the signification of each bit */ | |
40 | /******************************************************************************/ | |
41 | ||
42 | #define SUNI1x10GEXP_REG_DEVICE_STATUS 0x0004 | |
43 | #define SUNI1x10GEXP_REG_MASTER_INTERRUPT_STATUS 0x000D | |
44 | #define SUNI1x10GEXP_REG_GLOBAL_INTERRUPT_ENABLE 0x000E | |
45 | #define SUNI1x10GEXP_REG_SERDES_3125_INTERRUPT_ENABLE 0x0102 | |
46 | #define SUNI1x10GEXP_REG_SERDES_3125_INTERRUPT_STATUS 0x0104 | |
47 | #define SUNI1x10GEXP_REG_RXXG_CONFIG_1 0x2040 | |
48 | #define SUNI1x10GEXP_REG_RXXG_CONFIG_3 0x2042 | |
49 | #define SUNI1x10GEXP_REG_RXXG_INTERRUPT 0x2043 | |
50 | #define SUNI1x10GEXP_REG_RXXG_MAX_FRAME_LENGTH 0x2045 | |
51 | #define SUNI1x10GEXP_REG_RXXG_SA_15_0 0x2046 | |
52 | #define SUNI1x10GEXP_REG_RXXG_SA_31_16 0x2047 | |
53 | #define SUNI1x10GEXP_REG_RXXG_SA_47_32 0x2048 | |
54 | #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_1_LOW 0x204D | |
55 | #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_1_MID 0x204E | |
56 | #define SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_1_HIGH 0x204F | |
57 | #define SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_LOW 0x206A | |
58 | #define SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDLOW 0x206B | |
59 | #define SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDHIGH 0x206C | |
60 | #define SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_HIGH 0x206D | |
61 | #define SUNI1x10GEXP_REG_RXXG_ADDRESS_FILTER_CONTROL_0 0x206E | |
62 | #define SUNI1x10GEXP_REG_RXXG_ADDRESS_FILTER_CONTROL_2 0x2070 | |
63 | #define SUNI1x10GEXP_REG_XRF_INTERRUPT_ENABLE 0x2088 | |
64 | #define SUNI1x10GEXP_REG_XRF_INTERRUPT_STATUS 0x2089 | |
65 | #define SUNI1x10GEXP_REG_XRF_DIAG_INTERRUPT_ENABLE 0x208B | |
66 | #define SUNI1x10GEXP_REG_XRF_DIAG_INTERRUPT_STATUS 0x208C | |
67 | #define SUNI1x10GEXP_REG_RXOAM_INTERRUPT_ENABLE 0x20C7 | |
68 | #define SUNI1x10GEXP_REG_RXOAM_INTERRUPT_STATUS 0x20C8 | |
69 | #define SUNI1x10GEXP_REG_MSTAT_CONTROL 0x2100 | |
70 | #define SUNI1x10GEXP_REG_MSTAT_COUNTER_ROLLOVER_0 0x2101 | |
71 | #define SUNI1x10GEXP_REG_MSTAT_COUNTER_ROLLOVER_1 0x2102 | |
72 | #define SUNI1x10GEXP_REG_MSTAT_COUNTER_ROLLOVER_2 0x2103 | |
73 | #define SUNI1x10GEXP_REG_MSTAT_COUNTER_ROLLOVER_3 0x2104 | |
74 | #define SUNI1x10GEXP_REG_MSTAT_INTERRUPT_MASK_0 0x2105 | |
75 | #define SUNI1x10GEXP_REG_MSTAT_INTERRUPT_MASK_1 0x2106 | |
76 | #define SUNI1x10GEXP_REG_MSTAT_INTERRUPT_MASK_2 0x2107 | |
77 | #define SUNI1x10GEXP_REG_MSTAT_INTERRUPT_MASK_3 0x2108 | |
78 | #define SUNI1x10GEXP_REG_MSTAT_COUNTER_0_LOW 0x2110 | |
79 | #define SUNI1x10GEXP_REG_MSTAT_COUNTER_1_LOW 0x2114 | |
80 | #define SUNI1x10GEXP_REG_MSTAT_COUNTER_4_LOW 0x2120 | |
81 | #define SUNI1x10GEXP_REG_MSTAT_COUNTER_5_LOW 0x2124 | |
82 | #define SUNI1x10GEXP_REG_MSTAT_COUNTER_6_LOW 0x2128 | |
83 | #define SUNI1x10GEXP_REG_MSTAT_COUNTER_8_LOW 0x2130 | |
84 | #define SUNI1x10GEXP_REG_MSTAT_COUNTER_10_LOW 0x2138 | |
85 | #define SUNI1x10GEXP_REG_MSTAT_COUNTER_11_LOW 0x213C | |
86 | #define SUNI1x10GEXP_REG_MSTAT_COUNTER_12_LOW 0x2140 | |
87 | #define SUNI1x10GEXP_REG_MSTAT_COUNTER_13_LOW 0x2144 | |
88 | #define SUNI1x10GEXP_REG_MSTAT_COUNTER_15_LOW 0x214C | |
89 | #define SUNI1x10GEXP_REG_MSTAT_COUNTER_16_LOW 0x2150 | |
90 | #define SUNI1x10GEXP_REG_MSTAT_COUNTER_17_LOW 0x2154 | |
91 | #define SUNI1x10GEXP_REG_MSTAT_COUNTER_18_LOW 0x2158 | |
92 | #define SUNI1x10GEXP_REG_MSTAT_COUNTER_33_LOW 0x2194 | |
93 | #define SUNI1x10GEXP_REG_MSTAT_COUNTER_35_LOW 0x219C | |
94 | #define SUNI1x10GEXP_REG_MSTAT_COUNTER_36_LOW 0x21A0 | |
95 | #define SUNI1x10GEXP_REG_MSTAT_COUNTER_38_LOW 0x21A8 | |
96 | #define SUNI1x10GEXP_REG_MSTAT_COUNTER_40_LOW 0x21B0 | |
97 | #define SUNI1x10GEXP_REG_MSTAT_COUNTER_42_LOW 0x21B8 | |
98 | #define SUNI1x10GEXP_REG_MSTAT_COUNTER_43_LOW 0x21BC | |
99 | #define SUNI1x10GEXP_REG_IFLX_FIFO_OVERFLOW_ENABLE 0x2209 | |
100 | #define SUNI1x10GEXP_REG_IFLX_FIFO_OVERFLOW_INTERRUPT 0x220A | |
101 | #define SUNI1x10GEXP_REG_PL4ODP_INTERRUPT_MASK 0x2282 | |
102 | #define SUNI1x10GEXP_REG_PL4ODP_INTERRUPT 0x2283 | |
103 | #define SUNI1x10GEXP_REG_PL4IO_LOCK_DETECT_STATUS 0x2300 | |
104 | #define SUNI1x10GEXP_REG_PL4IO_LOCK_DETECT_CHANGE 0x2301 | |
105 | #define SUNI1x10GEXP_REG_PL4IO_LOCK_DETECT_MASK 0x2302 | |
106 | #define SUNI1x10GEXP_REG_TXXG_CONFIG_1 0x3040 | |
107 | #define SUNI1x10GEXP_REG_TXXG_CONFIG_3 0x3042 | |
108 | #define SUNI1x10GEXP_REG_TXXG_INTERRUPT 0x3043 | |
109 | #define SUNI1x10GEXP_REG_TXXG_MAX_FRAME_SIZE 0x3045 | |
110 | #define SUNI1x10GEXP_REG_TXXG_SA_15_0 0x3047 | |
111 | #define SUNI1x10GEXP_REG_TXXG_SA_31_16 0x3048 | |
112 | #define SUNI1x10GEXP_REG_TXXG_SA_47_32 0x3049 | |
113 | #define SUNI1x10GEXP_REG_XTEF_INTERRUPT_STATUS 0x3084 | |
114 | #define SUNI1x10GEXP_REG_XTEF_INTERRUPT_ENABLE 0x3085 | |
115 | #define SUNI1x10GEXP_REG_TXOAM_INTERRUPT_ENABLE 0x30C6 | |
116 | #define SUNI1x10GEXP_REG_TXOAM_INTERRUPT_STATUS 0x30C7 | |
117 | #define SUNI1x10GEXP_REG_EFLX_FIFO_OVERFLOW_ERROR_ENABLE 0x320C | |
118 | #define SUNI1x10GEXP_REG_EFLX_FIFO_OVERFLOW_ERROR_INDICATION 0x320D | |
119 | #define SUNI1x10GEXP_REG_PL4IDU_INTERRUPT_MASK 0x3282 | |
120 | #define SUNI1x10GEXP_REG_PL4IDU_INTERRUPT 0x3283 | |
121 | ||
122 | /******************************************************************************/ | |
123 | /* -- End register offset definitions -- */ | |
124 | /******************************************************************************/ | |
125 | ||
126 | /******************************************************************************/ | |
127 | /** SUNI-1x10GE-XP REGISTER BIT MASKS **/ | |
128 | /******************************************************************************/ | |
129 | ||
130 | /*---------------------------------------------------------------------------- | |
131 | * Register 0x0004: S/UNI-1x10GE-XP Device Status | |
132 | * Bit 9 TOP_SXRA_EXPIRED | |
133 | * Bit 8 TOP_MDIO_BUSY | |
134 | * Bit 7 TOP_DTRB | |
135 | * Bit 6 TOP_EXPIRED | |
136 | * Bit 5 TOP_PAUSED | |
137 | * Bit 4 TOP_PL4_ID_DOOL | |
138 | * Bit 3 TOP_PL4_IS_DOOL | |
139 | * Bit 2 TOP_PL4_ID_ROOL | |
140 | * Bit 1 TOP_PL4_IS_ROOL | |
141 | * Bit 0 TOP_PL4_OUT_ROOL | |
142 | *----------------------------------------------------------------------------*/ | |
143 | #define SUNI1x10GEXP_BITMSK_TOP_SXRA_EXPIRED 0x0200 | |
144 | #define SUNI1x10GEXP_BITMSK_TOP_EXPIRED 0x0040 | |
145 | #define SUNI1x10GEXP_BITMSK_TOP_PL4_ID_DOOL 0x0010 | |
146 | #define SUNI1x10GEXP_BITMSK_TOP_PL4_IS_DOOL 0x0008 | |
147 | #define SUNI1x10GEXP_BITMSK_TOP_PL4_ID_ROOL 0x0004 | |
148 | #define SUNI1x10GEXP_BITMSK_TOP_PL4_IS_ROOL 0x0002 | |
149 | #define SUNI1x10GEXP_BITMSK_TOP_PL4_OUT_ROOL 0x0001 | |
150 | ||
151 | /*---------------------------------------------------------------------------- | |
152 | * Register 0x000E:PM3393 Global interrupt enable | |
153 | * Bit 15 TOP_INTE | |
154 | *----------------------------------------------------------------------------*/ | |
155 | #define SUNI1x10GEXP_BITMSK_TOP_INTE 0x8000 | |
156 | ||
157 | /*---------------------------------------------------------------------------- | |
158 | * Register 0x2040: RXXG Configuration 1 | |
159 | * Bit 15 RXXG_RXEN | |
160 | * Bit 14 RXXG_ROCF | |
161 | * Bit 13 RXXG_PAD_STRIP | |
162 | * Bit 10 RXXG_PUREP | |
163 | * Bit 9 RXXG_LONGP | |
164 | * Bit 8 RXXG_PARF | |
165 | * Bit 7 RXXG_FLCHK | |
166 | * Bit 5 RXXG_PASS_CTRL | |
167 | * Bit 3 RXXG_CRC_STRIP | |
168 | * Bit 2-0 RXXG_MIFG | |
169 | *----------------------------------------------------------------------------*/ | |
170 | #define SUNI1x10GEXP_BITMSK_RXXG_RXEN 0x8000 | |
171 | #define SUNI1x10GEXP_BITMSK_RXXG_PUREP 0x0400 | |
172 | #define SUNI1x10GEXP_BITMSK_RXXG_FLCHK 0x0080 | |
173 | #define SUNI1x10GEXP_BITMSK_RXXG_CRC_STRIP 0x0008 | |
174 | ||
175 | /*---------------------------------------------------------------------------- | |
176 | * Register 0x2070: RXXG Address Filter Control 2 | |
177 | * Bit 1 RXXG_PMODE | |
178 | * Bit 0 RXXG_MHASH_EN | |
179 | *----------------------------------------------------------------------------*/ | |
180 | #define SUNI1x10GEXP_BITMSK_RXXG_PMODE 0x0002 | |
181 | #define SUNI1x10GEXP_BITMSK_RXXG_MHASH_EN 0x0001 | |
182 | ||
183 | /*---------------------------------------------------------------------------- | |
184 | * Register 0x2100: MSTAT Control | |
185 | * Bit 2 MSTAT_WRITE | |
186 | * Bit 1 MSTAT_CLEAR | |
187 | * Bit 0 MSTAT_SNAP | |
188 | *----------------------------------------------------------------------------*/ | |
189 | #define SUNI1x10GEXP_BITMSK_MSTAT_CLEAR 0x0002 | |
190 | #define SUNI1x10GEXP_BITMSK_MSTAT_SNAP 0x0001 | |
191 | ||
192 | /*---------------------------------------------------------------------------- | |
193 | * Register 0x3040: TXXG Configuration Register 1 | |
194 | * Bit 15 TXXG_TXEN0 | |
195 | * Bit 13 TXXG_HOSTPAUSE | |
196 | * Bit 12-7 TXXG_IPGT | |
197 | * Bit 5 TXXG_32BIT_ALIGN | |
198 | * Bit 4 TXXG_CRCEN | |
199 | * Bit 3 TXXG_FCTX | |
200 | * Bit 2 TXXG_FCRX | |
201 | * Bit 1 TXXG_PADEN | |
202 | * Bit 0 TXXG_SPRE | |
203 | *----------------------------------------------------------------------------*/ | |
204 | #define SUNI1x10GEXP_BITMSK_TXXG_TXEN0 0x8000 | |
205 | #define SUNI1x10GEXP_BITOFF_TXXG_IPGT 7 | |
206 | #define SUNI1x10GEXP_BITMSK_TXXG_32BIT_ALIGN 0x0020 | |
207 | #define SUNI1x10GEXP_BITMSK_TXXG_CRCEN 0x0010 | |
208 | #define SUNI1x10GEXP_BITMSK_TXXG_FCTX 0x0008 | |
209 | #define SUNI1x10GEXP_BITMSK_TXXG_FCRX 0x0004 | |
210 | #define SUNI1x10GEXP_BITMSK_TXXG_PADEN 0x0002 | |
211 | ||
559fb51b | 212 | #endif /* _CXGB_SUNI1x10GEXP_REGS_H_ */ |
8199d3a7 | 213 |