Go to the documentation of this file.
29 #ifndef __ASM_RC32434_ETH_H
30 #define __ASM_RC32434_ETH_H
33 #define ETH0_BASE_ADDR 0x18060000
84 #define ETH_INT_FC_EN (1 << 0)
85 #define ETH_INT_FC_ITS (1 << 1)
86 #define ETH_INT_FC_RIP (1 << 2)
87 #define ETH_INT_FC_JAM (1 << 3)
88 #define ETH_INT_FC_OVR (1 << 4)
89 #define ETH_INT_FC_UND (1 << 5)
90 #define ETH_INT_FC_IOC 0x000000c0
93 #define ETH_FIFI_TT_TTH_BIT 0
94 #define ETH_FIFO_TT_TTH 0x0000007f
97 #define ETH_ARC_PRO (1 << 0)
98 #define ETH_ARC_AM (1 << 1)
99 #define ETH_ARC_AFM (1 << 2)
100 #define ETH_ARC_AB (1 << 3)
103 #define ETH_SAL_BYTE_5 0x000000ff
104 #define ETH_SAL_BYTE_4 0x0000ff00
105 #define ETH_SAL_BYTE_3 0x00ff0000
106 #define ETH_SAL_BYTE_2 0xff000000
109 #define ETH_SAH_BYTE1 0x000000ff
110 #define ETH_SAH_BYTE0 0x0000ff00
113 #define ETH_GPF_PTV 0x0000ffff
116 #define ETH_PFS_PFD (1 << 0)
119 #define ETH_CFSA0_CFSA4 0x000000ff
120 #define ETH_CFSA0_CFSA5 0x0000ff00
121 #define ETH_CFSA1_CFSA2 0x000000ff
122 #define ETH_CFSA1_CFSA3 0x0000ff00
123 #define ETH_CFSA1_CFSA0 0x000000ff
124 #define ETH_CFSA1_CFSA1 0x0000ff00
127 #define ETH_MAC1_RE (1 << 0)
128 #define ETH_MAC1_PAF (1 << 1)
129 #define ETH_MAC1_RFC (1 << 2)
130 #define ETH_MAC1_TFC (1 << 3)
131 #define ETH_MAC1_LB (1 << 4)
132 #define ETH_MAC1_MR (1 << 31)
135 #define ETH_MAC2_FD (1 << 0)
136 #define ETH_MAC2_FLC (1 << 1)
137 #define ETH_MAC2_HFE (1 << 2)
138 #define ETH_MAC2_DC (1 << 3)
139 #define ETH_MAC2_CEN (1 << 4)
140 #define ETH_MAC2_PE (1 << 5)
141 #define ETH_MAC2_VPE (1 << 6)
142 #define ETH_MAC2_APE (1 << 7)
143 #define ETH_MAC2_PPE (1 << 8)
144 #define ETH_MAC2_LPE (1 << 9)
145 #define ETH_MAC2_NB (1 << 12)
146 #define ETH_MAC2_BP (1 << 13)
147 #define ETH_MAC2_ED (1 << 14)
150 #define ETH_IPGT 0x0000007f
153 #define ETH_IPGR_IPGR2 0x0000007f
154 #define ETH_IPGR_IPGR1 0x00007f00
157 #define ETH_CLRT_MAX_RET 0x0000000f
158 #define ETH_CLRT_COL_WIN 0x00003f00
161 #define ETH_MAXF 0x0000ffff
164 #define ETH_TEST_REG (1 << 2)
165 #define ETH_MCP_DIV 0x000000ff
168 #define ETH_MII_CFG_RSVD 0x0000000c
169 #define ETH_MII_CMD_RD (1 << 0)
170 #define ETH_MII_CMD_SCN (1 << 1)
171 #define ETH_MII_REG_ADDR 0x0000001f
172 #define ETH_MII_PHY_ADDR 0x00001f00
173 #define ETH_MII_WTD_DATA 0x0000ffff
174 #define ETH_MII_RDD_DATA 0x0000ffff
175 #define ETH_MII_IND_BSY (1 << 0)
176 #define ETH_MII_IND_SCN (1 << 1)
177 #define ETH_MII_IND_NV (1 << 2)
183 #define ETH_RX_FD (1 << 0)
184 #define ETH_RX_LD (1 << 1)
185 #define ETH_RX_ROK (1 << 2)
186 #define ETH_RX_FM (1 << 3)
187 #define ETH_RX_MP (1 << 4)
188 #define ETH_RX_BP (1 << 5)
189 #define ETH_RX_VLT (1 << 6)
190 #define ETH_RX_CF (1 << 7)
191 #define ETH_RX_OVR (1 << 8)
192 #define ETH_RX_CRC (1 << 9)
193 #define ETH_RX_CV (1 << 10)
194 #define ETH_RX_DB (1 << 11)
195 #define ETH_RX_LE (1 << 12)
196 #define ETH_RX_LOR (1 << 13)
197 #define ETH_RX_CES (1 << 14)
198 #define ETH_RX_LEN_BIT 16
199 #define ETH_RX_LEN 0xffff0000
201 #define ETH_TX_FD (1 << 0)
202 #define ETH_TX_LD (1 << 1)
203 #define ETH_TX_OEN (1 << 2)
204 #define ETH_TX_PEN (1 << 3)
205 #define ETH_TX_CEN (1 << 4)
206 #define ETH_TX_HEN (1 << 5)
207 #define ETH_TX_TOK (1 << 6)
208 #define ETH_TX_MP (1 << 7)
209 #define ETH_TX_BP (1 << 8)
210 #define ETH_TX_UND (1 << 9)
211 #define ETH_TX_OF (1 << 10)
212 #define ETH_TX_ED (1 << 11)
213 #define ETH_TX_EC (1 << 12)
214 #define ETH_TX_LC (1 << 13)
215 #define ETH_TX_TD (1 << 14)
216 #define ETH_TX_CRC (1 << 15)
217 #define ETH_TX_LE (1 << 16)
218 #define ETH_TX_CC 0x001E0000