files.i386 revision 1.392
11.392Smrg#	$NetBSD: files.i386,v 1.392 2018/04/07 19:38:06 mrg Exp $
21.2Scgd#
31.56Scgd# new style config file for i386 architecture
41.56Scgd#
51.56Scgd
61.322Sbouyerifndef xen
71.322Sbouyer
81.56Scgd# maxpartitions must be first item in files.${ARCH}.newconf
91.253Swizmaxpartitions 8
101.94Sthorpej
111.193Sperrymaxusers 2 16 128
121.125Sthorpej
131.273Syamtdefparam opt_kernbase.h	KERNBASE
141.273Syamt
151.124Sbouyer# delay before cpu_reset() for reboot.
161.201Slukemdefparam		CPURESET_DELAY
171.101Sthorpej
181.362Sjmcneill# Obsolete Xbox support
191.362Sjmcneillobsolete defflag	XBOX
201.298Sjmcneill
211.379Smaxvdefflag			PMC
221.388Smaxvdefflag			KASLR
231.379Smaxv
241.103Sthorpej# User-settable LDT (used by WINE)
251.201Slukemdefflag			USER_LDT
261.104Sthorpej
271.105Sthorpej# X server support in console drivers
281.201Slukemdefflag	opt_xserver.h	XSERVER XSERVER_DDB
291.181Schs
301.181Schs# The REAL{BASE,EXT}MEM options
311.199Slukemdefparam opt_realmem.h	REALBASEMEM REALEXTMEM
321.140Sdrochner
331.326Sjoerg# The PHYSMEM_MAX_{SIZE,ADDR} optionms
341.326Sjoergdefparam opt_physmem.h	PHYSMEM_MAX_ADDR PHYSMEM_MAX_SIZE
351.326Sjoerg
361.142Sthorpej# PCI BIOS options
371.201Slukemdefflag	opt_pcibios.h	PCIBIOS PCIBIOSVERBOSE
381.202Slukem			PCIBIOS_INTR_GUESS PCIINTR_DEBUG
391.202Slukemdefparam opt_pcibios.h	PCIBIOS_IRQS_HINT
401.166Sthorpej
411.352Sdyoung# splraise()/spllower() debug
421.352Sdyoungdefflag	opt_spldebug.h			SPLDEBUG
431.352Sdyoung
441.392Smrg# Enable GCC spectre V2 mitigation options
451.392Smrgdefflag opt_spectre.h	SPECTRE_V2_GCC_MITIGATION
461.392Smrg
471.236Sjmmv# Beep on halt
481.318Sxtraemedefflag 	opt_beep.h		BEEP_ONHALT
491.318Sxtraemedefparam 	opt_beep.h		BEEP_ONHALT_COUNT=3
501.318Sxtraemedefparam 	opt_beep.h		BEEP_ONHALT_PITCH=1500
511.318Sxtraemedefparam 	opt_beep.h		BEEP_ONHALT_PERIOD=250
521.209Syamt
531.277Sjmmv# Multiboot support
541.318Sxtraemedefflag 	opt_multiboot.h		MULTIBOOT
551.318Sxtraemeobsolete 	defparam		MULTIBOOT_SYMTAB_SPACE
561.318Sxtraemefile 	arch/i386/i386/multiboot.c	multiboot
571.277Sjmmv
581.56Scgdfile	arch/i386/i386/autoconf.c
591.340Sadfile	arch/i386/i386/aout_machdep.c	exec_aout
601.315Sadfile	arch/i386/i386/busfunc.S
611.315Sadfile	arch/i386/i386/cpufunc.S
621.332Sjoergfile	arch/i386/i386/cpu_in_cksum.S	(inet | inet6) & cpu_in_cksum
631.56Scgdfile	arch/i386/i386/db_disasm.c	ddb
641.56Scgdfile	arch/i386/i386/db_interface.c	ddb
651.357Schristosfile	arch/i386/i386/db_machdep.c	ddb
661.329Sadfile	arch/i386/i386/dumpsys.c
671.241Sdslfile	kern/subr_disk_mbr.c		disk
681.352Sdyoungfile	kern/subr_spldebug.c		spldebug
691.60Smycroftfile	arch/i386/i386/gdt.c
701.315Sadfile	arch/i386/i386/i386func.S
711.327Sadfile	arch/i386/i386/kobj_machdep.c	modular
721.56Scgdfile	arch/i386/i386/machdep.c
731.334Sxtraemefile 	arch/i386/i386/longrun.c
741.197Sthorpejfile	arch/i386/i386/mtrr_k6.c	mtrr
751.56Scgdfile	arch/i386/i386/process_machdep.c
761.373Sdslfile	arch/x86/x86/convert_xmm_s87.c
771.56Scgdfile	arch/i386/i386/trap.c
781.56Scgdfile	dev/cons.c
791.374Sdslfile	arch/x86/x86/fpu.c
801.376Skamilfile	arch/x86/x86/dbregs.c
811.167Sthorpej
821.353Sdhollandfile	arch/i386/i386/mptramp.S	multiprocessor
831.215Sfvdl
841.219Sthorpejfile	crypto/des/arch/i386/des_enc.S		des
851.219Sthorpejfile	crypto/des/arch/i386/des_cbc.S		des
861.219Sthorpej
871.219Sthorpejfile	crypto/blowfish/arch/i386/bf_enc.S	blowfish
881.246Stlsfile	crypto/blowfish/arch/i386/bf_cbc.S	blowfish & !i386_cpu
891.56Scgd
901.56Scgd#
911.368Salnsn# Stack-less Just-In-Time compiler
921.368Salnsn#
931.368Salnsn
941.368Salnsninclude	"external/bsd/sljit/conf/files.sljit"
951.368Salnsn
961.368Salnsn#
971.56Scgd# Machine-independent SCSI drivers
981.56Scgd#
991.56Scgd
1001.182Slukeminclude	"dev/scsipi/files.scsipi"
1011.69Sperry
1021.97Scgd#
1031.97Scgd# Machine-independent ATA drivers
1041.97Scgd#
1051.97Scgd
1061.182Slukeminclude	"dev/ata/files.ata"
1071.97Scgd
1081.79Spk# Memory Disk for install floppy
1091.338Schristosfile	dev/md_root.c			memory_disk_hooks & md
1101.171Sad
1111.171Sad#
1121.171Sad# Machine-independent I2O drivers
1131.171Sad#
1141.171Sad
1151.182Slukeminclude	"dev/i2o/files.i2o"
1161.56Scgd
1171.142Sthorpej# attribute used to bring in BIOS trampoline code for real-mode probing
1181.142Sthorpej# of certain devices/BIOS features
1191.182Slukemdefine	bioscall
1201.223Sfvdlfile	arch/i386/i386/bioscall.S	bioscall needs-flag
1211.142Sthorpej
1221.260Sdrochner# i386 specific mainbus attributes
1231.318Sxtraemedefine	apmbus {}
1241.318Sxtraemedefine	pnpbiosbus {}
1251.260Sdrochner
1261.56Scgd#
1271.56Scgd# System bus types
1281.56Scgd#
1291.65Scgd
1301.142Sthorpej# XXX BIOS32 only if something that uses it is configured!
1311.260Sdrochnerdevice	mainbus: isabus, eisabus, mcabus, pcibus, bios32, acpibus,
1321.343Sjmcneill	cpubus, ioapicbus, apmbus, pnpbiosbus, ipmibus,
1331.323Sjmcneill	bioscall
1341.67Sthorpejattach	mainbus at root
1351.65Scgdfile	arch/i386/i386/mainbus.c	mainbus
1361.56Scgd
1371.55Smycroft#
1381.64Scgd# PCI-only drivers
1391.64Scgd# XXX MUST BE INCLUDED BEFORE files.isa, as long as files.isa attaches
1401.64Scgd# XXX devices to 'pci'.
1411.64Scgd#
1421.182Slukeminclude	"dev/pci/files.pci"
1431.195Sthorpejinclude "dev/pci/files.agp"
1441.142Sthorpejfile	arch/i386/pci/pcibios.c		pcibios
1451.264Ssekiyafile	arch/i386/pci/pci_intr_fixup.c	pcibios & pci_intr_fixup
1461.264Ssekiyafile	arch/i386/pci/piix.c		pcibios & pci_intr_fixup
1471.264Ssekiyafile	arch/i386/pci/opti82c558.c	pcibios & pci_intr_fixup
1481.264Ssekiyafile	arch/i386/pci/opti82c700.c	pcibios & pci_intr_fixup
1491.264Ssekiyafile	arch/i386/pci/sis85c503.c	pcibios & pci_intr_fixup
1501.264Ssekiyafile	arch/i386/pci/via82c586.c	pcibios & pci_intr_fixup
1511.276Sxtraemefile	arch/i386/pci/via8231.c		pcibios & pci_intr_fixup
1521.264Ssekiyafile	arch/i386/pci/amd756.c		pcibios & pci_intr_fixup
1531.264Ssekiyafile	arch/i386/pci/ali1543.c		pcibios & pci_intr_fixup
1541.201Slukemdefparam		PCI_CONF_MODE
1551.127Snathanwfile	arch/i386/pci/pcic_pci_machdep.c	pcic_pci
1561.245Sdyoung
1571.318Sxtraeme# x86 specific PCI hardware
1581.318Sxtraemeinclude "arch/x86/pci/files.pci"
1591.213Sthorpej
1601.213Sthorpej# AMD Elan SC520 System Controller (PCI-Host bridge)
1611.331Sdyoungdefine elanparbus { }
1621.331Sdyoungdefine elanpexbus { }
1631.335Sdyoungdevice	elansc: sysmon_wdog, gpiobus, elanparbus, elanpexbus, pcibus
1641.335Sdyoungattach	elansc at pcibus
1651.335Sdyoung
1661.213Sthorpejfile	arch/i386/pci/elan520.c		elansc
1671.107Sthorpej
1681.331Sdyoungdevice elanpar
1691.331Sdyoungattach elanpar at elanparbus
1701.331Sdyoung
1711.331Sdyoungdevice elanpex
1721.331Sdyoungattach elanpex at elanpexbus
1731.331Sdyoung
1741.310Sxtraeme# AMD Geode CS5535 Companion IDE controller
1751.310Sxtraemedevice	gcscide: ata, ata_dma, ata_udma, pciide_common, wdc_common
1761.310Sxtraemeattach	gcscide at pci
1771.310Sxtraemefile	arch/i386/pci/gcscide.c 	gcscide
1781.310Sxtraeme
1791.312Sjmcneill# AMD Geode CS5536 Companion EHCI
1801.312Sjmcneilldevice	gcscehci: usbus
1811.312Sjmcneillattach	gcscehci at pci
1821.312Sjmcneillfile	arch/i386/pci/gcscehci.c	gcscehci
1831.312Sjmcneill
1841.288Skardel# AMD Geode SC1100 GCB area
1851.288Skardeldevice  geodegcb {}
1861.288Skardelattach	geodegcb at pci
1871.288Skardelfile	arch/i386/pci/geode.c		geodegcb
1881.288Skardel
1891.270Sdyoung# AMD Geode SC1100 Watchdog Timer
1901.288Skardeldevice	geodewdog: sysmon_wdog, geodegcb
1911.288Skardelattach	geodewdog at geodegcb
1921.288Skardelfile	arch/i386/pci/geodewdg.c	geodewdog
1931.288Skardel
1941.288Skardel# AMD Geode SC1100 high resolution counter
1951.288Skardeldevice	geodecntr: geodegcb
1961.288Skardelattach  geodecntr at geodegcb
1971.288Skardelfile	arch/i386/pci/geodecntr.c	geodecntr
1981.270Sdyoung
1991.107Sthorpej# PCI-EISA bridges
2001.108Sthorpejdevice	pceb: eisabus, isabus
2011.107Sthorpejattach	pceb at pci
2021.107Sthorpejfile	arch/i386/pci/pceb.c		pceb
2031.78Sthorpej
2041.78Sthorpej# PCI-ISA bridges
2051.271Sjmcneilldevice	gscpcib: isabus, gpiobus
2061.271Sjmcneillattach	gscpcib at pci
2071.271Sjmcneillfile	arch/i386/pci/gscpcib.c		gscpcib
2081.271Sjmcneill
2091.328Sxtraeme# AMD Geode CS5535/CS5536 PCI-ISA bridge
2101.328Sxtraemedevice	gcscpcib: isabus, sysmon_wdog, gpiobus
2111.361Sbouyerattach	gcscpcib at pci with gcscpcib_pci
2121.361Sbouyerfile	arch/i386/pci/gcscpcib_pci.c	gcscpcib_pci
2131.361Sbouyerfile	dev/ic/gcscpcib.c		gcscpcib
2141.328Sxtraeme
2151.287Sjmcneilldevice	piixpcib: isabus, bioscall
2161.287Sjmcneillattach	piixpcib at pci
2171.287Sjmcneillfile	arch/i386/pci/piixpcib.c	piixpcib
2181.287Sjmcneill
2191.283Sjmcneilldevice	viapcib: isabus, i2cbus
2201.283Sjmcneillattach	viapcib at pci
2211.283Sjmcneillfile	arch/i386/pci/viapcib.c		viapcib
2221.283Sjmcneill
2231.184Sjdolecek# PCI-MCA bridges
2241.184Sjdolecekdevice	pcmb: mcabus
2251.184Sjdolecekattach	pcmb at pci
2261.184Sjdolecekfile	arch/i386/pci/pcmb.c		pcmb
2271.64Scgd
2281.215Sfvdldevice	p64h2apic
2291.215Sfvdlattach	p64h2apic at pci
2301.215Sfvdlfile	arch/i386/pci/p64h2apic.c	p64h2apic
2311.215Sfvdl
2321.215Sfvdl
2331.64Scgd#
2341.55Smycroft# ISA and mixed ISA+EISA or ISA+PCI drivers
2351.55Smycroft#
2361.56Scgd
2371.182Slukeminclude	"dev/isa/files.isa"
2381.115Scgd
2391.369Smbalmer# Protech PS3100 cash drawer
2401.369Smbalmerdevice	ptcd: gpiobus
2411.369Smbalmerattach	ptcd at isa
2421.369Smbalmerfile	dev/isa/ptcd.c			ptcd
2431.369Smbalmer
2441.239Swiz# PC Mice: Logitech-style and Microsoft-style
2451.128Sdrochnerdevice	lms: wsmousedev
2461.67Sthorpejattach	lms at isa
2471.128Sdrochnerfile	arch/i386/isa/lms.c		lms
2481.128Sdrochnerdevice	mms: wsmousedev
2491.67Sthorpejattach	mms at isa
2501.128Sdrochnerfile	arch/i386/isa/mms.c		mms
2511.111Sdrochner
2521.250Sbjh21include	"dev/pckbport/files.pckbport"
2531.113Sdrochner
2541.182Slukemdevice	sysbeep
2551.182Slukemattach	sysbeep at pcppi
2561.111Sdrochner
2571.56Scgd# Floppy disk controller
2581.157Sthorpejdevice	fdc {drive = -1}: isadma
2591.157Sthorpejfile	dev/isa/fd.c			fdc needs-flag
2601.157Sthorpej
2611.157Sthorpejattach	fdc at isa with fdc_isa
2621.157Sthorpejfile	dev/isa/fdc_isa.c		fdc_isa
2631.157Sthorpej
2641.157Sthorpejdevice	fd: disk
2651.67Sthorpejattach	fd at fdc
2661.76Ssoda
2671.76Ssoda# Adaptec AHA-284x VL SCSI controllers
2681.76Ssoda# device declaration in sys/conf/files
2691.150Sfvdlattach	ahc at isa with ahc_isa: ahc_aic77xx, smc93cx6
2701.76Ssodafile	arch/i386/isa/ahc_isa.c		ahc_isa
2711.56Scgd
2721.55Smycroft#
2731.55Smycroft# EISA-only drivers
2741.55Smycroft#
2751.56Scgd
2761.182Slukeminclude	"dev/eisa/files.eisa"
2771.72Scgdfile	arch/i386/eisa/eisa_machdep.c	eisa
2781.154Sjdolecek
2791.154Sjdolecek#
2801.154Sjdolecek# MCA-only drivers
2811.154Sjdolecek#
2821.154Sjdolecek
2831.182Slukemdevice	mca {[slot = -1]} : bioscall
2841.182Slukeminclude	"dev/mca/files.mca"
2851.159Sjdolecekfile	arch/i386/mca/mca_machdep.c	mca
2861.187Sjdolecek
2871.80Schristos# ISA Plug 'n Play devices
2881.80Schristosfile	arch/i386/isa/isapnp_machdep.c	isapnp
2891.130Sdrochner
2901.130Sdrochner#
2911.130Sdrochner# VME support
2921.130Sdrochner#
2931.182Slukeminclude	"dev/vme/files.vme"
2941.240Sgmcgarry
2951.240Sgmcgarry#
2961.240Sgmcgarry# GPIB support
2971.240Sgmcgarry#
2981.240Sgmcgarryinclude "dev/gpib/files.gpib"
2991.77Sjtk
3001.77Sjtk#
3011.300Sdyoung# CMOS RAM
3021.300Sdyoung#
3031.300Sdyoungdefpseudo cmos
3041.300Sdyoungfile	arch/i386/isa/cmos.c		cmos needs-flag
3051.300Sdyoung
3061.300Sdyoung#
3071.77Sjtk# Other mainbus-attached devices
3081.77Sjtk#
3091.77Sjtk
3101.290Schristosinclude "dev/apm/files.apm"
3111.290Schristos
3121.55Smycroft#
3131.55Smycroft# Compatibility modules
3141.55Smycroft#
3151.61Smycroft
3161.120Smycroft# Binary compatibility with previous NetBSD releases (COMPAT_XX)
3171.294Sdrochnerfile	arch/i386/i386/compat_13_machdep.c	compat_13
3181.384Smaxvfile	arch/i386/i386/compat_16_machdep.c	compat_16
3191.56Scgd
3201.59Smycroft# Linux binary compatibility (COMPAT_LINUX)
3211.182Slukeminclude	"compat/linux/files.linux"
3221.182Slukeminclude	"compat/linux/arch/i386/files.linux_i386"
3231.223Sfvdlfile	arch/i386/i386/linux_sigcode.S		compat_linux
3241.176Sjdolecekfile	arch/i386/i386/linux_syscall.c		compat_linux
3251.263Sfvdlfile	arch/x86/x86/linux_trap.c		compat_linux
3261.58Smycroft
3271.59Smycroft# FreeBSD binary compatibility (COMPAT_FREEBSD)
3281.182Slukeminclude	"compat/freebsd/files.freebsd"
3291.131Schristos
3301.284Srittera# NDIS compatibilty (COMPAT_NDIS)
3311.286Sritterainclude "compat/ndis/files.ndis"
3321.284Srittera
3331.82Saugustss# OSS audio driver compatibility
3341.182Slukeminclude	"compat/ossaudio/files.ossaudio"
3351.139Shaya
3361.139Shaya#
3371.139Shaya# CARDBUS
3381.139Shaya#
3391.182Slukeminclude	"dev/cardbus/files.cardbus"
3401.139Shayafile	arch/i386/i386/rbus_machdep.c	cardbus
3411.90Sthorpej
3421.90Sthorpej# XXXX pcic here because it needs to be late.  The catch: pcic needs
3431.90Sthorpej# to be late, so devices which attach to it are attached late.  But it
3441.90Sthorpej# needs to be before its isa and pci attachments.  This answer is
3451.90Sthorpej# non-optimal, but I don't have a better answer right now.
3461.90Sthorpej
3471.165Sitohy# PCIC pcmcia controller
3481.90Sthorpej# XXX this needs to be done very late, so it's done here.  This feels
3491.90Sthorpej# like a kludge, but it might be for the best.
3501.93Sthorpej
3511.201Slukemdefparam		PCIC_ISA_ALLOC_IOBASE
3521.201Slukemdefparam		PCIC_ISA_ALLOC_IOSIZE
3531.201Slukemdefparam		PCIC_ISA_INTR_ALLOC_MASK
3541.93Sthorpej
3551.126Spkdevice	pcic: pcmciabus
3561.92Sthorpejfile	dev/ic/i82365.c			pcic
3571.90Sthorpej
3581.114Ssommerfe# PCIC pcmcia controller on ISA bus.
3591.90Sthorpejattach	pcic at isa with pcic_isa
3601.90Sthorpejfile	dev/isa/i82365_isa.c		pcic_isa
3611.90Sthorpej
3621.114Ssommerfe# PCIC pcmcia controller on PCI bus.
3631.90Sthorpejattach	pcic at pci with pcic_pci
3641.90Sthorpejfile	dev/pci/i82365_pci.c		pcic_pci
3651.90Sthorpej
3661.114Ssommerfe# PCIC pcmcia controller on PnP board
3671.182Slukemattach	pcic at isapnp with pcic_isapnp
3681.114Ssommerfefile	dev/isapnp/i82365_isapnp.c	pcic_isapnp
3691.114Ssommerfe
3701.114Ssommerfe# Code common to ISA and ISAPnP attachments
3711.127Snathanwfile	dev/isa/i82365_isasubr.c	pcic_isa | pcic_isapnp | pcic_pci
3721.132Sbad
3731.132Sbad# XXXX tcic here because it needs to be late.  The catch: tcic needs
3741.132Sbad# to be late, so devices which attach to it are attached late.  But it
3751.132Sbad# needs to be before its isa and pci attachments.  This answer is
3761.132Sbad# non-optimal, but I don't have a better answer right now.
3771.132Sbad
3781.165Sitohy# TCIC pcmcia controller
3791.132Sbad# XXX this needs to be done very late, so it's done here.  This feels
3801.132Sbad# like a kludge, but it might be for the best.
3811.132Sbad
3821.201Slukemdefparam		TCIC_ISA_ALLOC_IOBASE
3831.201Slukemdefparam		TCIC_ISA_ALLOC_IOSIZE
3841.201Slukemdefparam		TCIC_ISA_INTR_ALLOC_MASK
3851.132Sbad
3861.132Sbaddevice	tcic: pcmciabus
3871.132Sbadfile	dev/ic/tcic2.c			tcic
3881.132Sbad
3891.165Sitohy# TCIC pcmcia controller
3901.132Sbadattach	tcic at isa with tcic_isa
3911.132Sbadfile	dev/isa/tcic2_isa.c		tcic_isa
3921.90Sthorpej
3931.90Sthorpej# this wants to be probed as late as possible.
3941.90Sthorpej#
3951.90Sthorpej# Machine-independent PCMCIA drivers
3961.90Sthorpej#
3971.182Slukeminclude	"dev/pcmcia/files.pcmcia"
3981.90Sthorpej
3991.90Sthorpej
4001.182Slukeminclude	"dev/usb/files.usb"
4011.170Sonoe
4021.289Sgdamoreinclude	"dev/bluetooth/files.bluetooth"
4031.289Sgdamore
4041.349Snonakainclude	"dev/sdmmc/files.sdmmc"
4051.349Snonaka
4061.182Slukeminclude	"dev/ieee1394/files.ieee1394"
4071.141Sdrochner
4081.182Slukeminclude	"arch/i386/pnpbios/files.pnpbios"
4091.198Sthorpej
4101.198Sthorpejinclude "dev/acpi/files.acpi"
4111.323Sjmcneillfile	arch/i386/acpi/acpi_wakeup_low.S	acpi
4121.207Schristos
4131.344Sjmcneill# Obsolete vesabios/vesafb flags
4141.344Sjmcneillobsolete	defflag	opt_vesabios.h	VESABIOSVERBOSE
4151.344Sjmcneillobsolete	defparam opt_vesafb.h	VESAFB_WIDTH VESAFB_HEIGHT VESAFB_DEPTH
4161.344Sjmcneillobsolete	defflag	opt_vesafb.h	VESAFB_PM
4171.344Sjmcneill
4181.309Sjmcneill# AMD Geode LX Security Block
4191.309Sjmcneilldevice	glxsb: opencrypto
4201.370Smbalmerattach	glxsb at pci
4211.309Sjmcneillfile	arch/i386/pci/glxsb.c		glxsb
4221.309Sjmcneill
4231.214Sgehennainclude "arch/i386/conf/majors.i386"
4241.322Sbouyerendif #xen
425