files.i386 revision 1.149
11.149Soster#	$NetBSD: files.i386,v 1.149 2000/03/14 15:56:54 oster 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.148Smycroft	APM_POWER_PRINT APM_DISABLE_INTERRUPTS
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.105Sthorpej# X server support in console drivers
351.118Srvbdefopt	opt_xserver.h XSERVER XSERVER_DDB
361.140Sdrochner
371.140Sdrochner# understand boot device passed by pre-1.3 bootblocks
381.140Sdrochnerdefopt	COMPAT_OLDBOOT
391.98Sthorpej
401.142Sthorpej# PCI BIOS options
411.142Sthorpejdefopt	opt_pcibios.h PCIBIOS PCIBIOSVERBOSE PCIBIOS_INTR_FIXUP
421.143Sthorpej	PCIINTR_DEBUG PCIBIOS_BUS_FIXUP
431.142Sthorpej
441.56Scgdfile	arch/i386/i386/autoconf.c
451.146Sdrochnerfile	arch/i386/i386/bus_machdep.c
461.56Scgdfile	arch/i386/i386/conf.c
471.145Sdrochnerfile	arch/i386/i386/consinit.c
481.119Srvbfile	arch/i386/i386/db_dbgreg.s	ddb
491.56Scgdfile	arch/i386/i386/db_disasm.c	ddb
501.56Scgdfile	arch/i386/i386/db_interface.c	ddb
511.85Sthorpejfile	arch/i386/i386/db_memrw.c	ddb | kgdb
521.56Scgdfile	arch/i386/i386/db_trace.c	ddb
531.56Scgdfile	arch/i386/i386/disksubr.c	disk
541.60Smycroftfile	arch/i386/i386/gdt.c
551.74Smycroftfile	arch/i386/i386/in_cksum.s	inet
561.147Sthorpejfile	netinet/in4_cksum.c		inet
571.85Sthorpejfile	arch/i386/i386/kgdb_machdep.c	kgdb
581.56Scgdfile	arch/i386/i386/machdep.c
591.56Scgdfile	arch/i386/i386/math_emulate.c	math_emulate
601.56Scgdfile	arch/i386/i386/mem.c
611.56Scgdfile	arch/i386/i386/microtime.s
621.56Scgdfile	arch/i386/i386/ns_cksum.c	ns
631.134Sthorpejfile	arch/i386/i386/pmap.c
641.56Scgdfile	arch/i386/i386/process_machdep.c
651.56Scgdfile	arch/i386/i386/sys_machdep.c
661.56Scgdfile	arch/i386/i386/trap.c
671.56Scgdfile	arch/i386/i386/vm_machdep.c
681.56Scgdfile	dev/cons.c
691.56Scgd
701.56Scgd#
711.56Scgd# Machine-independent SCSI drivers
721.56Scgd#
731.56Scgd
741.98Sthorpejinclude "dev/scsipi/files.scsipi"
751.56Scgdmajor	{sd = 4}
761.56Scgdmajor	{cd = 6}
771.69Sperry
781.97Scgd#
791.97Scgd# Machine-independent ATA drivers
801.97Scgd#
811.97Scgd
821.98Sthorpejinclude "dev/ata/files.ata"
831.97Scgdmajor	{wd = 0}
841.97Scgd
851.79Spk# Memory Disk for install floppy
861.79Spkfile arch/i386/i386/md_root.c	memory_disk_hooks
871.79Spkmajor	{md = 17}
881.149Soster
891.149Soster# RAIDframe
901.149Sostermajor	{raid = 18}
911.56Scgd
921.142Sthorpej# attribute used to bring in BIOS trampoline code for real-mode probing
931.142Sthorpej# of certain devices/BIOS features
941.142Sthorpejdefine bioscall
951.142Sthorpejfile	arch/i386/i386/bioscall.s	bioscall needs-flag
961.142Sthorpej
971.142Sthorpej# BIOS32 routines
981.142Sthorpejdefine	bios32
991.142Sthorpejfile	arch/i386/i386/bios32.c		bios32 needs-flag
1001.142Sthorpej
1011.56Scgd#
1021.56Scgd# System bus types
1031.56Scgd#
1041.65Scgd
1051.77Sjtkdefine mainbus { }
1061.142Sthorpej# XXX BIOS32 only if something that uses it is configured!
1071.142Sthorpejdevice	mainbus: isabus, eisabus, pcibus, mainbus, bios32
1081.67Sthorpejattach	mainbus at root
1091.65Scgdfile	arch/i386/i386/mainbus.c	mainbus
1101.56Scgd
1111.56Scgd#device	mca at root {...}
1121.56Scgd
1131.55Smycroft#
1141.64Scgd# PCI-only drivers
1151.64Scgd# XXX MUST BE INCLUDED BEFORE files.isa, as long as files.isa attaches
1161.64Scgd# XXX devices to 'pci'.
1171.64Scgd#
1181.64Scgd
1191.98Sthorpejinclude "dev/pci/files.pci"
1201.64Scgdfile	arch/i386/pci/pci_machdep.c	pci
1211.142Sthorpejfile	arch/i386/pci/pcibios.c		pcibios
1221.142Sthorpejfile	arch/i386/pci/pci_intr_fixup.c	pcibios & pcibios_intr_fixup
1231.142Sthorpejfile	arch/i386/pci/piix.c		pcibios & pcibios_intr_fixup
1241.142Sthorpejfile	arch/i386/pci/opti82c558.c	pcibios & pcibios_intr_fixup
1251.142Sthorpejfile	arch/i386/pci/opti82c700.c	pcibios & pcibios_intr_fixup
1261.142Sthorpejfile	arch/i386/pci/sis85c503.c	pcibios & pcibios_intr_fixup
1271.142Sthorpejfile	arch/i386/pci/via82c586.c	pcibios & pcibios_intr_fixup
1281.143Sthorpejfile	arch/i386/pci/pci_bus_fixup.c	pcibios & pcibios_bus_fixup
1291.129Sdrochnerdefopt PCI_CONF_MODE
1301.110Scgdfile	arch/i386/pci/pciide_machdep.c	pciide
1311.127Snathanwfile	arch/i386/pci/pcic_pci_machdep.c	pcic_pci
1321.78Sthorpej
1331.78Sthorpej# PCI-Host bridge chipsets
1341.108Sthorpejdevice	pchb: pcibus
1351.78Sthorpejattach	pchb at pci
1361.78Sthorpejfile	arch/i386/pci/pchb.c		pchb
1371.107Sthorpej
1381.107Sthorpej# PCI-EISA bridges
1391.108Sthorpejdevice	pceb: eisabus, isabus
1401.107Sthorpejattach	pceb at pci
1411.107Sthorpejfile	arch/i386/pci/pceb.c		pceb
1421.78Sthorpej
1431.78Sthorpej# PCI-ISA bridges
1441.108Sthorpejdevice	pcib: isabus
1451.78Sthorpejattach	pcib at pci
1461.78Sthorpejfile	arch/i386/pci/pcib.c		pcib
1471.64Scgd
1481.64Scgd#
1491.55Smycroft# ISA and mixed ISA+EISA or ISA+PCI drivers
1501.55Smycroft#
1511.56Scgd
1521.98Sthorpejinclude "dev/isa/files.isa"
1531.56Scgdmajor	{mcd = 7}
1541.56Scgd#major	{scd = 15}
1551.115Scgd
1561.115Scgd# XXX THE FOLLOWING BLOCK SHOULD GO INTO dev/pci/files.pci, BUT CANNOT
1571.115Scgd# XXX BECAUSE NOT 'lpt' IS DEFINED IN files.isa, RATHER THAN files.
1581.115Scgd# XXX (when the conf/files and files.isa bogons are fixed, this can
1591.115Scgd# XXX be fixed as well.)
1601.115Scgd
1611.115Scgdattach	lpt at puc with lpt_puc
1621.115Scgdfile	dev/pci/lpt_puc.c	lpt_puc
1631.56Scgd
1641.56Scgdfile	arch/i386/isa/isa_machdep.c	isa
1651.56Scgd
1661.56Scgd# PC clock
1671.56Scgdfile	arch/i386/isa/clock.c		isa
1681.130Sdrochnerfile	dev/clock_subr.c		isa
1691.56Scgd
1701.56Scgd# Numeric Processing Extension; Math Co-processor
1711.108Sthorpejdevice	npx
1721.67Sthorpejattach	npx at isa
1731.56Scgdfile	arch/i386/isa/npx.c		npx needs-flag
1741.56Scgd
1751.66Sthorpej# attribute used to represent the "keyboard controller"
1761.66Sthorpej# XXX should be a real device
1771.111Sdrochnerdefine pckbcport { [irq = -1], [port = -1] }
1781.66Sthorpej
1791.56Scgd# PC console support a la "pccons"
1801.111Sdrochnerdevice	pc: tty, pckbcport
1811.67Sthorpejattach	pc at isa
1821.111Sdrochnerdevice	pcconskbd
1831.111Sdrochnerattach	pcconskbd at pckbc
1841.111Sdrochnerfile	arch/i386/isa/pccons.c		pc | pcconskbd needs-flag
1851.56Scgd
1861.56Scgd# PC console support a la "pcvt"
1871.111Sdrochnerdevice	vt: tty, pckbcport
1881.67Sthorpejattach	vt at isa
1891.56Scgdfile	arch/i386/isa/pcvt/pcvt_drv.c	vt needs-flag
1901.56Scgdfile	arch/i386/isa/pcvt/pcvt_ext.c	vt needs-flag
1911.56Scgdfile	arch/i386/isa/pcvt/pcvt_kbd.c	vt needs-flag
1921.56Scgdfile	arch/i386/isa/pcvt/pcvt_out.c	vt needs-flag
1931.56Scgdfile	arch/i386/isa/pcvt/pcvt_sup.c	vt needs-flag
1941.56Scgdfile	arch/i386/isa/pcvt/pcvt_vtf.c	vt needs-flag
1951.56Scgd
1961.56Scgd# PC Mice; Logitech-style, Microsoft-style, and PS/2-style
1971.128Sdrochnerdevice	olms
1981.128Sdrochnerattach	olms at isa
1991.128Sdrochnerfile	arch/i386/isa/olms.c		olms needs-flag
2001.128Sdrochnerdevice	lms: wsmousedev
2011.67Sthorpejattach	lms at isa
2021.128Sdrochnerfile	arch/i386/isa/lms.c		lms
2031.128Sdrochnerdevice	omms
2041.128Sdrochnerattach	omms at isa
2051.128Sdrochnerfile	arch/i386/isa/omms.c		omms needs-flag
2061.128Sdrochnerdevice	mms: wsmousedev
2071.67Sthorpejattach	mms at isa
2081.128Sdrochnerfile	arch/i386/isa/mms.c		mms
2091.128Sdrochnerdevice	opms
2101.128Sdrochnerattach	opms at pckbcport with opms_hack
2111.128Sdrochnerattach	opms at pckbc with opms_pckbc
2121.128Sdrochnerfile	arch/i386/isa/pms.c		opms | opms_hack | opms_pckbc needs-flag
2131.111Sdrochner
2141.111Sdrochnerinclude "dev/wscons/files.wscons"
2151.111Sdrochner
2161.111Sdrochnerinclude "dev/pckbc/files.pckbc"
2171.113Sdrochner
2181.113Sdrochnerdevice sysbeep
2191.113Sdrochnerattach sysbeep at pcppi
2201.111Sdrochner
2211.56Scgd# Floppy disk controller
2221.108Sthorpejdevice	fdc {drive = -1}
2231.67Sthorpejattach	fdc at isa
2241.108Sthorpejdevice	fd: disk, isadma
2251.67Sthorpejattach	fd at fdc
2261.56Scgdfile	arch/i386/isa/fd.c		fdc needs-flag
2271.56Scgdmajor	{fd = 2}
2281.71Sperry
2291.71Sperry# Game adapter (joystick)
2301.108Sthorpejdevice	joy
2311.71Sperryfile	arch/i386/isa/joy.c		joy needs-flag
2321.76Ssoda
2331.80Schristosattach	joy at isa with joy_isa
2341.80Schristosfile	arch/i386/isa/joy_isa.c		joy_isa
2351.80Schristos
2361.76Ssoda# Adaptec AHA-284x VL SCSI controllers
2371.76Ssoda# device declaration in sys/conf/files
2381.76Ssodaattach	ahc at isa with ahc_isa
2391.76Ssodafile	arch/i386/isa/ahc_isa.c		ahc_isa
2401.56Scgd
2411.55Smycroft#
2421.55Smycroft# EISA-only drivers
2431.55Smycroft#
2441.56Scgd
2451.98Sthorpejinclude "dev/eisa/files.eisa"
2461.72Scgdfile	arch/i386/eisa/eisa_machdep.c	eisa
2471.77Sjtk
2481.80Schristos# ISA Plug 'n Play devices
2491.80Schristosfile	arch/i386/isa/isapnp_machdep.c	isapnp
2501.80Schristos
2511.80Schristosattach	joy at isapnp with joy_isapnp
2521.80Schristosfile	arch/i386/isa/joy_isapnp.c	joy_isapnp
2531.130Sdrochner
2541.130Sdrochner#
2551.130Sdrochner# VME support
2561.130Sdrochner#
2571.130Sdrochnerinclude "dev/vme/files.vme"
2581.77Sjtk
2591.77Sjtk#
2601.77Sjtk# Other mainbus-attached devices
2611.77Sjtk#
2621.77Sjtk
2631.77Sjtk# Advanced Power Management support (APM)
2641.108Sthorpejdevice apm: bioscall
2651.77Sjtkattach apm at mainbus
2661.77Sjtkfile	arch/i386/i386/apm.c		apm needs-count
2671.89Sjtkfile	arch/i386/i386/apmcall.s	apm
2681.56Scgd
2691.55Smycroft#
2701.55Smycroft# Compatibility modules
2711.55Smycroft#
2721.61Smycroft
2731.61Smycroft# VM86 mode
2741.61Smycroftfile	arch/i386/i386/vm86.c			vm86
2751.120Smycroft
2761.120Smycroft# Binary compatibility with previous NetBSD releases (COMPAT_XX)
2771.135Smellonfile	arch/i386/i386/compat_13_machdep.c	compat_13 | compat_aout
2781.56Scgd
2791.59Smycroft# SVR4 binary compatibility (COMPAT_SVR4)
2801.98Sthorpejinclude "compat/svr4/files.svr4"
2811.59Smycroftfile	arch/i386/i386/svr4_machdep.c		compat_svr4
2821.56Scgd
2831.59Smycroft# iBCS-2 binary compatibility (COMPAT_IBCS2)
2841.98Sthorpejinclude "compat/ibcs2/files.ibcs2"
2851.88Smycroftfile	arch/i386/i386/ibcs2_machdep.c		compat_ibcs2
2861.56Scgd
2871.59Smycroft# Linux binary compatibility (COMPAT_LINUX)
2881.98Sthorpejinclude "compat/linux/files.linux"
2891.122Sfvdlinclude "compat/linux/arch/i386/files.linux_i386"
2901.58Smycroft
2911.59Smycroft# FreeBSD binary compatibility (COMPAT_FREEBSD)
2921.98Sthorpejinclude "compat/freebsd/files.freebsd"
2931.58Smycroftfile	arch/i386/i386/freebsd_machdep.c	compat_freebsd
2941.131Schristos
2951.131Schristos# a.out binary compatibility (COMPAT_AOUT)
2961.131Schristosinclude "compat/aout/files.aout"
2971.82Saugustss
2981.82Saugustss# OSS audio driver compatibility
2991.98Sthorpejinclude "compat/ossaudio/files.ossaudio"
3001.91Sbouyer
3011.91Sbouyer# network devices MII bus
3021.98Sthorpejinclude "dev/mii/files.mii"
3031.139Shaya
3041.139Shaya#
3051.139Shaya# CARDBUS
3061.139Shaya#
3071.139Shayainclude "dev/cardbus/files.cardbus"
3081.139Shayafile	arch/i386/i386/rbus_machdep.c	cardbus
3091.90Sthorpej
3101.90Sthorpej# XXXX pcic here because it needs to be late.  The catch: pcic needs
3111.90Sthorpej# to be late, so devices which attach to it are attached late.  But it
3121.90Sthorpej# needs to be before its isa and pci attachments.  This answer is
3131.90Sthorpej# non-optimal, but I don't have a better answer right now.
3141.90Sthorpej
3151.90Sthorpej# PCIC pcmcia contoller
3161.90Sthorpej# XXX this needs to be done very late, so it's done here.  This feels
3171.90Sthorpej# like a kludge, but it might be for the best.
3181.93Sthorpej
3191.93Sthorpejdefopt	PCIC_ISA_ALLOC_IOBASE
3201.93Sthorpejdefopt	PCIC_ISA_ALLOC_IOSIZE
3211.93Sthorpejdefopt	PCIC_ISA_INTR_ALLOC_MASK
3221.93Sthorpej
3231.126Spkdevice	pcic: pcmciabus
3241.92Sthorpejfile	dev/ic/i82365.c			pcic
3251.90Sthorpej
3261.114Ssommerfe# PCIC pcmcia controller on ISA bus.
3271.90Sthorpejattach	pcic at isa with pcic_isa
3281.90Sthorpejfile	dev/isa/i82365_isa.c		pcic_isa
3291.90Sthorpej
3301.114Ssommerfe# PCIC pcmcia controller on PCI bus.
3311.90Sthorpejattach	pcic at pci with pcic_pci
3321.90Sthorpejfile	dev/pci/i82365_pci.c		pcic_pci
3331.90Sthorpej
3341.114Ssommerfe# PCIC pcmcia controller on PnP board
3351.114Ssommerfeattach pcic at isapnp with pcic_isapnp
3361.114Ssommerfefile	dev/isapnp/i82365_isapnp.c	pcic_isapnp
3371.114Ssommerfe
3381.114Ssommerfe# Code common to ISA and ISAPnP attachments
3391.127Snathanwfile	dev/isa/i82365_isasubr.c	pcic_isa | pcic_isapnp | pcic_pci
3401.132Sbad
3411.132Sbad# XXXX tcic here because it needs to be late.  The catch: tcic needs
3421.132Sbad# to be late, so devices which attach to it are attached late.  But it
3431.132Sbad# needs to be before its isa and pci attachments.  This answer is
3441.132Sbad# non-optimal, but I don't have a better answer right now.
3451.132Sbad
3461.132Sbad# TCIC pcmcia contoller
3471.132Sbad# XXX this needs to be done very late, so it's done here.  This feels
3481.132Sbad# like a kludge, but it might be for the best.
3491.132Sbad
3501.132Sbaddefopt	TCIC_ISA_ALLOC_IOBASE
3511.132Sbaddefopt	TCIC_ISA_ALLOC_IOSIZE
3521.132Sbaddefopt	TCIC_ISA_INTR_ALLOC_MASK
3531.132Sbad
3541.132Sbaddevice	tcic: pcmciabus
3551.132Sbadfile	dev/ic/tcic2.c			tcic
3561.132Sbad
3571.132Sbad# TCIC pcmcia contoller
3581.132Sbadattach	tcic at isa with tcic_isa
3591.132Sbadfile	dev/isa/tcic2_isa.c		tcic_isa
3601.90Sthorpej
3611.90Sthorpej# this wants to be probed as late as possible.
3621.90Sthorpej#
3631.90Sthorpej# Machine-independent PCMCIA drivers
3641.90Sthorpej#
3651.90Sthorpejinclude "dev/pcmcia/files.pcmcia"
3661.90Sthorpej
3671.90Sthorpej
3681.116Saugustssinclude "dev/usb/files.usb"
3691.141Sdrochner
3701.141Sdrochnerinclude "arch/i386/pnpbios/files.pnpbios"
371