11.129Sthorpej#	$NetBSD: files.macppc,v 1.129 2025/09/21 17:58:56 thorpej Exp $
21.1Stsubai#
31.16Sthorpej# macppc-specific configuration info
41.16Sthorpej
51.16Sthorpej# maxpartitions must be first item in files.${ARCH}.newconf
61.1Stsubaimaxpartitions 16
71.1Stsubai
81.1Stsubaimaxusers 2 8 64
91.1Stsubai
101.3Stsubaiinclude "arch/powerpc/conf/files.ofw"
111.85Sgarbledinclude "arch/powerpc/pic/files.pic"
121.85Sgarbledinclude "arch/powerpc/pic/files.ipi"
131.3Stsubai
141.128Sthorpejfile arch/macppc/macppc/autoconf.c
151.87Sgarbledfile arch/powerpc/oea/ofw_autoconf.c
161.85Sgarbledfile arch/powerpc/powerpc/clock.c
171.1Stsubaifile arch/macppc/macppc/disksubr.c		disk
181.85Sgarbledfile arch/macppc/macppc/interrupts.c
191.85Sgarbledfile arch/powerpc/oea/ofwoea_machdep.c
201.85Sgarbledfile arch/powerpc/oea/ofw_consinit.c
211.1Stsubaifile arch/macppc/macppc/machdep.c
221.98Smacallanfile arch/macppc/macppc/static_edid.c
231.89Sgarbledfile arch/powerpc/oea/ofw_rascons.c
241.1Stsubaifile arch/macppc/dev/dbdma.c
251.57Smatt
261.129Sthorpejdefine ofw_i2c_machdep
271.129Sthorpejfile arch/macppc/dev/ofw_i2c_machdep.c		ofw_i2c_machdep
281.129Sthorpej
291.85Sgarbled# interrupt controllers
301.85Sgarbleddefine pic_ohare
311.85Sgarbleddefine pic_heathrow
321.100Smacallandefine pic_u3_ht
331.85Sgarbled
341.85Sgarbleddefflag opt_interrupt.h PIC_OHARE: pic_ohare
351.85Sgarbleddefflag opt_interrupt.h OHARE_DEBUG
361.85Sgarbleddefflag opt_interrupt.h PIC_HEATHROW: pic_heathrow
371.100Smacallandefflag opt_interrupt.h PIC_U3_HT: pic_u3_ht
381.85Sgarbled
391.85Sgarbledfile arch/macppc/macppc/pic_ohare.c		pic_ohare	needs-flag
401.85Sgarbledfile arch/macppc/macppc/pic_heathrow.c		pic_heathrow	needs-flag
411.100Smacallanfile arch/macppc/macppc/pic_u3_ht.c		pic_u3_ht	needs-flag
421.85Sgarbled
431.85Sgarbled# IPI interface
441.85Sgarbleddefine ipi_hammerhead
451.85Sgarbleddefflag opt_ipi.h IPI_HAMMERHEAD: ipi_hammerhead
461.85Sgarbledfile arch/macppc/macppc/ipi_hammerhead.c	ipi_hammerhead	needs-flag
471.85Sgarbled
481.85Sgarbledfile arch/powerpc/powerpc/bus_dma.c
491.85Sgarbledfile arch/powerpc/powerpc/bus_space.c
501.57Smattfile arch/powerpc/powerpc/procfs_machdep.c	procfs
511.1Stsubaifile dev/cons.c
521.1Stsubai
531.74Ssanjayl#Early serial console for G5 (uses RMCI mode of 970 */
541.74Ssanjaylfile arch/macppc/macppc/failsafe.c
551.74Ssanjayl
561.1Stsubai#
571.5Stsubai# Memory Disk for install floppy
581.5Stsubai#
591.33Stsutsuifile dev/md_root.c				memory_disk_hooks
601.5Stsubai
611.30Soster#
621.1Stsubai# Machine-independent SCSI drivers
631.1Stsubai#
641.1Stsubaiinclude "dev/scsipi/files.scsipi"
651.1Stsubai
661.1Stsubai#
671.17Stsubai# Machine-independent ATA drivers
681.17Stsubai#
691.17Stsubaiinclude "dev/ata/files.ata"
701.17Stsubai
711.17Stsubai#
721.36Shannken# Machine-independent I2O drivers
731.36Shannken#
741.36Shannkeninclude "dev/i2o/files.i2o"
751.1Stsubai
761.1Stsubai#
771.1Stsubai# System bus types
781.1Stsubai#
791.1Stsubaidefine mainbus {}
801.27Stsubaidevice mainbus: mainbus
811.1Stsubaiattach mainbus at root
821.1Stsubaifile arch/macppc/macppc/mainbus.c		mainbus
831.1Stsubai
841.48Snathanwdevice cpu: sysmon_envsys
851.1Stsubaiattach cpu at mainbus
861.1Stsubaifile arch/macppc/macppc/cpu.c
871.1Stsubai
881.93Smacallandevice memory: iic
891.93Smacallanattach memory at mainbus
901.93Smacallanfile arch/macppc/macppc/memory.c		memory
911.93Smacallan
921.85Sgarbled# ISA stuff
931.85Sgarbled# we don't need it but some of the shared code needs isa.h
941.85Sgarbledinclude "dev/isa/files.isa"
951.85Sgarbled
961.81Smacallan# PCI bus support
971.81Smacallaninclude "dev/pci/files.pci"
981.83Sdogcowinclude "dev/pci/files.agp"
991.27Stsubaifile arch/macppc/pci/pci_machdep.c		pci
1001.118Sthorpejfile dev/ofw/ofw_pci_subr.c			pci
1011.81Smacallanfile arch/macppc/pci/agp_machdep.c		agp
1021.85Sgarbledfile arch/powerpc/pci/pciconf_indirect.c	pci
1031.85Sgarbledfile arch/powerpc/pci/pci_machdep_common.c	pci
1041.97Smattfile    arch/powerpc/pci/pci_module.c		pci & modular
1051.27Stsubai
1061.88Smacallandevice bandit: pcibus, pic_ohare, ipi_hammerhead
1071.27Stsubaiattach bandit at mainbus
1081.27Stsubaifile arch/macppc/pci/bandit.c			bandit
1091.27Stsubai
1101.85Sgarbleddevice grackle: pcibus, pic_heathrow
1111.27Stsubaiattach grackle at mainbus
1121.27Stsubaifile arch/macppc/pci/grackle.c			grackle
1131.27Stsubai
1141.110Smacallandevice uninorth: pcibus, pic_openpic, ipi_openpic
1151.27Stsubaiattach uninorth at mainbus
1161.27Stsubaifile arch/macppc/pci/uninorth.c			uninorth
1171.27Stsubai
1181.65Smacallan# pseudo for the UniNorth host controller
1191.65Smacallandefine uni_n {}
1201.65Smacallandevice uni_n: uni_n
1211.65Smacallanattach uni_n at mainbus
1221.65Smacallanfile arch/macppc/dev/uni-n.c			uni_n
1231.65Smacallan
1241.71Sjmmvinclude "dev/usb/files.usb"
1251.86Saymericinclude "dev/bluetooth/files.bluetooth"
1261.13Stsubai
1271.100Smacallandevice ibmcpc: pcibus, pic_openpic, ipi_openpic, pic_u3_ht
1281.74Ssanjaylattach ibmcpc at mainbus
1291.74Ssanjaylfile arch/macppc/pci/u3.c			ibmcpc
1301.74Ssanjayl
1311.82Smacallandevice ofb: wsemuldisplaydev, rasops8, vcons, drm
1321.13Stsubaiattach ofb at pci
1331.13Stsubaifile arch/macppc/dev/ofb.c			ofb needs-flag
1341.1Stsubai
1351.1Stsubai# PCI-Host bridge chipsets
1361.101Suebayasidevice pchb: agpbus
1371.1Stsubaiattach pchb at pci
1381.85Sgarbledfile arch/powerpc/pci/pchb.c			pchb
1391.29Stsubai
1401.29Stsubaidevice gm: ifnet, ether, arp, mii
1411.29Stsubaiattach gm at pci
1421.29Stsubaifile arch/macppc/dev/if_gm.c			gm
1431.58Shamajima
1441.75Sitohyattach wdc at pci with kauai: ata_dma, ata_udma
1451.58Shamajimafile arch/macppc/dev/kauai.c			kauai
1461.1Stsubai
1471.22Stsubaidefine obio {}
1481.126Smacallandevice obio: obio, leds, fancontrol
1491.1Stsubaiattach obio at pci
1501.1Stsubaifile arch/macppc/dev/obio.c			obio
1511.85Sgarbleddefflag opt_obio.h OBIO_DEBUG OBIO_SPEED_CONTROL
1521.1Stsubai
1531.22Stsubaidevice mediabay: obio
1541.22Stsubaiattach mediabay at obio
1551.22Stsubaifile arch/macppc/dev/mediabay.c			mediabay
1561.22Stsubai
1571.1Stsubaiattach esp at obio
1581.1Stsubaifile arch/macppc/dev/esp.c			esp
1591.1Stsubai
1601.17Stsubaidevice mesh: scsi
1611.17Stsubaiattach mesh at obio
1621.17Stsubaifile arch/macppc/dev/mesh.c			mesh
1631.17Stsubai
1641.1Stsubaidevice mc: ifnet, ether, arp
1651.1Stsubaiattach mc at obio
1661.1Stsubaifile arch/macppc/dev/if_mc.c			mc
1671.1Stsubaifile arch/macppc/dev/am79c950.c			mc
1681.1Stsubai
1691.26Stsubaidevice bm: ifnet, ether, arp, mii, mii_bitbang
1701.18Stsubaiattach bm at obio
1711.18Stsubaifile arch/macppc/dev/if_bm.c			bm
1721.18Stsubai
1731.1Stsubaidevice zsc {channel = -1}
1741.1Stsubaiattach zsc at obio
1751.1Stsubaifile arch/macppc/dev/zs.c	 		zsc needs-flag
1761.1Stsubaifile dev/ic/z8530sc.c				zsc
1771.47Sdbjfile arch/macppc/dev/zs_kgdb.c			zsc & kgdb
1781.1Stsubai
1791.1Stsubaidevice zstty: tty
1801.1Stsubaiattach zstty at zsc
1811.69Schsfile dev/ic/z8530tty.c				zstty needs-flag
1821.1Stsubai
1831.121Smacallandefine fancontrol
1841.121Smacallanfile arch/macppc/dev/fancontrol.c		fancontrol
1851.121Smacallandefflag	opt_fancontrol.h	FANCONTROL_DEBUG
1861.121Smacallan
1871.122Smacallandevice smu { } : sysmon_envsys, fancontrol
1881.104Smacallanattach smu at mainbus
1891.104Smacallanfile arch/macppc/dev/smu.c			smu needs-flag
1901.104Smacallandefflag	opt_smu.h	SMU_DEBUG
1911.104Smacallan
1921.129Sthorpejdevice smuiic: i2cbus, ofw_i2c_machdep
1931.104Smacallanattach smuiic at smu
1941.104Smacallanfile arch/macppc/dev/smuiic.c			smuiic
1951.104Smacallan
1961.104Smacallandevice smusat
1971.109Smacallanattach smusat at iic
1981.104Smacallanfile arch/macppc/dev/smusat.c			smusat
1991.104Smacallandefflag	opt_smusat.h	SMUSAT_DEBUG
2001.104Smacallan
2011.77Smacallaninclude "dev/adb/files.adb"
2021.77Smacallan
2031.77Smacallandefflag	opt_cuda.h	CUDA_DEBUG
2041.77Smacallandevice cuda : adb_bus, i2cbus
2051.77Smacallanattach cuda at obio
2061.77Smacallanfile arch/macppc/dev/cuda.c			cuda needs-flag
2071.77Smacallan
2081.81Smacallandefine pmu_bus {}
2091.77Smacallandefflag	opt_pmu.h	PMU_DEBUG
2101.77Smacallandefflag opt_pmu.h	PMU_VERBOSE
2111.129Sthorpejdevice pmu : adb_bus, i2cbus, ofw_i2c_machdep, pmu_bus
2121.77Smacallanattach pmu at obio
2131.77Smacallanfile arch/macppc/dev/pmu.c			pmu needs-flag
2141.79Smacallan
2151.79Smacallandevice battery : sysmon_envsys, sysmon_power, sysmon_taskq
2161.79Smacallanattach battery at pmu_bus
2171.79Smacallanfile arch/macppc/dev/battery.c			battery
2181.79Smacallandefflag opt_battery.h	BATTERY_DEBUG
2191.77Smacallan
2201.81Smacallandevice smartbat : sysmon_envsys, sysmon_power, sysmon_taskq
2211.81Smacallanattach smartbat at pmu_bus
2221.81Smacallanfile arch/macppc/dev/smartbat.c			smartbat
2231.81Smacallandefflag opt_battery.h	SMARTBAT_DEBUG
2241.81Smacallan
2251.82Smacallandevice adb {} 
2261.1Stsubaiattach adb at obio
2271.1Stsubaifile arch/macppc/dev/adb.c			adb needs-flag
2281.1Stsubaifile arch/macppc/dev/adb_direct.c		adb
2291.15Stsubaifile arch/macppc/dev/pm_direct.c		adb
2301.51Sitojun
2311.51Sitojundevice apm
2321.51Sitojunattach apm at adb
2331.51Sitojunfile arch/macppc/dev/apm.c			apm needs-count
2341.12Stsubai
2351.12Stsubaidevice aed
2361.12Stsubaiattach aed at adb
2371.12Stsubaifile arch/macppc/dev/aed.c			aed needs-flag
2381.12Stsubai
2391.13Stsubaidevice akbd: wskbddev
2401.12Stsubaiattach akbd at adb
2411.18Stsubaifile arch/macppc/dev/akbd.c			akbd needs-flag
2421.12Stsubai
2431.14Stsubaidevice ams: wsmousedev
2441.12Stsubaiattach ams at adb
2451.12Stsubaifile arch/macppc/dev/ams.c			ams
2461.21Stsubai
2471.70Schristosdevice pbms: wsmousedev
2481.70Schristosattach pbms at uhidbus
2491.70Schristosfile arch/macppc/dev/pbms.c			pbms
2501.70Schristos
2511.21Stsubaidevice abtn
2521.21Stsubaiattach abtn at adb
2531.21Stsubaifile arch/macppc/dev/abtn.c			abtn
2541.1Stsubai
2551.7Stsubaidevice nvram
2561.7Stsubaiattach nvram at obio
2571.7Stsubaifile arch/macppc/dev/nvram.c			nvram needs-flag
2581.17Stsubai
2591.75Sitohyattach wdc at obio with wdc_obio: ata_dma, ata_udma
2601.17Stsubaifile arch/macppc/dev/wdc_obio.c			wdc_obio
2611.42Stsubai
2621.42Stsubaiattach wi at obio with wi_obio
2631.42Stsubaifile arch/macppc/dev/if_wi_obio.c		wi_obio
2641.32Stsubai
2651.111Sisakidevice awacs: audiobus
2661.32Stsubaiattach awacs at obio
2671.93Smacallanfile arch/macppc/dev/awacs.c			awacs needs-flag
2681.81Smacallandefflag	opt_awacs.h	AWACS_DEBUG
2691.41Smatt
2701.66Smacallandevice macgpio {}
2711.66Smacallanattach macgpio at obio with gpio_obio
2721.66Smacallan#attach gpio at macgpio with gpio_gpio
2731.66Smacallanfile arch/macppc/dev/gpio.c			macgpio
2741.10Sthorpej
2751.74Ssanjaylattach  com at mainbus with com_mainbus
2761.74Ssanjaylfile    arch/macppc/dev/com_mainbus.c               com_mainbus
2771.74Ssanjayl
2781.34Smattinclude "dev/ieee1394/files.ieee1394"
2791.23Shaya
2801.23Shaya#
2811.23Shaya# Machine-independent CardBus drivers
2821.23Shaya#
2831.24Stsubai
2841.24Stsubai# XXX dev/pcmcia needs fdc
2851.24Stsubaidevice fdc {drive = -1}
2861.24Stsubai
2871.25Stsubaiinclude "dev/cardbus/files.cardbus"
2881.23Shayainclude "dev/pcmcia/files.pcmcia"
2891.24Stsubai
2901.81Smacallandefflag opt_macppc.h	PB3400_CARDBUS_HACK UMAX_E100_HACK
2911.81Smacallan
2921.23Shayafile arch/macppc/macppc/rbus_machdep.c		cardbus
2931.52Sgehenna
2941.61Sgrant# Keywest I2C
2951.129Sthorpejdevice ki2c: i2cbus, ofw_i2c_machdep
2961.65Smacallanattach ki2c at obio, uni_n
2971.61Sgrantfile arch/macppc/dev/ki2c.c			ki2c
2981.113Smacallandefflag opt_ki2c.h	KI2C_DEBUG
2991.61Sgrant
3001.61Sgrant# snapper audio
3011.115Smacallandevice snapper: audiobus, onewirebus, onewire, onewire_bitbang
3021.61Sgrantattach snapper at obio
3031.61Sgrantfile arch/macppc/dev/snapper.c			snapper
3041.115Smacallandefflag opt_snapper.h	SNAPPER_DEBUG
3051.61Sgrant
3061.91Smacallaninclude "arch/powerpc/conf/majors.powerpc"
3071.65Smacallan
3081.65Smacallandevice deq
3091.105Smacallanattach deq at iic
3101.65Smacallanfile arch/macppc/dev/deq.c				deq
3111.65Smacallan
3121.99Smacallandevice videopll
3131.99Smacallanattach videopll at iic
3141.99Smacallanfile arch/macppc/dev/videopll.c				videopll needs-flag
3151.99Smacallandefflag opt_videopll.h VIDEOPLL_DEBUG
3161.99Smacallan
3171.99Smacallandevice valkyriefb: wsemuldisplaydev, rasops8, vcons, videomode
3181.99Smacallanattach valkyriefb at mainbus
3191.99Smacallanfile arch/macppc/dev/valkyriefb.c			valkyriefb
3201.99Smacallandefflag opt_valkyriefb.h VALKYRIEFB_DEBUG
3211.102Smacallan
3221.102Smacallandevice platinumfb: wsemuldisplaydev, rasops8, vcons, videomode
3231.102Smacallanattach platinumfb at mainbus
3241.103Smacallanfile arch/macppc/dev/platinumfb.c			platinumfb
3251.112Smacallan
3261.112Smacallan# 'Psoc' fan controller found in (some?) TiBooks
3271.112Smacallandevice	psoc: sysmon_envsys
3281.112Smacallanattach	psoc at iic
3291.112Smacallanfile	arch/macppc/dev/psoc.c				psoc
3301.119Smacallandefflag opt_psoc.h PSOC_DEBUG
3311.112Smacallan
3321.114Smacallan# 'lmu-micro' found in late PowerBooks
3331.114Smacallandevice	lmu: sysmon_envsys
3341.114Smacallanattach	lmu at iic
3351.114Smacallanfile	arch/macppc/dev/lmu.c				lmu
3361.119Smacallandefflag opt_lmu.h LMU_DEBUG
3371.120Smacallan
3381.120Smacallan# Apple Fan Control Unit found in some G5
3391.121Smacallandevice	fcu: sysmon_envsys, fancontrol
3401.120Smacallanattach	fcu at iic
3411.120Smacallanfile	arch/macppc/dev/fcu.c				fcu	needs-flag
3421.124Smacallandefflag opt_fcu.h FCU_DEBUG
3431.123Smacallan
3441.123Smacallan# fan control bits found in obio's space on some G5
3451.123Smacallandevice 	obiofan: sysmon_envsys
3461.123Smacallanattach 	obiofan at obio
3471.123Smacallanfile 	arch/macppc/dev/obiofan.c			obiofan
3481.123Smacallandefflag opt_obiofan.h OBIOFAN_DEBUG
3491.123Smacallan
3501.125Smacallan# Philips PCA9554 GPIO controlling Xserve's drivebays
3511.125Smacallandevice	drivebay: leds
3521.125Smacallanattach	drivebay at iic
3531.125Smacallanfile	arch/macppc/dev/drivebay.c			drivebay
3541.127Smacallan
3551.127Smacallan# LED bar found on Xserve
3561.127Smacallandevice 	lightbar
3571.127Smacallanattach 	lightbar at obio
3581.127Smacallanfile 	arch/macppc/dev/lightbar.c			lightbar
359