files.macppc revision 1.78
1#	$NetBSD: files.macppc,v 1.78 2007/02/10 19:10:24 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"
11
12file arch/macppc/macppc/autoconf.c
13file arch/macppc/macppc/bus_dma.c
14file arch/macppc/macppc/clock.c
15file arch/macppc/macppc/disksubr.c		disk
16file arch/macppc/macppc/extintr.c
17file arch/macppc/macppc/machdep.c
18file arch/macppc/dev/ofb_cons.c
19file arch/macppc/dev/dbdma.c
20
21file arch/powerpc/powerpc/procfs_machdep.c	procfs
22file arch/powerpc/powerpc/softintr.c
23file dev/cons.c
24
25defflag opt_macppc.h	PB3400_CARDBUS_HACK UMAX_E100_HACK
26
27#Early serial console for G5 (uses RMCI mode of 970 */
28file arch/macppc/macppc/failsafe.c
29
30#
31# Memory Disk for install floppy
32#
33file dev/md_root.c				memory_disk_hooks
34
35#
36# Machine-independent SCSI drivers
37#
38include "dev/scsipi/files.scsipi"
39
40#
41# Machine-independent ATA drivers
42#
43include "dev/ata/files.ata"
44
45#
46# Generic OpenFirmware device support
47#
48include "dev/ofw/files.ofw"
49
50#
51# Machine-independent I2O drivers
52#
53include "dev/i2o/files.i2o"
54
55#
56# System bus types
57#
58define mainbus {}
59device mainbus: mainbus
60attach mainbus at root
61file arch/macppc/macppc/mainbus.c		mainbus
62
63device cpu: sysmon_envsys
64attach cpu at mainbus
65file arch/macppc/macppc/cpu.c
66
67file arch/macppc/pci/pci_machdep.c		pci
68
69device bandit: pcibus
70attach bandit at mainbus
71file arch/macppc/pci/bandit.c			bandit
72
73device grackle: pcibus
74attach grackle at mainbus
75file arch/macppc/pci/grackle.c			grackle
76
77device uninorth: pcibus
78attach uninorth at mainbus
79file arch/macppc/pci/uninorth.c			uninorth
80
81# pseudo for the UniNorth host controller
82define uni_n {}
83device uni_n: uni_n
84attach uni_n at mainbus
85file arch/macppc/dev/uni-n.c			uni_n
86
87include "dev/wscons/files.wscons"
88include "dev/wsfont/files.wsfont"
89include "dev/rasops/files.rasops"
90include "dev/usb/files.usb"
91
92device ibmcpc: pcibus
93attach ibmcpc at mainbus
94file arch/macppc/pci/u3.c			ibmcpc
95
96# PCI bus support
97include "dev/pci/files.pci"
98
99device ofb: wsemuldisplaydev, rasops8, vcons
100attach ofb at pci
101file arch/macppc/dev/ofb.c			ofb needs-flag
102
103# PCI-Host bridge chipsets
104device pchb
105attach pchb at pci
106file arch/macppc/pci/pchb.c			pchb
107
108device gm: ifnet, ether, arp, mii
109attach gm at pci
110file arch/macppc/dev/if_gm.c			gm
111
112attach wdc at pci with kauai: ata_dma, ata_udma
113file arch/macppc/dev/kauai.c			kauai
114
115define obio {}
116device obio: obio
117attach obio at pci
118file arch/macppc/dev/obio.c			obio
119
120device mediabay: obio
121attach mediabay at obio
122file arch/macppc/dev/mediabay.c			mediabay
123
124attach esp at obio
125file arch/macppc/dev/esp.c			esp
126
127device mesh: scsi
128attach mesh at obio
129file arch/macppc/dev/mesh.c			mesh
130
131device mc: ifnet, ether, arp
132attach mc at obio
133file arch/macppc/dev/if_mc.c			mc
134file arch/macppc/dev/am79c950.c			mc
135
136device bm: ifnet, ether, arp, mii, mii_bitbang
137attach bm at obio
138file arch/macppc/dev/if_bm.c			bm
139
140device zsc {channel = -1}
141attach zsc at obio
142file arch/macppc/dev/zs.c	 		zsc needs-flag
143file dev/ic/z8530sc.c				zsc
144file arch/macppc/dev/zs_kgdb.c			zsc & kgdb
145
146device zstty: tty
147attach zstty at zsc
148file dev/ic/z8530tty.c				zstty needs-flag
149
150include "dev/adb/files.adb"
151
152defflag	opt_cuda.h	CUDA_DEBUG
153device cuda : adb_bus, i2cbus
154attach cuda at obio
155file arch/macppc/dev/cuda.c			cuda needs-flag
156
157defflag	opt_pmu.h	PMU_DEBUG
158defflag opt_pmu.h	PMU_VERBOSE
159device pmu : adb_bus, i2cbus
160attach pmu at obio
161file arch/macppc/dev/pmu.c			pmu needs-flag
162
163device adb {}
164attach adb at obio
165file arch/macppc/dev/adb.c			adb needs-flag
166file arch/macppc/dev/adb_direct.c		adb
167file arch/macppc/dev/pm_direct.c		adb
168
169device apm
170attach apm at adb
171file arch/macppc/dev/apm.c			apm needs-count
172
173device aed
174attach aed at adb
175file arch/macppc/dev/aed.c			aed needs-flag
176
177device akbd: wskbddev
178attach akbd at adb
179file arch/macppc/dev/akbd.c			akbd needs-flag
180
181device ams: wsmousedev
182attach ams at adb
183file arch/macppc/dev/ams.c			ams
184
185device pbms: wsmousedev
186attach pbms at uhidbus
187file arch/macppc/dev/pbms.c			pbms
188
189device abtn
190attach abtn at adb
191file arch/macppc/dev/abtn.c			abtn
192
193device nvram
194attach nvram at obio
195file arch/macppc/dev/nvram.c			nvram needs-flag
196
197attach wdc at obio with wdc_obio: ata_dma, ata_udma
198file arch/macppc/dev/wdc_obio.c			wdc_obio
199
200attach wi at obio with wi_obio
201file arch/macppc/dev/if_wi_obio.c		wi_obio
202
203device awacs: audiobus, auconv, mulaw, aurateconv
204attach awacs at obio
205file arch/macppc/dev/awacs.c			awacs
206
207device macgpio {}
208attach macgpio at obio with gpio_obio
209#attach gpio at macgpio with gpio_gpio
210file arch/macppc/dev/gpio.c			macgpio
211
212device macofcons: tty
213attach macofcons at pci
214file arch/macppc/dev/ofcons.c			macofcons needs-flag
215
216attach  com at mainbus with com_mainbus
217file    arch/macppc/dev/com_mainbus.c               com_mainbus
218
219include "dev/ieee1394/files.ieee1394"
220
221#
222# Machine-independent CardBus drivers
223#
224
225# XXX dev/pcmcia needs fdc
226device fdc {drive = -1}
227
228include "dev/cardbus/files.cardbus"
229include "dev/pcmcia/files.pcmcia"
230
231file arch/macppc/macppc/rbus_machdep.c		cardbus
232
233# Keywest I2C
234define ki2c {}
235device ki2c: i2cbus, ki2c
236attach ki2c at obio, uni_n
237file arch/macppc/dev/ki2c.c			ki2c
238
239# snapper audio
240device snapper: audiobus, auconv, mulaw, aurateconv
241attach snapper at obio
242file arch/macppc/dev/snapper.c			snapper
243
244include "arch/macppc/conf/majors.macppc"
245
246attach adt7467c at ki2c with adt7467_ki2c
247file arch/macppc/dev/adt7467_ki2c.c		adt7467c
248
249attach adm1030c at ki2c with adm1030_ki2c
250file arch/macppc/dev/adm1030_ki2c.c		adm1030c
251
252define deq {}
253device deq
254attach deq at ki2c
255file arch/macppc/dev/deq.c				deq
256
257