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 #include <linux/config.h>
28 #include <linux/ddi.h>
29 #include "dev.h"
30
31 #define LOOPBACK
32
33 #define NEXT_DEV NULL
34
35
36 #if defined(D_LINK) || defined(CONFIG_DE600)
37 extern int d_link_init(struct device *);
38 static struct device d_link_dev = {
39 "dl0",
40 0,
41 0,
42 0,
43 0,
44 D_LINK_IO,
45 D_LINK_IRQ,
46 0, 0, 0,
47 NEXT_DEV,
48 d_link_init
49 };
50 # undef NEXT_DEV
51 # define NEXT_DEV (&d_link_dev)
52 #endif
53
54 #ifdef CONFIG_EL1
55 #error
56 # ifndef EL1_IRQ
57 # define EL1_IRQ 9
58 # endif
59 # ifndef EL1
60 # define EL1 0
61 # endif
62 extern int el1_init(struct device *);
63 static struct device el1_dev = {
64 "el0", 0, 0, 0, 0, EL1, EL1_IRQ, 0, 0, 0, NEXT_DEV, el1_init
65 };
66 # undef NEXT_DEV
67 # define NEXT_DEV (&el1_dev)
68 #endif
69
70 #ifdef CONFIG_DEPCA
71 extern int depca_probe(struct device *);
72 static struct device depca_dev = {
73 "depca0", 0,0,0,0, 0, 0, 0, 0, 0, NEXT_DEV, depca_probe,
74 };
75 # undef NEXT_DEV
76 # define NEXT_DEV (&depca_dev)
77 #endif
78
79
80 #ifdef CONFIG_ATP
81 extern int atp_probe(struct device *);
82 static struct device atp_dev = {
83 "atp0", 0,0,0,0, 0, 0, 0, 0, 0, NEXT_DEV, atp_probe,
84 };
85 # undef NEXT_DEV
86 # define NEXT_DEV (&atp_dev)
87 #endif
88
89 #ifdef CONFIG_EL3
90 extern int el3_probe(struct device *);
91 static struct device eliii0_dev = {
92 "eliii0", 0,0,0,0, 0, 0, 0, 0, 0, NEXT_DEV, el3_probe,
93 };
94 # undef NEXT_DEV
95 # define NEXT_DEV (&eliii0_dev)
96 #endif
97
98 #ifdef CONFIG_ZNET
99 extern int znet_probe(struct device *);
100 static struct device znet_dev = {
101 "znet", 0,0,0,0, 0, 0, 0, 0, 0, NEXT_DEV, znet_probe, };
102 # undef NEXT_DEV
103 # define NEXT_DEV (&znet_dev)
104 #endif
105
106 #ifdef CONFIG_EEXPRESS
107 extern int express_probe(struct device *);
108 static struct device express0_dev = {
109 "exp0", 0,0,0,0, 0, 0, 0, 0, 0, NEXT_DEV, express_probe, };
110 # undef NEXT_DEV
111 # define NEXT_DEV (&express0_dev)
112 #endif
113
114 #ifdef CONFIG_AT1500
115 extern int at1500_probe(struct device *);
116 static struct device lance_dev = {
117 "le0",
118 0,0,0,0, 0 , 0 ,
119 0, 0, 0, NEXT_DEV, at1500_probe,
120 };
121 # undef NEXT_DEV
122 # define NEXT_DEV (&lance_dev)
123 #endif
124
125 #if defined(EI8390) || defined(CONFIG_EL2) || defined(CONFIG_NE2000) \
126 || defined(CONFIG_WD80x3) || defined(CONFIG_HPLAN)
127 # ifndef EI8390
128 # define EI8390 0
129 # endif
130 # ifndef EI8390_IRQ
131 # define EI8390_IRQ 0
132 # endif
133 extern int ethif_init(struct device *);
134 static struct device ei8390_dev = {
135 "eth0",
136 0,
137 0,
138 0,
139 0,
140 EI8390,
141 EI8390_IRQ,
142 0, 0, 0,
143 NEXT_DEV,
144 ethif_init
145 };
146 # undef NEXT_DEV
147 # define NEXT_DEV (&ei8390_dev)
148 #endif
149
150 #if defined(PLIP) || defined(CONFIG_PLIP)
151 extern int plip_init(struct device *);
152 static struct device plip2_dev = {
153 "plip2", 0, 0, 0, 0, 0x278, 2, 0, 0, 0, NEXT_DEV, plip_init, };
154 static struct device plip1_dev = {
155 "plip1", 0, 0, 0, 0, 0x378, 7, 0, 0, 0, &plip2_dev, plip_init, };
156 static struct device plip0_dev = {
157 "plip0", 0, 0, 0, 0, 0x3BC, 5, 0, 0, 0, &plip1_dev, plip_init, };
158 # undef NEXT_DEV
159 # define NEXT_DEV (&plip0_dev)
160 #endif
161
162 #if defined(SLIP) || defined(CONFIG_SLIP)
163 extern int slip_init(struct device *);
164 static struct device slip3_dev = {
165 "sl3",
166 0x0,
167 0x0,
168 0x0,
169 0x0,
170 0x3,
171 0,
172 0, 0, 0,
173 NEXT_DEV,
174 slip_init
175 };
176 static struct device slip2_dev = {
177 "sl2",
178 0x0,
179 0x0,
180 0x0,
181 0x0,
182 0x2,
183 0,
184 0, 0, 0,
185 &slip3_dev,
186 slip_init
187 };
188 static struct device slip1_dev = {
189 "sl1",
190 0x0,
191 0x0,
192 0x0,
193 0x0,
194 0x1,
195 0,
196 0, 0, 0,
197 &slip2_dev,
198 slip_init
199 };
200 static struct device slip0_dev = {
201 "sl0",
202 0x0,
203 0x0,
204 0x0,
205 0x0,
206 0x0,
207 0,
208 0, 0, 0,
209 &slip1_dev,
210 slip_init
211 };
212 # undef NEXT_DEV
213 # define NEXT_DEV (&slip0_dev)
214 #endif
215
216
217 #ifdef LOOPBACK
218 extern int loopback_init(struct device *dev);
219 static struct device loopback_dev = {
220 "lo",
221 0x0,
222 0x0,
223 0x0,
224 0x0,
225 0,
226 0,
227 0, 0, 0,
228 NEXT_DEV,
229 loopback_init
230 };
231 # undef NEXT_DEV
232 # define NEXT_DEV (&loopback_dev)
233 #endif
234
235
236 struct device *dev_base = NEXT_DEV;