17ca05a76f
2) Modify pnpbus attachment code to record the chipid of the device if it has one. 3) Change the clock probes to use the chipid, rather than relying on potentially untrustworthy subtype and interface. 4) Add decoding of memory ranges to the RESIDUAL_DUMP code. 5) Add a we@pnpbus device to allow netbooting and root device detection from an IBM we ethernet. (it will only work if your firmware detects it) 6) Because I moved the pnpbus probe to occur prior to pci and isa, it screwed up the root device detection and firmware path building code. Completely rewrite the fw-path detection code to deal with this.
189 lines
4.0 KiB
Plaintext
189 lines
4.0 KiB
Plaintext
# $NetBSD: files.prep,v 1.56 2006/06/23 03:08:41 garbled Exp $
|
|
#
|
|
# prep-specific configuration info
|
|
#
|
|
maxpartitions 8
|
|
|
|
maxusers 2 8 64
|
|
|
|
defflag opt_residual.h RESIDUAL_DATA_DUMP
|
|
defflag opt_nvram.h NVRAM_DUMP
|
|
|
|
# IBM quirk functions
|
|
file arch/prep/prep/ibm_machdep.c
|
|
|
|
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 kern/subr_disk_mbr.c disk
|
|
file arch/prep/prep/extintr.c
|
|
file arch/prep/prep/machdep.c
|
|
file arch/prep/prep/residual.c
|
|
|
|
file arch/powerpc/powerpc/bus_dma.c
|
|
file arch/powerpc/powerpc/bus_space.c
|
|
file arch/powerpc/powerpc/procfs_machdep.c procfs
|
|
file arch/powerpc/powerpc/softintr.c
|
|
|
|
# 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
|
|
|
|
# PCI-EISA bridges
|
|
device pceb: eisabus, isabus
|
|
attach pceb at pci
|
|
file arch/prep/pci/pceb.c pceb
|
|
|
|
# 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
|
|
|
|
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
|
|
|
|
device paud { }: audiobus, isadma, ad1848, auconv
|
|
attach paud at isa with paud_isa
|
|
file arch/prep/isa/paud_isa.c paud_isa
|
|
|
|
#
|
|
# EISA-only drivers
|
|
#
|
|
|
|
include "dev/eisa/files.eisa"
|
|
file arch/prep/eisa/eisa_machdep.c eisa
|
|
|
|
# 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 pnpbus { [index = -1] }
|
|
device pnpbus : pnpbus
|
|
attach pnpbus at mainbus
|
|
file arch/prep/pnpbus/pnpbus.c pnpbus needs-flag
|
|
|
|
#
|
|
# clock
|
|
#
|
|
# mc146818 and compat.
|
|
device mcclock: mc146818
|
|
attach mcclock at pnpbus with mcclock_pnpbus
|
|
file arch/prep/pnpbus/mcclock_pnpbus.c mcclock_pnpbus
|
|
|
|
# mk48t18 stub probe XXX MUST OCCUR BEFORE NVRAM
|
|
device mkclock: mk48txx
|
|
attach mkclock at pnpbus with mkclock_pnpbus
|
|
file arch/prep/pnpbus/mkclock_pnpbus.c mkclock_pnpbus
|
|
|
|
attach wdc at pnpbus with wdc_pnpbus
|
|
file arch/prep/pnpbus/wdc_pnpbus.c wdc_pnpbus needs-flag
|
|
|
|
attach fdc at pnpbus with fdc_pnpbus: isadma
|
|
file arch/prep/pnpbus/fdc_pnpbus.c fdc_pnpbus
|
|
|
|
device nvram
|
|
attach nvram at pnpbus with nvram_pnpbus
|
|
file arch/prep/pnpbus/nvram_pnpbus.c nvram_pnpbus
|
|
|
|
attach we at pnpbus with we_pnpbus
|
|
file arch/prep/pnpbus/if_we_pnpbus.c we_pnpbus
|
|
|
|
include "arch/prep/conf/majors.prep"
|