This source file includes following definitions.
- ethif_probe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30 #include <linux/config.h>
31 #include <linux/netdevice.h>
32 #include <linux/errno.h>
33
34 #define NEXT_DEV NULL
35
36
37
38
39
40
41 extern int hp100_probe(struct device *dev);
42 extern int ultra_probe(struct device *dev);
43 extern int wd_probe(struct device *dev);
44 extern int el2_probe(struct device *dev);
45 extern int ne_probe(struct device *dev);
46 extern int hp_probe(struct device *dev);
47 extern int hp_plus_probe(struct device *dev);
48 extern int znet_probe(struct device *);
49 extern int express_probe(struct device *);
50 extern int eepro_probe(struct device *);
51 extern int el3_probe(struct device *);
52 extern int at1500_probe(struct device *);
53 extern int at1700_probe(struct device *);
54 extern int eth16i_probe(struct device *);
55 extern int depca_probe(struct device *);
56 extern int apricot_probe(struct device *);
57 extern int ewrk3_probe(struct device *);
58 extern int de4x5_probe(struct device *);
59 extern int el1_probe(struct device *);
60 #if defined(CONFIG_WAVELAN)
61 extern int wavelan_probe(struct device *);
62 #endif
63 extern int el16_probe(struct device *);
64 extern int elplus_probe(struct device *);
65 extern int ac3200_probe(struct device *);
66 extern int e2100_probe(struct device *);
67 extern int ni52_probe(struct device *);
68 extern int ni65_probe(struct device *);
69 extern int SK_init(struct device *);
70 extern int seeq8005_probe(struct device *);
71 extern int tc59x_probe(struct device *);
72
73
74 extern int atp_init(struct device *);
75 extern int de600_probe(struct device *);
76 extern int de620_probe(struct device *);
77
78 static int
79 ethif_probe(struct device *dev)
80 {
81 u_long base_addr = dev->base_addr;
82
83 if ((base_addr == 0xffe0) || (base_addr == 1))
84 return 1;
85
86 if (1
87 #if defined(CONFIG_VORTEX)
88 && tc59x_probe(dev)
89 #endif
90 #if defined(CONFIG_SEEQ8005)
91 && seeq8005_probe(dev)
92 #endif
93 #if defined(CONFIG_HP100)
94 && hp100_probe(dev)
95 #endif
96 #if defined(CONFIG_ULTRA)
97 && ultra_probe(dev)
98 #endif
99 #if defined(CONFIG_WD80x3) || defined(WD80x3)
100 && wd_probe(dev)
101 #endif
102 #if defined(CONFIG_EL2) || defined(EL2)
103 && el2_probe(dev)
104 #endif
105 #if defined(CONFIG_HPLAN) || defined(HPLAN)
106 && hp_probe(dev)
107 #endif
108 #if defined(CONFIG_HPLAN_PLUS)
109 && hp_plus_probe(dev)
110 #endif
111 #ifdef CONFIG_AC3200
112 && ac3200_probe(dev)
113 #endif
114 #ifdef CONFIG_E2100
115 && e2100_probe(dev)
116 #endif
117 #if defined(CONFIG_NE2000) || defined(NE2000)
118 && ne_probe(dev)
119 #endif
120 #ifdef CONFIG_AT1500
121 && at1500_probe(dev)
122 #endif
123 #ifdef CONFIG_AT1700
124 && at1700_probe(dev)
125 #endif
126 #ifdef CONFIG_ETH16I
127 && eth16i_probe(dev)
128 #endif
129 #ifdef CONFIG_EL3
130 && el3_probe(dev)
131 #endif
132 #ifdef CONFIG_ZNET
133 && znet_probe(dev)
134 #endif
135 #ifdef CONFIG_EEXPRESS
136 && express_probe(dev)
137 #endif
138 #ifdef CONFIG_EEXPRESS_PRO
139 && eepro_probe(dev)
140 #endif
141 #ifdef CONFIG_DEPCA
142 && depca_probe(dev)
143 #endif
144 #ifdef CONFIG_EWRK3
145 && ewrk3_probe(dev)
146 #endif
147 #ifdef CONFIG_DE4X5
148 && de4x5_probe(dev)
149 #endif
150 #ifdef CONFIG_APRICOT
151 && apricot_probe(dev)
152 #endif
153 #ifdef CONFIG_EL1
154 && el1_probe(dev)
155 #endif
156 #if defined(CONFIG_WAVELAN)
157 && wavelan_probe(dev)
158 #endif
159 #ifdef CONFIG_EL16
160 && el16_probe(dev)
161 #endif
162 #ifdef CONFIG_ELPLUS
163 && elplus_probe(dev)
164 #endif
165 #ifdef CONFIG_DE600
166 && de600_probe(dev)
167 #endif
168 #ifdef CONFIG_DE620
169 && de620_probe(dev)
170 #endif
171 #if defined(CONFIG_SK_G16)
172 && SK_init(dev)
173 #endif
174 #ifdef CONFIG_NI52
175 && ni52_probe(dev)
176 #endif
177 && 1 ) {
178 return 1;
179 }
180 return 0;
181 }
182
183
184 #ifdef CONFIG_NETROM
185 extern int nr_init(struct device *);
186
187 static struct device nr3_dev = { "nr3", 0, 0, 0, 0, 0, 0, 0, 0, 0, NEXT_DEV, nr_init, };
188 static struct device nr2_dev = { "nr2", 0, 0, 0, 0, 0, 0, 0, 0, 0, &nr3_dev, nr_init, };
189 static struct device nr1_dev = { "nr1", 0, 0, 0, 0, 0, 0, 0, 0, 0, &nr2_dev, nr_init, };
190 static struct device nr0_dev = { "nr0", 0, 0, 0, 0, 0, 0, 0, 0, 0, &nr1_dev, nr_init, };
191
192 # undef NEXT_DEV
193 # define NEXT_DEV (&nr0_dev)
194 #endif
195
196
197 #ifdef CONFIG_ATP
198 static struct device atp_dev = {
199 "atp0", 0, 0, 0, 0, 0, 0, 0, 0, 0, NEXT_DEV, atp_init, };
200 # undef NEXT_DEV
201 # define NEXT_DEV (&atp_dev)
202 #endif
203
204 #ifdef CONFIG_ARCNET
205 extern int arcnet_probe(struct device *dev);
206 static struct device arcnet_dev = {
207 "arc0", 0x0, 0x0, 0x0, 0x0, 0, 0, 0, 0, 0, NEXT_DEV, arcnet_probe, };
208 # undef NEXT_DEV
209 # define NEXT_DEV (&arcnet_dev)
210 #endif
211
212
213 #ifndef ETH0_ADDR
214 # define ETH0_ADDR 0
215 #endif
216 #ifndef ETH0_IRQ
217 # define ETH0_IRQ 0
218 #endif
219
220
221
222
223 static struct device eth3_dev = {
224 "eth3", 0,0,0,0,0xffe0 , 0,0,0,0, NEXT_DEV, ethif_probe };
225 static struct device eth2_dev = {
226 "eth2", 0,0,0,0,0xffe0 , 0,0,0,0, ð3_dev, ethif_probe };
227 static struct device eth1_dev = {
228 "eth1", 0,0,0,0,0xffe0 , 0,0,0,0, ð2_dev, ethif_probe };
229
230 static struct device eth0_dev = {
231 "eth0", 0, 0, 0, 0, ETH0_ADDR, ETH0_IRQ, 0, 0, 0, ð1_dev, ethif_probe };
232
233 # undef NEXT_DEV
234 # define NEXT_DEV (ð0_dev)
235
236 #if defined(PLIP) || defined(CONFIG_PLIP)
237 extern int plip_init(struct device *);
238 static struct device plip2_dev = {
239 "plip2", 0, 0, 0, 0, 0x278, 2, 0, 0, 0, NEXT_DEV, plip_init, };
240 static struct device plip1_dev = {
241 "plip1", 0, 0, 0, 0, 0x378, 7, 0, 0, 0, &plip2_dev, plip_init, };
242 static struct device plip0_dev = {
243 "plip0", 0, 0, 0, 0, 0x3BC, 5, 0, 0, 0, &plip1_dev, plip_init, };
244 # undef NEXT_DEV
245 # define NEXT_DEV (&plip0_dev)
246 #endif
247
248 #if defined(SLIP) || defined(CONFIG_SLIP)
249
250
251 extern int slip_init_ctrl_dev(struct device *);
252 static struct device slip_bootstrap = {
253 "slip_proto", 0x0, 0x0, 0x0, 0x0, 0, 0, 0, 0, 0, NEXT_DEV, slip_init_ctrl_dev, };
254 #undef NEXT_DEV
255 #define NEXT_DEV (&slip_bootstrap)
256 #endif
257
258 #if defined(CONFIG_PPP)
259 extern int ppp_init(struct device *);
260 static struct device ppp_bootstrap = {
261 "ppp_proto", 0x0, 0x0, 0x0, 0x0, 0, 0, 0, 0, 0, NEXT_DEV, ppp_init, };
262 #undef NEXT_DEV
263 #define NEXT_DEV (&ppp_bootstrap)
264 #endif
265
266 #ifdef CONFIG_DUMMY
267 extern int dummy_init(struct device *dev);
268 static struct device dummy_dev = {
269 "dummy", 0x0, 0x0, 0x0, 0x0, 0, 0, 0, 0, 0, NEXT_DEV, dummy_init, };
270 # undef NEXT_DEV
271 # define NEXT_DEV (&dummy_dev)
272 #endif
273
274 #ifdef CONFIG_EQUALIZER
275 extern int eql_init(struct device *dev);
276 struct device eql_dev = {
277 "eql",
278
279 0x0, 0x0, 0x0, 0x0,
280 0,
281 0,
282 0, 0, 0,
283 NEXT_DEV,
284 eql_init
285 };
286 # undef NEXT_DEV
287 # define NEXT_DEV (&eql_dev)
288 #endif
289
290 #ifdef CONFIG_IBMTR
291
292 extern int tok_probe(struct device *dev);
293 static struct device ibmtr_dev1 = {
294 "tr1",
295 0x0,
296 0x0,
297 0x0,
298 0x0,
299 0xa24,
300 0,
301 0, 0, 0,
302 NEXT_DEV,
303 tok_probe
304 };
305 # undef NEXT_DEV
306 # define NEXT_DEV (&ibmtr_dev1)
307
308
309 static struct device ibmtr_dev0 = {
310 "tr0",
311 0x0,
312 0x0,
313 0x0,
314 0x0,
315 0xa20,
316 0,
317 0, 0, 0,
318 NEXT_DEV,
319 tok_probe
320 };
321 # undef NEXT_DEV
322 # define NEXT_DEV (&ibmtr_dev0)
323
324 #endif
325 #ifdef CONFIG_NET_IPIP
326 #ifdef CONFIG_IP_FORWARD
327 extern int tunnel_init(struct device *);
328
329 static struct device tunnel_dev1 =
330 {
331 "tunl1",
332 0x0,
333 0x0,
334 0x0,
335 0x0,
336 0x0,
337 0,
338 0, 0, 0,
339 NEXT_DEV,
340 tunnel_init
341 };
342
343 static struct device tunnel_dev0 =
344 {
345 "tunl0",
346 0x0,
347 0x0,
348 0x0,
349 0x0,
350 0x0,
351 0,
352 0, 0, 0,
353 &tunnel_dev1,
354 tunnel_init
355 };
356 # undef NEXT_DEV
357 # define NEXT_DEV (&tunnel_dev0)
358
359 #endif
360 #endif
361
362 extern int loopback_init(struct device *dev);
363 struct device loopback_dev = {
364 "lo",
365 0x0,
366 0x0,
367 0x0,
368 0x0,
369 0,
370 0,
371 0, 0, 0,
372 NEXT_DEV,
373 loopback_init
374 };
375
376 struct device *dev_base = &loopback_dev;