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