4 /*******************************************************************************
6 * Copyright 2002 Integrated Device Technology, Inc.
9 * Ethernet register definition.
11 * File : $Id: eth.h,v 1.3 2002/06/06 18:34:04 astichte Exp $
13 * Author : Allen.Stichter@idt.com
17 * Revision 1.3 2002/06/06 18:34:04 astichte
18 * Added XXX_PhysicalAddress and XXX_VirtualAddress
20 * Revision 1.2 2002/06/05 18:19:46 astichte
23 * Revision 1.1 2002/05/29 17:33:22 sysarch
24 * jba File moved from vcode/include/idt/acacia
26 ******************************************************************************/
30 ETH0_PhysicalAddress
= 0x18060000,
31 ETH_PhysicalAddress
= ETH0_PhysicalAddress
, // Default
33 ETH0_VirtualAddress
= 0xb8060000,
34 ETH_VirtualAddress
= ETH0_VirtualAddress
, // Default
44 u32 ethu0
[4] ; // Reserved.
47 u32 eth_u1
[10] ; // Reserved.
49 u32 eth_u2
[42] ; // Reserved.
64 u32 eth_u9
[50] ; // Reserved.
71 u32 eth_u10
; // Reserved.
79 u32 eth_u11
; // Reserved.
80 u32 eth_u12
; // Reserved.
89 ETHINTFC_en_m
= 0x00000001,
91 ETHINTFC_its_m
= 0x00000002,
93 ETHINTFC_rip_m
= 0x00000004,
95 ETHINTFC_jam_m
= 0x00000008,
97 ETHINTFC_ovr_m
= 0x00000010,
99 ETHINTFC_und_m
= 0x00000020,
101 ETHINTFC_iom_m
= 0x000000c0,
104 ETHFIFOTT_tth_m
= 0x0000007f,
107 ETHARC_pro_m
= 0x00000001,
109 ETHARC_am_m
= 0x00000002,
111 ETHARC_afm_m
= 0x00000004,
113 ETHARC_ab_m
= 0x00000008,
116 ETHSAL_byte5_m
= 0x000000ff,
118 ETHSAL_byte4_m
= 0x0000ff00,
120 ETHSAL_byte3_m
= 0x00ff0000,
122 ETHSAL_byte2_m
= 0xff000000,
125 ETHSAH_byte1_m
= 0x000000ff,
127 ETHSAH_byte0_m
= 0x0000ff00,
130 ETHGPF_ptv_m
= 0x0000ffff,
133 ETHPFS_pfd_m
= 0x00000001,
135 ETHCFSA0_cfsa4_b
= 0,
136 ETHCFSA0_cfsa4_m
= 0x000000ff,
137 ETHCFSA0_cfsa5_b
= 8,
138 ETHCFSA0_cfsa5_m
= 0x0000ff00,
140 ETHCFSA1_cfsa2_b
= 0,
141 ETHCFSA1_cfsa2_m
= 0x000000ff,
142 ETHCFSA1_cfsa3_b
= 8,
143 ETHCFSA1_cfsa3_m
= 0x0000ff00,
145 ETHCFSA2_cfsa0_b
= 0,
146 ETHCFSA2_cfsa0_m
= 0x000000ff,
147 ETHCFSA2_cfsa1_b
= 8,
148 ETHCFSA2_cfsa1_m
= 0x0000ff00,
151 ETHMAC1_re_m
= 0x00000001,
153 ETHMAC1_paf_m
= 0x00000002,
155 ETHMAC1_rfc_m
= 0x00000004,
157 ETHMAC1_tfc_m
= 0x00000008,
159 ETHMAC1_lb_m
= 0x00000010,
161 ETHMAC1_mr_m
= 0x80000000,
164 ETHMAC2_fd_m
= 0x00000001,
166 ETHMAC2_flc_m
= 0x00000002,
168 ETHMAC2_hfe_m
= 0x00000004,
170 ETHMAC2_dc_m
= 0x00000008,
172 ETHMAC2_cen_m
= 0x00000010,
174 ETHMAC2_pe_m
= 0x00000020,
176 ETHMAC2_vpe_m
= 0x00000040,
178 ETHMAC2_ape_m
= 0x00000080,
180 ETHMAC2_ppe_m
= 0x00000100,
182 ETHMAC2_lpe_m
= 0x00000200,
184 ETHMAC2_nb_m
= 0x00001000,
186 ETHMAC2_bp_m
= 0x00002000,
188 ETHMAC2_ed_m
= 0x00004000,
191 ETHIPGT_ipgt_m
= 0x0000007f,
194 ETHIPGR_ipgr2_m
= 0x0000007f,
196 ETHIPGR_ipgr1_m
= 0x00007f00,
198 ETHCLRT_maxret_b
= 0,
199 ETHCLRT_maxret_m
= 0x0000000f,
200 ETHCLRT_colwin_b
= 8,
201 ETHCLRT_colwin_m
= 0x00003f00,
204 ETHMAXF_maxf_m
= 0x0000ffff,
207 ETHMTEST_tb_m
= 0x00000004,
210 ETHMCP_div_m
= 0x000000ff,
213 MIIMCFG_rsv_m
= 0x0000000c,
216 MIIMCMD_rd_m
= 0x00000001,
218 MIIMCMD_scn_m
= 0x00000002,
220 MIIMADDR_regaddr_b
= 0,
221 MIIMADDR_regaddr_m
= 0x0000001f,
222 MIIMADDR_phyaddr_b
= 8,
223 MIIMADDR_phyaddr_m
= 0x00001f00,
226 MIIMWTD_wdata_m
= 0x0000ffff,
229 MIIMRDD_rdata_m
= 0x0000ffff,
232 MIIMIND_bsy_m
= 0x00000001,
234 MIIMIND_scn_m
= 0x00000002,
236 MIIMIND_nv_m
= 0x00000004,
241 * Values for the DEVCS field of the Ethernet DMA Rx and Tx descriptors.
246 ETHRX_fd_m
= 0x00000001,
248 ETHRX_ld_m
= 0x00000002,
250 ETHRX_rok_m
= 0x00000004,
252 ETHRX_fm_m
= 0x00000008,
254 ETHRX_mp_m
= 0x00000010,
256 ETHRX_bp_m
= 0x00000020,
258 ETHRX_vlt_m
= 0x00000040,
260 ETHRX_cf_m
= 0x00000080,
262 ETHRX_ovr_m
= 0x00000100,
264 ETHRX_crc_m
= 0x00000200,
266 ETHRX_cv_m
= 0x00000400,
268 ETHRX_db_m
= 0x00000800,
270 ETHRX_le_m
= 0x00001000,
272 ETHRX_lor_m
= 0x00002000,
274 ETHRX_ces_m
= 0x00004000,
276 ETHRX_length_m
= 0xffff0000,
279 ETHTX_fd_m
= 0x00000001,
281 ETHTX_ld_m
= 0x00000002,
283 ETHTX_oen_m
= 0x00000004,
285 ETHTX_pen_m
= 0x00000008,
287 ETHTX_cen_m
= 0x00000010,
289 ETHTX_hen_m
= 0x00000020,
291 ETHTX_tok_m
= 0x00000040,
293 ETHTX_mp_m
= 0x00000080,
295 ETHTX_bp_m
= 0x00000100,
297 ETHTX_und_m
= 0x00000200,
299 ETHTX_of_m
= 0x00000400,
301 ETHTX_ed_m
= 0x00000800,
303 ETHTX_ec_m
= 0x00001000,
305 ETHTX_lc_m
= 0x00002000,
307 ETHTX_td_m
= 0x00004000,
309 ETHTX_crc_m
= 0x00008000,
311 ETHTX_le_m
= 0x00010000,
313 ETHTX_cc_m
= 0x001E0000,
316 #endif // __IDT_ETH_H__
This page took 0.059018 seconds and 5 git commands to generate.