1 |
27 |
unneback |
//=============================================================================
|
2 |
|
|
//
|
3 |
|
|
// mod_regs_eth.h
|
4 |
|
|
//
|
5 |
|
|
// EtherC (ethernet controller) Module register definitions
|
6 |
|
|
//
|
7 |
|
|
//=============================================================================
|
8 |
|
|
//####ECOSGPLCOPYRIGHTBEGIN####
|
9 |
|
|
// -------------------------------------------
|
10 |
|
|
// This file is part of eCos, the Embedded Configurable Operating System.
|
11 |
|
|
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
|
12 |
|
|
//
|
13 |
|
|
// eCos is free software; you can redistribute it and/or modify it under
|
14 |
|
|
// the terms of the GNU General Public License as published by the Free
|
15 |
|
|
// Software Foundation; either version 2 or (at your option) any later version.
|
16 |
|
|
//
|
17 |
|
|
// eCos is distributed in the hope that it will be useful, but WITHOUT ANY
|
18 |
|
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
19 |
|
|
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
20 |
|
|
// for more details.
|
21 |
|
|
//
|
22 |
|
|
// You should have received a copy of the GNU General Public License along
|
23 |
|
|
// with eCos; if not, write to the Free Software Foundation, Inc.,
|
24 |
|
|
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
|
25 |
|
|
//
|
26 |
|
|
// As a special exception, if other files instantiate templates or use macros
|
27 |
|
|
// or inline functions from this file, or you compile this file and link it
|
28 |
|
|
// with other works to produce a work based on this file, this file does not
|
29 |
|
|
// by itself cause the resulting work to be covered by the GNU General Public
|
30 |
|
|
// License. However the source code for this file must still be made available
|
31 |
|
|
// in accordance with section (3) of the GNU General Public License.
|
32 |
|
|
//
|
33 |
|
|
// This exception does not invalidate any other reasons why a work based on
|
34 |
|
|
// this file might be covered by the GNU General Public License.
|
35 |
|
|
//
|
36 |
|
|
// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
|
37 |
|
|
// at http://sources.redhat.com/ecos/ecos-license/
|
38 |
|
|
// -------------------------------------------
|
39 |
|
|
//####ECOSGPLCOPYRIGHTEND####
|
40 |
|
|
//=============================================================================
|
41 |
|
|
//#####DESCRIPTIONBEGIN####
|
42 |
|
|
//
|
43 |
|
|
// Author(s): jskov
|
44 |
|
|
// Contributors:jskov
|
45 |
|
|
// Date: 2002-01-30
|
46 |
|
|
//
|
47 |
|
|
//####DESCRIPTIONEND####
|
48 |
|
|
//
|
49 |
|
|
//=============================================================================
|
50 |
|
|
|
51 |
|
|
#define CYGARC_REG_EDMR 0xfffffd00
|
52 |
|
|
#define CYGARC_REG_EDTRR 0xfffffd04
|
53 |
|
|
#define CYGARC_REG_EDRRR 0xfffffd08
|
54 |
|
|
#define CYGARC_REG_TDLAR 0xfffffd0c
|
55 |
|
|
#define CYGARC_REG_RDLAR 0xfffffd10
|
56 |
|
|
#define CYGARC_REG_EESR 0xfffffd14
|
57 |
|
|
#define CYGARC_REG_EESIPR 0xfffffd18
|
58 |
|
|
#define CYGARC_REG_TRSCER 0xfffffd1c
|
59 |
|
|
#define CYGARC_REG_RMFCR 0xfffffd20
|
60 |
|
|
#define CYGARC_REG_TFTR 0xfffffd24
|
61 |
|
|
#define CYGARC_REG_FDR 0xfffffd28
|
62 |
|
|
#define CYGARC_REG_RCR 0xfffffd2c
|
63 |
|
|
#define CYGARC_REG_EDOCR 0xfffffd30
|
64 |
|
|
#define CYGARC_REG_RBWAR 0xfffffd40
|
65 |
|
|
#define CYGARC_REG_RDFAR 0xfffffd44
|
66 |
|
|
#define CYGARC_REG_TBRAR 0xfffffd4c
|
67 |
|
|
#define CYGARC_REG_TDFAR 0xfffffd50
|
68 |
|
|
|
69 |
|
|
#define CYGARC_REG_ECMR 0xfffffd60
|
70 |
|
|
#define CYGARC_REG_ECSR 0xfffffd64
|
71 |
|
|
#define CYGARC_REG_ECSIPR 0xfffffd68
|
72 |
|
|
#define CYGARC_REG_PIR 0xfffffd6c
|
73 |
|
|
#define CYGARC_REG_MAHR 0xfffffd70
|
74 |
|
|
#define CYGARC_REG_MALR 0xfffffd74
|
75 |
|
|
#define CYGARC_REG_RFLR 0xfffffd78
|
76 |
|
|
#define CYGARC_REG_PSR 0xfffffd7c
|
77 |
|
|
#define CYGARC_REG_TROCR 0xfffffd80
|
78 |
|
|
#define CYGARC_REG_CDCR 0xfffffd84
|
79 |
|
|
#define CYGARC_REG_LCCR 0xfffffd88
|
80 |
|
|
#define CYGARC_REG_CNDCR 0xfffffd8c
|
81 |
|
|
#define CYGARC_REG_IFLCR 0xfffffd90
|
82 |
|
|
#define CYGARC_REG_CECFR 0xfffffd94
|
83 |
|
|
#define CYGARC_REG_FRECR 0xfffffd98
|
84 |
|
|
#define CYGARC_REG_TSFRCR 0xfffffd9c
|
85 |
|
|
#define CYGARC_REG_TLFRCR 0xfffffda0
|
86 |
|
|
#define CYGARC_REG_RFCR 0xfffffda4
|
87 |
|
|
#define CYGARC_REG_MAFCR 0xfffffda8
|
88 |
|
|
|
89 |
|
|
|
90 |
|
|
#define CYGARC_REG_PIR_MDI 0x00000008
|
91 |
|
|
#define CYGARC_REG_PIR_MDO 0x00000004
|
92 |
|
|
#define CYGARC_REG_PIR_MMD_WRITE 0x00000002
|
93 |
|
|
#define CYGARC_REG_PIR_MMD_READ 0x00000000
|
94 |
|
|
#define CYGARC_REG_PIR_MDC 0x00000001
|
95 |
|
|
|
96 |
|
|
#define CYGARC_REG_RCR_RNC 0x00000001
|
97 |
|
|
|
98 |
|
|
#define CYGARC_REG_EESR_RFCOF 0x01000000
|
99 |
|
|
#define CYGARC_REG_EESR_ECI 0x00400000
|
100 |
|
|
#define CYGARC_REG_EESR_TC 0x00200000
|
101 |
|
|
#define CYGARC_REG_EESR_TDE 0x00100000
|
102 |
|
|
#define CYGARC_REG_EESR_TFUF 0x00080000
|
103 |
|
|
#define CYGARC_REG_EESR_FR 0x00040000
|
104 |
|
|
#define CYGARC_REG_EESR_RDE 0x00020000
|
105 |
|
|
#define CYGARC_REG_EESR_RFOF 0x00010000
|
106 |
|
|
#define CYGARC_REG_EESR_ITF 0x00001000
|
107 |
|
|
#define CYGARC_REG_EESR_CND 0x00000800
|
108 |
|
|
#define CYGARC_REG_EESR_DLC 0x00000400
|
109 |
|
|
#define CYGARC_REG_EESR_CD 0x00000200
|
110 |
|
|
#define CYGARC_REG_EESR_TRO 0x00000100
|
111 |
|
|
#define CYGARC_REG_EESR_RMAF 0x00000080
|
112 |
|
|
#define CYGARC_REG_EESR_RRF 0x00000010
|
113 |
|
|
#define CYGARC_REG_EESR_RTLF 0x00000008
|
114 |
|
|
#define CYGARC_REG_EESR_RTSF 0x00000004
|
115 |
|
|
#define CYGARC_REG_EESR_PRE 0x00000002
|
116 |
|
|
#define CYGARC_REG_EESR_CERF 0x00000001
|
117 |
|
|
|
118 |
|
|
#define CYGARC_REG_EESIPR_RFCOFIP 0x01000000
|
119 |
|
|
#define CYGARC_REG_EESIPR_ECIIP 0x00400000
|
120 |
|
|
#define CYGARC_REG_EESIPR_TCIP 0x00200000
|
121 |
|
|
#define CYGARC_REG_EESIPR_TDEIP 0x00100000
|
122 |
|
|
#define CYGARC_REG_EESIPR_TFUFIP 0x00080000
|
123 |
|
|
#define CYGARC_REG_EESIPR_FRIP 0x00040000
|
124 |
|
|
#define CYGARC_REG_EESIPR_RDEIP 0x00020000
|
125 |
|
|
#define CYGARC_REG_EESIPR_RFOFIP 0x00010000
|
126 |
|
|
#define CYGARC_REG_EESIPR_ITFIP 0x00001000
|
127 |
|
|
#define CYGARC_REG_EESIPR_CNDIP 0x00000800
|
128 |
|
|
#define CYGARC_REG_EESIPR_DLCIP 0x00000400
|
129 |
|
|
#define CYGARC_REG_EESIPR_CDIP 0x00000200
|
130 |
|
|
#define CYGARC_REG_EESIPR_TROIP 0x00000100
|
131 |
|
|
#define CYGARC_REG_EESIPR_RMAFIP 0x00000080
|
132 |
|
|
#define CYGARC_REG_EESIPR_RRFIP 0x00000010
|
133 |
|
|
#define CYGARC_REG_EESIPR_RTLFIP 0x00000008
|
134 |
|
|
#define CYGARC_REG_EESIPR_RTSFIP 0x00000004
|
135 |
|
|
#define CYGARC_REG_EESIPR_PREIP 0x00000002
|
136 |
|
|
#define CYGARC_REG_EESIPR_CERFIP 0x00000001
|
137 |
|
|
|
138 |
|
|
|
139 |
|
|
#define CYGARC_REG_ECMR_PRCEF 0x00001000
|
140 |
|
|
#define CYGARC_REG_ECMR_MPDE 0x00000200
|
141 |
|
|
#define CYGARC_REG_ECMR_RE 0x00000040
|
142 |
|
|
#define CYGARC_REG_ECMR_TE 0x00000020
|
143 |
|
|
#define CYGARC_REG_ECMR_ILB 0x00000008
|
144 |
|
|
#define CYGARC_REG_ECMR_ELB 0x00000004
|
145 |
|
|
#define CYGARC_REG_ECMR_DM 0x00000002
|
146 |
|
|
#define CYGARC_REG_ECMR_PRM 0x00000001
|
147 |
|
|
|
148 |
|
|
|
149 |
|
|
#define CYGARC_REG_EDMR_DL64 0x00000020
|
150 |
|
|
#define CYGARC_REG_EDMR_DL32 0x00000010
|
151 |
|
|
#define CYGARC_REG_EDMR_DL16 0x00000000
|
152 |
|
|
#define CYGARC_REG_EDMR_SWR 0x00000001
|
153 |
|
|
|
154 |
|
|
#define CYGARC_REG_PSR_LMON 0x00000001
|
155 |
|
|
|
156 |
|
|
#define CYGARC_REG_EDTRR_TR 0x00000001
|
157 |
|
|
|
158 |
|
|
#define CYGARC_REG_EDRRR_RR 0x00000001
|