1 # $NetBSD: files.prep,v 1.59 2007/12/03 15:34:15 ad Exp $
3 # prep-specific configuration info
9 include "arch/powerpc/pic/files.pic"
10 include "arch/powerpc/pic/files.ipi"
12 defflag opt_residual.h RESIDUAL_DATA_DUMP
13 defflag opt_nvram.h NVRAM_DUMP
16 file arch/prep/prep/ibm_machdep.c
18 file arch/prep/prep/platform.c
20 file arch/prep/prep/autoconf.c
21 file arch/powerpc/powerpc/clock.c
22 file arch/prep/prep/consinit.c
23 file kern/subr_disk_mbr.c disk
24 file arch/powerpc/oea/prep_machdep.c
25 file arch/prep/prep/machdep.c
26 file arch/prep/prep/residual.c
28 file arch/powerpc/powerpc/bus_dma.c
29 file arch/powerpc/powerpc/bus_space.c
30 file arch/powerpc/powerpc/procfs_machdep.c procfs
36 # Machine-independent I2O drivers
38 include "dev/i2o/files.i2o"
41 # Machine-independent SCSI drivers
43 include "dev/scsipi/files.scsipi"
46 # Machine-independent ATA drivers
49 include "dev/ata/files.ata"
52 # Memory Disk for install floppy
54 file dev/md_root.c memory_disk_hooks
60 device mainbus: pcibus, mainbus
61 attach mainbus at root
62 file arch/prep/prep/mainbus.c mainbus
66 file arch/prep/prep/cpu.c cpu
70 # XXX MUST BE INCLUDED BEFORE files.isa, as long as files.isa attaches
71 # XXX devices to 'pci'.
73 include "dev/pci/files.pci"
74 include "dev/pci/files.agp"
75 file arch/prep/pci/pci_machdep.c pci
76 file arch/prep/pci/prep_pciconf_direct.c pci
77 file arch/powerpc/pci/pci_machdep_common.c pci
78 file arch/powerpc/pci/pciconf_indirect.c pci
80 # PCI-Host bridge chipsets
83 file arch/powerpc/pci/pchb.c pchb
88 file arch/powerpc/pci/pcib.c pcib
91 device pceb: eisabus, isabus
93 file arch/prep/pci/pceb.c pceb
95 # IBM G10 display on ThinkPad 820
96 device gten: wsemuldisplaydev, rasops8
98 file arch/prep/pci/gten.c gten needs-flag
101 # ISA and mixed ISA+PCI drivers
104 include "dev/isa/files.isa"
105 file arch/powerpc/isa/isa_machdep_common.c isa
106 file arch/powerpc/isa/isadma_machdep.c isa
108 # ISA Plug 'n Play devices
109 file arch/powerpc/isa/isapnp_machdep.c isapnp
111 include "dev/pckbport/files.pckbport"
113 # ISA speaker generates keyboard beep
115 attach isabeep at pcppi
116 file arch/prep/isa/isabeep.c
118 # Floppy disk controller
119 device fdc { drive = -1 }: isadma
120 file dev/isa/fd.c fdc needs-flag
122 attach fdc at isa with fdc_isa
123 file dev/isa/fdc_isa.c fdc_isa
124 # Floppy disk controller
128 device paud { }: audiobus, isadma, ad1848, auconv
129 attach paud at isa with paud_isa
130 file arch/prep/isa/paud_isa.c paud_isa
136 include "dev/eisa/files.eisa"
137 file arch/prep/eisa/eisa_machdep.c eisa
140 include "dev/usb/files.usb"
142 # PCMCIA drivers/support
143 defparam PCIC_ISA_ALLOC_IOBASE
144 defparam PCIC_ISA_ALLOC_IOSIZE
145 defparam PCIC_ISA_INTR_ALLOC_MASK
147 device pcic: pcmciabus
148 file dev/ic/i82365.c pcic
149 attach pcic at isa with pcic_isa
150 file dev/isa/i82365_isa.c pcic_isa
151 file dev/isa/i82365_isasubr.c pcic_isa
153 include "dev/pcmcia/files.pcmcia"
156 define pnpbus { [index = -1] }
157 device pnpbus : pnpbus
158 attach pnpbus at mainbus
159 file arch/prep/pnpbus/pnpbus.c pnpbus needs-flag
164 # mc146818 and compat.
165 device mcclock: mc146818
166 attach mcclock at pnpbus with mcclock_pnpbus
167 file arch/prep/pnpbus/mcclock_pnpbus.c mcclock & mcclock_pnpbus needs-flag
169 # mk48t18 stub probe XXX MUST OCCUR BEFORE NVRAM
170 device mkclock: mk48txx
171 attach mkclock at pnpbus with mkclock_pnpbus
172 file arch/prep/pnpbus/mkclock_pnpbus.c mkclock & mkclock_pnpbus needs-flag
174 attach wdc at pnpbus with wdc_pnpbus
175 file arch/prep/pnpbus/wdc_pnpbus.c wdc_pnpbus needs-flag
177 attach fdc at pnpbus with fdc_pnpbus: isadma
178 file arch/prep/pnpbus/fdc_pnpbus.c fdc_pnpbus
181 attach nvram at pnpbus with nvram_pnpbus
182 file arch/prep/pnpbus/nvram_pnpbus.c nvram_pnpbus
184 attach we at pnpbus with we_pnpbus
185 file arch/prep/pnpbus/if_we_pnpbus.c we_pnpbus
187 include "arch/prep/conf/majors.prep"