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.
222 lines
4.6 KiB
Plaintext
222 lines
4.6 KiB
Plaintext
# $NetBSD: files.macppc,v 1.52 2002/09/06 13:18:43 gehenna Exp $
|
|
#
|
|
# macppc-specific configuration info
|
|
|
|
# maxpartitions must be first item in files.${ARCH}.newconf
|
|
maxpartitions 16
|
|
|
|
maxusers 2 8 64
|
|
|
|
include "arch/powerpc/conf/files.ofw"
|
|
|
|
file arch/macppc/macppc/autoconf.c
|
|
file arch/macppc/macppc/bus_dma.c
|
|
file arch/macppc/macppc/clock.c
|
|
file arch/macppc/macppc/conf.c
|
|
file arch/macppc/macppc/disksubr.c disk
|
|
file arch/macppc/macppc/extintr.c
|
|
file arch/macppc/macppc/machdep.c
|
|
file arch/macppc/macppc/procfs_machdep.c procfs
|
|
file arch/macppc/dev/dbdma.c
|
|
file dev/cons.c
|
|
|
|
#
|
|
# Memory Disk for install floppy
|
|
#
|
|
file dev/md_root.c memory_disk_hooks
|
|
|
|
#
|
|
# 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"
|
|
|
|
#
|
|
# Generic OpenFirmware device support
|
|
#
|
|
include "dev/ofw/files.ofw"
|
|
|
|
#
|
|
# Machine-independent I2O drivers
|
|
#
|
|
include "dev/i2o/files.i2o"
|
|
|
|
#
|
|
# System bus types
|
|
#
|
|
define mainbus {}
|
|
device mainbus: mainbus
|
|
attach mainbus at root
|
|
file arch/macppc/macppc/mainbus.c mainbus
|
|
|
|
device cpu: sysmon_envsys
|
|
attach cpu at mainbus
|
|
file arch/macppc/macppc/cpu.c
|
|
|
|
file arch/macppc/pci/pci_machdep.c pci
|
|
|
|
device bandit: pcibus
|
|
attach bandit at mainbus
|
|
file arch/macppc/pci/bandit.c bandit
|
|
|
|
device grackle: pcibus
|
|
attach grackle at mainbus
|
|
file arch/macppc/pci/grackle.c grackle
|
|
|
|
device uninorth: pcibus
|
|
attach uninorth at mainbus
|
|
file arch/macppc/pci/uninorth.c uninorth
|
|
|
|
# PCI bus support
|
|
include "dev/pci/files.pci"
|
|
|
|
include "dev/wscons/files.wscons"
|
|
include "dev/wsfont/files.wsfont"
|
|
include "dev/rasops/files.rasops"
|
|
|
|
device ofb: wsemuldisplaydev, rasops8
|
|
attach ofb at pci
|
|
file arch/macppc/dev/ofb.c ofb needs-flag
|
|
|
|
# PCI-Host bridge chipsets
|
|
device pchb
|
|
attach pchb at pci
|
|
file arch/macppc/pci/pchb.c pchb
|
|
|
|
device gm: ifnet, ether, arp, mii
|
|
attach gm at pci
|
|
file arch/macppc/dev/if_gm.c gm
|
|
|
|
define obio {}
|
|
device obio: obio
|
|
attach obio at pci
|
|
file arch/macppc/dev/obio.c obio
|
|
|
|
device mediabay: obio
|
|
attach mediabay at obio
|
|
file arch/macppc/dev/mediabay.c mediabay
|
|
|
|
attach esp at obio
|
|
file arch/macppc/dev/esp.c esp
|
|
|
|
device mesh: scsi
|
|
attach mesh at obio
|
|
file arch/macppc/dev/mesh.c mesh
|
|
|
|
device mc: ifnet, ether, arp
|
|
attach mc at obio
|
|
file arch/macppc/dev/if_mc.c mc
|
|
file arch/macppc/dev/am79c950.c mc
|
|
|
|
device bm: ifnet, ether, arp, mii, mii_bitbang
|
|
attach bm at obio
|
|
file arch/macppc/dev/if_bm.c bm
|
|
|
|
device zsc {channel = -1}
|
|
attach zsc at obio
|
|
file arch/macppc/dev/zs.c zsc needs-flag
|
|
file dev/ic/z8530sc.c zsc
|
|
file arch/macppc/dev/zs_kgdb.c zsc & kgdb
|
|
|
|
device zstty: tty
|
|
attach zstty at zsc
|
|
file arch/macppc/dev/z8530tty.c zstty needs-flag
|
|
|
|
device adb {}
|
|
attach adb at obio
|
|
file arch/macppc/dev/adb.c adb needs-flag
|
|
file arch/macppc/dev/adb_direct.c adb
|
|
file arch/macppc/dev/pm_direct.c adb
|
|
|
|
device apm
|
|
attach apm at adb
|
|
file arch/macppc/dev/apm.c apm needs-count
|
|
|
|
device aed
|
|
attach aed at adb
|
|
file arch/macppc/dev/aed.c aed needs-flag
|
|
|
|
device akbd: wskbddev
|
|
attach akbd at adb
|
|
file arch/macppc/dev/akbd.c akbd needs-flag
|
|
|
|
device ams: wsmousedev
|
|
attach ams at adb
|
|
file arch/macppc/dev/ams.c ams
|
|
|
|
device abtn
|
|
attach abtn at adb
|
|
file arch/macppc/dev/abtn.c abtn
|
|
|
|
device nvram
|
|
attach nvram at obio
|
|
file arch/macppc/dev/nvram.c nvram needs-flag
|
|
|
|
attach wdc at obio with wdc_obio
|
|
file arch/macppc/dev/wdc_obio.c wdc_obio
|
|
|
|
attach wi at obio with wi_obio
|
|
file arch/macppc/dev/if_wi_obio.c wi_obio
|
|
|
|
device awacs: audiobus, auconv, mulaw
|
|
attach awacs at obio
|
|
file arch/macppc/dev/awacs.c awacs
|
|
|
|
device gpio {}
|
|
attach gpio at obio with gpio_obio
|
|
attach gpio at gpio with gpio_gpio
|
|
file arch/macppc/dev/gpio.c gpio
|
|
|
|
define grfdev {}
|
|
|
|
device grfati: grfdev
|
|
attach grfati at pci
|
|
file arch/macppc/dev/grf_ati.c grfati needs-flag
|
|
|
|
device grf {}
|
|
attach grf at grfdev
|
|
file arch/macppc/dev/grf.c grf needs-flag
|
|
file arch/macppc/dev/grf_subr.c grf
|
|
|
|
device ite: tty
|
|
attach ite at grf
|
|
file arch/macppc/dev/ite.c ite needs-flag
|
|
|
|
device macofcons: tty
|
|
attach macofcons at pci
|
|
file arch/macppc/dev/ofcons.c macofcons needs-flag
|
|
|
|
include "dev/usb/files.usb"
|
|
include "dev/ieee1394/files.ieee1394"
|
|
|
|
#
|
|
# Machine-independent CardBus drivers
|
|
#
|
|
|
|
# XXX dev/pcmcia needs fdc
|
|
device fdc {drive = -1}
|
|
|
|
include "dev/cardbus/files.cardbus"
|
|
include "dev/pcmcia/files.pcmcia"
|
|
|
|
file arch/macppc/macppc/rbus_machdep.c cardbus
|
|
|
|
include "arch/macppc/conf/majors.macppc"
|