NetBSD/sys/arch/prep/conf/files.prep
bjh21 dff5222d3a Abstract the interface between pckbc(4), and the pckbd(4) and pms(4)
drivers that attach to it.  This allows for other host interface chips
that use the same keyboards and mice, such as the ones in the ARM
IOMD20, ARM7500, and SA-1111.  The PC-compatible driver is still
called pckbc(4), and the new abstraction layer is "pckbport", so the
child devices have moved from sys/dev/pckbc to sys/dev/pckbport, which
also contains some code shared between all host controllers.  To avoid
incompatibility, pckbdreg.h is still installed in
/usr/include/dev/pckbc.

In theory, this shouldn't cause any behavioural changes in the drivers
concerned.  Thy just use rather more function pointers than before.  Tested
on i386 and (with a new host driver) acorn32.  Compiled on several other
affected architectures.
2004-03-13 17:31:33 +00:00

181 lines
3.9 KiB
Plaintext

# $NetBSD: files.prep,v 1.46 2004/03/13 17:31:34 bjh21 Exp $
#
# prep-specific configuration info
#
maxpartitions 8
maxusers 2 8 64
defflag opt_residual.h RESIDUAL_DATA_DUMP
defflag opt_platform.h PLATFORM_IBM_6040
PLATFORM_IBM_6050
PLATFORM_IBM_7248
PLATFORM_IBM_7043_140
PLATFORM_MOTOROLA_ULMB60XA
# IBM
file arch/prep/prep/ibm_machdep.c
file arch/prep/prep/ibm_6040.c platform_ibm_6040
file arch/prep/prep/ibm_6050.c platform_ibm_6050
file arch/prep/prep/ibm_7248.c platform_ibm_7248
file arch/prep/prep/ibm_7043_140.c platform_ibm_7043_140
# Motorola
file arch/prep/prep/mot_machdep.c
file arch/prep/prep/mot_ulmb60xa.c platform_motorola_ulmb60xa
file arch/prep/prep/platform.c
file arch/prep/prep/autoconf.c
file arch/prep/prep/clock.c
file arch/prep/prep/consinit.c
file arch/prep/prep/disksubr.c disk
file arch/prep/prep/extintr.c
file arch/prep/prep/machdep.c
file arch/prep/prep/residual.c residual_data_dump
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 I2O drivers
#
include "dev/i2o/files.i2o"
#
# 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
#
# System bus types
#
define mainbus {}
device mainbus: pcibus, mainbus
attach mainbus at root
file arch/prep/prep/mainbus.c mainbus
device cpu
attach cpu at mainbus
file arch/prep/prep/cpu.c cpu
include "dev/wscons/files.wscons"
include "dev/wsfont/files.wsfont"
include "dev/rasops/files.rasops"
#
# 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/prep/pci/pci_machdep.c pci
file arch/prep/pci/prep_pciconf_direct.c pci
file arch/prep/pci/prep_pciconf_indirect.c pci
# PCI-Host bridge chipsets
device pchb: pcibus
attach pchb at pci
file arch/prep/pci/pchb.c pchb
# PCI-ISA bridges
device pcib: isabus
attach pcib at pci
file arch/prep/pci/pcib.c pcib
# IBM G10 display on ThinkPad 820
device gten: wsemuldisplaydev, rasops8
attach gten at pci
file arch/prep/pci/gten.c gten needs-flag
#
# ISA and mixed ISA+PCI drivers
#
include "dev/isa/files.isa"
file arch/prep/isa/isa_machdep.c isa
file arch/prep/isa/isadma_machdep.c isa
# ISA Plug 'n Play devices
file arch/prep/isa/isapnp_machdep.c isapnp
#
# clock
#
# mc146818 and compat.
device mcclock: mc146818
attach mcclock at isa with mcclock_isa
file arch/prep/isa/mcclock_isa.c mcclock_isa
# mk48t18 and compat.
device mkclock: mk48txx
attach mkclock at isa with mkclock_isa
file arch/prep/isa/mkclock_isa.c mkclock_isa
include "dev/pckbport/files.pckbport"
# ISA speaker generates keyboard beep
device isabeep
attach isabeep at pcppi
file arch/prep/isa/isabeep.c
# 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
# Floppy disk controller
device fd: disk
attach fd at fdc
# Game adapter (joystick)
file arch/prep/isa/joy_timer.c joy
device paud { }: audiobus, isadma, ad1848, auconv
attach paud at isa with paud_isa
file arch/prep/isa/paud_isa.c paud_isa
# USB drivers
include "dev/usb/files.usb"
# PCMCIA drivers/support
defparam PCIC_ISA_ALLOC_IOBASE
defparam PCIC_ISA_ALLOC_IOSIZE
defparam PCIC_ISA_INTR_ALLOC_MASK
device pcic: pcmciabus
file dev/ic/i82365.c pcic
attach pcic at isa with pcic_isa
file dev/isa/i82365_isa.c pcic_isa
file dev/isa/i82365_isasubr.c pcic_isa
include "dev/pcmcia/files.pcmcia"
# on-board I/O
define obio {[port = -1], [size = 0], [iomem = -1], [iosiz = 0], [irq = -1]}
device obio: obio
attach obio at mainbus
file arch/prep/dev/obio.c obio needs-flag
attach wdc at obio with wdc_obio
file arch/prep/dev/wdc_obio.c wdc_obio needs-flag
include "arch/prep/conf/majors.prep"