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