files.macppc revision 1.77
1#	$NetBSD: files.macppc,v 1.77 2007/01/17 23:23:08 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
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
65file arch/macppc/pci/pci_machdep.c		pci
66
67device bandit: pcibus
68attach bandit at mainbus
69file arch/macppc/pci/bandit.c			bandit
70
71device grackle: pcibus
72attach grackle at mainbus
73file arch/macppc/pci/grackle.c			grackle
74
75device uninorth: pcibus
76attach uninorth at mainbus
77file arch/macppc/pci/uninorth.c			uninorth
78
79# pseudo for the UniNorth host controller
80define uni_n {}
81device uni_n: uni_n
82attach uni_n at mainbus
83file arch/macppc/dev/uni-n.c			uni_n
84
85include "dev/wscons/files.wscons"
86include "dev/wsfont/files.wsfont"
87include "dev/rasops/files.rasops"
88include "dev/usb/files.usb"
89
90device ibmcpc: pcibus
91attach ibmcpc at mainbus
92file arch/macppc/pci/u3.c			ibmcpc
93
94# PCI bus support
95include "dev/pci/files.pci"
96
97device ofb: wsemuldisplaydev, rasops8, vcons
98attach ofb at pci
99file arch/macppc/dev/ofb.c			ofb needs-flag
100
101# PCI-Host bridge chipsets
102device pchb
103attach pchb at pci
104file arch/macppc/pci/pchb.c			pchb
105
106device gm: ifnet, ether, arp, mii
107attach gm at pci
108file arch/macppc/dev/if_gm.c			gm
109
110attach wdc at pci with kauai: ata_dma, ata_udma
111file arch/macppc/dev/kauai.c			kauai
112
113define obio {}
114device obio: obio
115attach obio at pci
116file arch/macppc/dev/obio.c			obio
117
118device mediabay: obio
119attach mediabay at obio
120file arch/macppc/dev/mediabay.c			mediabay
121
122attach esp at obio
123file arch/macppc/dev/esp.c			esp
124
125device mesh: scsi
126attach mesh at obio
127file arch/macppc/dev/mesh.c			mesh
128
129device mc: ifnet, ether, arp
130attach mc at obio
131file arch/macppc/dev/if_mc.c			mc
132file arch/macppc/dev/am79c950.c			mc
133
134device bm: ifnet, ether, arp, mii, mii_bitbang
135attach bm at obio
136file arch/macppc/dev/if_bm.c			bm
137
138device zsc {channel = -1}
139attach zsc at obio
140file arch/macppc/dev/zs.c	 		zsc needs-flag
141file dev/ic/z8530sc.c				zsc
142file arch/macppc/dev/zs_kgdb.c			zsc & kgdb
143
144device zstty: tty
145attach zstty at zsc
146file dev/ic/z8530tty.c				zstty needs-flag
147
148include "dev/adb/files.adb"
149
150defflag	opt_cuda.h	CUDA_DEBUG
151device cuda : adb_bus, i2cbus
152attach cuda at obio
153file arch/macppc/dev/cuda.c			cuda needs-flag
154
155defflag	opt_pmu.h	PMU_DEBUG
156defflag opt_pmu.h	PMU_VERBOSE
157device pmu : adb_bus, i2cbus
158attach pmu at obio
159file arch/macppc/dev/pmu.c			pmu needs-flag
160
161device adb {}
162attach adb at obio
163file arch/macppc/dev/adb.c			adb needs-flag
164file arch/macppc/dev/adb_direct.c		adb
165file arch/macppc/dev/pm_direct.c		adb
166
167device apm
168attach apm at adb
169file arch/macppc/dev/apm.c			apm needs-count
170
171device aed
172attach aed at adb
173file arch/macppc/dev/aed.c			aed needs-flag
174
175device akbd: wskbddev
176attach akbd at adb
177file arch/macppc/dev/akbd.c			akbd needs-flag
178
179device ams: wsmousedev
180attach ams at adb
181file arch/macppc/dev/ams.c			ams
182
183device pbms: wsmousedev
184attach pbms at uhidbus
185file arch/macppc/dev/pbms.c			pbms
186
187device abtn
188attach abtn at adb
189file arch/macppc/dev/abtn.c			abtn
190
191device nvram
192attach nvram at obio
193file arch/macppc/dev/nvram.c			nvram needs-flag
194
195attach wdc at obio with wdc_obio: ata_dma, ata_udma
196file arch/macppc/dev/wdc_obio.c			wdc_obio
197
198attach wi at obio with wi_obio
199file arch/macppc/dev/if_wi_obio.c		wi_obio
200
201device awacs: audiobus, auconv, mulaw, aurateconv
202attach awacs at obio
203file arch/macppc/dev/awacs.c			awacs
204
205device macgpio {}
206attach macgpio at obio with gpio_obio
207#attach gpio at macgpio with gpio_gpio
208file arch/macppc/dev/gpio.c			macgpio
209
210device macofcons: tty
211attach macofcons at pci
212file arch/macppc/dev/ofcons.c			macofcons needs-flag
213
214attach  com at mainbus with com_mainbus
215file    arch/macppc/dev/com_mainbus.c               com_mainbus
216
217include "dev/ieee1394/files.ieee1394"
218
219#
220# Machine-independent CardBus drivers
221#
222
223# XXX dev/pcmcia needs fdc
224device fdc {drive = -1}
225
226include "dev/cardbus/files.cardbus"
227include "dev/pcmcia/files.pcmcia"
228
229file arch/macppc/macppc/rbus_machdep.c		cardbus
230
231# Keywest I2C
232define ki2c {}
233device ki2c: i2cbus, ki2c
234attach ki2c at obio, uni_n
235file arch/macppc/dev/ki2c.c			ki2c
236
237# snapper audio
238device snapper: audiobus, auconv, mulaw, aurateconv
239attach snapper at obio
240file arch/macppc/dev/snapper.c			snapper
241
242include "arch/macppc/conf/majors.macppc"
243
244attach adt7467c at ki2c with adt7467_ki2c
245file arch/macppc/dev/adt7467_ki2c.c		adt7467c
246
247attach adm1030c at ki2c with adm1030_ki2c
248file arch/macppc/dev/adm1030_ki2c.c		adm1030c
249
250define deq {}
251device deq
252attach deq at ki2c
253file arch/macppc/dev/deq.c				deq
254
255