files.macppc revision 1.108
1#	$NetBSD: files.macppc,v 1.108 2018/03/04 15:51:15 christos 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 arch/macppc/pci/agp_machdep.c		agp
97file arch/powerpc/pci/pciconf_indirect.c	pci
98file arch/powerpc/pci/pci_machdep_common.c	pci
99file    arch/powerpc/pci/pci_module.c		pci & modular
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, pic_u3_ht
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, pic_openpic, ipi_openpic, pic_u3_ht
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
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
178define smu {}
179device smu: smu, obio
180attach smu at mainbus
181file arch/macppc/dev/smu.c			smu needs-flag
182defflag	opt_smu.h	SMU_DEBUG
183
184define smuiic {}
185device smuiic: smuiic, i2cbus
186attach smuiic at smu
187file arch/macppc/dev/smuiic.c			smuiic
188
189device smusat
190attach smusat at smuiic
191file arch/macppc/dev/smusat.c			smusat
192defflag	opt_smusat.h	SMUSAT_DEBUG
193
194include "dev/adb/files.adb"
195
196defflag	opt_cuda.h	CUDA_DEBUG
197device cuda : adb_bus, i2cbus
198attach cuda at obio
199file arch/macppc/dev/cuda.c			cuda needs-flag
200
201define pmu_bus {}
202defflag	opt_pmu.h	PMU_DEBUG
203defflag opt_pmu.h	PMU_VERBOSE
204device pmu : adb_bus, i2cbus, pmu_bus
205attach pmu at obio
206file arch/macppc/dev/pmu.c			pmu needs-flag
207
208device battery : sysmon_envsys, sysmon_power, sysmon_taskq
209attach battery at pmu_bus
210file arch/macppc/dev/battery.c			battery
211defflag opt_battery.h	BATTERY_DEBUG
212
213device smartbat : sysmon_envsys, sysmon_power, sysmon_taskq
214attach smartbat at pmu_bus
215file arch/macppc/dev/smartbat.c			smartbat
216defflag opt_battery.h	SMARTBAT_DEBUG
217
218device adb {} 
219attach adb at obio
220file arch/macppc/dev/adb.c			adb needs-flag
221file arch/macppc/dev/adb_direct.c		adb
222file arch/macppc/dev/pm_direct.c		adb
223
224device apm
225attach apm at adb
226file arch/macppc/dev/apm.c			apm needs-count
227
228device aed
229attach aed at adb
230file arch/macppc/dev/aed.c			aed needs-flag
231
232device akbd: wskbddev
233attach akbd at adb
234file arch/macppc/dev/akbd.c			akbd needs-flag
235
236device ams: wsmousedev
237attach ams at adb
238file arch/macppc/dev/ams.c			ams
239
240device pbms: wsmousedev
241attach pbms at uhidbus
242file arch/macppc/dev/pbms.c			pbms
243
244device abtn
245attach abtn at adb
246file arch/macppc/dev/abtn.c			abtn
247
248device nvram
249attach nvram at obio
250file arch/macppc/dev/nvram.c			nvram needs-flag
251
252attach wdc at obio with wdc_obio: ata_dma, ata_udma
253file arch/macppc/dev/wdc_obio.c			wdc_obio
254
255attach wi at obio with wi_obio
256file arch/macppc/dev/if_wi_obio.c		wi_obio
257
258device awacs: audiobus, auconv, mulaw, aurateconv
259attach awacs at obio
260file arch/macppc/dev/awacs.c			awacs needs-flag
261defflag	opt_awacs.h	AWACS_DEBUG
262
263device macgpio {}
264attach macgpio at obio with gpio_obio
265#attach gpio at macgpio with gpio_gpio
266file arch/macppc/dev/gpio.c			macgpio
267
268attach  com at mainbus with com_mainbus
269file    arch/macppc/dev/com_mainbus.c               com_mainbus
270
271include "dev/ieee1394/files.ieee1394"
272
273#
274# Machine-independent CardBus drivers
275#
276
277# XXX dev/pcmcia needs fdc
278device fdc {drive = -1}
279
280include "dev/cardbus/files.cardbus"
281include "dev/pcmcia/files.pcmcia"
282
283defflag opt_macppc.h	PB3400_CARDBUS_HACK UMAX_E100_HACK
284
285file arch/macppc/macppc/rbus_machdep.c		cardbus
286
287# Keywest I2C
288device ki2c: i2cbus, ki2c
289attach ki2c at obio, uni_n
290file arch/macppc/dev/ki2c.c			ki2c
291
292# snapper audio
293device snapper: audiobus, auconv, mulaw, aurateconv
294attach snapper at obio
295file arch/macppc/dev/snapper.c			snapper
296
297include "arch/powerpc/conf/majors.powerpc"
298
299device deq
300attach deq at iic
301file arch/macppc/dev/deq.c				deq
302
303device videopll
304attach videopll at iic
305file arch/macppc/dev/videopll.c				videopll needs-flag
306defflag opt_videopll.h VIDEOPLL_DEBUG
307
308device valkyriefb: wsemuldisplaydev, rasops8, vcons, videomode
309attach valkyriefb at mainbus
310file arch/macppc/dev/valkyriefb.c			valkyriefb
311defflag opt_valkyriefb.h VALKYRIEFB_DEBUG
312
313device platinumfb: wsemuldisplaydev, rasops8, vcons, videomode
314attach platinumfb at mainbus
315file arch/macppc/dev/platinumfb.c			platinumfb
316