1 /**************************************************************************
3 * BRIEF MODULE DESCRIPTION
4 * Ethernet register definition
6 * Copyright 2004 IDT Inc. (rischelp@idt.com)
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the
10 * Free Software Foundation; either version 2 of the License, or (at your
11 * option) any later version.
13 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
14 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
15 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
16 * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
17 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
19 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
20 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 * You should have received a copy of the GNU General Public License along
25 * with this program; if not, write to the Free Software Foundation, Inc.,
26 * 675 Mass Ave, Cambridge, MA 02139, USA.
29 **************************************************************************
36 **************************************************************************
45 ETH0_PhysicalAddress
= 0x18060000,
46 ETH_PhysicalAddress
= ETH0_PhysicalAddress
, // Default
48 ETH0_VirtualAddress
= 0xb8060000,
49 ETH_VirtualAddress
= ETH0_VirtualAddress
, // Default
59 u32 ethu0
[4] ; // Reserved.
62 u32 eth_u1
[10] ; // Reserved.
64 u32 eth_u2
[42] ; // Reserved.
79 u32 eth_u9
[50] ; // Reserved.
86 u32 eth_u10
; // Reserved.
94 u32 eth_u11
; // Reserved.
95 u32 eth_u12
; // Reserved.
104 ETHINTFC_en_m
= 0x00000001,
106 ETHINTFC_its_m
= 0x00000002,
108 ETHINTFC_rip_m
= 0x00000004,
110 ETHINTFC_jam_m
= 0x00000008,
112 ETHINTFC_ovr_m
= 0x00000010,
114 ETHINTFC_und_m
= 0x00000020,
117 ETHFIFOTT_tth_m
= 0x0000007f,
120 ETHARC_pro_m
= 0x00000001,
122 ETHARC_am_m
= 0x00000002,
124 ETHARC_afm_m
= 0x00000004,
126 ETHARC_ab_m
= 0x00000008,
129 ETHSAL_byte5_m
= 0x000000ff,
131 ETHSAL_byte4_m
= 0x0000ff00,
133 ETHSAL_byte3_m
= 0x00ff0000,
135 ETHSAL_byte2_m
= 0xff000000,
138 ETHSAH_byte1_m
= 0x000000ff,
140 ETHSAH_byte0_m
= 0x0000ff00,
143 ETHGPF_ptv_m
= 0x0000ffff,
146 ETHPFS_pfd_m
= 0x00000001,
148 ETHCFSA0_cfsa4_b
= 0,
149 ETHCFSA0_cfsa4_m
= 0x000000ff,
150 ETHCFSA0_cfsa5_b
= 8,
151 ETHCFSA0_cfsa5_m
= 0x0000ff00,
153 ETHCFSA1_cfsa2_b
= 0,
154 ETHCFSA1_cfsa2_m
= 0x000000ff,
155 ETHCFSA1_cfsa3_b
= 8,
156 ETHCFSA1_cfsa3_m
= 0x0000ff00,
158 ETHCFSA2_cfsa0_b
= 0,
159 ETHCFSA2_cfsa0_m
= 0x000000ff,
160 ETHCFSA2_cfsa1_b
= 8,
161 ETHCFSA2_cfsa1_m
= 0x0000ff00,
164 ETHMAC1_re_m
= 0x00000001,
166 ETHMAC1_paf_m
= 0x00000002,
168 ETHMAC1_rfc_m
= 0x00000004,
170 ETHMAC1_tfc_m
= 0x00000008,
172 ETHMAC1_lb_m
= 0x00000010,
174 ETHMAC1_mr_m
= 0x80000000,
177 ETHMAC2_fd_m
= 0x00000001,
179 ETHMAC2_flc_m
= 0x00000002,
181 ETHMAC2_hfe_m
= 0x00000004,
183 ETHMAC2_dc_m
= 0x00000008,
185 ETHMAC2_cen_m
= 0x00000010,
187 ETHMAC2_pe_m
= 0x00000020,
189 ETHMAC2_vpe_m
= 0x00000040,
191 ETHMAC2_ape_m
= 0x00000080,
193 ETHMAC2_ppe_m
= 0x00000100,
195 ETHMAC2_lpe_m
= 0x00000200,
197 ETHMAC2_nb_m
= 0x00001000,
199 ETHMAC2_bp_m
= 0x00002000,
201 ETHMAC2_ed_m
= 0x00004000,
204 ETHIPGT_ipgt_m
= 0x0000007f,
207 ETHIPGR_ipgr2_m
= 0x0000007f,
209 ETHIPGR_ipgr1_m
= 0x00007f00,
211 ETHCLRT_maxret_b
= 0,
212 ETHCLRT_maxret_m
= 0x0000000f,
213 ETHCLRT_colwin_b
= 8,
214 ETHCLRT_colwin_m
= 0x00003f00,
217 ETHMAXF_maxf_m
= 0x0000ffff,
220 ETHMTEST_tb_m
= 0x00000004,
223 ETHMCP_div_m
= 0x000000ff,
226 MIIMCFG_rsv_m
= 0x0000000c,
229 MIIMCMD_rd_m
= 0x00000001,
231 MIIMCMD_scn_m
= 0x00000002,
233 MIIMADDR_regaddr_b
= 0,
234 MIIMADDR_regaddr_m
= 0x0000001f,
235 MIIMADDR_phyaddr_b
= 8,
236 MIIMADDR_phyaddr_m
= 0x00001f00,
239 MIIMWTD_wdata_m
= 0x0000ffff,
242 MIIMRDD_rdata_m
= 0x0000ffff,
245 MIIMIND_bsy_m
= 0x00000001,
247 MIIMIND_scn_m
= 0x00000002,
249 MIIMIND_nv_m
= 0x00000004,
254 * Values for the DEVCS field of the Ethernet DMA Rx and Tx descriptors.
259 ETHRX_fd_m
= 0x00000001,
261 ETHRX_ld_m
= 0x00000002,
263 ETHRX_rok_m
= 0x00000004,
265 ETHRX_fm_m
= 0x00000008,
267 ETHRX_mp_m
= 0x00000010,
269 ETHRX_bp_m
= 0x00000020,
271 ETHRX_vlt_m
= 0x00000040,
273 ETHRX_cf_m
= 0x00000080,
275 ETHRX_ovr_m
= 0x00000100,
277 ETHRX_crc_m
= 0x00000200,
279 ETHRX_cv_m
= 0x00000400,
281 ETHRX_db_m
= 0x00000800,
283 ETHRX_le_m
= 0x00001000,
285 ETHRX_lor_m
= 0x00002000,
287 ETHRX_ces_m
= 0x00004000,
289 ETHRX_length_m
= 0xffff0000,
292 ETHTX_fd_m
= 0x00000001,
294 ETHTX_ld_m
= 0x00000002,
296 ETHTX_oen_m
= 0x00000004,
298 ETHTX_pen_m
= 0x00000008,
300 ETHTX_cen_m
= 0x00000010,
302 ETHTX_hen_m
= 0x00000020,
304 ETHTX_tok_m
= 0x00000040,
306 ETHTX_mp_m
= 0x00000080,
308 ETHTX_bp_m
= 0x00000100,
310 ETHTX_und_m
= 0x00000200,
312 ETHTX_of_m
= 0x00000400,
314 ETHTX_ed_m
= 0x00000800,
316 ETHTX_ec_m
= 0x00001000,
318 ETHTX_lc_m
= 0x00002000,
320 ETHTX_td_m
= 0x00004000,
322 ETHTX_crc_m
= 0x00008000,
324 ETHTX_le_m
= 0x00010000,
326 ETHTX_cc_m
= 0x001E0000,
329 #endif // __IDT_ETH_H__
This page took 0.059932 seconds and 5 git commands to generate.