xref: /netbsd-src/sys/arch/i386/conf/files.i386 (revision 1b9578b8c2c1f848eeb16dabbfd7d1f0d9fdefbd)
1#	$NetBSD: files.i386,v 1.360 2011/06/12 03:35:41 rmind Exp $
2#
3# new style config file for i386 architecture
4#
5
6ifndef xen
7
8# maxpartitions must be first item in files.${ARCH}.newconf
9maxpartitions 8
10
11maxusers 2 16 128
12
13defparam opt_kernbase.h	KERNBASE
14
15# delay before cpu_reset() for reboot.
16defparam		CPURESET_DELAY
17
18# Xbox support
19defflag			XBOX
20
21# VM86 emulation
22defflag			VM86
23defflag			KVM86
24
25# User-settable LDT (used by WINE)
26defflag			USER_LDT
27
28# X server support in console drivers
29defflag	opt_xserver.h	XSERVER XSERVER_DDB
30
31# The REAL{BASE,EXT}MEM options
32defparam opt_realmem.h	REALBASEMEM REALEXTMEM
33
34# The PHYSMEM_MAX_{SIZE,ADDR} optionms
35defparam opt_physmem.h	PHYSMEM_MAX_ADDR PHYSMEM_MAX_SIZE
36
37# understand boot device passed by pre-1.3 bootblocks
38defflag			COMPAT_OLDBOOT
39
40# PCI BIOS options
41defflag	opt_pcibios.h	PCIBIOS PCIBIOSVERBOSE
42			PCIBIOS_INTR_GUESS PCIINTR_DEBUG
43defparam opt_pcibios.h	PCIBIOS_IRQS_HINT
44
45# kernel stack debug
46defflag	opt_kstack_dr0.h		KSTACK_CHECK_DR0
47
48# splraise()/spllower() debug
49defflag	opt_spldebug.h			SPLDEBUG
50
51# Beep on halt
52defflag 	opt_beep.h		BEEP_ONHALT
53defparam 	opt_beep.h		BEEP_ONHALT_COUNT=3
54defparam 	opt_beep.h		BEEP_ONHALT_PITCH=1500
55defparam 	opt_beep.h		BEEP_ONHALT_PERIOD=250
56
57# Multiboot support
58defflag 	opt_multiboot.h		MULTIBOOT
59obsolete 	defparam		MULTIBOOT_SYMTAB_SPACE
60file 	arch/i386/i386/multiboot.c	multiboot
61
62file	arch/i386/i386/autoconf.c
63file	arch/i386/i386/aout_machdep.c	exec_aout
64file	arch/i386/i386/busfunc.S
65file	arch/i386/i386/cpufunc.S
66file	arch/i386/i386/cpu_in_cksum.S	(inet | inet6) & cpu_in_cksum
67file	arch/i386/i386/db_dbgreg.S	ddb | kstack_check_dr0
68file	arch/i386/i386/db_disasm.c	ddb
69file	arch/i386/i386/db_interface.c	ddb
70file	arch/i386/i386/db_machdep.c	ddb
71file	arch/i386/i386/db_memrw.c	ddb | kgdb
72file	arch/i386/i386/dumpsys.c
73file	kern/subr_disk_mbr.c		disk
74file	kern/subr_spldebug.c		spldebug
75file	arch/i386/i386/gdt.c
76file	arch/i386/i386/i386func.S
77file	arch/i386/i386/ipkdb_glue.c	ipkdb
78file	arch/i386/i386/kgdb_machdep.c	kgdb
79file	arch/i386/i386/kobj_machdep.c	modular
80file	arch/i386/i386/machdep.c
81file 	arch/i386/i386/longrun.c
82file	arch/i386/i386/mtrr_k6.c	mtrr
83file	arch/i386/i386/process_machdep.c
84file	arch/i386/i386/trap.c
85file	dev/cons.c
86
87file	arch/i386/i386/mptramp.S	multiprocessor
88
89file	arch/i386/i386/pmc.c		perfctrs
90
91file	crypto/des/arch/i386/des_enc.S		des
92file	crypto/des/arch/i386/des_cbc.S		des
93
94file	crypto/blowfish/arch/i386/bf_enc.S	blowfish
95file	crypto/blowfish/arch/i386/bf_cbc.S	blowfish & !i386_cpu
96
97#
98# Machine-independent SCSI drivers
99#
100
101include	"dev/scsipi/files.scsipi"
102
103#
104# Machine-independent ATA drivers
105#
106
107include	"dev/ata/files.ata"
108
109# Memory Disk for install floppy
110file	dev/md_root.c			memory_disk_hooks & md
111
112#
113# Machine-independent I2O drivers
114#
115
116include	"dev/i2o/files.i2o"
117
118# attribute used to bring in BIOS trampoline code for real-mode probing
119# of certain devices/BIOS features
120define	bioscall
121file	arch/i386/i386/bioscall.S	bioscall needs-flag
122
123# BIOS32 routines
124define	bios32
125file	arch/i386/i386/bios32.c		bios32 needs-flag
126
127# i386 specific mainbus attributes
128define	apmbus {}
129define	pnpbiosbus {}
130
131#
132# System bus types
133#
134
135# XXX BIOS32 only if something that uses it is configured!
136device	mainbus: isabus, eisabus, mcabus, pcibus, bios32, acpibus,
137	cpubus, ioapicbus, apmbus, pnpbiosbus, ipmibus,
138	bioscall
139attach	mainbus at root
140file	arch/i386/i386/mainbus.c	mainbus
141
142#
143# PCI-only drivers
144# XXX MUST BE INCLUDED BEFORE files.isa, as long as files.isa attaches
145# XXX devices to 'pci'.
146#
147include	"dev/pci/files.pci"
148include "dev/pci/files.agp"
149file	arch/i386/pci/pcibios.c		pcibios
150file	arch/i386/pci/pci_intr_fixup.c	pcibios & pci_intr_fixup
151file	arch/i386/pci/piix.c		pcibios & pci_intr_fixup
152file	arch/i386/pci/opti82c558.c	pcibios & pci_intr_fixup
153file	arch/i386/pci/opti82c700.c	pcibios & pci_intr_fixup
154file	arch/i386/pci/sis85c503.c	pcibios & pci_intr_fixup
155file	arch/i386/pci/via82c586.c	pcibios & pci_intr_fixup
156file	arch/i386/pci/via8231.c		pcibios & pci_intr_fixup
157file	arch/i386/pci/amd756.c		pcibios & pci_intr_fixup
158file	arch/i386/pci/ali1543.c		pcibios & pci_intr_fixup
159defparam		PCI_CONF_MODE
160file	arch/i386/pci/pcic_pci_machdep.c	pcic_pci
161
162# x86 specific PCI hardware
163include "arch/x86/pci/files.pci"
164
165# AMD Elan SC520 System Controller (PCI-Host bridge)
166define elanparbus { }
167define elanpexbus { }
168device	elansc: sysmon_wdog, gpiobus, elanparbus, elanpexbus, pcibus
169attach	elansc at pcibus
170
171file	arch/i386/pci/elan520.c		elansc
172
173device elanpar
174attach elanpar at elanparbus
175
176device elanpex
177attach elanpex at elanpexbus
178
179# AMD Geode CS5535 Companion IDE controller
180device	gcscide: ata, ata_dma, ata_udma, pciide_common, wdc_common
181attach	gcscide at pci
182file	arch/i386/pci/gcscide.c 	gcscide
183
184# AMD Geode CS5536 Companion EHCI
185device	gcscehci: usbus
186attach	gcscehci at pci
187file	arch/i386/pci/gcscehci.c	gcscehci
188
189# AMD Geode SC1100 GCB area
190device  geodegcb {}
191attach	geodegcb at pci
192file	arch/i386/pci/geode.c		geodegcb
193
194# AMD Geode SC1100 Watchdog Timer
195device	geodewdog: sysmon_wdog, geodegcb
196attach	geodewdog at geodegcb
197file	arch/i386/pci/geodewdg.c	geodewdog
198
199# AMD Geode SC1100 high resolution counter
200device	geodecntr: geodegcb
201attach  geodecntr at geodegcb
202file	arch/i386/pci/geodecntr.c	geodecntr
203
204# PCI-EISA bridges
205device	pceb: eisabus, isabus
206attach	pceb at pci
207file	arch/i386/pci/pceb.c		pceb
208
209# PCI-ISA bridges
210device	gscpcib: isabus, gpiobus
211attach	gscpcib at pci
212file	arch/i386/pci/gscpcib.c		gscpcib
213
214# AMD Geode CS5535/CS5536 PCI-ISA bridge
215device	gcscpcib: isabus, sysmon_wdog, gpiobus
216attach	gcscpcib at pci
217file	arch/i386/pci/gcscpcib.c	gcscpcib
218
219device	piixpcib: isabus, bioscall
220attach	piixpcib at pci
221file	arch/i386/pci/piixpcib.c	piixpcib
222
223device	viapcib: isabus, i2cbus
224attach	viapcib at pci
225file	arch/i386/pci/viapcib.c		viapcib
226
227# PCI-MCA bridges
228device	pcmb: mcabus
229attach	pcmb at pci
230file	arch/i386/pci/pcmb.c		pcmb
231
232device	p64h2apic
233attach	p64h2apic at pci
234file	arch/i386/pci/p64h2apic.c	p64h2apic
235
236
237#
238# ISA and mixed ISA+EISA or ISA+PCI drivers
239#
240
241include	"dev/isa/files.isa"
242
243# PC clock
244file	arch/x86/isa/clock.c		isa
245file	arch/x86/isa/rtc.c		isa
246
247# TSC support
248file	arch/x86/x86/tsc.c
249
250# Numeric Processing Extension; Math Co-processor
251device	npx
252file	arch/i386/isa/npx.c		npx needs-flag
253
254attach	npx at isa with npx_isa
255file	arch/i386/isa/npx_isa.c		npx_isa
256
257# PC Mice: Logitech-style and Microsoft-style
258device	lms: wsmousedev
259attach	lms at isa
260file	arch/i386/isa/lms.c		lms
261device	mms: wsmousedev
262attach	mms at isa
263file	arch/i386/isa/mms.c		mms
264
265include	"dev/pckbport/files.pckbport"
266
267device	sysbeep
268attach	sysbeep at pcppi
269
270# Floppy disk controller
271device	fdc {drive = -1}: isadma
272file	dev/isa/fd.c			fdc needs-flag
273
274attach	fdc at isa with fdc_isa
275file	dev/isa/fdc_isa.c		fdc_isa
276
277device	fd: disk
278attach	fd at fdc
279
280# Adaptec AHA-284x VL SCSI controllers
281# device declaration in sys/conf/files
282attach	ahc at isa with ahc_isa: ahc_aic77xx, smc93cx6
283file	arch/i386/isa/ahc_isa.c		ahc_isa
284
285#
286# EISA-only drivers
287#
288
289include	"dev/eisa/files.eisa"
290file	arch/i386/eisa/eisa_machdep.c	eisa
291
292#
293# MCA-only drivers
294#
295
296device	mca {[slot = -1]} : bioscall
297include	"dev/mca/files.mca"
298file	arch/i386/mca/mca_machdep.c	mca
299
300# ISA Plug 'n Play devices
301file	arch/i386/isa/isapnp_machdep.c	isapnp
302
303#
304# VME support
305#
306include	"dev/vme/files.vme"
307
308#
309# GPIB support
310#
311include "dev/gpib/files.gpib"
312
313#
314# CMOS RAM
315#
316defpseudo cmos
317file	arch/i386/isa/cmos.c		cmos needs-flag
318
319#
320# Other mainbus-attached devices
321#
322
323include "dev/apm/files.apm"
324
325# Advanced Power Management support (APM)
326attach	apm at apmbus with apmbios: bioscall
327file	arch/i386/i386/apmbios.c	apmbios	needs-flag
328file	arch/i386/i386/apmcall.S	apmbios
329
330# XBox LED & system support
331file	arch/i386/xbox/xbox.c			xbox
332
333# XBox X3LCD support (*very* rudimentary)
334file	arch/i386/xbox/xboxlcd.c		xbox
335
336# XBox framebuffer support
337device	xboxfb: wsemuldisplaydev, rasops32, vcons
338attach	xboxfb at pci
339file	arch/i386/xbox/xboxfb.c			xboxfb needs-flag
340
341#
342# Compatibility modules
343#
344
345# VM86 mode
346file	arch/i386/i386/vm86.c			vm86
347
348# VM86 in kernel
349file	arch/i386/i386/kvm86.c			kvm86
350file	arch/i386/i386/kvm86call.S		kvm86
351
352# Binary compatibility with previous NetBSD releases (COMPAT_XX)
353file	arch/i386/i386/compat_13_machdep.c	compat_13
354file	arch/i386/i386/compat_16_machdep.c	compat_16 | compat_ibcs2
355
356# SVR4 binary compatibility (COMPAT_SVR4)
357include	"compat/svr4/files.svr4"
358file	arch/i386/i386/svr4_machdep.c		compat_svr4
359file	arch/i386/i386/svr4_sigcode.S		compat_svr4
360file	arch/i386/i386/svr4_syscall.c		compat_svr4
361
362# iBCS-2 binary compatibility (COMPAT_IBCS2)
363include	"compat/ibcs2/files.ibcs2"
364file	arch/i386/i386/ibcs2_machdep.c		compat_ibcs2
365file	arch/i386/i386/ibcs2_sigcode.S		compat_ibcs2
366file	arch/i386/i386/ibcs2_syscall.c		compat_ibcs2
367
368# Linux binary compatibility (COMPAT_LINUX)
369include	"compat/linux/files.linux"
370include	"compat/linux/arch/i386/files.linux_i386"
371file	arch/i386/i386/linux_sigcode.S		compat_linux
372file	arch/i386/i386/linux_syscall.c		compat_linux
373file	arch/x86/x86/linux_trap.c		compat_linux
374
375# FreeBSD binary compatibility (COMPAT_FREEBSD)
376include	"compat/freebsd/files.freebsd"
377file	arch/i386/i386/freebsd_machdep.c	compat_freebsd
378file	arch/i386/i386/freebsd_sigcode.S	compat_freebsd
379file	arch/i386/i386/freebsd_syscall.c	compat_freebsd
380
381# NDIS compatibilty (COMPAT_NDIS)
382include "compat/ndis/files.ndis"
383
384# OSS audio driver compatibility
385include	"compat/ossaudio/files.ossaudio"
386
387#
388# CARDBUS
389#
390include	"dev/cardbus/files.cardbus"
391file	arch/i386/i386/rbus_machdep.c	cardbus
392
393# XXXX pcic here because it needs to be late.  The catch: pcic needs
394# to be late, so devices which attach to it are attached late.  But it
395# needs to be before its isa and pci attachments.  This answer is
396# non-optimal, but I don't have a better answer right now.
397
398# PCIC pcmcia controller
399# XXX this needs to be done very late, so it's done here.  This feels
400# like a kludge, but it might be for the best.
401
402defparam		PCIC_ISA_ALLOC_IOBASE
403defparam		PCIC_ISA_ALLOC_IOSIZE
404defparam		PCIC_ISA_INTR_ALLOC_MASK
405
406device	pcic: pcmciabus
407file	dev/ic/i82365.c			pcic
408
409# PCIC pcmcia controller on ISA bus.
410attach	pcic at isa with pcic_isa
411file	dev/isa/i82365_isa.c		pcic_isa
412
413# PCIC pcmcia controller on PCI bus.
414attach	pcic at pci with pcic_pci
415file	dev/pci/i82365_pci.c		pcic_pci
416
417# PCIC pcmcia controller on PnP board
418attach	pcic at isapnp with pcic_isapnp
419file	dev/isapnp/i82365_isapnp.c	pcic_isapnp
420
421# Code common to ISA and ISAPnP attachments
422file	dev/isa/i82365_isasubr.c	pcic_isa | pcic_isapnp | pcic_pci
423
424# XXXX tcic here because it needs to be late.  The catch: tcic needs
425# to be late, so devices which attach to it are attached late.  But it
426# needs to be before its isa and pci attachments.  This answer is
427# non-optimal, but I don't have a better answer right now.
428
429# TCIC pcmcia controller
430# XXX this needs to be done very late, so it's done here.  This feels
431# like a kludge, but it might be for the best.
432
433defparam		TCIC_ISA_ALLOC_IOBASE
434defparam		TCIC_ISA_ALLOC_IOSIZE
435defparam		TCIC_ISA_INTR_ALLOC_MASK
436
437device	tcic: pcmciabus
438file	dev/ic/tcic2.c			tcic
439
440# TCIC pcmcia controller
441attach	tcic at isa with tcic_isa
442file	dev/isa/tcic2_isa.c		tcic_isa
443
444# this wants to be probed as late as possible.
445#
446# Machine-independent PCMCIA drivers
447#
448include	"dev/pcmcia/files.pcmcia"
449
450
451include	"dev/usb/files.usb"
452
453include	"dev/bluetooth/files.bluetooth"
454
455include	"dev/sdmmc/files.sdmmc"
456
457include	"dev/ieee1394/files.ieee1394"
458
459include	"arch/i386/pnpbios/files.pnpbios"
460
461include "dev/acpi/files.acpi"
462file	arch/i386/acpi/acpi_wakeup_low.S	acpi
463
464# Numeric Processing Extension; Math Co-processor
465attach	npx at acpinodebus with npx_acpi
466file	arch/i386/acpi/npx_acpi.c		npx_acpi
467
468# Obsolete vesabios/vesafb flags
469obsolete	defflag	opt_vesabios.h	VESABIOSVERBOSE
470obsolete	defparam opt_vesafb.h	VESAFB_WIDTH VESAFB_HEIGHT VESAFB_DEPTH
471obsolete	defflag	opt_vesafb.h	VESAFB_PM
472
473# AMD Geode LX Security Block
474device	glxsb: opencrypto
475attach	glxsb at pci
476file	arch/i386/pci/glxsb.c		glxsb
477
478include "arch/i386/conf/majors.i386"
479endif #xen
480