1 # $NetBSD: files.macppc,v 1.95 2008/10/02 00:55:43 pgoyette Exp $
3 # macppc-specific configuration info
5 # maxpartitions must be first item in files.${ARCH}.newconf
10 include "arch/powerpc/conf/files.ofw"
11 include "arch/powerpc/pic/files.pic"
12 include "arch/powerpc/pic/files.ipi"
14 file arch/powerpc/oea/ofw_autoconf.c
15 file arch/powerpc/powerpc/clock.c
16 file arch/macppc/macppc/disksubr.c disk
17 file arch/macppc/macppc/interrupts.c
18 file arch/powerpc/oea/ofwoea_machdep.c
19 file arch/powerpc/oea/ofw_consinit.c
20 file arch/macppc/macppc/machdep.c
21 file arch/powerpc/oea/ofw_rascons.c
22 file arch/macppc/dev/dbdma.c
24 # interrupt controllers
28 defflag opt_interrupt.h PIC_OHARE: pic_ohare
29 defflag opt_interrupt.h OHARE_DEBUG
30 defflag opt_interrupt.h PIC_HEATHROW: pic_heathrow
32 file arch/macppc/macppc/pic_ohare.c pic_ohare needs-flag
33 file arch/macppc/macppc/pic_heathrow.c pic_heathrow needs-flag
37 defflag opt_ipi.h IPI_HAMMERHEAD: ipi_hammerhead
38 file arch/macppc/macppc/ipi_hammerhead.c ipi_hammerhead needs-flag
40 file arch/powerpc/powerpc/bus_dma.c
41 file arch/powerpc/powerpc/bus_space.c
42 file arch/powerpc/powerpc/procfs_machdep.c procfs
45 #Early serial console for G5 (uses RMCI mode of 970 */
46 file arch/macppc/macppc/failsafe.c
49 # Memory Disk for install floppy
51 file dev/md_root.c memory_disk_hooks
54 # Machine-independent SCSI drivers
56 include "dev/scsipi/files.scsipi"
59 # Machine-independent ATA drivers
61 include "dev/ata/files.ata"
64 # Generic OpenFirmware device support
66 include "dev/ofw/files.ofw"
69 # Machine-independent I2O drivers
71 include "dev/i2o/files.i2o"
77 device mainbus: mainbus
78 attach mainbus at root
79 file arch/macppc/macppc/mainbus.c mainbus
81 device cpu: sysmon_envsys
83 file arch/macppc/macppc/cpu.c
86 attach memory at mainbus
87 file arch/macppc/macppc/memory.c memory
90 # we don't need it but some of the shared code needs isa.h
91 include "dev/isa/files.isa"
94 include "dev/pci/files.pci"
95 include "dev/pci/files.agp"
96 file arch/macppc/pci/pci_machdep.c pci
97 file arch/macppc/pci/agp_machdep.c agp
98 file arch/powerpc/pci/pciconf_indirect.c pci
99 file arch/powerpc/pci/pci_machdep_common.c pci
101 device bandit: pcibus, pic_ohare, ipi_hammerhead
102 attach bandit at mainbus
103 file arch/macppc/pci/bandit.c bandit
105 device grackle: pcibus, pic_heathrow
106 attach grackle at mainbus
107 file arch/macppc/pci/grackle.c grackle
109 device uninorth: pcibus, pic_openpic, ipi_openpic
110 attach uninorth at mainbus
111 file arch/macppc/pci/uninorth.c uninorth
113 # pseudo for the UniNorth host controller
116 attach uni_n at mainbus
117 file arch/macppc/dev/uni-n.c uni_n
119 include "dev/usb/files.usb"
120 include "dev/bluetooth/files.bluetooth"
122 device ibmcpc: pcibus, pic_openpic, ipi_openpic
123 attach ibmcpc at mainbus
124 file arch/macppc/pci/u3.c ibmcpc
126 device ofb: wsemuldisplaydev, rasops8, vcons, drm
128 file arch/macppc/dev/ofb.c ofb needs-flag
130 # PCI-Host bridge chipsets
131 device pchb: agpbus, agp_apple
133 file arch/powerpc/pci/pchb.c pchb
135 device gm: ifnet, ether, arp, mii
137 file arch/macppc/dev/if_gm.c gm
139 attach wdc at pci with kauai: ata_dma, ata_udma
140 file arch/macppc/dev/kauai.c kauai
145 file arch/macppc/dev/obio.c obio
146 defflag opt_obio.h OBIO_DEBUG OBIO_SPEED_CONTROL
148 device mediabay: obio
149 attach mediabay at obio
150 file arch/macppc/dev/mediabay.c mediabay
153 file arch/macppc/dev/esp.c esp
157 file arch/macppc/dev/mesh.c mesh
159 device mc: ifnet, ether, arp
161 file arch/macppc/dev/if_mc.c mc
162 file arch/macppc/dev/am79c950.c mc
164 device bm: ifnet, ether, arp, mii, mii_bitbang
166 file arch/macppc/dev/if_bm.c bm
168 device zsc {channel = -1}
170 file arch/macppc/dev/zs.c zsc needs-flag
171 file dev/ic/z8530sc.c zsc
172 file arch/macppc/dev/zs_kgdb.c zsc & kgdb
176 file dev/ic/z8530tty.c zstty needs-flag
178 include "dev/adb/files.adb"
180 defflag opt_cuda.h CUDA_DEBUG
181 device cuda : adb_bus, i2cbus
183 file arch/macppc/dev/cuda.c cuda needs-flag
186 defflag opt_pmu.h PMU_DEBUG
187 defflag opt_pmu.h PMU_VERBOSE
188 device pmu : adb_bus, i2cbus, pmu_bus
190 file arch/macppc/dev/pmu.c pmu needs-flag
192 device battery : sysmon_envsys, sysmon_power, sysmon_taskq
193 attach battery at pmu_bus
194 file arch/macppc/dev/battery.c battery
195 defflag opt_battery.h BATTERY_DEBUG
197 device smartbat : sysmon_envsys, sysmon_power, sysmon_taskq
198 attach smartbat at pmu_bus
199 file arch/macppc/dev/smartbat.c smartbat
200 defflag opt_battery.h SMARTBAT_DEBUG
204 file arch/macppc/dev/adb.c adb needs-flag
205 file arch/macppc/dev/adb_direct.c adb
206 file arch/macppc/dev/pm_direct.c adb
210 file arch/macppc/dev/apm.c apm needs-count
214 file arch/macppc/dev/aed.c aed needs-flag
216 device akbd: wskbddev
218 file arch/macppc/dev/akbd.c akbd needs-flag
220 device ams: wsmousedev
222 file arch/macppc/dev/ams.c ams
224 device pbms: wsmousedev
225 attach pbms at uhidbus
226 file arch/macppc/dev/pbms.c pbms
230 file arch/macppc/dev/abtn.c abtn
234 file arch/macppc/dev/nvram.c nvram needs-flag
236 attach wdc at obio with wdc_obio: ata_dma, ata_udma
237 file arch/macppc/dev/wdc_obio.c wdc_obio
239 attach wi at obio with wi_obio
240 file arch/macppc/dev/if_wi_obio.c wi_obio
242 device awacs: audiobus, auconv, mulaw, aurateconv
244 file arch/macppc/dev/awacs.c awacs needs-flag
245 defflag opt_awacs.h AWACS_DEBUG
248 attach macgpio at obio with gpio_obio
249 #attach gpio at macgpio with gpio_gpio
250 file arch/macppc/dev/gpio.c macgpio
252 device macofcons: tty
253 attach macofcons at pci
254 file arch/macppc/dev/ofcons.c macofcons needs-flag
256 attach com at mainbus with com_mainbus
257 file arch/macppc/dev/com_mainbus.c com_mainbus
259 include "dev/ieee1394/files.ieee1394"
262 # Machine-independent CardBus drivers
265 # XXX dev/pcmcia needs fdc
266 device fdc {drive = -1}
268 include "dev/cardbus/files.cardbus"
269 include "dev/pcmcia/files.pcmcia"
271 defflag opt_macppc.h PB3400_CARDBUS_HACK UMAX_E100_HACK
273 file arch/macppc/macppc/rbus_machdep.c cardbus
277 device ki2c: i2cbus, ki2c
278 attach ki2c at obio, uni_n
279 file arch/macppc/dev/ki2c.c ki2c
282 device snapper: audiobus, auconv, mulaw, aurateconv
283 attach snapper at obio
284 file arch/macppc/dev/snapper.c snapper
286 include "arch/powerpc/conf/majors.powerpc"
288 attach dbcool at ki2c with dbcool_ki2c
289 file arch/macppc/dev/dbcool_ki2c.c dbcool
294 file arch/macppc/dev/deq.c deq