77a6b82b27
This merge changes the device switch tables from static array to dynamically generated by config(8). - All device switches is defined as a constant structure in device drivers. - The new grammer ``device-major'' is introduced to ``files''. device-major <prefix> char <num> [block <num>] [<rules>] - All device major numbers must be listed up in port dependent majors.<arch> by using this grammer. - Added the new naming convention. The name of the device switch must be <prefix>_[bc]devsw for auto-generation of device switch tables. - The backward compatibility of loading block/character device switch by LKM framework is broken. This is necessary to convert from block/character device major to device name in runtime and vice versa. - The restriction to assign device major by LKM is completely removed. We don't need to reserve LKM entries for dynamic loading of device switch. - In compile time, device major numbers list is packed into the kernel and the LKM framework will refer it to assign device major number dynamically.
142 lines
2.9 KiB
Plaintext
142 lines
2.9 KiB
Plaintext
# $NetBSD: files.bebox,v 1.35 2002/09/06 13:18:43 gehenna Exp $
|
|
#
|
|
# First try for bebox specific configuration info
|
|
#
|
|
maxpartitions 16
|
|
|
|
maxusers 2 8 64
|
|
|
|
file arch/bebox/bebox/autoconf.c
|
|
file arch/bebox/bebox/bus_space.c
|
|
file arch/bebox/bebox/clock.c
|
|
file arch/bebox/bebox/conf.c
|
|
file arch/bebox/bebox/disksubr.c disk
|
|
file arch/bebox/bebox/extintr.c
|
|
file arch/bebox/bebox/machdep.c
|
|
file arch/bebox/bebox/procfs_machdep.c procfs
|
|
file arch/powerpc/powerpc/bus_dma.c
|
|
|
|
# General files
|
|
file dev/cons.c
|
|
|
|
#
|
|
# Compatibility modules
|
|
#
|
|
|
|
# OSS audio driver compatibility
|
|
include "compat/ossaudio/files.ossaudio"
|
|
|
|
# Linux binary compatibility (COMPAT_LINUX)
|
|
include "compat/linux/files.linux"
|
|
include "compat/linux/arch/powerpc/files.linux_powerpc"
|
|
file arch/powerpc/powerpc/linux_sigcode.S compat_linux
|
|
file arch/powerpc/powerpc/linux_trap.c compat_linux
|
|
|
|
#
|
|
# Machine-independent SCSI drivers
|
|
#
|
|
include "dev/scsipi/files.scsipi"
|
|
|
|
#
|
|
# Machine-independent ATA drivers
|
|
#
|
|
|
|
include "dev/ata/files.ata"
|
|
|
|
#
|
|
# Memory Disk for install floppy
|
|
#
|
|
file dev/md_root.c memory_disk_hooks
|
|
|
|
#
|
|
# Machine-independent I2O drivers.
|
|
#
|
|
include "dev/i2o/files.i2o"
|
|
|
|
#
|
|
# System bus types
|
|
#
|
|
define mainbus { }
|
|
device mainbus: isabus, pcibus, mainbus
|
|
attach mainbus at root
|
|
|
|
device cpu
|
|
attach cpu at mainbus
|
|
|
|
file arch/bebox/bebox/mainbus.c mainbus|cpu needs-flag
|
|
#
|
|
# PCI-only drivers
|
|
# XXX MUST BE INCLUDED BEFORE files.isa, as long as files.isa attaches
|
|
# XXX devices to 'pci'.
|
|
#
|
|
include "dev/pci/files.pci"
|
|
file arch/bebox/pci/pci_machdep.c pci
|
|
|
|
# PCI-Host bridge chipsets
|
|
device pchb: pcibus
|
|
attach pchb at pci
|
|
file arch/bebox/pci/pchb.c pchb
|
|
|
|
# PCI-ISA bridges
|
|
device pcib: isabus
|
|
attach pcib at pci
|
|
file arch/bebox/pci/pcib.c pcib
|
|
|
|
#
|
|
# ISA and mixed ISA+PCI drivers
|
|
#
|
|
|
|
include "dev/isa/files.isa"
|
|
|
|
file arch/bebox/isa/isa_machdep.c isa
|
|
file arch/bebox/isa/isadma_machdep.c isa
|
|
|
|
# PC clock
|
|
file arch/bebox/isa/isaclock.c isa
|
|
|
|
# attribute used to represent the "keyboard controller"
|
|
# XXX should be a real device
|
|
define pckbcport { [irq = -1], [port = -1] }
|
|
|
|
# PC console support a la "pccons"
|
|
device pc: tty, pckbcport
|
|
attach pc at isa
|
|
device pcconskbd
|
|
attach pcconskbd at pckbc
|
|
file arch/bebox/isa/pccons.c pc | pcconskbd needs-flag
|
|
|
|
# PC Mice; Logitech-style, Microsoft-style, and PS/2-style
|
|
device lms
|
|
attach lms at isa
|
|
file arch/bebox/isa/lms.c lms needs-flag
|
|
device mms
|
|
attach mms at isa
|
|
file arch/bebox/isa/mms.c mms needs-flag
|
|
|
|
include "dev/wscons/files.wscons"
|
|
include "dev/wsfont/files.wsfont"
|
|
|
|
device pfb: wsemuldisplaydev, wsrasteremulops
|
|
attach pfb at pci
|
|
file arch/bebox/pci/pfb.c pfb needs-flag
|
|
|
|
include "dev/pckbc/files.pckbc"
|
|
|
|
# Floppy disk controller
|
|
device fdc {drive = -1}: isadma
|
|
file dev/isa/fd.c fdc needs-flag
|
|
|
|
attach fdc at isa with fdc_isa
|
|
file dev/isa/fdc_isa.c fdc_isa
|
|
|
|
device fd: disk
|
|
attach fd at fdc
|
|
|
|
# Game adapter (joystick)
|
|
file arch/bebox/isa/joy_timer.c joy
|
|
|
|
# ISA Plug 'n Play support
|
|
file arch/bebox/isa/isapnp_machdep.c isapnp
|
|
|
|
include "arch/bebox/conf/majors.bebox"
|