1#	$NetBSD: files.macppc,v 1.123 2021/09/10 23:32:17 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/macppc/macppc/static_edid.c
22file arch/powerpc/oea/ofw_rascons.c
23file arch/macppc/dev/dbdma.c
24
25# interrupt controllers
26define pic_ohare
27define pic_heathrow
28define pic_u3_ht
29
30defflag opt_interrupt.h PIC_OHARE: pic_ohare
31defflag opt_interrupt.h OHARE_DEBUG
32defflag opt_interrupt.h PIC_HEATHROW: pic_heathrow
33defflag opt_interrupt.h PIC_U3_HT: pic_u3_ht
34
35file arch/macppc/macppc/pic_ohare.c		pic_ohare	needs-flag
36file arch/macppc/macppc/pic_heathrow.c		pic_heathrow	needs-flag
37file arch/macppc/macppc/pic_u3_ht.c		pic_u3_ht	needs-flag
38
39# IPI interface
40define ipi_hammerhead
41defflag opt_ipi.h IPI_HAMMERHEAD: ipi_hammerhead
42file arch/macppc/macppc/ipi_hammerhead.c	ipi_hammerhead	needs-flag
43
44file arch/powerpc/powerpc/bus_dma.c
45file arch/powerpc/powerpc/bus_space.c
46file arch/powerpc/powerpc/procfs_machdep.c	procfs
47file dev/cons.c
48
49#Early serial console for G5 (uses RMCI mode of 970 */
50file arch/macppc/macppc/failsafe.c
51
52#
53# Memory Disk for install floppy
54#
55file dev/md_root.c				memory_disk_hooks
56
57#
58# Machine-independent SCSI drivers
59#
60include "dev/scsipi/files.scsipi"
61
62#
63# Machine-independent ATA drivers
64#
65include "dev/ata/files.ata"
66
67#
68# Machine-independent I2O drivers
69#
70include "dev/i2o/files.i2o"
71
72#
73# System bus types
74#
75define mainbus {}
76device mainbus: mainbus
77attach mainbus at root
78file arch/macppc/macppc/mainbus.c		mainbus
79
80device cpu: sysmon_envsys
81attach cpu at mainbus
82file arch/macppc/macppc/cpu.c
83
84device memory: iic
85attach memory at mainbus
86file arch/macppc/macppc/memory.c		memory
87
88# ISA stuff
89# we don't need it but some of the shared code needs isa.h
90include "dev/isa/files.isa"
91
92# PCI bus support
93include "dev/pci/files.pci"
94include "dev/pci/files.agp"
95file arch/macppc/pci/pci_machdep.c		pci
96file dev/ofw/ofw_pci_subr.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
100file    arch/powerpc/pci/pci_module.c		pci & modular
101
102device bandit: pcibus, pic_ohare, ipi_hammerhead
103attach bandit at mainbus
104file arch/macppc/pci/bandit.c			bandit
105
106device grackle: pcibus, pic_heathrow
107attach grackle at mainbus
108file arch/macppc/pci/grackle.c			grackle
109
110device uninorth: pcibus, pic_openpic, ipi_openpic
111attach uninorth at mainbus
112file arch/macppc/pci/uninorth.c			uninorth
113
114# pseudo for the UniNorth host controller
115define uni_n {}
116device uni_n: uni_n
117attach uni_n at mainbus
118file arch/macppc/dev/uni-n.c			uni_n
119
120include "dev/usb/files.usb"
121include "dev/bluetooth/files.bluetooth"
122
123device ibmcpc: pcibus, pic_openpic, ipi_openpic, pic_u3_ht
124attach ibmcpc at mainbus
125file arch/macppc/pci/u3.c			ibmcpc
126
127device ofb: wsemuldisplaydev, rasops8, vcons, drm
128attach ofb at pci
129file arch/macppc/dev/ofb.c			ofb needs-flag
130
131# PCI-Host bridge chipsets
132device pchb: agpbus
133attach pchb at pci
134file arch/powerpc/pci/pchb.c			pchb
135
136device gm: ifnet, ether, arp, mii
137attach gm at pci
138file arch/macppc/dev/if_gm.c			gm
139
140attach wdc at pci with kauai: ata_dma, ata_udma
141file arch/macppc/dev/kauai.c			kauai
142
143define obio {}
144device obio: obio
145attach obio at pci
146file arch/macppc/dev/obio.c			obio
147defflag opt_obio.h OBIO_DEBUG OBIO_SPEED_CONTROL
148
149device mediabay: obio
150attach mediabay at obio
151file arch/macppc/dev/mediabay.c			mediabay
152
153attach esp at obio
154file arch/macppc/dev/esp.c			esp
155
156device mesh: scsi
157attach mesh at obio
158file arch/macppc/dev/mesh.c			mesh
159
160device mc: ifnet, ether, arp
161attach mc at obio
162file arch/macppc/dev/if_mc.c			mc
163file arch/macppc/dev/am79c950.c			mc
164
165device bm: ifnet, ether, arp, mii, mii_bitbang
166attach bm at obio
167file arch/macppc/dev/if_bm.c			bm
168
169device zsc {channel = -1}
170attach zsc at obio
171file arch/macppc/dev/zs.c	 		zsc needs-flag
172file dev/ic/z8530sc.c				zsc
173file arch/macppc/dev/zs_kgdb.c			zsc & kgdb
174
175device zstty: tty
176attach zstty at zsc
177file dev/ic/z8530tty.c				zstty needs-flag
178
179define fancontrol
180file arch/macppc/dev/fancontrol.c		fancontrol
181defflag	opt_fancontrol.h	FANCONTROL_DEBUG
182
183device smu { } : sysmon_envsys, fancontrol
184attach smu at mainbus
185file arch/macppc/dev/smu.c			smu needs-flag
186defflag	opt_smu.h	SMU_DEBUG
187
188device smuiic: i2cbus
189attach smuiic at smu
190file arch/macppc/dev/smuiic.c			smuiic
191
192device smusat
193attach smusat at iic
194file arch/macppc/dev/smusat.c			smusat
195defflag	opt_smusat.h	SMUSAT_DEBUG
196
197include "dev/adb/files.adb"
198
199defflag	opt_cuda.h	CUDA_DEBUG
200device cuda : adb_bus, i2cbus
201attach cuda at obio
202file arch/macppc/dev/cuda.c			cuda needs-flag
203
204define pmu_bus {}
205defflag	opt_pmu.h	PMU_DEBUG
206defflag opt_pmu.h	PMU_VERBOSE
207device pmu : adb_bus, i2cbus, pmu_bus
208attach pmu at obio
209file arch/macppc/dev/pmu.c			pmu needs-flag
210
211device battery : sysmon_envsys, sysmon_power, sysmon_taskq
212attach battery at pmu_bus
213file arch/macppc/dev/battery.c			battery
214defflag opt_battery.h	BATTERY_DEBUG
215
216device smartbat : sysmon_envsys, sysmon_power, sysmon_taskq
217attach smartbat at pmu_bus
218file arch/macppc/dev/smartbat.c			smartbat
219defflag opt_battery.h	SMARTBAT_DEBUG
220
221device adb {} 
222attach adb at obio
223file arch/macppc/dev/adb.c			adb needs-flag
224file arch/macppc/dev/adb_direct.c		adb
225file arch/macppc/dev/pm_direct.c		adb
226
227device apm
228attach apm at adb
229file arch/macppc/dev/apm.c			apm needs-count
230
231device aed
232attach aed at adb
233file arch/macppc/dev/aed.c			aed needs-flag
234
235device akbd: wskbddev
236attach akbd at adb
237file arch/macppc/dev/akbd.c			akbd needs-flag
238
239device ams: wsmousedev
240attach ams at adb
241file arch/macppc/dev/ams.c			ams
242
243device pbms: wsmousedev
244attach pbms at uhidbus
245file arch/macppc/dev/pbms.c			pbms
246
247device abtn
248attach abtn at adb
249file arch/macppc/dev/abtn.c			abtn
250
251device nvram
252attach nvram at obio
253file arch/macppc/dev/nvram.c			nvram needs-flag
254
255attach wdc at obio with wdc_obio: ata_dma, ata_udma
256file arch/macppc/dev/wdc_obio.c			wdc_obio
257
258attach wi at obio with wi_obio
259file arch/macppc/dev/if_wi_obio.c		wi_obio
260
261device awacs: audiobus
262attach awacs at obio
263file arch/macppc/dev/awacs.c			awacs needs-flag
264defflag	opt_awacs.h	AWACS_DEBUG
265
266device macgpio {}
267attach macgpio at obio with gpio_obio
268#attach gpio at macgpio with gpio_gpio
269file arch/macppc/dev/gpio.c			macgpio
270
271attach  com at mainbus with com_mainbus
272file    arch/macppc/dev/com_mainbus.c               com_mainbus
273
274include "dev/ieee1394/files.ieee1394"
275
276#
277# Machine-independent CardBus drivers
278#
279
280# XXX dev/pcmcia needs fdc
281device fdc {drive = -1}
282
283include "dev/cardbus/files.cardbus"
284include "dev/pcmcia/files.pcmcia"
285
286defflag opt_macppc.h	PB3400_CARDBUS_HACK UMAX_E100_HACK
287
288file arch/macppc/macppc/rbus_machdep.c		cardbus
289
290# Keywest I2C
291device ki2c: i2cbus
292attach ki2c at obio, uni_n
293file arch/macppc/dev/ki2c.c			ki2c
294defflag opt_ki2c.h	KI2C_DEBUG
295
296# snapper audio
297device snapper: audiobus, onewirebus, onewire, onewire_bitbang
298attach snapper at obio
299file arch/macppc/dev/snapper.c			snapper
300defflag opt_snapper.h	SNAPPER_DEBUG
301
302include "arch/powerpc/conf/majors.powerpc"
303
304device deq
305attach deq at iic
306file arch/macppc/dev/deq.c				deq
307
308device videopll
309attach videopll at iic
310file arch/macppc/dev/videopll.c				videopll needs-flag
311defflag opt_videopll.h VIDEOPLL_DEBUG
312
313device valkyriefb: wsemuldisplaydev, rasops8, vcons, videomode
314attach valkyriefb at mainbus
315file arch/macppc/dev/valkyriefb.c			valkyriefb
316defflag opt_valkyriefb.h VALKYRIEFB_DEBUG
317
318device platinumfb: wsemuldisplaydev, rasops8, vcons, videomode
319attach platinumfb at mainbus
320file arch/macppc/dev/platinumfb.c			platinumfb
321
322# 'Psoc' fan controller found in (some?) TiBooks
323device	psoc: sysmon_envsys
324attach	psoc at iic
325file	arch/macppc/dev/psoc.c				psoc
326defflag opt_psoc.h PSOC_DEBUG
327
328# 'lmu-micro' found in late PowerBooks
329device	lmu: sysmon_envsys
330attach	lmu at iic
331file	arch/macppc/dev/lmu.c				lmu
332defflag opt_lmu.h LMU_DEBUG
333
334# Apple Fan Control Unit found in some G5
335device	fcu: sysmon_envsys, fancontrol
336attach	fcu at iic
337file	arch/macppc/dev/fcu.c				fcu	needs-flag
338
339# fan control bits found in obio's space on some G5
340device 	obiofan: sysmon_envsys
341attach 	obiofan at obio
342file 	arch/macppc/dev/obiofan.c			obiofan
343defflag opt_obiofan.h OBIOFAN_DEBUG
344
345