NetBSD/sys/arch/bebox/conf/files.bebox
drochner 46289e1fef Phase out the use of a string as first "attach args" member to control
which bustype should be attached with a specific call to config_found()
(from a "mainbus" or a bus bridge).
Do it for isa/eisa/mca and pci/agp for now. These buses all attach to
an mi interface attribute "isabus", "eisabus" etc., and the autoconf
framework now allows to specify an interface attribute on config_found()
and config_search(), which limits the search of matching config data
to these which attach to that specific attribute.
So we basically have to call config_found_ia(..., "foobus", ...) where
such a bus is attached.
As a consequence, where a "mainbus" or alike also attaches other
devices (eg CPUs) which do not attach to a specific attribute yet,
we need at least pass an attribute name (different from "foobus") so
that the foo bus is not found at these places. This made some minor
changes necessary which are not obviously related to the mentioned buses.
2004-08-30 15:05:15 +00:00

128 lines
2.5 KiB
Plaintext

# $NetBSD: files.bebox,v 1.45 2004/08/30 15:05:16 drochner Exp $
#
# First try for bebox specific configuration info
#
maxpartitions 8
maxusers 2 8 64
defflag XSERVER
file arch/bebox/bebox/autoconf.c
file arch/bebox/bebox/clock.c
file arch/bebox/bebox/disksubr.c disk
file arch/bebox/bebox/extintr.c
file arch/bebox/bebox/machdep.c
file arch/powerpc/powerpc/bus_dma.c
file arch/powerpc/powerpc/bus_space.c
file arch/powerpc/powerpc/procfs_machdep.c procfs
# General files
file dev/cons.c
#
# 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: 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: pckbport_machdep_cnattach
attach pcconskbd at pckbport
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/pckbport/files.pckbport"
# 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
# ISA Plug 'n Play support
file arch/bebox/isa/isapnp_machdep.c isapnp
include "arch/bebox/conf/majors.bebox"