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