files.i386 revision 1.107
11.107Sthorpej#	$NetBSD: files.i386,v 1.107 1998/02/06 07:53:26 thorpej 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.100Sthorpej
111.100Sthorpej# Processor type options.
121.100Sthorpejdefopt	opt_cputype.h I386_CPU I486_CPU I586_CPU I686_CPU
131.101Sthorpej
141.101Sthorpej# VM86 emulation
151.101Sthorpejdefopt	VM86
161.102Sthorpej
171.102Sthorpej# Floating point emulation
181.102Sthorpejdefopt	MATH_EMULATE
191.103Sthorpej
201.103Sthorpej# User-settable LDT (used by WINE)
211.103Sthorpejdefopt	USER_LDT
221.104Sthorpej
231.104Sthorpej# Speed hack; make NOPs dummies (might break on some machines)
241.104Sthorpejdefopt	DUMMY_NOPS
251.105Sthorpej
261.105Sthorpej# X server support in console drivers
271.105Sthorpejdefopt	XSERVER
281.98Sthorpej
291.56Scgdfile	arch/i386/i386/autoconf.c
301.56Scgdfile	arch/i386/i386/conf.c
311.56Scgdfile	arch/i386/i386/db_disasm.c	ddb
321.56Scgdfile	arch/i386/i386/db_interface.c	ddb
331.85Sthorpejfile	arch/i386/i386/db_memrw.c	ddb | kgdb
341.56Scgdfile	arch/i386/i386/db_trace.c	ddb
351.56Scgdfile	arch/i386/i386/disksubr.c	disk
361.60Smycroftfile	arch/i386/i386/gdt.c
371.74Smycroftfile	arch/i386/i386/in_cksum.s	inet
381.85Sthorpejfile	arch/i386/i386/kgdb_machdep.c	kgdb
391.56Scgdfile	arch/i386/i386/machdep.c
401.56Scgdfile	arch/i386/i386/math_emulate.c	math_emulate
411.56Scgdfile	arch/i386/i386/mem.c
421.56Scgdfile	arch/i386/i386/microtime.s
431.56Scgdfile	arch/i386/i386/ns_cksum.c	ns
441.106Smrgfile	arch/i386/i386/pmap.c		!pmap_new
451.106Smrgfile	arch/i386/i386/pmap.new.c	pmap_new
461.56Scgdfile	arch/i386/i386/process_machdep.c
471.56Scgdfile	arch/i386/i386/random.s
481.56Scgdfile	arch/i386/i386/sys_machdep.c
491.56Scgdfile	arch/i386/i386/trap.c
501.56Scgdfile	arch/i386/i386/vm_machdep.c
511.56Scgdfile	dev/cons.c
521.56Scgdmajor	{vnd = 14}
531.56Scgd
541.56Scgd#
551.56Scgd# Machine-independent SCSI drivers
561.56Scgd#
571.56Scgd
581.98Sthorpejinclude "dev/scsipi/files.scsipi"
591.56Scgdmajor	{sd = 4}
601.56Scgdmajor	{st = 5}
611.56Scgdmajor	{cd = 6}
621.69Sperry
631.97Scgd#
641.97Scgd# Machine-independent ATA drivers
651.97Scgd#
661.97Scgd
671.98Sthorpejinclude "dev/ata/files.ata"
681.97Scgdmajor	{wd = 0}
691.97Scgd
701.79Spk# Memory Disk for install floppy
711.79Spkfile arch/i386/i386/md_root.c	memory_disk_hooks
721.79Spkmajor	{md = 17}
731.56Scgd
741.56Scgd#
751.56Scgd# System bus types
761.56Scgd#
771.65Scgd
781.77Sjtkdefine mainbus { }
791.96Sthorpejdevice	mainbus class dull: isabus, eisabus, pcibus, mainbus
801.67Sthorpejattach	mainbus at root
811.65Scgdfile	arch/i386/i386/mainbus.c	mainbus
821.56Scgd
831.89Sjtk# attribute used to bring in BIOS trampoline code for real-mode probing
841.89Sjtk# of certain devices/BIOS features
851.89Sjtkdefine bioscall
861.89Sjtkfile	arch/i386/i386/bioscall.s	bioscall needs-flag
871.89Sjtk
881.56Scgd#device	mca at root {...}
891.56Scgd
901.55Smycroft#
911.64Scgd# PCI-only drivers
921.64Scgd# XXX MUST BE INCLUDED BEFORE files.isa, as long as files.isa attaches
931.64Scgd# XXX devices to 'pci'.
941.64Scgd#
951.64Scgd
961.98Sthorpejinclude "dev/pci/files.pci"
971.64Scgdfile	arch/i386/pci/pci_machdep.c	pci
981.78Sthorpej
991.78Sthorpej# PCI-Host bridge chipsets
1001.96Sthorpejdevice	pchb class dull: pcibus
1011.78Sthorpejattach	pchb at pci
1021.78Sthorpejfile	arch/i386/pci/pchb.c		pchb
1031.107Sthorpej
1041.107Sthorpej# PCI-EISA bridges
1051.107Sthorpejdevice	pceb class dull: eisabus, isabus
1061.107Sthorpejattach	pceb at pci
1071.107Sthorpejfile	arch/i386/pci/pceb.c		pceb
1081.78Sthorpej
1091.78Sthorpej# PCI-ISA bridges
1101.96Sthorpejdevice	pcib class dull: isabus
1111.78Sthorpejattach	pcib at pci
1121.78Sthorpejfile	arch/i386/pci/pcib.c		pcib
1131.64Scgd
1141.64Scgd#
1151.55Smycroft# ISA and mixed ISA+EISA or ISA+PCI drivers
1161.55Smycroft#
1171.56Scgd
1181.98Sthorpejinclude "dev/isa/files.isa"
1191.56Scgdmajor	{mcd = 7}
1201.56Scgd#major	{scd = 15}
1211.56Scgdmajor	{wt = 3}
1221.56Scgd
1231.56Scgdfile	arch/i386/isa/isa_machdep.c	isa
1241.56Scgd
1251.56Scgd# PC clock
1261.56Scgdfile	arch/i386/isa/clock.c		isa
1271.56Scgd
1281.56Scgd# Numeric Processing Extension; Math Co-processor
1291.96Sthorpejdevice	npx class dull
1301.67Sthorpejattach	npx at isa
1311.56Scgdfile	arch/i386/isa/npx.c		npx needs-flag
1321.56Scgd
1331.66Sthorpej# attribute used to represent the "keyboard controller"
1341.66Sthorpej# XXX should be a real device
1351.68Sjtkdefine pckbd { [irq = -1], [port = -1] }
1361.66Sthorpej
1371.56Scgd# PC console support a la "pccons"
1381.96Sthorpejdevice	pc class tty: tty, pckbd
1391.67Sthorpejattach	pc at isa
1401.56Scgdfile	arch/i386/isa/pccons.c		pc needs-flag
1411.56Scgd
1421.56Scgd# PC console support a la "pcvt"
1431.96Sthorpejdevice	vt class tty: tty, pckbd
1441.67Sthorpejattach	vt at isa
1451.56Scgdfile	arch/i386/isa/pcvt/pcvt_drv.c	vt needs-flag
1461.56Scgdfile	arch/i386/isa/pcvt/pcvt_ext.c	vt needs-flag
1471.56Scgdfile	arch/i386/isa/pcvt/pcvt_kbd.c	vt needs-flag
1481.56Scgdfile	arch/i386/isa/pcvt/pcvt_out.c	vt needs-flag
1491.56Scgdfile	arch/i386/isa/pcvt/pcvt_sup.c	vt needs-flag
1501.56Scgdfile	arch/i386/isa/pcvt/pcvt_vtf.c	vt needs-flag
1511.56Scgd
1521.56Scgd# PC Mice; Logitech-style, Microsoft-style, and PS/2-style
1531.96Sthorpejdevice	lms class dull
1541.67Sthorpejattach	lms at isa
1551.56Scgdfile	arch/i386/isa/lms.c		lms needs-flag
1561.96Sthorpejdevice	mms class dull
1571.67Sthorpejattach	mms at isa
1581.56Scgdfile	arch/i386/isa/mms.c		mms needs-flag
1591.96Sthorpejdevice	pms class dull
1601.67Sthorpejattach	pms at pckbd
1611.56Scgdfile	arch/i386/isa/pms.c		pms needs-flag
1621.56Scgd
1631.56Scgd# Floppy disk controller
1641.96Sthorpejdevice	fdc class dull {drive = -1}
1651.67Sthorpejattach	fdc at isa
1661.96Sthorpejdevice	fd class disk: disk, isadma
1671.67Sthorpejattach	fd at fdc
1681.56Scgdfile	arch/i386/isa/fd.c		fdc needs-flag
1691.56Scgdmajor	{fd = 2}
1701.56Scgd
1711.56Scgd# PC speaker
1721.96Sthorpejdevice	spkr class dull: tty
1731.68Sjtkattach	spkr at pckbd
1741.62Sscottrfile	arch/i386/isa/spkr.c		spkr needs-flag
1751.71Sperry
1761.71Sperry# Game adapter (joystick)
1771.96Sthorpejdevice	joy class dull
1781.71Sperryfile	arch/i386/isa/joy.c		joy needs-flag
1791.76Ssoda
1801.80Schristosattach	joy at isa with joy_isa
1811.80Schristosfile	arch/i386/isa/joy_isa.c		joy_isa
1821.80Schristos
1831.76Ssoda# Adaptec AHA-284x VL SCSI controllers
1841.76Ssoda# device declaration in sys/conf/files
1851.76Ssodaattach	ahc at isa with ahc_isa
1861.76Ssodafile	arch/i386/isa/ahc_isa.c		ahc_isa
1871.56Scgd
1881.55Smycroft#
1891.55Smycroft# EISA-only drivers
1901.55Smycroft#
1911.56Scgd
1921.98Sthorpejinclude "dev/eisa/files.eisa"
1931.72Scgdfile	arch/i386/eisa/eisa_machdep.c	eisa
1941.77Sjtk
1951.80Schristos# ISA Plug 'n Play devices
1961.80Schristos# IT IS IMPORTANT THAT THIS IS INCLUDED AFTER ALL ISA DEVICES!
1971.80Schristos# DO NOT MOVE IT!  (Thanks, The Mgmt.)
1981.80Schristosinclude "dev/isapnp/files.isapnp"
1991.80Schristosfile	arch/i386/isa/isapnp_machdep.c	isapnp
2001.80Schristos
2011.80Schristosattach	joy at isapnp with joy_isapnp
2021.80Schristosfile	arch/i386/isa/joy_isapnp.c	joy_isapnp
2031.77Sjtk
2041.77Sjtk#
2051.77Sjtk# Other mainbus-attached devices
2061.77Sjtk#
2071.77Sjtk
2081.77Sjtk# Advanced Power Management support (APM)
2091.96Sthorpejdevice apm class dull: bioscall
2101.77Sjtkattach apm at mainbus
2111.77Sjtkfile	arch/i386/i386/apm.c		apm needs-count
2121.89Sjtkfile	arch/i386/i386/apmcall.s	apm
2131.56Scgd
2141.55Smycroft#
2151.55Smycroft# Compatibility modules
2161.55Smycroft#
2171.61Smycroft
2181.61Smycroft# VM86 mode
2191.61Smycroftfile	arch/i386/i386/vm86.c			vm86
2201.56Scgd
2211.59Smycroft# SVR4 binary compatibility (COMPAT_SVR4)
2221.98Sthorpejinclude "compat/svr4/files.svr4"
2231.59Smycroftfile	arch/i386/i386/svr4_machdep.c		compat_svr4
2241.56Scgd
2251.59Smycroft# iBCS-2 binary compatibility (COMPAT_IBCS2)
2261.98Sthorpejinclude "compat/ibcs2/files.ibcs2"
2271.88Smycroftfile	arch/i386/i386/ibcs2_machdep.c		compat_ibcs2
2281.56Scgd
2291.59Smycroft# Linux binary compatibility (COMPAT_LINUX)
2301.98Sthorpejinclude "compat/linux/files.linux"
2311.59Smycroftfile	arch/i386/i386/linux_machdep.c		compat_linux
2321.58Smycroft
2331.59Smycroft# FreeBSD binary compatibility (COMPAT_FREEBSD)
2341.98Sthorpejinclude "compat/freebsd/files.freebsd"
2351.58Smycroftfile	arch/i386/i386/freebsd_machdep.c	compat_freebsd
2361.82Saugustss
2371.82Saugustss# OSS audio driver compatibility
2381.98Sthorpejinclude "compat/ossaudio/files.ossaudio"
2391.91Sbouyer
2401.91Sbouyer# network devices MII bus
2411.98Sthorpejinclude "dev/mii/files.mii"
2421.90Sthorpej
2431.90Sthorpej# XXXX pcic here because it needs to be late.  The catch: pcic needs
2441.90Sthorpej# to be late, so devices which attach to it are attached late.  But it
2451.90Sthorpej# needs to be before its isa and pci attachments.  This answer is
2461.90Sthorpej# non-optimal, but I don't have a better answer right now.
2471.90Sthorpej
2481.90Sthorpej# PCIC pcmcia contoller
2491.90Sthorpej# XXX this needs to be done very late, so it's done here.  This feels
2501.90Sthorpej# like a kludge, but it might be for the best.
2511.93Sthorpej
2521.93Sthorpejdefopt	PCIC_ISA_ALLOC_IOBASE
2531.93Sthorpejdefopt	PCIC_ISA_ALLOC_IOSIZE
2541.93Sthorpejdefopt	PCIC_ISA_INTR_ALLOC_MASK
2551.93Sthorpej
2561.96Sthorpejdevice	pcic class dull {[controller = -1], [socket = -1]}
2571.92Sthorpejfile	dev/ic/i82365.c			pcic
2581.90Sthorpej
2591.90Sthorpej# PCIC pcmcia contoller
2601.90Sthorpejattach	pcic at isa with pcic_isa
2611.90Sthorpejfile	dev/isa/i82365_isa.c		pcic_isa
2621.90Sthorpej
2631.90Sthorpej# PCIC pcmcia contoller
2641.90Sthorpejattach	pcic at pci with pcic_pci
2651.90Sthorpejfile	dev/pci/i82365_pci.c		pcic_pci
2661.90Sthorpej
2671.90Sthorpej
2681.90Sthorpej# this wants to be probed as late as possible.
2691.90Sthorpej#
2701.90Sthorpej# Machine-independent PCMCIA drivers
2711.90Sthorpej#
2721.90Sthorpejinclude "dev/pcmcia/files.pcmcia"
2731.90Sthorpej
2741.90Sthorpej
275