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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
|
dnl Device driver options for i386
dnl Copyright 1997, 1999 Free Software Foundation, Inc.
dnl Permission to use, copy, modify and distribute this software and its
dnl documentation is hereby granted, provided that both the copyright
dnl notice and this permission notice appear in all copies of the
dnl software, derivative works or modified versions, and any portions
dnl thereof, and that both notices appear in supporting documentation.
dnl
dnl THE FREE SOFTWARE FOUNDATION ALLOWS FREE USE OF THIS SOFTWARE IN ITS
dnl "AS IS" CONDITION. THE FREE SOFTWARE FOUNDATION DISCLAIMS ANY
dnl LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE
dnl USE OF THIS SOFTWARE.
AC_INIT(dev/include/linux/autoconf.h)
AC_PREREQ(2.12)
sinclude([../../Drivers.macros])
sinclude([../../aclocal.m4])
AC_CONFIG_HEADER(device-drivers.h)
dnl Check the cpu type.
AC_CANONICAL_HOST
case "$host_cpu" in
i386) AC_DEFINE(CONFIG_M386)
AC_DEFINE(CPU, 386) ;;
i486) AC_DEFINE(CONFIG_M486)
AC_DEFINE(CPU, 486) ;;
i586) AC_DEFINE(CONFIG_M586)
AC_DEFINE(CPU, 586) ;;
i686) AC_DEFINE(CONFIG_M686)
AC_DEFINE(CPU, 686) ;;
*) AC_DEFINE(CONFIG_M486)
AC_DEFINE(CPU, 486) ;;
esac
case "$host_cpu" in
i[[3456]]86) systype=i386 ;;
esac
AC_SUBST(systype)
AC_CHECK_TOOL(CC, gcc)
AC_PROG_CC_LOCAL
AC_CHECK_TOOL(LD, ld)
dnl XXX: Autoconf is weak in linking files from non-current directories.
dnl So I hardcode the following shell script.
mkdir_p ()
{
if test ! -d `dirname $1`; then
mkdir_p `dirname $1`
fi
mkdir $1;
}
if test ! -d ../../linux/src/include; then
mkdir_p ../../linux/src/include
fi
if test ! -d ../../linux/dev/include; then
mkdir_p ../../linux/dev/include
fi
ln -sf ../../../i386/linux/${srcdir}/../../linux/src/include/asm-${systype} \
../../linux/src/include/asm
ln -sf ../../../i386/linux/${srcdir}/../../linux/dev/include/asm-${systype} \
../../linux/dev/include/asm
dnl Aliases have to come first.
AC_DRIVER_ALIAS(3c501, el1)
AC_DRIVER_ALIAS(3c503, el2)
AC_DRIVER_ALIAS(3c509, el3)
AC_DRIVER_ALIAS(3c579, el3)
AC_DRIVER_ALIAS(3c59x, vortex)
AC_DRIVER_ALIAS(3c90x, vortex)
AC_DRIVER_ALIAS(hpj2577, hp100)
AC_DRIVER_ALIAS(hpj2573, hp100)
AC_DRIVER_ALIAS(hpj2585, hp100)
AC_DRIVER_ALIAS(hp27248b, hp100)
AC_DRIVER_ALIAS(eth32, eth16i)
AC_DRIVER_ALIAS(znote, znet)
AC_DRIVER_ALIAS(de100, depca)
AC_DRIVER_ALIAS(de101, depca)
AC_DRIVER_ALIAS(de200, depca)
AC_DRIVER_ALIAS(de201, depca)
AC_DRIVER_ALIAS(de202, depca)
AC_DRIVER_ALIAS(de210, depca)
AC_DRIVER_ALIAS(de422, depca)
AC_DRIVER_ALIAS(de203, ewrk3)
AC_DRIVER_ALIAS(de204, ewrk3)
AC_DRIVER_ALIAS(de205, ewrk3)
AC_DRIVER_ALIAS(de425, de4x5)
AC_DRIVER_ALIAS(de434, de4x5)
AC_DRIVER_ALIAS(de435, de4x5)
AC_DRIVER_ALIAS(de450, de4x5)
AC_DRIVER_ALIAS(de500, de4x5)
AC_DRIVER_ALIAS(3c507, el16)
AC_DRIVER_ALIAS(3c505, elplus)
AC_DRIVER_ALIAS(ne1000, ne2000)
AC_DRIVER_ALIAS(at1500, lance)
AC_DRIVER_ALIAS(ne2100, lance)
AC_DRIVER_ALIAS(tulip, elcp)
AC_DRIVER_ALIAS(rtl8129, rtl8139)
AC_DRIVER_ALIAS(aha2825, aha152x)
AC_DRIVER_ALIAS(ncr53c400, ncr5380)
AC_DRIVER_ALIAS(t128f, t128)
AC_DRIVER_ALIAS(t228, t128)
AC_DRIVER_ALIAS(am79c974, am53c974)
AC_DRIVER_ALIAS(dtc3180, dtc3280)
AC_DRIVER_ALIAS(dc390u, dc390w)
AC_DRIVER_ALIAS(dc390f, dc390w)
AC_DRIVER_ALIAS(dc390, dc390t)
AC_DRIVER_ALIAS(epic100, epic)
dnl Kinds of drivers that have gobs of source files that get brought in.
AC_DRIVER_CLASS(scsi, CONFIG_SCSI, constants.o hosts.o scsi.o scsi_ioctl.o scsi_proc.o scsicam.o sd.o sd_ioctl.o sr.o sr_ioctl.o)
AC_DRIVER_CLASS(net, CONFIG_INET, auto_irq.o net.o Space.o dev.o net_init.o)
dnl Strictly speaking, we could have a `linux' option too, but it's
dnl not possible to built a useful kernel without at least one Linux
dnl driver, so that's not really necessary.
dnl non-SCSI Disk controllers
AC_DRIVER(floppy, CONFIG_BLK_DEV_FD, floppy.o)
AC_DRIVER(ide, CONFIG_BLK_DEV_IDE, cmd640.o ide-cd.o ide.o rz1000.o triton.o)
dnl SCSI Disk controllers
AC_DRIVER(advansys, CONFIG_SCSI_ADVANSYS, advansys.o, scsi)
AC_DRIVER(buslogic, CONFIG_SCSI_BUSLOGIC, BusLogic.o, scsi)
AC_DRIVER(u1434f, CONFIG_SCSI_U14_34F, u14-34f.o, scsi)
AC_DRIVER(ultrastor, CONFIG_SCSI_ULTRASTOR, ultrastor.o, scsi)
AC_DRIVER(aha152x, CONFIG_SCSI_AHA152X, aha152x.o, scsi)
AC_DRIVER(aha1542, CONFIG_SCSI_AHA1542, aha1542.o, scsi)
AC_DRIVER(aha1740, CONFIG_SCSI_AHA1740, aha1740.o, scsi)
AC_DRIVER(aic7xxx, CONFIG_SCSI_AIC7XXX, aic7xxx.o, scsi)
AC_DRIVER(futuredomain, CONFIG_SCSI_FUTURE_DOMAIN, fdomain.o, scsi)
AC_DRIVER(in2000, CONFIG_SCSI_IN2000, in2000.o, scsi)
AC_DRIVER(ncr5380, CONFIG_SCSI_GENERIC_NCR5380, g_NCR5380.o, scsi)
AC_DRIVER(ncr53c406a, CONFIG_SCSI_NCR53C406A, NCR53c406a.o, scsi)
AC_DRIVER(pas16, CONFIG_SCSI_PASS16, pas16.o, scsi)
AC_DRIVER(seagate, CONFIG_SCSI_SEAGATE, seagate.o, scsi)
AC_DRIVER(t128, CONFIG_SCSI_T128, t128.o, scsi)
AC_DRIVER(ncr53c7xx, CONFIG_SCSI_NCR53C7xx, 53c78xx.o, scsi)
AC_DRIVER(eatadma, CONFIG_SCSI_EATA_DMA, eata_dma.o, scsi)
AC_DRIVER(eatapio, CONFIG_SCSI_EATA_PIO, eata_pio.o, scsi)
AC_DRIVER(wd7000, CONFIG_SCSI_7000FASST, wd7000.o, scsi)
AC_DRIVER(eata, CONFIG_SCSI_EATA, eata.o, scsi)
AC_DRIVER(am53c974, CONFIG_SCSI_AM53C974, AM53C974.o, scsi)
AC_DRIVER(dtc3280, CONFIG_SCSI_DTC3280, dtc.o, scsi)
AC_DRIVER(ncr53c8xx, CONFIG_SCSI_NCR53C8XX, ncr53c8xx.o, scsi)
AC_DRIVER(dc390w, CONFIG_SCSI_DC390W, tmscsiw.o, scsi)
AC_DRIVER(dc390t, CONFIG_SCSI_DC390T, tmscsim.o, scsi)
AC_DRIVER(ppa, CONFIG_SCSI_PPA, ppa.o, scsi)
AC_DRIVER(qlogicfas, CONFIG_SCSI_QLOGIC_FAS, qlogicfas.o, scsi)
AC_DRIVER(qlogicisp, CONFIG_SCSI_QLOGIC_ISP, qlogicisp.o, scsi)
AC_DRIVER(gdth, CONFIG_SCSI_GDTH, gdth.o, scsi)
dnl Dirty implementation...
AC_ARG_ENABLE(flashpoint,,[
if test ${enableval} = no; then
AC_DEFINE(CONFIG_SCSI_OMIT_FLASHPOINT)
fi
])
dnl Ethernet controllers
AC_DRIVER(ne2000, CONFIG_NE2000, ne.o 8390.o, net)
AC_DRIVER(el2, CONFIG_EL2, 3c503.o 8390.o, net)
AC_DRIVER(el3, CONFIG_EL3, 3c509.o, net)
AC_DRIVER(wd80x3, CONFIG_WD80x3, wd.o 8390.o, net)
AC_DRIVER(el1, CONFIG_EL1, 3c501.o, net)
AC_DRIVER(ul, CONFIG_ULTRA, smc-ultra.o 8390.o, net)
AC_DRIVER(ul32, CONFIG_ULTRA32, smc-ultra32.o 8390.o, net)
AC_DRIVER(hplanplus, CONFIG_HPLAN_PLUS, hp-plus.o 8390.o, net)
AC_DRIVER(hplan, CONFIG_HPLAN, hp.o 8390.o, net)
AC_DRIVER(vortex, CONFIG_VORTEX, 3c59x.o, net)
AC_DRIVER(seeq8005, CONFIG_SEEQ8005, seeq8005.o, net)
AC_DRIVER(hp100, CONFIG_HP100, hp100.o, net)
AC_DRIVER(ac3200, CONFIG_AC3200, ac3200.o 8390.o, net)
AC_DRIVER(e2100, CONFIG_E2100, e2100.o 8390.o, net)
AC_DRIVER(at1700, CONFIG_AT1700, at1700.o, net)
AC_DRIVER(eth16i, CONFIG_ETH16I, eth16i.o, net)
AC_DRIVER(znet, CONFIG_ZNET, znet.o, net)
AC_DRIVER(eexpress, CONFIG_EEXPRESS, eexpress.o, net)
AC_DRIVER(eexpresspro, CONFIG_EEXPRESS_PRO, eepro.o, net)
AC_DRIVER(eexpresspro100, CONFIG_EEXPRESS_PRO100B, eepro100.o, net)
AC_DRIVER(depca, CONFIG_DEPCA, depca.o, net)
AC_DRIVER(ewrk3, CONFIG_EWRK3, ewrk3.o, net)
AC_DRIVER(de4x5, CONFIG_DE4X5, de4x5.o, net)
AC_DRIVER(apricot, CONFIG_APRICOT, apricot.o, net)
AC_DRIVER(wavelan, CONFIG_WAVELAN, wavelan.o, net)
AC_DRIVER(el16, CONFIG_EL16, 3c507.o, net)
AC_DRIVER(elplus, CONFIG_ELPLUS, 3c505.o, net)
AC_DRIVER(de600, CONFIG_DE600, de600.o, net)
AC_DRIVER(de620, CONFIG_DE620, de620.o, net)
AC_DRIVER(skg16, CONFIG_SK_G16, sk_g16.o, net)
AC_DRIVER(ni52, CONFIG_NI52, ni52.o, net)
AC_DRIVER(ni65, CONFIG_NI65, ni65.o, net)
AC_DRIVER(atp, CONFIG_ATP, atp.o, net)
AC_DRIVER(lance, CONFIG_LANCE, lance.o, net)
AC_DRIVER(elcp, CONFIG_DEC_ELCP, tulip.o, net)
AC_DRIVER(fmv18x, CONFIG_FMV18X, fmv18x.o, net)
AC_DRIVER(3c515, CONFIG_3C515, 3c515.o, net)
AC_DRIVER(pcnet32, CONFIG_PCNET32, pcnet32.o, net)
AC_DRIVER(ne2kpci, CONFIG_NE2K_PCI, ne2k-pci.o 8390.o, net)
AC_DRIVER(yellowfin, CONFIG_YELLOWFIN, yellowfin.o, net)
AC_DRIVER(rtl8139, CONFIG_RTL8139, rtl8139.o, net)
AC_DRIVER(epic, CONFIG_EPIC, epic100.o, net)
AC_DRIVER(tlan, CONFIG_TLAN, tlan.o, net)
AC_DRIVER(viarhine, CONFIG_VIA_RHINE, via-rhine.o, net)
AC_OUTPUT(Makefile)
|