files.i386 revision 1.184
11.184Sjdolecek#	$NetBSD: files.i386,v 1.184 2001/03/25 09:54:11 jdolecek Exp $
21.2Scgd#
31.56Scgd# new style config file for i386 architecture
41.56Scgd#
51.56Scgd
61.56Scgd# maxpartitions must be first item in files.${ARCH}.newconf
71.56Scgdmaxpartitions 8
81.94Sthorpej
91.56Scgdmaxusers 2 16 64
101.125Sthorpej
111.125Sthorpej# APM options
121.182Slukemdefopt	opt_apm.h	APM_DISABLE APM_FORCE_64K_SEGMENTS APM_NO_IDLE
131.182Slukem			APM_NO_STANDBY APM_V10_ONLY APM_NO_V12 APMDEBUG
141.182Slukem			APMDEBUG_VALUE APM_POWER_PRINT APM_DISABLE_INTERRUPTS
151.182Slukem			APM_ALLOW_BOGUS_SEGMENTS
161.100Sthorpej
171.100Sthorpej# Processor type options.
181.182Slukemdefopt	opt_cputype.h	I386_CPU I486_CPU I586_CPU I686_CPU
191.124Sbouyer
201.124Sbouyer# delay before cpu_reset() for reboot.
211.182Slukemdefopt	CPURESET_DELAY
221.101Sthorpej
231.101Sthorpej# VM86 emulation
241.101Sthorpejdefopt	VM86
251.102Sthorpej
261.102Sthorpej# Floating point emulation
271.102Sthorpejdefopt	MATH_EMULATE
281.103Sthorpej
291.103Sthorpej# User-settable LDT (used by WINE)
301.103Sthorpejdefopt	USER_LDT
311.104Sthorpej
321.104Sthorpej# Speed hack; make NOPs dummies (might break on some machines)
331.104Sthorpejdefopt	DUMMY_NOPS
341.105Sthorpej
351.167Sthorpej# Performance counter support
361.167Sthorpejdefopt	PERFCTRS
371.167Sthorpej
381.105Sthorpej# X server support in console drivers
391.182Slukemdefopt	opt_xserver.h	XSERVER XSERVER_DDB
401.181Schs
411.181Schs# The REAL{BASE,EXT}MEM options
421.182Slukemdefopt	opt_realmem.h	REALBASEMEM REALEXTMEM
431.140Sdrochner
441.140Sdrochner# understand boot device passed by pre-1.3 bootblocks
451.140Sdrochnerdefopt	COMPAT_OLDBOOT
461.98Sthorpej
471.142Sthorpej# PCI BIOS options
481.182Slukemdefopt	opt_pcibios.h	PCIBIOS PCIBIOSVERBOSE
491.164Ssoda	PCIBIOS_ADDR_FIXUP PCIBIOS_BUS_FIXUP
501.164Ssoda	PCIBIOS_INTR_FIXUP PCIBIOS_INTR_FIXUP_FORCE
511.164Ssoda	PCIBIOS_INTR_GUESS PCIBIOS_IRQS_HINT PCIINTR_DEBUG
521.166Sthorpej
531.166Sthorpej# Large page size
541.166Sthorpejdefopt	LARGEPAGES
551.142Sthorpej
561.56Scgdfile	arch/i386/i386/autoconf.c
571.146Sdrochnerfile	arch/i386/i386/bus_machdep.c
581.56Scgdfile	arch/i386/i386/conf.c
591.145Sdrochnerfile	arch/i386/i386/consinit.c
601.119Srvbfile	arch/i386/i386/db_dbgreg.s	ddb
611.56Scgdfile	arch/i386/i386/db_disasm.c	ddb
621.56Scgdfile	arch/i386/i386/db_interface.c	ddb
631.85Sthorpejfile	arch/i386/i386/db_memrw.c	ddb | kgdb
641.56Scgdfile	arch/i386/i386/db_trace.c	ddb
651.56Scgdfile	arch/i386/i386/disksubr.c	disk
661.60Smycroftfile	arch/i386/i386/gdt.c
671.74Smycroftfile	arch/i386/i386/in_cksum.s	inet
681.152Swsfile	arch/i386/i386/ipkdb_glue.c	ipkdb
691.85Sthorpejfile	arch/i386/i386/kgdb_machdep.c	kgdb
701.56Scgdfile	arch/i386/i386/machdep.c
711.56Scgdfile	arch/i386/i386/math_emulate.c	math_emulate
721.56Scgdfile	arch/i386/i386/mem.c
731.56Scgdfile	arch/i386/i386/microtime.s
741.154Sjdolecekfile	netns/ns_cksum.c		ns
751.134Sthorpejfile	arch/i386/i386/pmap.c
761.56Scgdfile	arch/i386/i386/process_machdep.c
771.180Sfvdlfile	arch/i386/i386/procfs_machdep.c	procfs
781.56Scgdfile	arch/i386/i386/sys_machdep.c
791.178Smycroftfile	arch/i386/i386/syscall.c
801.56Scgdfile	arch/i386/i386/trap.c
811.56Scgdfile	arch/i386/i386/vm_machdep.c
821.56Scgdfile	dev/cons.c
831.167Sthorpej
841.167Sthorpejfile	arch/i386/i386/pmc.c		perfctrs
851.56Scgd
861.56Scgd#
871.56Scgd# Machine-independent SCSI drivers
881.56Scgd#
891.56Scgd
901.182Slukeminclude	"dev/scsipi/files.scsipi"
911.56Scgdmajor	{sd = 4}
921.56Scgdmajor	{cd = 6}
931.69Sperry
941.97Scgd#
951.97Scgd# Machine-independent ATA drivers
961.97Scgd#
971.97Scgd
981.182Slukeminclude	"dev/ata/files.ata"
991.97Scgdmajor	{wd = 0}
1001.97Scgd
1011.79Spk# Memory Disk for install floppy
1021.182Slukemfile	arch/i386/i386/md_root.c	memory_disk_hooks
1031.79Spkmajor	{md = 17}
1041.149Soster
1051.149Soster# RAIDframe
1061.149Sostermajor	{raid = 18}
1071.151Sad
1081.174Sad# Logical disk
1091.174Sadmajor	{ld = 19}
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.142Sthorpejfile	arch/i386/i386/bioscall.s	bioscall needs-flag
1211.142Sthorpej
1221.142Sthorpej# BIOS32 routines
1231.142Sthorpejdefine	bios32
1241.142Sthorpejfile	arch/i386/i386/bios32.c		bios32 needs-flag
1251.142Sthorpej
1261.56Scgd#
1271.56Scgd# System bus types
1281.56Scgd#
1291.65Scgd
1301.182Slukemdefine	mainbus { }
1311.142Sthorpej# XXX BIOS32 only if something that uses it is configured!
1321.159Sjdolecekdevice	mainbus: isabus, eisabus, mcabus, pcibus, mainbus, bios32
1331.67Sthorpejattach	mainbus at root
1341.65Scgdfile	arch/i386/i386/mainbus.c	mainbus
1351.56Scgd
1361.55Smycroft#
1371.64Scgd# PCI-only drivers
1381.64Scgd# XXX MUST BE INCLUDED BEFORE files.isa, as long as files.isa attaches
1391.64Scgd# XXX devices to 'pci'.
1401.64Scgd#
1411.64Scgd
1421.182Slukeminclude	"dev/pci/files.pci"
1431.64Scgdfile	arch/i386/pci/pci_machdep.c	pci
1441.142Sthorpejfile	arch/i386/pci/pcibios.c		pcibios
1451.142Sthorpejfile	arch/i386/pci/pci_intr_fixup.c	pcibios & pcibios_intr_fixup
1461.142Sthorpejfile	arch/i386/pci/piix.c		pcibios & pcibios_intr_fixup
1471.142Sthorpejfile	arch/i386/pci/opti82c558.c	pcibios & pcibios_intr_fixup
1481.142Sthorpejfile	arch/i386/pci/opti82c700.c	pcibios & pcibios_intr_fixup
1491.142Sthorpejfile	arch/i386/pci/sis85c503.c	pcibios & pcibios_intr_fixup
1501.142Sthorpejfile	arch/i386/pci/via82c586.c	pcibios & pcibios_intr_fixup
1511.143Sthorpejfile	arch/i386/pci/pci_bus_fixup.c	pcibios & pcibios_bus_fixup
1521.158Suchfile	arch/i386/pci/pci_addr_fixup.c	pcibios & pcibios_addr_fixup
1531.182Slukemdefopt	PCI_CONF_MODE
1541.110Scgdfile	arch/i386/pci/pciide_machdep.c	pciide
1551.127Snathanwfile	arch/i386/pci/pcic_pci_machdep.c	pcic_pci
1561.78Sthorpej
1571.78Sthorpej# PCI-Host bridge chipsets
1581.108Sthorpejdevice	pchb: pcibus
1591.78Sthorpejattach	pchb at pci
1601.78Sthorpejfile	arch/i386/pci/pchb.c		pchb
1611.169Sthorpejfile	arch/i386/pci/pchb_rnd.c	pchb & rnd
1621.107Sthorpej
1631.107Sthorpej# PCI-EISA bridges
1641.108Sthorpejdevice	pceb: eisabus, isabus
1651.107Sthorpejattach	pceb at pci
1661.107Sthorpejfile	arch/i386/pci/pceb.c		pceb
1671.78Sthorpej
1681.78Sthorpej# PCI-ISA bridges
1691.108Sthorpejdevice	pcib: isabus
1701.78Sthorpejattach	pcib at pci
1711.78Sthorpejfile	arch/i386/pci/pcib.c		pcib
1721.184Sjdolecek
1731.184Sjdolecek# PCI-MCA bridges
1741.184Sjdolecekdevice	pcmb: mcabus
1751.184Sjdolecekattach	pcmb at pci
1761.184Sjdolecekfile	arch/i386/pci/pcmb.c		pcmb
1771.64Scgd
1781.153Smartin# Game adapter (joystick)
1791.153Smartindevice	joy
1801.153Smartinfile	arch/i386/isa/joy.c		joy needs-flag
1811.153Smartin
1821.153Smartin# PCI joysticks
1831.182Slukemattach	joy at pci with pci_joy
1841.153Smartinfile	arch/i386/pci/joy_pci.c		pci_joy
1851.153Smartin
1861.64Scgd#
1871.55Smycroft# ISA and mixed ISA+EISA or ISA+PCI drivers
1881.55Smycroft#
1891.56Scgd
1901.182Slukeminclude	"dev/isa/files.isa"
1911.56Scgdmajor	{mcd = 7}
1921.56Scgd#major	{scd = 15}
1931.115Scgd
1941.115Scgd# XXX THE FOLLOWING BLOCK SHOULD GO INTO dev/pci/files.pci, BUT CANNOT
1951.115Scgd# XXX BECAUSE NOT 'lpt' IS DEFINED IN files.isa, RATHER THAN files.
1961.115Scgd# XXX (when the conf/files and files.isa bogons are fixed, this can
1971.115Scgd# XXX be fixed as well.)
1981.115Scgd
1991.115Scgdattach	lpt at puc with lpt_puc
2001.115Scgdfile	dev/pci/lpt_puc.c	lpt_puc
2011.56Scgd
2021.56Scgdfile	arch/i386/isa/isa_machdep.c	isa
2031.56Scgd
2041.56Scgd# PC clock
2051.56Scgdfile	arch/i386/isa/clock.c		isa
2061.130Sdrochnerfile	dev/clock_subr.c		isa
2071.56Scgd
2081.56Scgd# Numeric Processing Extension; Math Co-processor
2091.108Sthorpejdevice	npx
2101.56Scgdfile	arch/i386/isa/npx.c		npx needs-flag
2111.163Sthorpej
2121.163Sthorpejattach	npx at isa with npx_isa
2131.163Sthorpejfile	arch/i386/isa/npx_isa.c		npx_isa
2141.56Scgd
2151.66Sthorpej# attribute used to represent the "keyboard controller"
2161.66Sthorpej# XXX should be a real device
2171.182Slukemdefine	pckbcport { [irq = -1], [port = -1] }
2181.66Sthorpej
2191.56Scgd# PC console support a la "pccons"
2201.111Sdrochnerdevice	pc: tty, pckbcport
2211.67Sthorpejattach	pc at isa
2221.111Sdrochnerdevice	pcconskbd
2231.111Sdrochnerattach	pcconskbd at pckbc
2241.111Sdrochnerfile	arch/i386/isa/pccons.c		pc | pcconskbd needs-flag
2251.56Scgd
2261.56Scgd# PC Mice; Logitech-style, Microsoft-style, and PS/2-style
2271.128Sdrochnerdevice	olms
2281.128Sdrochnerattach	olms at isa
2291.128Sdrochnerfile	arch/i386/isa/olms.c		olms needs-flag
2301.128Sdrochnerdevice	lms: wsmousedev
2311.67Sthorpejattach	lms at isa
2321.128Sdrochnerfile	arch/i386/isa/lms.c		lms
2331.128Sdrochnerdevice	omms
2341.128Sdrochnerattach	omms at isa
2351.128Sdrochnerfile	arch/i386/isa/omms.c		omms needs-flag
2361.128Sdrochnerdevice	mms: wsmousedev
2371.67Sthorpejattach	mms at isa
2381.128Sdrochnerfile	arch/i386/isa/mms.c		mms
2391.128Sdrochnerdevice	opms
2401.128Sdrochnerattach	opms at pckbcport with opms_hack
2411.128Sdrochnerattach	opms at pckbc with opms_pckbc
2421.128Sdrochnerfile	arch/i386/isa/pms.c		opms | opms_hack | opms_pckbc needs-flag
2431.111Sdrochner
2441.182Slukeminclude	"dev/wscons/files.wscons"
2451.111Sdrochner
2461.182Slukeminclude	"dev/pckbc/files.pckbc"
2471.113Sdrochner
2481.182Slukemdevice	sysbeep
2491.182Slukemattach	sysbeep at pcppi
2501.111Sdrochner
2511.56Scgd# Floppy disk controller
2521.157Sthorpejdevice	fdc {drive = -1}: isadma
2531.157Sthorpejfile	dev/isa/fd.c			fdc needs-flag
2541.157Sthorpej
2551.157Sthorpejattach	fdc at isa with fdc_isa
2561.157Sthorpejfile	dev/isa/fdc_isa.c		fdc_isa
2571.157Sthorpej
2581.157Sthorpejdevice	fd: disk
2591.67Sthorpejattach	fd at fdc
2601.56Scgdmajor	{fd = 2}
2611.76Ssoda
2621.80Schristosattach	joy at isa with joy_isa
2631.80Schristosfile	arch/i386/isa/joy_isa.c		joy_isa
2641.80Schristos
2651.76Ssoda# Adaptec AHA-284x VL SCSI controllers
2661.76Ssoda# device declaration in sys/conf/files
2671.150Sfvdlattach	ahc at isa with ahc_isa: ahc_aic77xx, smc93cx6
2681.76Ssodafile	arch/i386/isa/ahc_isa.c		ahc_isa
2691.56Scgd
2701.55Smycroft#
2711.55Smycroft# EISA-only drivers
2721.55Smycroft#
2731.56Scgd
2741.182Slukeminclude	"dev/eisa/files.eisa"
2751.72Scgdfile	arch/i386/eisa/eisa_machdep.c	eisa
2761.154Sjdolecek
2771.154Sjdolecek#
2781.154Sjdolecek# MCA-only drivers
2791.154Sjdolecek#
2801.154Sjdolecek
2811.182Slukemdevice	mca {[slot = -1]} : bioscall
2821.182Slukeminclude	"dev/mca/files.mca"
2831.159Sjdolecekfile	arch/i386/mca/mca_machdep.c	mca
2841.77Sjtk
2851.80Schristos# ISA Plug 'n Play devices
2861.80Schristosfile	arch/i386/isa/isapnp_machdep.c	isapnp
2871.80Schristos
2881.80Schristosattach	joy at isapnp with joy_isapnp
2891.80Schristosfile	arch/i386/isa/joy_isapnp.c	joy_isapnp
2901.130Sdrochner
2911.130Sdrochner#
2921.130Sdrochner# VME support
2931.130Sdrochner#
2941.182Slukeminclude	"dev/vme/files.vme"
2951.77Sjtk
2961.77Sjtk#
2971.77Sjtk# Other mainbus-attached devices
2981.77Sjtk#
2991.77Sjtk
3001.77Sjtk# Advanced Power Management support (APM)
3011.182Slukemdevice	apm: bioscall
3021.182Slukemattach	apm at mainbus
3031.77Sjtkfile	arch/i386/i386/apm.c		apm needs-count
3041.89Sjtkfile	arch/i386/i386/apmcall.s	apm
3051.56Scgd
3061.55Smycroft#
3071.55Smycroft# Compatibility modules
3081.55Smycroft#
3091.61Smycroft
3101.61Smycroft# VM86 mode
3111.61Smycroftfile	arch/i386/i386/vm86.c			vm86
3121.120Smycroft
3131.120Smycroft# Binary compatibility with previous NetBSD releases (COMPAT_XX)
3141.135Smellonfile	arch/i386/i386/compat_13_machdep.c	compat_13 | compat_aout
3151.56Scgd
3161.59Smycroft# SVR4 binary compatibility (COMPAT_SVR4)
3171.182Slukeminclude	"compat/svr4/files.svr4"
3181.59Smycroftfile	arch/i386/i386/svr4_machdep.c		compat_svr4
3191.173Sjdolecekfile	arch/i386/i386/svr4_sigcode.s		compat_svr4
3201.177Smycroftfile	arch/i386/i386/svr4_syscall.c		compat_svr4
3211.56Scgd
3221.59Smycroft# iBCS-2 binary compatibility (COMPAT_IBCS2)
3231.182Slukeminclude	"compat/ibcs2/files.ibcs2"
3241.88Smycroftfile	arch/i386/i386/ibcs2_machdep.c		compat_ibcs2
3251.173Sjdolecekfile	arch/i386/i386/ibcs2_sigcode.s		compat_ibcs2
3261.176Sjdolecekfile	arch/i386/i386/ibcs2_syscall.c		compat_ibcs2
3271.56Scgd
3281.59Smycroft# Linux binary compatibility (COMPAT_LINUX)
3291.182Slukeminclude	"compat/linux/files.linux"
3301.182Slukeminclude	"compat/linux/arch/i386/files.linux_i386"
3311.173Sjdolecekfile	arch/i386/i386/linux_sigcode.s		compat_linux
3321.176Sjdolecekfile	arch/i386/i386/linux_syscall.c		compat_linux
3331.58Smycroft
3341.59Smycroft# FreeBSD binary compatibility (COMPAT_FREEBSD)
3351.182Slukeminclude	"compat/freebsd/files.freebsd"
3361.58Smycroftfile	arch/i386/i386/freebsd_machdep.c	compat_freebsd
3371.173Sjdolecekfile	arch/i386/i386/freebsd_sigcode.s	compat_freebsd
3381.179Sjdolecekfile	arch/i386/i386/freebsd_syscall.c	compat_freebsd
3391.131Schristos
3401.131Schristos# a.out binary compatibility (COMPAT_AOUT)
3411.182Slukeminclude	"compat/aout/files.aout"
3421.160Smycroft
3431.160Smycroft# Win32 binary compatibility (COMPAT_PECOFF)
3441.182Slukeminclude	"compat/pecoff/files.pecoff"
3451.82Saugustss
3461.82Saugustss# OSS audio driver compatibility
3471.182Slukeminclude	"compat/ossaudio/files.ossaudio"
3481.91Sbouyer
3491.91Sbouyer# network devices MII bus
3501.182Slukeminclude	"dev/mii/files.mii"
3511.139Shaya
3521.139Shaya#
3531.139Shaya# CARDBUS
3541.139Shaya#
3551.182Slukeminclude	"dev/cardbus/files.cardbus"
3561.139Shayafile	arch/i386/i386/rbus_machdep.c	cardbus
3571.90Sthorpej
3581.90Sthorpej# XXXX pcic here because it needs to be late.  The catch: pcic needs
3591.90Sthorpej# to be late, so devices which attach to it are attached late.  But it
3601.90Sthorpej# needs to be before its isa and pci attachments.  This answer is
3611.90Sthorpej# non-optimal, but I don't have a better answer right now.
3621.90Sthorpej
3631.165Sitohy# PCIC pcmcia controller
3641.90Sthorpej# XXX this needs to be done very late, so it's done here.  This feels
3651.90Sthorpej# like a kludge, but it might be for the best.
3661.93Sthorpej
3671.93Sthorpejdefopt	PCIC_ISA_ALLOC_IOBASE
3681.93Sthorpejdefopt	PCIC_ISA_ALLOC_IOSIZE
3691.93Sthorpejdefopt	PCIC_ISA_INTR_ALLOC_MASK
3701.93Sthorpej
3711.126Spkdevice	pcic: pcmciabus
3721.92Sthorpejfile	dev/ic/i82365.c			pcic
3731.90Sthorpej
3741.114Ssommerfe# PCIC pcmcia controller on ISA bus.
3751.90Sthorpejattach	pcic at isa with pcic_isa
3761.90Sthorpejfile	dev/isa/i82365_isa.c		pcic_isa
3771.90Sthorpej
3781.114Ssommerfe# PCIC pcmcia controller on PCI bus.
3791.90Sthorpejattach	pcic at pci with pcic_pci
3801.90Sthorpejfile	dev/pci/i82365_pci.c		pcic_pci
3811.90Sthorpej
3821.114Ssommerfe# PCIC pcmcia controller on PnP board
3831.182Slukemattach	pcic at isapnp with pcic_isapnp
3841.114Ssommerfefile	dev/isapnp/i82365_isapnp.c	pcic_isapnp
3851.114Ssommerfe
3861.114Ssommerfe# Code common to ISA and ISAPnP attachments
3871.127Snathanwfile	dev/isa/i82365_isasubr.c	pcic_isa | pcic_isapnp | pcic_pci
3881.132Sbad
3891.132Sbad# XXXX tcic here because it needs to be late.  The catch: tcic needs
3901.132Sbad# to be late, so devices which attach to it are attached late.  But it
3911.132Sbad# needs to be before its isa and pci attachments.  This answer is
3921.132Sbad# non-optimal, but I don't have a better answer right now.
3931.132Sbad
3941.165Sitohy# TCIC pcmcia controller
3951.132Sbad# XXX this needs to be done very late, so it's done here.  This feels
3961.132Sbad# like a kludge, but it might be for the best.
3971.132Sbad
3981.132Sbaddefopt	TCIC_ISA_ALLOC_IOBASE
3991.132Sbaddefopt	TCIC_ISA_ALLOC_IOSIZE
4001.132Sbaddefopt	TCIC_ISA_INTR_ALLOC_MASK
4011.132Sbad
4021.132Sbaddevice	tcic: pcmciabus
4031.132Sbadfile	dev/ic/tcic2.c			tcic
4041.132Sbad
4051.165Sitohy# TCIC pcmcia controller
4061.132Sbadattach	tcic at isa with tcic_isa
4071.132Sbadfile	dev/isa/tcic2_isa.c		tcic_isa
4081.90Sthorpej
4091.90Sthorpej# this wants to be probed as late as possible.
4101.90Sthorpej#
4111.90Sthorpej# Machine-independent PCMCIA drivers
4121.90Sthorpej#
4131.182Slukeminclude	"dev/pcmcia/files.pcmcia"
4141.90Sthorpej
4151.90Sthorpej
4161.182Slukeminclude	"dev/usb/files.usb"
4171.170Sonoe
4181.182Slukeminclude	"dev/ieee1394/files.ieee1394"
4191.141Sdrochner
4201.182Slukeminclude	"arch/i386/pnpbios/files.pnpbios"
421