NetBSD/sys/arch/sgimips/conf/files.sgimips
gehenna 77a6b82b27 Merge the gehenna-devsw branch into the trunk.
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.
2002-09-06 13:18:43 +00:00

102 lines
2.4 KiB
Plaintext

# $NetBSD: files.sgimips,v 1.21 2002/09/06 13:18:43 gehenna Exp $
maxpartitions 16
maxusers 2 8 64
defflag opt_machtypes.h IP20 IP22 IP32
device mainbus {[addr = -1]}
attach mainbus at root
file arch/sgimips/sgimips/mainbus.c mainbus
device cpu
attach cpu at mainbus
file arch/sgimips/sgimips/cpu.c cpu
define giobus {}
device imc: giobus, eisabus
attach imc at mainbus
file arch/sgimips/dev/imc.c imc
device crime
attach crime at mainbus
file arch/sgimips/dev/crime.c crime
device mace {[offset = -1], [intr = -1]}
attach mace at mainbus
file arch/sgimips/dev/mace.c mace
attach com at mace with com_mace
file arch/sgimips/dev/com_mace.c com_mace
device lpt # XXX
attach lpt at mace with lpt_mace
file arch/sgimips/dev/lpt_mace.c lpt_mace
file dev/ic/lpt.c lpt_mace
attach pckbc at mace with pckbc_mace
file arch/sgimips/dev/pckbc_mace.c pckbc_mace
device mcclock # XXX
attach mcclock at mace with mcclock_mace
file arch/sgimips/dev/mcclock_mace.c mcclock_mace
device mec: arp, ether, ifnet, mii
attach mec at mace
file arch/sgimips/dev/if_mec.c mec
device macepci: pcibus
attach macepci at mace
file arch/sgimips/pci/macepci.c macepci
device zsc {[channel = -1]}
device zstty: tty
attach zstty at zsc
file dev/ic/z8530tty.c zstty needs-flag
file arch/sgimips/dev/zs_kgdb.c kgdb
file arch/sgimips/dev/zs.c zsc needs-flag
file dev/ic/z8530sc.c zsc
file dev/arcbios/arcbios.c
file dev/arcbios/arcbios_tty.c
file arch/sgimips/sgimips/ip22.c
file arch/sgimips/sgimips/ip22_cache.S ip22
file arch/sgimips/sgimips/ip32.c
file arch/sgimips/sgimips/autoconf.c
file arch/sgimips/sgimips/bus.c
file arch/sgimips/sgimips/clock.c
file arch/sgimips/sgimips/conf.c
file arch/sgimips/sgimips/console.c
file arch/sgimips/sgimips/disksubr.c
file arch/sgimips/sgimips/machdep.c
file arch/sgimips/sgimips/softintr.c
file dev/md_root.c memory_disk_hooks
file dev/clock_subr.c
file dev/cons.c
# Machine-independent I2O drivers.
include "dev/i2o/files.i2o"
include "dev/pci/files.pci"
file arch/sgimips/pci/pci_machdep.c pci
include "dev/eisa/files.eisa"
file arch/sgimips/eisa/eisa_machdep.c eisa
include "dev/vme/files.vme"
include "dev/wscons/files.wscons"
include "dev/wsfont/files.wsfont"
include "dev/pckbc/files.pckbc"
include "dev/usb/files.usb"
include "dev/scsipi/files.scsipi"
include "dev/ata/files.ata"
include "arch/sgimips/gio/files.gio"
include "arch/sgimips/conf/majors.sgimips"