files.i386 revision 1.170
11.170Sonoe#	$NetBSD: files.i386,v 1.170 2000/11/05 17:17:12 onoe 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.125Sthorpejdefopt	opt_apm.h APM_DISABLE APM_FORCE_64K_SEGMENTS APM_NO_IDLE
131.136Sdrochner	APM_NO_STANDBY APM_V10_ONLY APM_NO_V12 APMDEBUG APMDEBUG_VALUE
141.161Sgmcgarry	APM_POWER_PRINT APM_DISABLE_INTERRUPTS APM_ALLOW_BOGUS_SEGMENTS
151.100Sthorpej
161.100Sthorpej# Processor type options.
171.100Sthorpejdefopt	opt_cputype.h I386_CPU I486_CPU I586_CPU I686_CPU
181.124Sbouyer
191.124Sbouyer# delay before cpu_reset() for reboot.
201.124Sbouyerdefopt CPURESET_DELAY
211.101Sthorpej
221.101Sthorpej# VM86 emulation
231.101Sthorpejdefopt	VM86
241.102Sthorpej
251.102Sthorpej# Floating point emulation
261.102Sthorpejdefopt	MATH_EMULATE
271.103Sthorpej
281.103Sthorpej# User-settable LDT (used by WINE)
291.103Sthorpejdefopt	USER_LDT
301.104Sthorpej
311.104Sthorpej# Speed hack; make NOPs dummies (might break on some machines)
321.104Sthorpejdefopt	DUMMY_NOPS
331.105Sthorpej
341.167Sthorpej# Performance counter support
351.167Sthorpejdefopt	PERFCTRS
361.167Sthorpej
371.105Sthorpej# X server support in console drivers
381.118Srvbdefopt	opt_xserver.h XSERVER XSERVER_DDB
391.140Sdrochner
401.140Sdrochner# understand boot device passed by pre-1.3 bootblocks
411.140Sdrochnerdefopt	COMPAT_OLDBOOT
421.98Sthorpej
431.142Sthorpej# PCI BIOS options
441.164Ssodadefopt	opt_pcibios.h PCIBIOS PCIBIOSVERBOSE
451.164Ssoda	PCIBIOS_ADDR_FIXUP PCIBIOS_BUS_FIXUP
461.164Ssoda	PCIBIOS_INTR_FIXUP PCIBIOS_INTR_FIXUP_FORCE
471.164Ssoda	PCIBIOS_INTR_GUESS PCIBIOS_IRQS_HINT PCIINTR_DEBUG
481.166Sthorpej
491.166Sthorpej# Large page size
501.166Sthorpejdefopt	LARGEPAGES
511.142Sthorpej
521.56Scgdfile	arch/i386/i386/autoconf.c
531.146Sdrochnerfile	arch/i386/i386/bus_machdep.c
541.56Scgdfile	arch/i386/i386/conf.c
551.145Sdrochnerfile	arch/i386/i386/consinit.c
561.119Srvbfile	arch/i386/i386/db_dbgreg.s	ddb
571.56Scgdfile	arch/i386/i386/db_disasm.c	ddb
581.56Scgdfile	arch/i386/i386/db_interface.c	ddb
591.85Sthorpejfile	arch/i386/i386/db_memrw.c	ddb | kgdb
601.56Scgdfile	arch/i386/i386/db_trace.c	ddb
611.56Scgdfile	arch/i386/i386/disksubr.c	disk
621.60Smycroftfile	arch/i386/i386/gdt.c
631.74Smycroftfile	arch/i386/i386/in_cksum.s	inet
641.147Sthorpejfile	netinet/in4_cksum.c		inet
651.152Swsfile	arch/i386/i386/ipkdb_glue.c	ipkdb
661.85Sthorpejfile	arch/i386/i386/kgdb_machdep.c	kgdb
671.56Scgdfile	arch/i386/i386/machdep.c
681.56Scgdfile	arch/i386/i386/math_emulate.c	math_emulate
691.56Scgdfile	arch/i386/i386/mem.c
701.56Scgdfile	arch/i386/i386/microtime.s
711.154Sjdolecekfile	netns/ns_cksum.c		ns
721.134Sthorpejfile	arch/i386/i386/pmap.c
731.56Scgdfile	arch/i386/i386/process_machdep.c
741.56Scgdfile	arch/i386/i386/sys_machdep.c
751.56Scgdfile	arch/i386/i386/trap.c
761.56Scgdfile	arch/i386/i386/vm_machdep.c
771.56Scgdfile	dev/cons.c
781.167Sthorpej
791.167Sthorpejfile	arch/i386/i386/pmc.c		perfctrs
801.56Scgd
811.56Scgd#
821.56Scgd# Machine-independent SCSI drivers
831.56Scgd#
841.56Scgd
851.98Sthorpejinclude "dev/scsipi/files.scsipi"
861.56Scgdmajor	{sd = 4}
871.56Scgdmajor	{cd = 6}
881.69Sperry
891.97Scgd#
901.97Scgd# Machine-independent ATA drivers
911.97Scgd#
921.97Scgd
931.98Sthorpejinclude "dev/ata/files.ata"
941.97Scgdmajor	{wd = 0}
951.97Scgd
961.79Spk# Memory Disk for install floppy
971.79Spkfile arch/i386/i386/md_root.c	memory_disk_hooks
981.79Spkmajor	{md = 17}
991.149Soster
1001.149Soster# RAIDframe
1011.149Sostermajor	{raid = 18}
1021.151Sad
1031.168Sad# Logical storage units
1041.168Sadmajor	{lsu = 19}
1051.56Scgd
1061.142Sthorpej# attribute used to bring in BIOS trampoline code for real-mode probing
1071.142Sthorpej# of certain devices/BIOS features
1081.142Sthorpejdefine bioscall
1091.142Sthorpejfile	arch/i386/i386/bioscall.s	bioscall needs-flag
1101.142Sthorpej
1111.142Sthorpej# BIOS32 routines
1121.142Sthorpejdefine	bios32
1131.142Sthorpejfile	arch/i386/i386/bios32.c		bios32 needs-flag
1141.142Sthorpej
1151.56Scgd#
1161.56Scgd# System bus types
1171.56Scgd#
1181.65Scgd
1191.77Sjtkdefine mainbus { }
1201.142Sthorpej# XXX BIOS32 only if something that uses it is configured!
1211.159Sjdolecekdevice	mainbus: isabus, eisabus, mcabus, pcibus, mainbus, bios32
1221.67Sthorpejattach	mainbus at root
1231.65Scgdfile	arch/i386/i386/mainbus.c	mainbus
1241.56Scgd
1251.55Smycroft#
1261.64Scgd# PCI-only drivers
1271.64Scgd# XXX MUST BE INCLUDED BEFORE files.isa, as long as files.isa attaches
1281.64Scgd# XXX devices to 'pci'.
1291.64Scgd#
1301.64Scgd
1311.98Sthorpejinclude "dev/pci/files.pci"
1321.64Scgdfile	arch/i386/pci/pci_machdep.c	pci
1331.142Sthorpejfile	arch/i386/pci/pcibios.c		pcibios
1341.142Sthorpejfile	arch/i386/pci/pci_intr_fixup.c	pcibios & pcibios_intr_fixup
1351.142Sthorpejfile	arch/i386/pci/piix.c		pcibios & pcibios_intr_fixup
1361.142Sthorpejfile	arch/i386/pci/opti82c558.c	pcibios & pcibios_intr_fixup
1371.142Sthorpejfile	arch/i386/pci/opti82c700.c	pcibios & pcibios_intr_fixup
1381.142Sthorpejfile	arch/i386/pci/sis85c503.c	pcibios & pcibios_intr_fixup
1391.142Sthorpejfile	arch/i386/pci/via82c586.c	pcibios & pcibios_intr_fixup
1401.143Sthorpejfile	arch/i386/pci/pci_bus_fixup.c	pcibios & pcibios_bus_fixup
1411.158Suchfile	arch/i386/pci/pci_addr_fixup.c	pcibios & pcibios_addr_fixup
1421.129Sdrochnerdefopt PCI_CONF_MODE
1431.110Scgdfile	arch/i386/pci/pciide_machdep.c	pciide
1441.127Snathanwfile	arch/i386/pci/pcic_pci_machdep.c	pcic_pci
1451.78Sthorpej
1461.78Sthorpej# PCI-Host bridge chipsets
1471.108Sthorpejdevice	pchb: pcibus
1481.78Sthorpejattach	pchb at pci
1491.78Sthorpejfile	arch/i386/pci/pchb.c		pchb
1501.169Sthorpejfile	arch/i386/pci/pchb_rnd.c	pchb & rnd
1511.107Sthorpej
1521.107Sthorpej# PCI-EISA bridges
1531.108Sthorpejdevice	pceb: eisabus, isabus
1541.107Sthorpejattach	pceb at pci
1551.107Sthorpejfile	arch/i386/pci/pceb.c		pceb
1561.78Sthorpej
1571.78Sthorpej# PCI-ISA bridges
1581.108Sthorpejdevice	pcib: isabus
1591.78Sthorpejattach	pcib at pci
1601.78Sthorpejfile	arch/i386/pci/pcib.c		pcib
1611.64Scgd
1621.153Smartin# Game adapter (joystick)
1631.153Smartindevice	joy
1641.153Smartinfile	arch/i386/isa/joy.c		joy needs-flag
1651.153Smartin
1661.153Smartin# PCI joysticks
1671.153Smartinattach joy at pci with pci_joy
1681.153Smartinfile	arch/i386/pci/joy_pci.c		pci_joy
1691.153Smartin
1701.64Scgd#
1711.55Smycroft# ISA and mixed ISA+EISA or ISA+PCI drivers
1721.55Smycroft#
1731.56Scgd
1741.98Sthorpejinclude "dev/isa/files.isa"
1751.56Scgdmajor	{mcd = 7}
1761.56Scgd#major	{scd = 15}
1771.115Scgd
1781.115Scgd# XXX THE FOLLOWING BLOCK SHOULD GO INTO dev/pci/files.pci, BUT CANNOT
1791.115Scgd# XXX BECAUSE NOT 'lpt' IS DEFINED IN files.isa, RATHER THAN files.
1801.115Scgd# XXX (when the conf/files and files.isa bogons are fixed, this can
1811.115Scgd# XXX be fixed as well.)
1821.115Scgd
1831.115Scgdattach	lpt at puc with lpt_puc
1841.115Scgdfile	dev/pci/lpt_puc.c	lpt_puc
1851.56Scgd
1861.56Scgdfile	arch/i386/isa/isa_machdep.c	isa
1871.56Scgd
1881.56Scgd# PC clock
1891.56Scgdfile	arch/i386/isa/clock.c		isa
1901.130Sdrochnerfile	dev/clock_subr.c		isa
1911.56Scgd
1921.56Scgd# Numeric Processing Extension; Math Co-processor
1931.108Sthorpejdevice	npx
1941.56Scgdfile	arch/i386/isa/npx.c		npx needs-flag
1951.163Sthorpej
1961.163Sthorpejattach	npx at isa with npx_isa
1971.163Sthorpejfile	arch/i386/isa/npx_isa.c		npx_isa
1981.56Scgd
1991.66Sthorpej# attribute used to represent the "keyboard controller"
2001.66Sthorpej# XXX should be a real device
2011.111Sdrochnerdefine pckbcport { [irq = -1], [port = -1] }
2021.66Sthorpej
2031.56Scgd# PC console support a la "pccons"
2041.111Sdrochnerdevice	pc: tty, pckbcport
2051.67Sthorpejattach	pc at isa
2061.111Sdrochnerdevice	pcconskbd
2071.111Sdrochnerattach	pcconskbd at pckbc
2081.111Sdrochnerfile	arch/i386/isa/pccons.c		pc | pcconskbd needs-flag
2091.56Scgd
2101.56Scgd# PC Mice; Logitech-style, Microsoft-style, and PS/2-style
2111.128Sdrochnerdevice	olms
2121.128Sdrochnerattach	olms at isa
2131.128Sdrochnerfile	arch/i386/isa/olms.c		olms needs-flag
2141.128Sdrochnerdevice	lms: wsmousedev
2151.67Sthorpejattach	lms at isa
2161.128Sdrochnerfile	arch/i386/isa/lms.c		lms
2171.128Sdrochnerdevice	omms
2181.128Sdrochnerattach	omms at isa
2191.128Sdrochnerfile	arch/i386/isa/omms.c		omms needs-flag
2201.128Sdrochnerdevice	mms: wsmousedev
2211.67Sthorpejattach	mms at isa
2221.128Sdrochnerfile	arch/i386/isa/mms.c		mms
2231.128Sdrochnerdevice	opms
2241.128Sdrochnerattach	opms at pckbcport with opms_hack
2251.128Sdrochnerattach	opms at pckbc with opms_pckbc
2261.128Sdrochnerfile	arch/i386/isa/pms.c		opms | opms_hack | opms_pckbc needs-flag
2271.111Sdrochner
2281.111Sdrochnerinclude "dev/wscons/files.wscons"
2291.111Sdrochner
2301.111Sdrochnerinclude "dev/pckbc/files.pckbc"
2311.113Sdrochner
2321.113Sdrochnerdevice sysbeep
2331.113Sdrochnerattach sysbeep at pcppi
2341.111Sdrochner
2351.56Scgd# Floppy disk controller
2361.157Sthorpejdevice	fdc {drive = -1}: isadma
2371.157Sthorpejfile	dev/isa/fd.c			fdc needs-flag
2381.157Sthorpej
2391.157Sthorpejattach	fdc at isa with fdc_isa
2401.157Sthorpejfile	dev/isa/fdc_isa.c		fdc_isa
2411.157Sthorpej
2421.157Sthorpejdevice	fd: disk
2431.67Sthorpejattach	fd at fdc
2441.56Scgdmajor	{fd = 2}
2451.76Ssoda
2461.80Schristosattach	joy at isa with joy_isa
2471.80Schristosfile	arch/i386/isa/joy_isa.c		joy_isa
2481.80Schristos
2491.76Ssoda# Adaptec AHA-284x VL SCSI controllers
2501.76Ssoda# device declaration in sys/conf/files
2511.150Sfvdlattach	ahc at isa with ahc_isa: ahc_aic77xx, smc93cx6
2521.76Ssodafile	arch/i386/isa/ahc_isa.c		ahc_isa
2531.56Scgd
2541.55Smycroft#
2551.55Smycroft# EISA-only drivers
2561.55Smycroft#
2571.56Scgd
2581.98Sthorpejinclude "dev/eisa/files.eisa"
2591.72Scgdfile	arch/i386/eisa/eisa_machdep.c	eisa
2601.154Sjdolecek
2611.154Sjdolecek#
2621.154Sjdolecek# MCA-only drivers
2631.154Sjdolecek#
2641.154Sjdolecek
2651.159Sjdolecekdevice mca {[slot = -1]} : bioscall
2661.159Sjdolecekinclude "dev/mca/files.mca"
2671.159Sjdolecekfile	arch/i386/mca/mca_machdep.c	mca
2681.77Sjtk
2691.80Schristos# ISA Plug 'n Play devices
2701.80Schristosfile	arch/i386/isa/isapnp_machdep.c	isapnp
2711.80Schristos
2721.80Schristosattach	joy at isapnp with joy_isapnp
2731.80Schristosfile	arch/i386/isa/joy_isapnp.c	joy_isapnp
2741.130Sdrochner
2751.130Sdrochner#
2761.130Sdrochner# VME support
2771.130Sdrochner#
2781.130Sdrochnerinclude "dev/vme/files.vme"
2791.77Sjtk
2801.77Sjtk#
2811.77Sjtk# Other mainbus-attached devices
2821.77Sjtk#
2831.77Sjtk
2841.77Sjtk# Advanced Power Management support (APM)
2851.108Sthorpejdevice apm: bioscall
2861.77Sjtkattach apm at mainbus
2871.77Sjtkfile	arch/i386/i386/apm.c		apm needs-count
2881.89Sjtkfile	arch/i386/i386/apmcall.s	apm
2891.56Scgd
2901.55Smycroft#
2911.55Smycroft# Compatibility modules
2921.55Smycroft#
2931.61Smycroft
2941.61Smycroft# VM86 mode
2951.61Smycroftfile	arch/i386/i386/vm86.c			vm86
2961.120Smycroft
2971.120Smycroft# Binary compatibility with previous NetBSD releases (COMPAT_XX)
2981.135Smellonfile	arch/i386/i386/compat_13_machdep.c	compat_13 | compat_aout
2991.56Scgd
3001.59Smycroft# SVR4 binary compatibility (COMPAT_SVR4)
3011.98Sthorpejinclude "compat/svr4/files.svr4"
3021.59Smycroftfile	arch/i386/i386/svr4_machdep.c		compat_svr4
3031.56Scgd
3041.59Smycroft# iBCS-2 binary compatibility (COMPAT_IBCS2)
3051.98Sthorpejinclude "compat/ibcs2/files.ibcs2"
3061.88Smycroftfile	arch/i386/i386/ibcs2_machdep.c		compat_ibcs2
3071.56Scgd
3081.59Smycroft# Linux binary compatibility (COMPAT_LINUX)
3091.98Sthorpejinclude "compat/linux/files.linux"
3101.122Sfvdlinclude "compat/linux/arch/i386/files.linux_i386"
3111.58Smycroft
3121.59Smycroft# FreeBSD binary compatibility (COMPAT_FREEBSD)
3131.98Sthorpejinclude "compat/freebsd/files.freebsd"
3141.58Smycroftfile	arch/i386/i386/freebsd_machdep.c	compat_freebsd
3151.131Schristos
3161.131Schristos# a.out binary compatibility (COMPAT_AOUT)
3171.131Schristosinclude "compat/aout/files.aout"
3181.160Smycroft
3191.160Smycroft# Win32 binary compatibility (COMPAT_PECOFF)
3201.160Smycroftinclude "compat/pecoff/files.pecoff"
3211.82Saugustss
3221.82Saugustss# OSS audio driver compatibility
3231.98Sthorpejinclude "compat/ossaudio/files.ossaudio"
3241.91Sbouyer
3251.91Sbouyer# network devices MII bus
3261.98Sthorpejinclude "dev/mii/files.mii"
3271.139Shaya
3281.139Shaya#
3291.139Shaya# CARDBUS
3301.139Shaya#
3311.139Shayainclude "dev/cardbus/files.cardbus"
3321.139Shayafile	arch/i386/i386/rbus_machdep.c	cardbus
3331.90Sthorpej
3341.90Sthorpej# XXXX pcic here because it needs to be late.  The catch: pcic needs
3351.90Sthorpej# to be late, so devices which attach to it are attached late.  But it
3361.90Sthorpej# needs to be before its isa and pci attachments.  This answer is
3371.90Sthorpej# non-optimal, but I don't have a better answer right now.
3381.90Sthorpej
3391.165Sitohy# PCIC pcmcia controller
3401.90Sthorpej# XXX this needs to be done very late, so it's done here.  This feels
3411.90Sthorpej# like a kludge, but it might be for the best.
3421.93Sthorpej
3431.93Sthorpejdefopt	PCIC_ISA_ALLOC_IOBASE
3441.93Sthorpejdefopt	PCIC_ISA_ALLOC_IOSIZE
3451.93Sthorpejdefopt	PCIC_ISA_INTR_ALLOC_MASK
3461.93Sthorpej
3471.126Spkdevice	pcic: pcmciabus
3481.92Sthorpejfile	dev/ic/i82365.c			pcic
3491.90Sthorpej
3501.114Ssommerfe# PCIC pcmcia controller on ISA bus.
3511.90Sthorpejattach	pcic at isa with pcic_isa
3521.90Sthorpejfile	dev/isa/i82365_isa.c		pcic_isa
3531.90Sthorpej
3541.114Ssommerfe# PCIC pcmcia controller on PCI bus.
3551.90Sthorpejattach	pcic at pci with pcic_pci
3561.90Sthorpejfile	dev/pci/i82365_pci.c		pcic_pci
3571.90Sthorpej
3581.114Ssommerfe# PCIC pcmcia controller on PnP board
3591.114Ssommerfeattach pcic at isapnp with pcic_isapnp
3601.114Ssommerfefile	dev/isapnp/i82365_isapnp.c	pcic_isapnp
3611.114Ssommerfe
3621.114Ssommerfe# Code common to ISA and ISAPnP attachments
3631.127Snathanwfile	dev/isa/i82365_isasubr.c	pcic_isa | pcic_isapnp | pcic_pci
3641.132Sbad
3651.132Sbad# XXXX tcic here because it needs to be late.  The catch: tcic needs
3661.132Sbad# to be late, so devices which attach to it are attached late.  But it
3671.132Sbad# needs to be before its isa and pci attachments.  This answer is
3681.132Sbad# non-optimal, but I don't have a better answer right now.
3691.132Sbad
3701.165Sitohy# TCIC pcmcia controller
3711.132Sbad# XXX this needs to be done very late, so it's done here.  This feels
3721.132Sbad# like a kludge, but it might be for the best.
3731.132Sbad
3741.132Sbaddefopt	TCIC_ISA_ALLOC_IOBASE
3751.132Sbaddefopt	TCIC_ISA_ALLOC_IOSIZE
3761.132Sbaddefopt	TCIC_ISA_INTR_ALLOC_MASK
3771.132Sbad
3781.132Sbaddevice	tcic: pcmciabus
3791.132Sbadfile	dev/ic/tcic2.c			tcic
3801.132Sbad
3811.165Sitohy# TCIC pcmcia controller
3821.132Sbadattach	tcic at isa with tcic_isa
3831.132Sbadfile	dev/isa/tcic2_isa.c		tcic_isa
3841.90Sthorpej
3851.90Sthorpej# this wants to be probed as late as possible.
3861.90Sthorpej#
3871.90Sthorpej# Machine-independent PCMCIA drivers
3881.90Sthorpej#
3891.90Sthorpejinclude "dev/pcmcia/files.pcmcia"
3901.90Sthorpej
3911.90Sthorpej
3921.116Saugustssinclude "dev/usb/files.usb"
3931.170Sonoe
3941.170Sonoeinclude "dev/ieee1394/files.ieee1394"
3951.141Sdrochner
3961.141Sdrochnerinclude "arch/i386/pnpbios/files.pnpbios"
397