1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
|
# $NetBSD: files.macppc,v 1.123 2021/09/10 23:32:17 macallan Exp $
#
# macppc-specific configuration info
# maxpartitions must be first item in files.${ARCH}.newconf
maxpartitions 16
maxusers 2 8 64
include "arch/powerpc/conf/files.ofw"
include "arch/powerpc/pic/files.pic"
include "arch/powerpc/pic/files.ipi"
file arch/powerpc/oea/ofw_autoconf.c
file arch/powerpc/powerpc/clock.c
file arch/macppc/macppc/disksubr.c disk
file arch/macppc/macppc/interrupts.c
file arch/powerpc/oea/ofwoea_machdep.c
file arch/powerpc/oea/ofw_consinit.c
file arch/macppc/macppc/machdep.c
file arch/macppc/macppc/static_edid.c
file arch/powerpc/oea/ofw_rascons.c
file arch/macppc/dev/dbdma.c
# interrupt controllers
define pic_ohare
define pic_heathrow
define pic_u3_ht
defflag opt_interrupt.h PIC_OHARE: pic_ohare
defflag opt_interrupt.h OHARE_DEBUG
defflag opt_interrupt.h PIC_HEATHROW: pic_heathrow
defflag opt_interrupt.h PIC_U3_HT: pic_u3_ht
file arch/macppc/macppc/pic_ohare.c pic_ohare needs-flag
file arch/macppc/macppc/pic_heathrow.c pic_heathrow needs-flag
file arch/macppc/macppc/pic_u3_ht.c pic_u3_ht needs-flag
# IPI interface
define ipi_hammerhead
defflag opt_ipi.h IPI_HAMMERHEAD: ipi_hammerhead
file arch/macppc/macppc/ipi_hammerhead.c ipi_hammerhead needs-flag
file arch/powerpc/powerpc/bus_dma.c
file arch/powerpc/powerpc/bus_space.c
file arch/powerpc/powerpc/procfs_machdep.c procfs
file dev/cons.c
#Early serial console for G5 (uses RMCI mode of 970 */
file arch/macppc/macppc/failsafe.c
#
# Memory Disk for install floppy
#
file dev/md_root.c memory_disk_hooks
#
# Machine-independent SCSI drivers
#
include "dev/scsipi/files.scsipi"
#
# Machine-independent ATA drivers
#
include "dev/ata/files.ata"
#
# Machine-independent I2O drivers
#
include "dev/i2o/files.i2o"
#
# System bus types
#
define mainbus {}
device mainbus: mainbus
attach mainbus at root
file arch/macppc/macppc/mainbus.c mainbus
device cpu: sysmon_envsys
attach cpu at mainbus
file arch/macppc/macppc/cpu.c
device memory: iic
attach memory at mainbus
file arch/macppc/macppc/memory.c memory
# ISA stuff
# we don't need it but some of the shared code needs isa.h
include "dev/isa/files.isa"
# PCI bus support
include "dev/pci/files.pci"
include "dev/pci/files.agp"
file arch/macppc/pci/pci_machdep.c pci
file dev/ofw/ofw_pci_subr.c pci
file arch/macppc/pci/agp_machdep.c agp
file arch/powerpc/pci/pciconf_indirect.c pci
file arch/powerpc/pci/pci_machdep_common.c pci
file arch/powerpc/pci/pci_module.c pci & modular
device bandit: pcibus, pic_ohare, ipi_hammerhead
attach bandit at mainbus
file arch/macppc/pci/bandit.c bandit
device grackle: pcibus, pic_heathrow
attach grackle at mainbus
file arch/macppc/pci/grackle.c grackle
device uninorth: pcibus, pic_openpic, ipi_openpic
attach uninorth at mainbus
file arch/macppc/pci/uninorth.c uninorth
# pseudo for the UniNorth host controller
define uni_n {}
device uni_n: uni_n
attach uni_n at mainbus
file arch/macppc/dev/uni-n.c uni_n
include "dev/usb/files.usb"
include "dev/bluetooth/files.bluetooth"
device ibmcpc: pcibus, pic_openpic, ipi_openpic, pic_u3_ht
attach ibmcpc at mainbus
file arch/macppc/pci/u3.c ibmcpc
device ofb: wsemuldisplaydev, rasops8, vcons, drm
attach ofb at pci
file arch/macppc/dev/ofb.c ofb needs-flag
# PCI-Host bridge chipsets
device pchb: agpbus
attach pchb at pci
file arch/powerpc/pci/pchb.c pchb
device gm: ifnet, ether, arp, mii
attach gm at pci
file arch/macppc/dev/if_gm.c gm
attach wdc at pci with kauai: ata_dma, ata_udma
file arch/macppc/dev/kauai.c kauai
define obio {}
device obio: obio
attach obio at pci
file arch/macppc/dev/obio.c obio
defflag opt_obio.h OBIO_DEBUG OBIO_SPEED_CONTROL
device mediabay: obio
attach mediabay at obio
file arch/macppc/dev/mediabay.c mediabay
attach esp at obio
file arch/macppc/dev/esp.c esp
device mesh: scsi
attach mesh at obio
file arch/macppc/dev/mesh.c mesh
device mc: ifnet, ether, arp
attach mc at obio
file arch/macppc/dev/if_mc.c mc
file arch/macppc/dev/am79c950.c mc
device bm: ifnet, ether, arp, mii, mii_bitbang
attach bm at obio
file arch/macppc/dev/if_bm.c bm
device zsc {channel = -1}
attach zsc at obio
file arch/macppc/dev/zs.c zsc needs-flag
file dev/ic/z8530sc.c zsc
file arch/macppc/dev/zs_kgdb.c zsc & kgdb
device zstty: tty
attach zstty at zsc
file dev/ic/z8530tty.c zstty needs-flag
define fancontrol
file arch/macppc/dev/fancontrol.c fancontrol
defflag opt_fancontrol.h FANCONTROL_DEBUG
device smu { } : sysmon_envsys, fancontrol
attach smu at mainbus
file arch/macppc/dev/smu.c smu needs-flag
defflag opt_smu.h SMU_DEBUG
device smuiic: i2cbus
attach smuiic at smu
file arch/macppc/dev/smuiic.c smuiic
device smusat
attach smusat at iic
file arch/macppc/dev/smusat.c smusat
defflag opt_smusat.h SMUSAT_DEBUG
include "dev/adb/files.adb"
defflag opt_cuda.h CUDA_DEBUG
device cuda : adb_bus, i2cbus
attach cuda at obio
file arch/macppc/dev/cuda.c cuda needs-flag
define pmu_bus {}
defflag opt_pmu.h PMU_DEBUG
defflag opt_pmu.h PMU_VERBOSE
device pmu : adb_bus, i2cbus, pmu_bus
attach pmu at obio
file arch/macppc/dev/pmu.c pmu needs-flag
device battery : sysmon_envsys, sysmon_power, sysmon_taskq
attach battery at pmu_bus
file arch/macppc/dev/battery.c battery
defflag opt_battery.h BATTERY_DEBUG
device smartbat : sysmon_envsys, sysmon_power, sysmon_taskq
attach smartbat at pmu_bus
file arch/macppc/dev/smartbat.c smartbat
defflag opt_battery.h SMARTBAT_DEBUG
device adb {}
attach adb at obio
file arch/macppc/dev/adb.c adb needs-flag
file arch/macppc/dev/adb_direct.c adb
file arch/macppc/dev/pm_direct.c adb
device apm
attach apm at adb
file arch/macppc/dev/apm.c apm needs-count
device aed
attach aed at adb
file arch/macppc/dev/aed.c aed needs-flag
device akbd: wskbddev
attach akbd at adb
file arch/macppc/dev/akbd.c akbd needs-flag
device ams: wsmousedev
attach ams at adb
file arch/macppc/dev/ams.c ams
device pbms: wsmousedev
attach pbms at uhidbus
file arch/macppc/dev/pbms.c pbms
device abtn
attach abtn at adb
file arch/macppc/dev/abtn.c abtn
device nvram
attach nvram at obio
file arch/macppc/dev/nvram.c nvram needs-flag
attach wdc at obio with wdc_obio: ata_dma, ata_udma
file arch/macppc/dev/wdc_obio.c wdc_obio
attach wi at obio with wi_obio
file arch/macppc/dev/if_wi_obio.c wi_obio
device awacs: audiobus
attach awacs at obio
file arch/macppc/dev/awacs.c awacs needs-flag
defflag opt_awacs.h AWACS_DEBUG
device macgpio {}
attach macgpio at obio with gpio_obio
#attach gpio at macgpio with gpio_gpio
file arch/macppc/dev/gpio.c macgpio
attach com at mainbus with com_mainbus
file arch/macppc/dev/com_mainbus.c com_mainbus
include "dev/ieee1394/files.ieee1394"
#
# Machine-independent CardBus drivers
#
# XXX dev/pcmcia needs fdc
device fdc {drive = -1}
include "dev/cardbus/files.cardbus"
include "dev/pcmcia/files.pcmcia"
defflag opt_macppc.h PB3400_CARDBUS_HACK UMAX_E100_HACK
file arch/macppc/macppc/rbus_machdep.c cardbus
# Keywest I2C
device ki2c: i2cbus
attach ki2c at obio, uni_n
file arch/macppc/dev/ki2c.c ki2c
defflag opt_ki2c.h KI2C_DEBUG
# snapper audio
device snapper: audiobus, onewirebus, onewire, onewire_bitbang
attach snapper at obio
file arch/macppc/dev/snapper.c snapper
defflag opt_snapper.h SNAPPER_DEBUG
include "arch/powerpc/conf/majors.powerpc"
device deq
attach deq at iic
file arch/macppc/dev/deq.c deq
device videopll
attach videopll at iic
file arch/macppc/dev/videopll.c videopll needs-flag
defflag opt_videopll.h VIDEOPLL_DEBUG
device valkyriefb: wsemuldisplaydev, rasops8, vcons, videomode
attach valkyriefb at mainbus
file arch/macppc/dev/valkyriefb.c valkyriefb
defflag opt_valkyriefb.h VALKYRIEFB_DEBUG
device platinumfb: wsemuldisplaydev, rasops8, vcons, videomode
attach platinumfb at mainbus
file arch/macppc/dev/platinumfb.c platinumfb
# 'Psoc' fan controller found in (some?) TiBooks
device psoc: sysmon_envsys
attach psoc at iic
file arch/macppc/dev/psoc.c psoc
defflag opt_psoc.h PSOC_DEBUG
# 'lmu-micro' found in late PowerBooks
device lmu: sysmon_envsys
attach lmu at iic
file arch/macppc/dev/lmu.c lmu
defflag opt_lmu.h LMU_DEBUG
# Apple Fan Control Unit found in some G5
device fcu: sysmon_envsys, fancontrol
attach fcu at iic
file arch/macppc/dev/fcu.c fcu needs-flag
# fan control bits found in obio's space on some G5
device obiofan: sysmon_envsys
attach obiofan at obio
file arch/macppc/dev/obiofan.c obiofan
defflag opt_obiofan.h OBIOFAN_DEBUG
|