files.macppc revision 1.93
1#	$NetBSD: files.macppc,v 1.93 2008/08/26 16:14:45 macallan Exp $
2#
3# macppc-specific configuration info
4
5# maxpartitions must be first item in files.${ARCH}.newconf
6maxpartitions 16
7
8maxusers 2 8 64
9
10include "arch/powerpc/conf/files.ofw"
11include "arch/powerpc/pic/files.pic"
12include "arch/powerpc/pic/files.ipi"
13
14file arch/powerpc/oea/ofw_autoconf.c
15file arch/powerpc/powerpc/clock.c
16file arch/macppc/macppc/disksubr.c		disk
17file arch/macppc/macppc/interrupts.c
18file arch/powerpc/oea/ofwoea_machdep.c
19file arch/powerpc/oea/ofw_consinit.c
20file arch/macppc/macppc/machdep.c
21file arch/powerpc/oea/ofw_rascons.c
22file arch/macppc/dev/dbdma.c
23
24# interrupt controllers
25define pic_ohare
26define pic_heathrow
27
28defflag opt_interrupt.h PIC_OHARE: pic_ohare
29defflag opt_interrupt.h OHARE_DEBUG
30defflag opt_interrupt.h PIC_HEATHROW: pic_heathrow
31
32file arch/macppc/macppc/pic_ohare.c		pic_ohare	needs-flag
33file arch/macppc/macppc/pic_heathrow.c		pic_heathrow	needs-flag
34
35# IPI interface
36define ipi_hammerhead
37defflag opt_ipi.h IPI_HAMMERHEAD: ipi_hammerhead
38file arch/macppc/macppc/ipi_hammerhead.c	ipi_hammerhead	needs-flag
39
40file arch/powerpc/powerpc/bus_dma.c
41file arch/powerpc/powerpc/bus_space.c
42file arch/powerpc/powerpc/procfs_machdep.c	procfs
43file dev/cons.c
44
45#Early serial console for G5 (uses RMCI mode of 970 */
46file arch/macppc/macppc/failsafe.c
47
48#
49# Memory Disk for install floppy
50#
51file dev/md_root.c				memory_disk_hooks
52
53#
54# Machine-independent SCSI drivers
55#
56include "dev/scsipi/files.scsipi"
57
58#
59# Machine-independent ATA drivers
60#
61include "dev/ata/files.ata"
62
63#
64# Generic OpenFirmware device support
65#
66include "dev/ofw/files.ofw"
67
68#
69# Machine-independent I2O drivers
70#
71include "dev/i2o/files.i2o"
72
73#
74# System bus types
75#
76define mainbus {}
77device mainbus: mainbus
78attach mainbus at root
79file arch/macppc/macppc/mainbus.c		mainbus
80
81device cpu: sysmon_envsys
82attach cpu at mainbus
83file arch/macppc/macppc/cpu.c
84
85device memory: iic
86attach memory at mainbus
87file arch/macppc/macppc/memory.c		memory
88
89# ISA stuff
90# we don't need it but some of the shared code needs isa.h
91include "dev/isa/files.isa"
92
93# PCI bus support
94include "dev/pci/files.pci"
95include "dev/pci/files.agp"
96file arch/macppc/pci/pci_machdep.c		pci
97file arch/macppc/pci/agp_machdep.c		agp
98file arch/powerpc/pci/pciconf_indirect.c	pci
99file arch/powerpc/pci/pci_machdep_common.c	pci
100
101device bandit: pcibus, pic_ohare, ipi_hammerhead
102attach bandit at mainbus
103file arch/macppc/pci/bandit.c			bandit
104
105device grackle: pcibus, pic_heathrow
106attach grackle at mainbus
107file arch/macppc/pci/grackle.c			grackle
108
109device uninorth: pcibus, pic_openpic, ipi_openpic
110attach uninorth at mainbus
111file arch/macppc/pci/uninorth.c			uninorth
112
113# pseudo for the UniNorth host controller
114define uni_n {}
115device uni_n: uni_n
116attach uni_n at mainbus
117file arch/macppc/dev/uni-n.c			uni_n
118
119include "dev/usb/files.usb"
120include "dev/bluetooth/files.bluetooth"
121
122device ibmcpc: pcibus
123attach ibmcpc at mainbus
124file arch/macppc/pci/u3.c			ibmcpc
125
126device ofb: wsemuldisplaydev, rasops8, vcons, drm
127attach ofb at pci
128file arch/macppc/dev/ofb.c			ofb needs-flag
129
130# PCI-Host bridge chipsets
131device pchb: agpbus, agp_apple
132attach pchb at pci
133file arch/powerpc/pci/pchb.c			pchb
134
135device gm: ifnet, ether, arp, mii
136attach gm at pci
137file arch/macppc/dev/if_gm.c			gm
138
139attach wdc at pci with kauai: ata_dma, ata_udma
140file arch/macppc/dev/kauai.c			kauai
141
142define obio {}
143device obio: obio
144attach obio at pci
145file arch/macppc/dev/obio.c			obio
146defflag opt_obio.h OBIO_DEBUG OBIO_SPEED_CONTROL
147
148device mediabay: obio
149attach mediabay at obio
150file arch/macppc/dev/mediabay.c			mediabay
151
152attach esp at obio
153file arch/macppc/dev/esp.c			esp
154
155device mesh: scsi
156attach mesh at obio
157file arch/macppc/dev/mesh.c			mesh
158
159device mc: ifnet, ether, arp
160attach mc at obio
161file arch/macppc/dev/if_mc.c			mc
162file arch/macppc/dev/am79c950.c			mc
163
164device bm: ifnet, ether, arp, mii, mii_bitbang
165attach bm at obio
166file arch/macppc/dev/if_bm.c			bm
167
168device zsc {channel = -1}
169attach zsc at obio
170file arch/macppc/dev/zs.c	 		zsc needs-flag
171file dev/ic/z8530sc.c				zsc
172file arch/macppc/dev/zs_kgdb.c			zsc & kgdb
173
174device zstty: tty
175attach zstty at zsc
176file dev/ic/z8530tty.c				zstty needs-flag
177
178include "dev/adb/files.adb"
179
180defflag	opt_cuda.h	CUDA_DEBUG
181device cuda : adb_bus, i2cbus
182attach cuda at obio
183file arch/macppc/dev/cuda.c			cuda needs-flag
184
185define pmu_bus {}
186defflag	opt_pmu.h	PMU_DEBUG
187defflag opt_pmu.h	PMU_VERBOSE
188device pmu : adb_bus, i2cbus, pmu_bus
189attach pmu at obio
190file arch/macppc/dev/pmu.c			pmu needs-flag
191
192device battery : sysmon_envsys, sysmon_power, sysmon_taskq
193attach battery at pmu_bus
194file arch/macppc/dev/battery.c			battery
195defflag opt_battery.h	BATTERY_DEBUG
196
197device smartbat : sysmon_envsys, sysmon_power, sysmon_taskq
198attach smartbat at pmu_bus
199file arch/macppc/dev/smartbat.c			smartbat
200defflag opt_battery.h	SMARTBAT_DEBUG
201
202device adb {} 
203attach adb at obio
204file arch/macppc/dev/adb.c			adb needs-flag
205file arch/macppc/dev/adb_direct.c		adb
206file arch/macppc/dev/pm_direct.c		adb
207
208device apm
209attach apm at adb
210file arch/macppc/dev/apm.c			apm needs-count
211
212device aed
213attach aed at adb
214file arch/macppc/dev/aed.c			aed needs-flag
215
216device akbd: wskbddev
217attach akbd at adb
218file arch/macppc/dev/akbd.c			akbd needs-flag
219
220device ams: wsmousedev
221attach ams at adb
222file arch/macppc/dev/ams.c			ams
223
224device pbms: wsmousedev
225attach pbms at uhidbus
226file arch/macppc/dev/pbms.c			pbms
227
228device abtn
229attach abtn at adb
230file arch/macppc/dev/abtn.c			abtn
231
232device nvram
233attach nvram at obio
234file arch/macppc/dev/nvram.c			nvram needs-flag
235
236attach wdc at obio with wdc_obio: ata_dma, ata_udma
237file arch/macppc/dev/wdc_obio.c			wdc_obio
238
239attach wi at obio with wi_obio
240file arch/macppc/dev/if_wi_obio.c		wi_obio
241
242device awacs: audiobus, auconv, mulaw, aurateconv
243attach awacs at obio
244file arch/macppc/dev/awacs.c			awacs needs-flag
245defflag	opt_awacs.h	AWACS_DEBUG
246
247device macgpio {}
248attach macgpio at obio with gpio_obio
249#attach gpio at macgpio with gpio_gpio
250file arch/macppc/dev/gpio.c			macgpio
251
252device macofcons: tty
253attach macofcons at pci
254file arch/macppc/dev/ofcons.c			macofcons needs-flag
255
256attach  com at mainbus with com_mainbus
257file    arch/macppc/dev/com_mainbus.c               com_mainbus
258
259include "dev/ieee1394/files.ieee1394"
260
261#
262# Machine-independent CardBus drivers
263#
264
265# XXX dev/pcmcia needs fdc
266device fdc {drive = -1}
267
268include "dev/cardbus/files.cardbus"
269include "dev/pcmcia/files.pcmcia"
270
271defflag opt_macppc.h	PB3400_CARDBUS_HACK UMAX_E100_HACK
272
273file arch/macppc/macppc/rbus_machdep.c		cardbus
274
275# Keywest I2C
276define ki2c {}
277device ki2c: i2cbus, ki2c
278attach ki2c at obio, uni_n
279file arch/macppc/dev/ki2c.c			ki2c
280
281# snapper audio
282device snapper: audiobus, auconv, mulaw, aurateconv
283attach snapper at obio
284file arch/macppc/dev/snapper.c			snapper
285
286include "arch/powerpc/conf/majors.powerpc"
287
288attach adt7467c at ki2c with adt7467_ki2c
289file arch/macppc/dev/adt7467_ki2c.c		adt7467c
290
291attach adm1030c at ki2c with adm1030_ki2c
292file arch/macppc/dev/adm1030_ki2c.c		adm1030c
293
294define deq {}
295device deq
296attach deq at ki2c
297file arch/macppc/dev/deq.c				deq
298
299