files.i386 revision 1.98
11.98Sthorpej#	$NetBSD: files.i386,v 1.98 1998/01/15 06:15:08 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.56Scgd
111.98Sthorpej# Processor type options.
121.98Sthorpejdefopt	opt_cputype.h I386_CPU I486_CPU I586_CPU I686_CPU
131.98Sthorpej
141.56Scgdfile	arch/i386/i386/autoconf.c
151.56Scgdfile	arch/i386/i386/conf.c
161.56Scgdfile	arch/i386/i386/db_disasm.c	ddb
171.56Scgdfile	arch/i386/i386/db_interface.c	ddb
181.85Sthorpejfile	arch/i386/i386/db_memrw.c	ddb | kgdb
191.56Scgdfile	arch/i386/i386/db_trace.c	ddb
201.56Scgdfile	arch/i386/i386/disksubr.c	disk
211.60Smycroftfile	arch/i386/i386/gdt.c
221.74Smycroftfile	arch/i386/i386/in_cksum.s	inet
231.85Sthorpejfile	arch/i386/i386/kgdb_machdep.c	kgdb
241.56Scgdfile	arch/i386/i386/machdep.c
251.56Scgdfile	arch/i386/i386/math_emulate.c	math_emulate
261.56Scgdfile	arch/i386/i386/mem.c
271.56Scgdfile	arch/i386/i386/microtime.s
281.56Scgdfile	arch/i386/i386/ns_cksum.c	ns
291.56Scgdfile	arch/i386/i386/pmap.c
301.56Scgdfile	arch/i386/i386/process_machdep.c
311.56Scgdfile	arch/i386/i386/random.s
321.56Scgdfile	arch/i386/i386/sys_machdep.c
331.56Scgdfile	arch/i386/i386/trap.c
341.56Scgdfile	arch/i386/i386/vm_machdep.c
351.56Scgdfile	dev/cons.c
361.56Scgdmajor	{vnd = 14}
371.56Scgd
381.56Scgd#
391.56Scgd# Machine-independent SCSI drivers
401.56Scgd#
411.56Scgd
421.98Sthorpejinclude "dev/scsipi/files.scsipi"
431.56Scgdmajor	{sd = 4}
441.56Scgdmajor	{st = 5}
451.56Scgdmajor	{cd = 6}
461.69Sperry
471.97Scgd#
481.97Scgd# Machine-independent ATA drivers
491.97Scgd#
501.97Scgd
511.98Sthorpejinclude "dev/ata/files.ata"
521.97Scgdmajor	{wd = 0}
531.97Scgd
541.79Spk# Memory Disk for install floppy
551.79Spkfile arch/i386/i386/md_root.c	memory_disk_hooks
561.79Spkmajor	{md = 17}
571.56Scgd
581.56Scgd#
591.56Scgd# System bus types
601.56Scgd#
611.65Scgd
621.77Sjtkdefine mainbus { }
631.96Sthorpejdevice	mainbus class dull: isabus, eisabus, pcibus, mainbus
641.67Sthorpejattach	mainbus at root
651.65Scgdfile	arch/i386/i386/mainbus.c	mainbus
661.56Scgd
671.89Sjtk# attribute used to bring in BIOS trampoline code for real-mode probing
681.89Sjtk# of certain devices/BIOS features
691.89Sjtkdefine bioscall
701.89Sjtkfile	arch/i386/i386/bioscall.s	bioscall needs-flag
711.89Sjtk
721.56Scgd#device	mca at root {...}
731.56Scgd
741.55Smycroft#
751.64Scgd# PCI-only drivers
761.64Scgd# XXX MUST BE INCLUDED BEFORE files.isa, as long as files.isa attaches
771.64Scgd# XXX devices to 'pci'.
781.64Scgd#
791.64Scgd
801.98Sthorpejinclude "dev/pci/files.pci"
811.64Scgdfile	arch/i386/pci/pci_machdep.c	pci
821.78Sthorpej
831.78Sthorpej# PCI-Host bridge chipsets
841.96Sthorpejdevice	pchb class dull: pcibus
851.78Sthorpejattach	pchb at pci
861.78Sthorpejfile	arch/i386/pci/pchb.c		pchb
871.78Sthorpej
881.78Sthorpej# PCI-ISA bridges
891.96Sthorpejdevice	pcib class dull: isabus
901.78Sthorpejattach	pcib at pci
911.78Sthorpejfile	arch/i386/pci/pcib.c		pcib
921.64Scgd
931.64Scgd#
941.55Smycroft# ISA and mixed ISA+EISA or ISA+PCI drivers
951.55Smycroft#
961.56Scgd
971.98Sthorpejinclude "dev/isa/files.isa"
981.56Scgdmajor	{mcd = 7}
991.56Scgd#major	{scd = 15}
1001.56Scgdmajor	{wt = 3}
1011.56Scgd
1021.56Scgdfile	arch/i386/isa/isa_machdep.c	isa
1031.56Scgd
1041.56Scgd# PC clock
1051.56Scgdfile	arch/i386/isa/clock.c		isa
1061.56Scgd
1071.56Scgd# Numeric Processing Extension; Math Co-processor
1081.96Sthorpejdevice	npx class dull
1091.67Sthorpejattach	npx at isa
1101.56Scgdfile	arch/i386/isa/npx.c		npx needs-flag
1111.56Scgd
1121.66Sthorpej# attribute used to represent the "keyboard controller"
1131.66Sthorpej# XXX should be a real device
1141.68Sjtkdefine pckbd { [irq = -1], [port = -1] }
1151.66Sthorpej
1161.56Scgd# PC console support a la "pccons"
1171.96Sthorpejdevice	pc class tty: tty, pckbd
1181.67Sthorpejattach	pc at isa
1191.56Scgdfile	arch/i386/isa/pccons.c		pc needs-flag
1201.56Scgd
1211.56Scgd# PC console support a la "pcvt"
1221.96Sthorpejdevice	vt class tty: tty, pckbd
1231.67Sthorpejattach	vt at isa
1241.56Scgdfile	arch/i386/isa/pcvt/pcvt_drv.c	vt needs-flag
1251.56Scgdfile	arch/i386/isa/pcvt/pcvt_ext.c	vt needs-flag
1261.56Scgdfile	arch/i386/isa/pcvt/pcvt_kbd.c	vt needs-flag
1271.56Scgdfile	arch/i386/isa/pcvt/pcvt_out.c	vt needs-flag
1281.56Scgdfile	arch/i386/isa/pcvt/pcvt_sup.c	vt needs-flag
1291.56Scgdfile	arch/i386/isa/pcvt/pcvt_vtf.c	vt needs-flag
1301.56Scgd
1311.56Scgd# PC Mice; Logitech-style, Microsoft-style, and PS/2-style
1321.96Sthorpejdevice	lms class dull
1331.67Sthorpejattach	lms at isa
1341.56Scgdfile	arch/i386/isa/lms.c		lms needs-flag
1351.96Sthorpejdevice	mms class dull
1361.67Sthorpejattach	mms at isa
1371.56Scgdfile	arch/i386/isa/mms.c		mms needs-flag
1381.96Sthorpejdevice	pms class dull
1391.67Sthorpejattach	pms at pckbd
1401.56Scgdfile	arch/i386/isa/pms.c		pms needs-flag
1411.56Scgd
1421.56Scgd# Floppy disk controller
1431.96Sthorpejdevice	fdc class dull {drive = -1}
1441.67Sthorpejattach	fdc at isa
1451.96Sthorpejdevice	fd class disk: disk, isadma
1461.67Sthorpejattach	fd at fdc
1471.56Scgdfile	arch/i386/isa/fd.c		fdc needs-flag
1481.56Scgdmajor	{fd = 2}
1491.56Scgd
1501.56Scgd# PC speaker
1511.96Sthorpejdevice	spkr class dull: tty
1521.68Sjtkattach	spkr at pckbd
1531.62Sscottrfile	arch/i386/isa/spkr.c		spkr needs-flag
1541.71Sperry
1551.71Sperry# Game adapter (joystick)
1561.96Sthorpejdevice	joy class dull
1571.71Sperryfile	arch/i386/isa/joy.c		joy needs-flag
1581.76Ssoda
1591.80Schristosattach	joy at isa with joy_isa
1601.80Schristosfile	arch/i386/isa/joy_isa.c		joy_isa
1611.80Schristos
1621.76Ssoda# Adaptec AHA-284x VL SCSI controllers
1631.76Ssoda# device declaration in sys/conf/files
1641.76Ssodaattach	ahc at isa with ahc_isa
1651.76Ssodafile	arch/i386/isa/ahc_isa.c		ahc_isa
1661.56Scgd
1671.55Smycroft#
1681.55Smycroft# EISA-only drivers
1691.55Smycroft#
1701.56Scgd
1711.98Sthorpejinclude "dev/eisa/files.eisa"
1721.72Scgdfile	arch/i386/eisa/eisa_machdep.c	eisa
1731.77Sjtk
1741.80Schristos# ISA Plug 'n Play devices
1751.80Schristos# IT IS IMPORTANT THAT THIS IS INCLUDED AFTER ALL ISA DEVICES!
1761.80Schristos# DO NOT MOVE IT!  (Thanks, The Mgmt.)
1771.80Schristosinclude "dev/isapnp/files.isapnp"
1781.80Schristosfile	arch/i386/isa/isapnp_machdep.c	isapnp
1791.80Schristos
1801.80Schristosattach	joy at isapnp with joy_isapnp
1811.80Schristosfile	arch/i386/isa/joy_isapnp.c	joy_isapnp
1821.77Sjtk
1831.77Sjtk#
1841.77Sjtk# Other mainbus-attached devices
1851.77Sjtk#
1861.77Sjtk
1871.77Sjtk# Advanced Power Management support (APM)
1881.96Sthorpejdevice apm class dull: bioscall
1891.77Sjtkattach apm at mainbus
1901.77Sjtkfile	arch/i386/i386/apm.c		apm needs-count
1911.89Sjtkfile	arch/i386/i386/apmcall.s	apm
1921.56Scgd
1931.55Smycroft#
1941.55Smycroft# Compatibility modules
1951.55Smycroft#
1961.61Smycroft
1971.61Smycroft# VM86 mode
1981.61Smycroftfile	arch/i386/i386/vm86.c			vm86
1991.56Scgd
2001.59Smycroft# SVR4 binary compatibility (COMPAT_SVR4)
2011.98Sthorpejinclude "compat/svr4/files.svr4"
2021.59Smycroftfile	arch/i386/i386/svr4_machdep.c		compat_svr4
2031.56Scgd
2041.59Smycroft# iBCS-2 binary compatibility (COMPAT_IBCS2)
2051.98Sthorpejinclude "compat/ibcs2/files.ibcs2"
2061.88Smycroftfile	arch/i386/i386/ibcs2_machdep.c		compat_ibcs2
2071.56Scgd
2081.59Smycroft# Linux binary compatibility (COMPAT_LINUX)
2091.98Sthorpejinclude "compat/linux/files.linux"
2101.59Smycroftfile	arch/i386/i386/linux_machdep.c		compat_linux
2111.58Smycroft
2121.59Smycroft# FreeBSD binary compatibility (COMPAT_FREEBSD)
2131.98Sthorpejinclude "compat/freebsd/files.freebsd"
2141.58Smycroftfile	arch/i386/i386/freebsd_machdep.c	compat_freebsd
2151.82Saugustss
2161.82Saugustss# OSS audio driver compatibility
2171.98Sthorpejinclude "compat/ossaudio/files.ossaudio"
2181.91Sbouyer
2191.91Sbouyer# network devices MII bus
2201.98Sthorpejinclude "dev/mii/files.mii"
2211.90Sthorpej
2221.90Sthorpej# XXXX pcic here because it needs to be late.  The catch: pcic needs
2231.90Sthorpej# to be late, so devices which attach to it are attached late.  But it
2241.90Sthorpej# needs to be before its isa and pci attachments.  This answer is
2251.90Sthorpej# non-optimal, but I don't have a better answer right now.
2261.90Sthorpej
2271.90Sthorpej# PCIC pcmcia contoller
2281.90Sthorpej# XXX this needs to be done very late, so it's done here.  This feels
2291.90Sthorpej# like a kludge, but it might be for the best.
2301.93Sthorpej
2311.93Sthorpejdefopt	PCIC_ISA_ALLOC_IOBASE
2321.93Sthorpejdefopt	PCIC_ISA_ALLOC_IOSIZE
2331.93Sthorpejdefopt	PCIC_ISA_INTR_ALLOC_MASK
2341.93Sthorpej
2351.96Sthorpejdevice	pcic class dull {[controller = -1], [socket = -1]}
2361.92Sthorpejfile	dev/ic/i82365.c			pcic
2371.90Sthorpej
2381.90Sthorpej# PCIC pcmcia contoller
2391.90Sthorpejattach	pcic at isa with pcic_isa
2401.90Sthorpejfile	dev/isa/i82365_isa.c		pcic_isa
2411.90Sthorpej
2421.90Sthorpej# PCIC pcmcia contoller
2431.90Sthorpejattach	pcic at pci with pcic_pci
2441.90Sthorpejfile	dev/pci/i82365_pci.c		pcic_pci
2451.90Sthorpej
2461.90Sthorpej
2471.90Sthorpej# this wants to be probed as late as possible.
2481.90Sthorpej#
2491.90Sthorpej# Machine-independent PCMCIA drivers
2501.90Sthorpej#
2511.90Sthorpejinclude "dev/pcmcia/files.pcmcia"
2521.90Sthorpej
2531.90Sthorpej
254