files.macppc revision 1.100
1#	$NetBSD: files.macppc,v 1.100 2013/04/18 16:42:46 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# Generic OpenFirmware device support
69#
70include "dev/ofw/files.ofw"
71
72#
73# Machine-independent I2O drivers
74#
75include "dev/i2o/files.i2o"
76
77#
78# System bus types
79#
80define mainbus {}
81device mainbus: mainbus
82attach mainbus at root
83file arch/macppc/macppc/mainbus.c		mainbus
84
85device cpu: sysmon_envsys
86attach cpu at mainbus
87file arch/macppc/macppc/cpu.c
88
89device memory: iic
90attach memory at mainbus
91file arch/macppc/macppc/memory.c		memory
92
93# ISA stuff
94# we don't need it but some of the shared code needs isa.h
95include "dev/isa/files.isa"
96
97# PCI bus support
98include "dev/pci/files.pci"
99include "dev/pci/files.agp"
100file arch/macppc/pci/pci_machdep.c		pci
101file arch/macppc/pci/agp_machdep.c		agp
102file arch/powerpc/pci/pciconf_indirect.c	pci
103file arch/powerpc/pci/pci_machdep_common.c	pci
104file    arch/powerpc/pci/pci_module.c		pci & modular
105
106device bandit: pcibus, pic_ohare, ipi_hammerhead
107attach bandit at mainbus
108file arch/macppc/pci/bandit.c			bandit
109
110device grackle: pcibus, pic_heathrow
111attach grackle at mainbus
112file arch/macppc/pci/grackle.c			grackle
113
114device uninorth: pcibus, pic_openpic, ipi_openpic, pic_u3_ht
115attach uninorth at mainbus
116file arch/macppc/pci/uninorth.c			uninorth
117
118# pseudo for the UniNorth host controller
119define uni_n {}
120device uni_n: uni_n
121attach uni_n at mainbus
122file arch/macppc/dev/uni-n.c			uni_n
123
124include "dev/usb/files.usb"
125include "dev/bluetooth/files.bluetooth"
126
127device ibmcpc: pcibus, pic_openpic, ipi_openpic, pic_u3_ht
128attach ibmcpc at mainbus
129file arch/macppc/pci/u3.c			ibmcpc
130
131device ofb: wsemuldisplaydev, rasops8, vcons, drm
132attach ofb at pci
133file arch/macppc/dev/ofb.c			ofb needs-flag
134
135# PCI-Host bridge chipsets
136device pchb: agpbus, agp_apple
137attach pchb at pci
138file arch/powerpc/pci/pchb.c			pchb
139
140device gm: ifnet, ether, arp, mii
141attach gm at pci
142file arch/macppc/dev/if_gm.c			gm
143
144attach wdc at pci with kauai: ata_dma, ata_udma
145file arch/macppc/dev/kauai.c			kauai
146
147define obio {}
148device obio: obio
149attach obio at pci
150file arch/macppc/dev/obio.c			obio
151defflag opt_obio.h OBIO_DEBUG OBIO_SPEED_CONTROL
152
153device mediabay: obio
154attach mediabay at obio
155file arch/macppc/dev/mediabay.c			mediabay
156
157attach esp at obio
158file arch/macppc/dev/esp.c			esp
159
160device mesh: scsi
161attach mesh at obio
162file arch/macppc/dev/mesh.c			mesh
163
164device mc: ifnet, ether, arp
165attach mc at obio
166file arch/macppc/dev/if_mc.c			mc
167file arch/macppc/dev/am79c950.c			mc
168
169device bm: ifnet, ether, arp, mii, mii_bitbang
170attach bm at obio
171file arch/macppc/dev/if_bm.c			bm
172
173device zsc {channel = -1}
174attach zsc at obio
175file arch/macppc/dev/zs.c	 		zsc needs-flag
176file dev/ic/z8530sc.c				zsc
177file arch/macppc/dev/zs_kgdb.c			zsc & kgdb
178
179device zstty: tty
180attach zstty at zsc
181file dev/ic/z8530tty.c				zstty needs-flag
182
183include "dev/adb/files.adb"
184
185defflag	opt_cuda.h	CUDA_DEBUG
186device cuda : adb_bus, i2cbus
187attach cuda at obio
188file arch/macppc/dev/cuda.c			cuda needs-flag
189
190define pmu_bus {}
191defflag	opt_pmu.h	PMU_DEBUG
192defflag opt_pmu.h	PMU_VERBOSE
193device pmu : adb_bus, i2cbus, pmu_bus
194attach pmu at obio
195file arch/macppc/dev/pmu.c			pmu needs-flag
196
197device battery : sysmon_envsys, sysmon_power, sysmon_taskq
198attach battery at pmu_bus
199file arch/macppc/dev/battery.c			battery
200defflag opt_battery.h	BATTERY_DEBUG
201
202device smartbat : sysmon_envsys, sysmon_power, sysmon_taskq
203attach smartbat at pmu_bus
204file arch/macppc/dev/smartbat.c			smartbat
205defflag opt_battery.h	SMARTBAT_DEBUG
206
207device adb {} 
208attach adb at obio
209file arch/macppc/dev/adb.c			adb needs-flag
210file arch/macppc/dev/adb_direct.c		adb
211file arch/macppc/dev/pm_direct.c		adb
212
213device apm
214attach apm at adb
215file arch/macppc/dev/apm.c			apm needs-count
216
217device aed
218attach aed at adb
219file arch/macppc/dev/aed.c			aed needs-flag
220
221device akbd: wskbddev
222attach akbd at adb
223file arch/macppc/dev/akbd.c			akbd needs-flag
224
225device ams: wsmousedev
226attach ams at adb
227file arch/macppc/dev/ams.c			ams
228
229device pbms: wsmousedev
230attach pbms at uhidbus
231file arch/macppc/dev/pbms.c			pbms
232
233device abtn
234attach abtn at adb
235file arch/macppc/dev/abtn.c			abtn
236
237device nvram
238attach nvram at obio
239file arch/macppc/dev/nvram.c			nvram needs-flag
240
241attach wdc at obio with wdc_obio: ata_dma, ata_udma
242file arch/macppc/dev/wdc_obio.c			wdc_obio
243
244attach wi at obio with wi_obio
245file arch/macppc/dev/if_wi_obio.c		wi_obio
246
247device awacs: audiobus, auconv, mulaw, aurateconv
248attach awacs at obio
249file arch/macppc/dev/awacs.c			awacs needs-flag
250defflag	opt_awacs.h	AWACS_DEBUG
251
252device macgpio {}
253attach macgpio at obio with gpio_obio
254#attach gpio at macgpio with gpio_gpio
255file arch/macppc/dev/gpio.c			macgpio
256
257device macofcons: tty
258attach macofcons at pci
259file arch/macppc/dev/ofcons.c			macofcons needs-flag
260
261attach  com at mainbus with com_mainbus
262file    arch/macppc/dev/com_mainbus.c               com_mainbus
263
264include "dev/ieee1394/files.ieee1394"
265
266#
267# Machine-independent CardBus drivers
268#
269
270# XXX dev/pcmcia needs fdc
271device fdc {drive = -1}
272
273include "dev/cardbus/files.cardbus"
274include "dev/pcmcia/files.pcmcia"
275
276defflag opt_macppc.h	PB3400_CARDBUS_HACK UMAX_E100_HACK
277
278file arch/macppc/macppc/rbus_machdep.c		cardbus
279
280# Keywest I2C
281define ki2c {}
282device ki2c: i2cbus, ki2c
283attach ki2c at obio, uni_n
284file arch/macppc/dev/ki2c.c			ki2c
285
286# snapper audio
287device snapper: audiobus, auconv, mulaw, aurateconv
288attach snapper at obio
289file arch/macppc/dev/snapper.c			snapper
290
291include "arch/powerpc/conf/majors.powerpc"
292
293attach dbcool at ki2c with dbcool_ki2c
294file arch/macppc/dev/dbcool_ki2c.c		dbcool
295
296define deq {}
297device deq
298attach deq at ki2c
299file arch/macppc/dev/deq.c				deq
300
301device videopll
302attach videopll at iic
303file arch/macppc/dev/videopll.c				videopll needs-flag
304defflag opt_videopll.h VIDEOPLL_DEBUG
305
306device valkyriefb: wsemuldisplaydev, rasops8, vcons, videomode
307attach valkyriefb at mainbus
308file arch/macppc/dev/valkyriefb.c			valkyriefb
309defflag opt_valkyriefb.h VALKYRIEFB_DEBUG
310