OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uClinux-2.0.x/] [drivers/] [net/] [Space.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
/*
2
 * INET         An implementation of the TCP/IP protocol suite for the LINUX
3
 *              operating system.  INET is implemented using the  BSD Socket
4
 *              interface as the means of communication with the user level.
5
 *
6
 *              Holds initial configuration information for devices.
7
 *
8
 * NOTE:        This file is a nice idea, but its current format does not work
9
 *              well for drivers that support multiple units, like the SLIP
10
 *              driver.  We should actually have only one pointer to a driver
11
 *              here, with the driver knowing how many units it supports.
12
 *              Currently, the SLIP driver abuses the "base_addr" integer
13
 *              field of the 'device' structure to store the unit number...
14
 *              -FvK
15
 *
16
 * Version:     @(#)Space.c     1.0.8   07/31/96
17
 *
18
 * Authors:     Ross Biro, <bir7@leland.Stanford.Edu>
19
 *              Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
20
 *              Donald J. Becker, <becker@super.org>
21
 *
22
 *      FIXME:
23
 *              Sort the device chain fastest first.
24
 *
25
 *              This program is free software; you can redistribute it and/or
26
 *              modify it under the terms of the GNU General Public License
27
 *              as published by the Free Software Foundation; either version
28
 *              2 of the License, or (at your option) any later version.
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
/* A unified ethernet device probe.  This is the easiest way to have every
38
   ethernet adaptor have the name "eth[0123...]".
39
   */
40
 
41
extern int cs89x0_probe(struct device *dev);
42
extern int en302_probe(struct device *dev);
43
extern int tulip_probe(struct device *dev);
44
extern int hp100_probe(struct device *dev);
45
extern int ultra_probe(struct device *dev);
46
extern int ultra32_probe(struct device *dev);
47
extern int wd_probe(struct device *dev);
48
extern int el2_probe(struct device *dev);
49
extern int ne_probe(struct device *dev);
50
extern int ne2k_pci_probe(struct device *dev);
51
extern int hp_probe(struct device *dev);
52
extern int hp_plus_probe(struct device *dev);
53
extern int znet_probe(struct device *);
54
extern int express_probe(struct device *);
55
extern int eepro_probe(struct device *);
56
extern int el3_probe(struct device *);
57
extern int tc515_probe(struct device *);
58
extern int at1500_probe(struct device *);
59
extern int at1700_probe(struct device *);
60
extern int fmv18x_probe(struct device *);
61
extern int eth16i_probe(struct device *);
62
extern int depca_probe(struct device *);
63
extern int apricot_probe(struct device *);
64
extern int ewrk3_probe(struct device *);
65
extern int de4x5_probe(struct device *);
66
extern int el1_probe(struct device *);
67
extern int via_rhine_probe(struct device *);
68
#if     defined(CONFIG_WAVELAN)
69
extern int wavelan_probe(struct device *);
70
#endif  /* defined(CONFIG_WAVELAN) */
71
extern int el16_probe(struct device *);
72
extern int elplus_probe(struct device *);
73
extern int ac3200_probe(struct device *);
74
extern int e2100_probe(struct device *);
75
extern int ni52_probe(struct device *);
76
extern int ni65_probe(struct device *);
77
extern int SK_init(struct device *);
78
extern int seeq8005_probe(struct device *);
79
extern int tc59x_probe(struct device *);
80
extern int dgrs_probe(struct device *);
81
extern int smc_init( struct device * );
82
extern int sparc_lance_probe(struct device *);
83
extern int atarilance_probe(struct device *);
84
extern int a2065_probe(struct device *);
85
extern int ariadne_probe(struct device *);
86
extern int hydra_probe(struct device *);
87
extern int yellowfin_probe(struct device *);
88
extern int eepro100_probe(struct device *);
89
extern int epic100_probe(struct device *);
90
extern int rtl8139_probe(struct device *);
91
extern int tlan_probe(struct device *);
92
extern int isa515_probe(struct device *);
93
extern int pcnet32_probe(struct device *);
94
extern int lance_probe(struct device *);
95
/* Detachable devices ("pocket adaptors") */
96
extern int atp_init(struct device *);
97
extern int de600_probe(struct device *);
98
extern int de620_probe(struct device *);
99
/* The shaper hook */
100
extern int shaper_probe(struct device *);
101
/* Red Creek PCI hook */
102
extern int rcpci_probe(struct device *);
103 743 simons
extern int oeth_probe(struct device *);
104 199 simons
 
105
static int
106
ethif_probe(struct device *dev)
107
{
108
    u_long base_addr = dev->base_addr;
109
 
110
    if ((base_addr == 0xffe0)  ||  (base_addr == 1))
111
        return 1;               /* ENXIO */
112
 
113
    if (1
114
        /* All PCI probes are safe, and thus should be first. */
115
#ifdef CONFIG_DE4X5             /* DEC DE425, DE434, DE435 adapters */
116
        && de4x5_probe(dev)
117
#endif
118
#ifdef CONFIG_UCCS8900
119
        && cs89x0_probe(dev)
120
#endif
121
#ifdef CONFIG_M68EN302_ETHERNET
122
        && en302_probe(dev)
123
#endif
124
#ifdef CONFIG_DGRS
125
        && dgrs_probe(dev)
126
#endif
127
#ifdef CONFIG_EEXPRESS_PRO100B  /* Intel EtherExpress Pro100B */
128
        && eepro100_probe(dev)
129
#endif
130
#ifdef CONFIG_EPIC
131
        && epic100_probe(dev)
132
#endif
133
#if defined(CONFIG_HP100)
134
        && hp100_probe(dev)
135
#endif  
136
#if defined(CONFIG_NE2K_PCI)
137
        && ne2k_pci_probe(dev)
138
#endif
139
#ifdef CONFIG_PCNET32
140
        && pcnet32_probe(dev)
141
#endif
142
#ifdef CONFIG_RTL8139
143
        && rtl8139_probe(dev)
144
#endif
145
#if defined(CONFIG_VIA_RHINE)
146
        && via_rhine_probe(dev)
147
#endif
148
#if defined(CONFIG_VORTEX)
149
        && tc59x_probe(dev)
150
#endif
151
#if defined(CONFIG_DEC_ELCP)
152
        && tulip_probe(dev)
153
#endif
154
#ifdef CONFIG_YELLOWFIN
155
        && yellowfin_probe(dev)
156
#endif
157
        /* Next mostly-safe EISA-only drivers. */
158
#ifdef CONFIG_AC3200            /* Ansel Communications EISA 3200. */
159
        && ac3200_probe(dev)
160
#endif
161
#if defined(CONFIG_ULTRA32)
162
        && ultra32_probe(dev)
163
#endif
164
        /* Third, sensitive ISA boards. */
165
#ifdef CONFIG_AT1700
166
        && at1700_probe(dev)
167
#endif
168
#if defined(CONFIG_ULTRA)
169
        && ultra_probe(dev)
170
#endif
171
#if defined(CONFIG_SMC9194)
172
        && smc_init(dev)
173
#endif
174
#if defined(CONFIG_WD80x3)
175
        && wd_probe(dev)
176
#endif
177
#if defined(CONFIG_EL2)         /* 3c503 */
178
        && el2_probe(dev)
179
#endif
180
#if defined(CONFIG_HPLAN)
181
        && hp_probe(dev)
182
#endif
183
#if defined(CONFIG_HPLAN_PLUS)
184
        && hp_plus_probe(dev)
185
#endif
186
#if defined(CONFIG_SEEQ8005)
187
        && seeq8005_probe(dev)
188
#endif
189
#ifdef CONFIG_E2100             /* Cabletron E21xx series. */
190
        && e2100_probe(dev)
191
#endif
192
#if defined(CONFIG_NE2000)
193
        && ne_probe(dev)
194
#endif
195
#ifdef CONFIG_AT1500
196
        && at1500_probe(dev)
197
#endif
198
#ifdef CONFIG_FMV18X            /* Fujitsu FMV-181/182 */
199
        && fmv18x_probe(dev)
200
#endif
201
#ifdef CONFIG_ETH16I
202
        && eth16i_probe(dev)    /* ICL EtherTeam 16i/32 */
203
#endif
204
#ifdef CONFIG_EL3               /* 3c509 */
205
        && el3_probe(dev)
206
#endif
207
#ifdef CONFIG_3C515             /* 3c515 */
208
        && tc515_probe(dev)
209
#endif
210
#ifdef CONFIG_ZNET              /* Zenith Z-Note and some IBM Thinkpads. */
211
        && znet_probe(dev)
212
#endif
213
#ifdef CONFIG_EEXPRESS          /* Intel EtherExpress */
214
        && express_probe(dev)
215
#endif
216
#ifdef CONFIG_EEXPRESS_PRO      /* Intel EtherExpress Pro/10 */
217
        && eepro_probe(dev)
218
#endif
219
#ifdef CONFIG_DEPCA             /* DEC DEPCA */
220
        && depca_probe(dev)
221
#endif
222
#ifdef CONFIG_EWRK3             /* DEC EtherWORKS 3 */
223
        && ewrk3_probe(dev)
224
#endif
225
#ifdef CONFIG_APRICOT           /* Apricot I82596 */
226
        && apricot_probe(dev)
227
#endif
228
#ifdef CONFIG_EL1               /* 3c501 */
229
        && el1_probe(dev)
230
#endif
231
#if     defined(CONFIG_WAVELAN) /* WaveLAN */
232
        && wavelan_probe(dev)
233
#endif  /* defined(CONFIG_WAVELAN) */
234
#ifdef CONFIG_EL16              /* 3c507 */
235
        && el16_probe(dev)
236
#endif
237
#ifdef CONFIG_ELPLUS            /* 3c505 */
238
        && elplus_probe(dev)
239
#endif
240
#ifdef CONFIG_DE600             /* D-Link DE-600 adapter */
241
        && de600_probe(dev)
242
#endif
243
#ifdef CONFIG_DE620             /* D-Link DE-620 adapter */
244
        && de620_probe(dev)
245
#endif
246
#if defined(CONFIG_SK_G16)
247
        && SK_init(dev)
248
#endif
249
#ifdef CONFIG_NI52
250
        && ni52_probe(dev)
251
#endif
252
#ifdef CONFIG_NI65
253
        && ni65_probe(dev)
254
#endif
255
#ifdef CONFIG_LANCE     /* ISA LANCE boards */
256
        && lance_probe(dev)
257
#endif
258
#ifdef CONFIG_ATARILANCE        /* Lance-based Atari ethernet boards */
259
        && atarilance_probe(dev)
260
#endif
261
#ifdef CONFIG_A2065             /* Commodore/Ameristar A2065 Ethernet Board */
262
        && a2065_probe(dev)
263
#endif
264
#ifdef CONFIG_ARIADNE           /* Village Tronic Ariadne Ethernet Board */
265
        && ariadne_probe(dev)
266
#endif
267
#ifdef CONFIG_HYDRA             /* Hydra Systems Amiganet Ethernet board */
268
        && hydra_probe(dev)
269
#endif
270
#ifdef CONFIG_SUNLANCE
271
        && sparc_lance_probe(dev)
272
#endif
273
#ifdef CONFIG_TLAN
274
        && tlan_probe(dev)
275
#endif
276
#ifdef CONFIG_LANCE
277
        && lance_probe(dev)
278
#endif
279 743 simons
#ifdef CONFIG_OETH
280
        && oeth_probe(dev)
281
#endif
282 199 simons
        && 1 ) {
283
        return 1;       /* -ENODEV or -EAGAIN would be more accurate. */
284
    }
285
    return 0;
286
}
287
 
288
#ifdef CONFIG_SDLA
289
    extern int sdla_init(struct device *);
290
    static struct device sdla0_dev = { "sdla0", 0, 0, 0, 0, 0, 0, 0, 0, 0, NEXT_DEV, sdla_init, };
291
 
292
#   undef NEXT_DEV
293
#   define NEXT_DEV     (&sdla0_dev)
294
#endif
295
 
296
/* Run-time ATtachable (Pocket) devices have a different (not "eth#") name. */
297
#ifdef CONFIG_ATP               /* AT-LAN-TEC (RealTek) pocket adaptor. */
298
static struct device atp_dev = {
299
    "atp0", 0, 0, 0, 0, 0, 0, 0, 0, 0, NEXT_DEV, atp_init, /* ... */ };
300
#   undef NEXT_DEV
301
#   define NEXT_DEV     (&atp_dev)
302
#endif
303
 
304
#ifdef CONFIG_ARCNET
305
    extern int arcnet_probe(struct device *dev);
306
    static struct device arcnet_dev = {
307
        "arc0", 0x0, 0x0, 0x0, 0x0, 0, 0, 0, 0, 0, NEXT_DEV, arcnet_probe, };
308
#   undef       NEXT_DEV
309
#   define      NEXT_DEV        (&arcnet_dev)
310
#endif
311
 
312
/* The first device defaults to I/O base '0', which means autoprobe. */
313
#ifndef ETH0_ADDR
314
# define ETH0_ADDR 0
315
#endif
316
#ifndef ETH0_IRQ
317
# define ETH0_IRQ 0
318
#endif
319
/* "eth0" defaults to autoprobe (== 0), other use a base of 0xffe0 (== -0x20),
320
   which means "don't probe".  These entries exist to only to provide empty
321
   slots which may be enabled at boot-time. */
322
 
323
static struct device eth7_dev = {
324
    "eth7", 0,0,0,0,0xffe0 /* I/O base*/, 0,0,0,0, NEXT_DEV, ethif_probe };
325
static struct device eth6_dev = {
326
    "eth6", 0,0,0,0,0xffe0 /* I/O base*/, 0,0,0,0, &eth7_dev, ethif_probe };
327
static struct device eth5_dev = {
328
    "eth5", 0,0,0,0,0xffe0 /* I/O base*/, 0,0,0,0, &eth6_dev, ethif_probe };
329
static struct device eth4_dev = {
330
    "eth4", 0,0,0,0,0xffe0 /* I/O base*/, 0,0,0,0, &eth5_dev, ethif_probe };
331
static struct device eth3_dev = {
332
    "eth3", 0,0,0,0,0xffe0 /* I/O base*/, 0,0,0,0, &eth4_dev, ethif_probe };
333
static struct device eth2_dev = {
334
    "eth2", 0,0,0,0,0xffe0 /* I/O base*/, 0,0,0,0, &eth3_dev, ethif_probe };
335
#if defined(CONFIG_NETtel) && defined(CONFIG_M5307)
336
static struct device eth1_dev = {
337
    "eth1", 0, 0, 0, 0, ETH0_ADDR, ETH0_IRQ, 0, 0, 0, NEXT_DEV, ethif_probe };
338
#else
339
static struct device eth1_dev = {
340
    "eth1", 0,0,0,0,0xffe0 /* I/O base*/, 0,0,0,0, &eth2_dev, ethif_probe };
341
#endif
342
static struct device eth0_dev = {
343
    "eth0", 0, 0, 0, 0, ETH0_ADDR, ETH0_IRQ, 0, 0, 0, &eth1_dev, ethif_probe };
344
 
345
#   undef NEXT_DEV
346
#   define NEXT_DEV     (&eth0_dev)
347
 
348
#if defined(PLIP) || defined(CONFIG_PLIP)
349
    extern int plip_init(struct device *);
350
    static struct device plip2_dev = {
351
        "plip2", 0, 0, 0, 0, 0x278, 2, 0, 0, 0, NEXT_DEV, plip_init, };
352
    static struct device plip1_dev = {
353
        "plip1", 0, 0, 0, 0, 0x378, 7, 0, 0, 0, &plip2_dev, plip_init, };
354
    static struct device plip0_dev = {
355
        "plip0", 0, 0, 0, 0, 0x3BC, 5, 0, 0, 0, &plip1_dev, plip_init, };
356
#   undef NEXT_DEV
357
#   define NEXT_DEV     (&plip0_dev)
358
#endif  /* PLIP */
359
 
360
#if defined(SLIP) || defined(CONFIG_SLIP)
361
        /* To be exact, this node just hooks the initialization
362
           routines to the device structures.                   */
363
extern int slip_init_ctrl_dev(struct device *);
364
static struct device slip_bootstrap = {
365
  "slip_proto", 0x0, 0x0, 0x0, 0x0, 0, 0, 0, 0, 0, NEXT_DEV, slip_init_ctrl_dev, };
366
#undef NEXT_DEV
367
#define NEXT_DEV (&slip_bootstrap)
368
#endif  /* SLIP */
369
 
370
#if defined(CONFIG_MKISS)
371
        /* To be exact, this node just hooks the initialization
372
           routines to the device structures.                   */
373
extern int mkiss_init_ctrl_dev(struct device *);
374
static struct device mkiss_bootstrap = {
375
  "mkiss_proto", 0x0, 0x0, 0x0, 0x0, 0, 0, 0, 0, 0, NEXT_DEV, mkiss_init_ctrl_dev, };
376
#undef NEXT_DEV
377
#define NEXT_DEV (&mkiss_bootstrap)
378
#endif  /* MKISS */
379
 
380
#if defined(CONFIG_STRIP)
381
extern int strip_init_ctrl_dev(struct device *);
382
static struct device strip_bootstrap = {
383
    "strip_proto", 0x0, 0x0, 0x0, 0x0, 0, 0, 0, 0, 0, NEXT_DEV, strip_init_ctrl_dev, };
384
#undef NEXT_DEV
385
#define NEXT_DEV (&strip_bootstrap)
386
#endif   /* STRIP */
387
 
388
#if defined(CONFIG_SHAPER)
389
static struct device shaper_bootstrap = {
390
    "shaper", 0x0, 0x0, 0x0, 0x0, 0, 0, 0, 0, 0, NEXT_DEV, shaper_probe, };
391
#undef NEXT_DEV
392
#define NEXT_DEV (&shaper_bootstrap)
393
#endif   /* SHAPER */
394
 
395
#if defined(CONFIG_RCPCI)
396
static struct device rcpci_bootstrap = {
397
    "rcpci", 0x0, 0x0, 0x0, 0x0, 0, 0, 0, 0, 0, NEXT_DEV, rcpci_probe, };
398
#undef NEXT_DEV
399
#define NEXT_DEV (&rcpci_bootstrap)
400
#endif   /* RCPCI */
401
 
402
#if defined(CONFIG_PPP)
403
extern int ppp_init(struct device *);
404
static struct device ppp_bootstrap = {
405
    "ppp_proto", 0x0, 0x0, 0x0, 0x0, 0, 0, 0, 0, 0, NEXT_DEV, ppp_init, };
406
#undef NEXT_DEV
407
#define NEXT_DEV (&ppp_bootstrap)
408
#endif   /* PPP */
409
 
410
#ifdef CONFIG_DUMMY
411
    extern int dummy_init(struct device *dev);
412
    static struct device dummy_dev = {
413
        "dummy", 0x0, 0x0, 0x0, 0x0, 0, 0, 0, 0, 0, NEXT_DEV, dummy_init, };
414
#   undef       NEXT_DEV
415
#   define      NEXT_DEV        (&dummy_dev)
416
#endif
417
 
418
#ifdef CONFIG_EQUALIZER
419
extern int eql_init(struct device *dev);
420
struct device eql_dev = {
421
  "eql",                        /* Master device for IP traffic load
422
                                   balancing */
423
  0x0, 0x0, 0x0, 0x0,           /* recv end/start; mem end/start */
424
  0,                             /* base I/O address */
425
  0,                             /* IRQ */
426
  0, 0, 0,                 /* flags */
427
  NEXT_DEV,                     /* next device */
428
  eql_init                      /* set up the rest */
429
};
430
#   undef       NEXT_DEV
431
#   define      NEXT_DEV        (&eql_dev)
432
#endif
433
 
434
#ifdef CONFIG_IBMTR 
435
 
436
    extern int tok_probe(struct device *dev);
437
    static struct device ibmtr_dev1 = {
438
        "tr1",                  /* IBM Token Ring (Non-DMA) Interface */
439
        0x0,                    /* recv memory end                      */
440
        0x0,                    /* recv memory start                    */
441
        0x0,                    /* memory end                           */
442
        0x0,                    /* memory start                         */
443
        0xa24,                  /* base I/O address                     */
444
        0,                       /* IRQ                                  */
445
        0, 0, 0,           /* flags                                */
446
        NEXT_DEV,               /* next device                          */
447
        tok_probe               /* ??? Token_init should set up the rest        */
448
    };
449
#   undef       NEXT_DEV
450
#   define      NEXT_DEV        (&ibmtr_dev1)
451
 
452
 
453
    static struct device ibmtr_dev0 = {
454
        "tr0",                  /* IBM Token Ring (Non-DMA) Interface */
455
        0x0,                    /* recv memory end                      */
456
        0x0,                    /* recv memory start                    */
457
        0x0,                    /* memory end                           */
458
        0x0,                    /* memory start                         */
459
        0xa20,                  /* base I/O address                     */
460
        0,                       /* IRQ                                  */
461
        0, 0, 0,           /* flags                                */
462
        NEXT_DEV,               /* next device                          */
463
        tok_probe               /* ??? Token_init should set up the rest        */
464
    };
465
#   undef       NEXT_DEV
466
#   define      NEXT_DEV        (&ibmtr_dev0)
467
 
468
#endif 
469
 
470
#ifdef CONFIG_DEFXX
471
        extern int dfx_probe(struct device *dev);
472
        static struct device fddi7_dev =
473
                {"fddi7", 0, 0, 0, 0, 0, 0, 0, 0, 0, NEXT_DEV, dfx_probe};
474
        static struct device fddi6_dev =
475
                {"fddi6", 0, 0, 0, 0, 0, 0, 0, 0, 0, &fddi7_dev, dfx_probe};
476
        static struct device fddi5_dev =
477
                {"fddi5", 0, 0, 0, 0, 0, 0, 0, 0, 0, &fddi6_dev, dfx_probe};
478
        static struct device fddi4_dev =
479
                {"fddi4", 0, 0, 0, 0, 0, 0, 0, 0, 0, &fddi5_dev, dfx_probe};
480
        static struct device fddi3_dev =
481
                {"fddi3", 0, 0, 0, 0, 0, 0, 0, 0, 0, &fddi4_dev, dfx_probe};
482
        static struct device fddi2_dev =
483
                {"fddi2", 0, 0, 0, 0, 0, 0, 0, 0, 0, &fddi3_dev, dfx_probe};
484
        static struct device fddi1_dev =
485
                {"fddi1", 0, 0, 0, 0, 0, 0, 0, 0, 0, &fddi2_dev, dfx_probe};
486
        static struct device fddi0_dev =
487
                {"fddi0", 0, 0, 0, 0, 0, 0, 0, 0, 0, &fddi1_dev, dfx_probe};
488
 
489
#undef  NEXT_DEV
490
#define NEXT_DEV        (&fddi0_dev)
491
#endif 
492
 
493
#ifdef CONFIG_NET_IPIP
494
        extern int tunnel_init(struct device *);
495
 
496
        static struct device tunnel_dev1 =
497
        {
498
                "tunl1",                /* IPIP tunnel                          */
499
                0x0,                    /* recv memory end                      */
500
                0x0,                    /* recv memory start                    */
501
                0x0,                    /* memory end                           */
502
                0x0,                    /* memory start                         */
503
                0x0,                    /* base I/O address                     */
504
                0,                       /* IRQ                                  */
505
                0, 0, 0,           /* flags                                */
506
                NEXT_DEV,               /* next device                          */
507
                tunnel_init             /* Fill in the details                  */
508
        };
509
 
510
        static struct device tunnel_dev0 =
511
        {
512
                "tunl0",                /* IPIP tunnel                          */
513
                0x0,                    /* recv memory end                      */
514
                0x0,                    /* recv memory start                    */
515
                0x0,                    /* memory end                           */
516
                0x0,                    /* memory start                         */
517
                0x0,                    /* base I/O address                     */
518
                0,                       /* IRQ                                  */
519
                0, 0, 0,           /* flags                                */
520
                &tunnel_dev1,           /* next device                          */
521
                tunnel_init             /* Fill in the details                  */
522
    };
523
#   undef       NEXT_DEV
524
#   define      NEXT_DEV        (&tunnel_dev0)
525
 
526
#endif
527
 
528
#ifdef CONFIG_APFDDI
529
    extern int apfddi_init(struct device *dev);
530
    static struct device fddi_dev = {
531
        "fddi", 0x0, 0x0, 0x0, 0x0, 0, 0, 0, 0, 0, NEXT_DEV, apfddi_init };
532
#   undef       NEXT_DEV
533
#   define      NEXT_DEV        (&fddi_dev)
534
#endif
535
 
536
#ifdef CONFIG_APBIF
537
    extern int bif_init(struct device *dev);
538
    static struct device bif_dev = {
539
        "bif", 0x0, 0x0, 0x0, 0x0, 0, 0, 0, 0, 0, NEXT_DEV, bif_init };
540
#   undef       NEXT_DEV
541
#   define      NEXT_DEV        (&bif_dev)
542
#endif
543
 
544
extern int loopback_init(struct device *dev);
545
struct device loopback_dev = {
546
        "lo",                   /* Software Loopback interface          */
547
        0x0,                    /* recv memory end                      */
548
        0x0,                    /* recv memory start                    */
549
        0x0,                    /* memory end                           */
550
        0x0,                    /* memory start                         */
551
        0,                       /* base I/O address                     */
552
        0,                       /* IRQ                                  */
553
        0, 0, 0,           /* flags                                */
554
        NEXT_DEV,               /* next device                          */
555
        loopback_init           /* loopback_init should set up the rest */
556
};
557
 
558
struct device *dev_base = &loopback_dev;

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.