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.
144 lines
3.4 KiB
Plaintext
144 lines
3.4 KiB
Plaintext
# $NetBSD: files.shark,v 1.5 2002/09/06 13:18:43 gehenna Exp $
|
|
#
|
|
# First try for arm-specific configuration info
|
|
#
|
|
|
|
maxpartitions 8
|
|
maxusers 2 8 64
|
|
|
|
# COMPAT_OLD_OFW for SHARKs
|
|
defflag COMPAT_OLD_OFW
|
|
|
|
# Maintain Interrupt statistics
|
|
defflag IRQSTATS
|
|
|
|
# X server support in console drivers
|
|
defflag XSERVER
|
|
|
|
# Bootloader options (COMPAT... to be dropped ASAP)
|
|
defflag COMPAT_OLD_BOOTLOADER
|
|
|
|
define todservice {}
|
|
|
|
#
|
|
# ISA and mixed ISA+EISA or ISA+PCI drivers
|
|
#
|
|
include "dev/isa/files.isa"
|
|
|
|
# Include WSCONS stuff
|
|
include "dev/wscons/files.wscons"
|
|
include "dev/rasops/files.rasops"
|
|
include "dev/wsfont/files.wsfont"
|
|
|
|
#
|
|
# Machine-independent ATA drivers
|
|
#
|
|
include "dev/ata/files.ata"
|
|
|
|
# Common OFW files
|
|
include "dev/ofw/files.ofw"
|
|
include "arch/arm/ofw/files.ofw"
|
|
attach ofbus at root with ofbus_root
|
|
file arch/shark/ofw/ofw.c
|
|
file arch/shark/ofw/oftodclock.c
|
|
|
|
# OFW console initialization
|
|
file arch/shark/ofw/consinit.c
|
|
file dev/cninit.c
|
|
|
|
# ISA DMA glue
|
|
file arch/shark/isa/isadma_machdep.c isadma
|
|
|
|
# Game adapter (joystick)
|
|
file arch/shark/isa/joy_timer.c joy
|
|
|
|
# OFW ISA bus driver.
|
|
include "dev/ofisa/files.ofisa"
|
|
file arch/shark/ofw/ofisa_machdep.c ofisa
|
|
file arch/shark/ofw/com_ofisa_machdep.c com_ofisa
|
|
file arch/shark/ofw/com_ofisa_consolehack.c com_ofisa # XXX
|
|
file arch/shark/ofw/if_cs_ofisa_machdep.c cs_ofisa
|
|
file arch/shark/ofw/lpt_ofisa_machdep.c lpt_ofisa
|
|
file arch/shark/ofw/wdc_ofisa_machdep.c wdc_ofisa
|
|
|
|
# Glue for OFW ISA device attachment
|
|
device ofisapc {}
|
|
attach ofisapc at ofbus
|
|
file arch/shark/ofw/ofisapc.c pc
|
|
device ofisascr {}
|
|
attach ofisascr at ofisa
|
|
file arch/shark/ofw/ofisascr.c scr
|
|
|
|
device ofrom
|
|
attach ofrom at ofbus
|
|
file arch/shark/ofw/ofrom.c ofrom needs-flag
|
|
|
|
# Memory disk driver
|
|
file dev/md_root.c md & memory_disk_hooks
|
|
|
|
# attribute used to represent the "keyboard controller" on the shark
|
|
# XXX should be a real device
|
|
define spckbd { [irq = -1], [port = -1] }
|
|
|
|
# PS/2 mouse device
|
|
device opms: tty
|
|
file arch/shark/shark/opms.c opms needs-flag
|
|
|
|
attach opms at spckbd with opms
|
|
|
|
device todclock
|
|
attach todclock at todservice
|
|
file arch/shark/dev/todclock.c todclock needs-count
|
|
|
|
#
|
|
# Machine-independent SCSI drivers
|
|
#
|
|
|
|
include "dev/scsipi/files.scsipi"
|
|
|
|
# Generic MD files
|
|
file arch/shark/shark/autoconf.c
|
|
file arch/shark/shark/conf.c
|
|
|
|
file arch/arm/arm/disksubr.c disk
|
|
file arch/arm/arm/disksubr_acorn.c disk
|
|
file arch/arm/arm/disksubr_mbr.c disk
|
|
|
|
file arch/arm/arm32/intr.c
|
|
file arch/arm/arm32/spl.S
|
|
|
|
# Shark specific files
|
|
file arch/shark/shark/shark_machdep.c shark
|
|
file arch/shark/shark/sequoia.c shark
|
|
file arch/shark/shark/shark_fiq.S shark
|
|
file arch/shark/shark/hat.c shark
|
|
file arch/shark/isa/isa_irqhandler.c shark
|
|
file arch/shark/isa/clock.c shark
|
|
file arch/shark/isa/isa_irq.S shark
|
|
file arch/shark/isa/isa_shark_machdep.c shark
|
|
file arch/shark/isa/isa_io.c shark | isa
|
|
file arch/shark/isa/isa_io_asm.S shark | isa
|
|
|
|
# National Semiconductor PC97307VUL SuperIO chip configuration routines
|
|
define nsio
|
|
file arch/shark/shark/ns87307.c nsio & shark
|
|
|
|
# 8042 microcontroller routines for keyboard and mouse
|
|
define i8042
|
|
file arch/shark/shark/i8042.c i8042
|
|
|
|
defpseudo profiler: disk
|
|
file arch/shark/shark/profile.c profiler needs-flag
|
|
|
|
# SHARK pc console
|
|
device pc: tty, spckbd, i8042
|
|
attach pc at ofisapc
|
|
file arch/shark/shark/pccons.c pc needs-flag
|
|
|
|
# Smart Card Reader
|
|
device scr: tty
|
|
file arch/shark/shark/scr.c scr needs-flag
|
|
attach scr at ofisascr
|
|
|
|
include "arch/shark/conf/majors.shark"
|