summaryrefslogtreecommitdiff
path: root/sys/arch/macppc
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2001-09-01 15:59:32 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2001-09-01 15:59:32 +0000
commit8b414bd8aea54a1a2aafc4aefa2a9f8fee310f02 (patch)
tree64f01e36b0d59ea79ada5b34ca342c99a01cdb5c /sys/arch/macppc
parent0ae75cc5bd77e34c589e510ca19f3c69603b87e1 (diff)
The "powerpc" port which has supported the newer Apple Macintosh powerpc based
is being renamed to macppc. This is to allow sharing of common code between different powerpc base platforms. Most of the work involved in the renaming process was performed by miod@ Files moved from powerpc/conf to macppc/conf files.powerpc was modified to keep powerpc common files.
Diffstat (limited to 'sys/arch/macppc')
-rw-r--r--sys/arch/macppc/conf/GENERIC153
-rw-r--r--sys/arch/macppc/conf/Makefile.macppc198
-rw-r--r--sys/arch/macppc/conf/RAMDISK162
-rw-r--r--sys/arch/macppc/conf/files.macppc240
4 files changed, 753 insertions, 0 deletions
diff --git a/sys/arch/macppc/conf/GENERIC b/sys/arch/macppc/conf/GENERIC
new file mode 100644
index 00000000000..87ec005ca70
--- /dev/null
+++ b/sys/arch/macppc/conf/GENERIC
@@ -0,0 +1,153 @@
+# $OpenBSD: GENERIC,v 1.1 2001/09/01 15:59:31 drahn Exp $
+#
+# PPC GENERIC config file
+#
+
+machine macppc powerpc
+
+maxusers 32
+
+# default type, instructs system to try to determin what proper type is
+# actual machine type probed via name of openfirmware root node.
+option SYS_TYPE=APPL
+
+option FIREPOWERBUGS
+option PPC_MPC106_BUG
+option PCIVERBOSE
+option USBVERBOSE
+#option MACOBIOVERBOSE
+option WSEMUL_NO_DUMB
+
+option USER_PCICONF # user-space PCI configuration
+
+include "../../../conf/GENERIC"
+
+config bsd swap generic
+
+#
+# Now the Machine specification
+#
+mainbus0 at root
+cpu* at mainbus0
+
+mpcpcibr* at mainbus0 # MPC106 PCI Bridge.
+memc* at mainbus0
+pchb* at pci?
+
+#### PCI Bus devices.
+
+pci* at mpcpcibr?
+ppb* at pci? dev ? function ? # PCI-PCI bridges
+pci* at ppb? bus ?
+
+siop* at pci? dev ? function ?
+fxp* at pci? dev ? function ?
+de* at pci? dev ? function ?
+#vme* at pci? dev ? function ?
+vgafb0 at pci? dev ? function ? # PCI VGA graphics
+#ep* at pci? dev ? function ? # 3Com 3c59x
+#ne* at pci? dev ? function ? # NE2000-compatible Ethernet
+#adv* at pci? dev ? function ? # AdvanSys 1200[A,B], 9xx[U,UA] SCSI
+#ahc* at pci? dev ? function ? # Adaptec 294x, aic78x0 SCSI
+#bha* at pci? dev ? function ? # BusLogic 9xx SCSI
+#ami* at pci? dev ? function ?
+#pcscp* at pci? dev ? function ? # AMD Am53c974 PCscsi-PCI SCSI
+pciide* at pci? dev ? function ?
+macobio0 at pci? dev ? function ?
+gm* at pci? dev ? function ? # GMAC ethernet
+an* at pci? dev ? function ? # Cisco/Aironet
+iop* at pci? dev ? function ? # I2O processor
+ioprbs* at iop? tid ? # I2O arrays
+iopsp* at iop? tid ? # I2O SCSI pass-through
+
+exphy* at mii? phy ? # 3Com internal PHYs
+inphy* at mii? phy ? # Intel 82555 PHYs
+iophy* at mii? phy ? # Intel 82553 PHYs
+icsphy* at mii? phy ? # ICS1890 PHYs
+#lxtphy* at mii? phy ? # Level One LXT-970 PHYs
+nsphy* at mii? phy ? # NS83840 PHYs
+#nsphyter* at mii? phy ? # NS83843 PHYs
+#qsphy* at mii? phy ? # Quality Semi QS6612 PHYs
+sqphy* at mii? phy ? # Seeq 8022[013] PHYs
+#tlphy* at mii? phy ? # ThunderLAN PHYs
+#tqphy* at mii? phy ? # TDK Semiconductor PHYs
+brgphy* at mii? phy ? # Broadcom 10/100/1000 PHYs
+bmtphy* at mii? phy ? # Broadcom 10/100 PHYs
+ukphy* at mii? phy ? # generic unknown PHYs
+
+macintr0 at macobio? # old interrupt controller
+openpic0 at macobio? # openpic interrupt controller
+bm* at macobio? # BMAC ethernet
+#mc* at macobio? # MACE ethernet
+#esp* at macobio? flags 0x00ff # 53c9x SCSI
+#mesh* at macobio? flags 0xffff # MESH SCSI
+#nvram* at macobio? # nvram
+adb* at macobio? # Apple Desktop Bus
+wi* at macobio? # airport
+gpio* at macobio? # GPIO, PMU interrupt router.
+gpio* at gpio? # GPIO, PMU interrupt router.
+aed* at adb? # ADB Event Device
+akbd* at adb? # ADB keyboard
+
+wskbd* at akbd? console ?
+ams* at adb? # ADB mouse
+wsmouse* at ams?
+abtn* at adb? # ADB button?
+#zsc* at macobio?
+#zstty* at zsc? channel ?
+
+awacs* at macobio? # Apple audio device
+audio* at awacs?
+
+#scsibus* at adv?
+#scsibus* at ahc?
+#scsibus* at ami?
+#scsibus* at bha?
+#scsibus* at esp?
+#scsibus* at mesh?
+scsibus* at ioprbs?
+scsibus* at iopsp?
+#scsibus* at pcscp?
+scsibus* at siop?
+
+wdc* at macobio? flags 0x0
+wd* at wdc? drive ? flags 0x0000
+wd* at pciide? drive ? flags 0x0000
+atapiscsi* at wdc? channel ? flags 0x0000
+atapiscsi* at pciide? channel ? flags 0x0000
+scsibus* at atapiscsi?
+
+# PCI USB Controllers
+ohci* at pci? # Open Host Controller
+
+# USB bus support
+usb* at ohci? flags 0x1
+uhub* at usb?
+uhub* at uhub? port ? configuration ? interface ?
+
+uhid* at uhub? port ? configuration ? # USB Generic HID devices
+ukbd* at uhub? port ? configuration ? # USB HID Keyboard devices
+ums* at uhub? port ? configuration ? # USB Mice
+wsmouse* at ums? mux 0
+ulpt* at uhub? port ? configuration ? # USB Printer
+uscanner* at uhub? port ? # USB Scanner driver
+usscanner* at uhub? port ? # USB SCSI scanners
+scsibus* at usscanner?
+#uyap* at uhub? port ? # Y@P firmware loader
+ugen* at uhub? port ? configuration ? # USB Generic driver
+umass* at uhub? port ? configuration ? # USB Mass Storage devices
+scsibus* at umass?
+kue* at uhub? port ? # Kawasaki KL5KUSB101B
+aue* at uhub? port ? # USB EtherNet
+
+wsdisplay* at vgafb?
+wskbd* at ukbd? console ?
+
+sd* at scsibus? target ? lun ?
+st* at scsibus? target ? lun ?
+cd* at scsibus? target ? lun ?
+ch* at scsibus? target ? lun ?
+ss* at scsibus? target ? lun ?
+uk* at scsibus? target ? lun ?
+
+#pseudo-device wsmux 2 # mouse & keyboard multiplexor
diff --git a/sys/arch/macppc/conf/Makefile.macppc b/sys/arch/macppc/conf/Makefile.macppc
new file mode 100644
index 00000000000..8035d4672cd
--- /dev/null
+++ b/sys/arch/macppc/conf/Makefile.macppc
@@ -0,0 +1,198 @@
+# $OpenBSD: Makefile.macppc,v 1.1 2001/09/01 15:59:31 drahn Exp $
+#
+# Makefile for OpenBSD PowerPC
+#
+# This makefile is constructed from a machine description:
+# config machineid
+# Most changes should be made in the machine description
+# /sys/arch/macppc/conf/``machineid''
+# after which you should do
+# config machineid
+# Machine generic makefile changes should be made in
+# /sys/arch/macppc/conf/Makefile.macppc
+# after which config should be rerun for all machines of that type.
+#
+# N.B.: NO DEPENDENCIES ON FOLLOWING FLAGS ARE VISIBLE TO MAKEFILE
+# IF YOU CHANGE THE DEFINITION OF ANY OF THESE RECOMPILE EVERYTHING
+#
+# -DTRACE compile in kernel tracing hooks
+# -DQUOTA compile in file system quotas
+#
+.SUFFIXES: .S .c .o
+
+# DEBUG is set to -g if debugging.
+# PROF is set to -pg if profiling.
+
+.include <bsd.own.mk>
+
+AS?= as
+CC?= cc
+CPP?= cpp
+LD?= ld
+MKDEP?= mkdep
+STRIP?= strip
+SIZE?= size
+
+# source tree is located via $S relative to the compilation directory
+.ifndef S
+S!= cd ../../../..; pwd
+.endif
+MACPPC= $S/arch/macppc
+
+INCLUDES= -I. -I$S/arch -I$S -nostdinc -L${DESTDIR}/usr/include
+CPPFLAGS= ${INCLUDES} ${IDENT} -D_KERNEL \
+ -Dmacppc
+CWARNFLAGS= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
+ -Wno-uninitialized -Wno-format -Wno-main
+CFLAGS= ${DEBUG} ${CWARNFLAGS} -O2 -msoft-float
+AFLAGS= -D_LOCORE
+LINKFLAGS= -N -Ttext 100074 -e start
+STRIPFLAGS= -d
+
+HOSTCC?= ${CC}
+HOSTED_CPPFLAGS=${CPPFLAGS:S/^-nostdinc$//}
+HOSTED_CFLAGS= ${CFLAGS}
+
+### find out what to use for libkern
+.include "$S/lib/libkern/Makefile.inc"
+.ifndef PROF
+LIBKERN= ${KERNLIB}
+.else
+LIBKERN= ${KERNLIB_PROF}
+.endif
+
+### find out what to use for libcompat
+.include "$S/compat/common/Makefile.inc"
+.ifndef PROF
+LIBCOMPAT= ${COMPATLIB}
+.else
+LIBCOMPAT= ${COMPATLIB_PROF}
+.endif
+
+# compile rules: rules are named ${TYPE}_${SUFFIX}${CONFIG_DEP}
+# where TYPE is NORMAL, DRIVER, or PROFILE}; SUFFIX is the file suffix,
+# capitalized (e.g. C for a .c file), and CONFIG_DEP is _C if the file
+# is marked as config-dependent.
+
+USRLAND_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $<
+USRLAND_C_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} ${PARAM} -c $<
+
+NORMAL_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $<
+NORMAL_C_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} ${PARAM} -c $<
+
+DRIVER_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $<
+DRIVER_C_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} ${PARAM} -c $<
+
+NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
+NORMAL_S_C= ${AS} ${COPTS} ${PARAM} $< -o $@
+
+
+%OBJS
+
+%CFILES
+
+%SFILES
+
+# load lines for config "xxx" will be emitted as:
+# xxx: ${SYSTEM_DEP} swapxxx.o
+# ${SYSTEM_LD_HEAD}
+# ${SYSTEM_LD} swapxxx.o
+# ${SYSTEM_LD_TAIL}
+SYSTEM_OBJ= locore.o param.o ioconf.o ${OBJS} ${LIBKERN} ${LIBCOMPAT}
+SYSTEM_DEP= Makefile ${SYSTEM_OBJ}
+SYSTEM_LD_HEAD= rm -f $@
+SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}' vers.o; \
+ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ} vers.o
+SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@
+
+DEBUG?=
+.if ${DEBUG} == "-g"
+LINKFLAGS+= -X
+SYSTEM_LD_TAIL+=; \
+ echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
+ echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@
+.else
+LINKFLAGS+= -S
+.endif
+
+%LOAD
+
+assym.h: $S/kern/genassym.sh ${MACPPC}/macppc/genassym.cf
+ sh $S/kern/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} \
+ < ${MACPPC}/macppc/genassym.cf > assym.h.tmp && \
+ mv -f assym.h.tmp assym.h
+
+param.c: $S/conf/param.c
+ rm -f param.c
+ cp $S/conf/param.c .
+
+param.o: param.c Makefile
+ ${NORMAL_C_C}
+
+ioconf.o: ioconf.c
+ ${NORMAL_C}
+
+newvers: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
+ sh $S/conf/newvers.sh
+ ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c vers.c
+
+clean::
+ rm -f eddep *bsd bsd.gdb tags *.[io] [a-z]*.s \
+ [Ee]rrs linterrs makelinks genassym genassym.o assym.h
+
+lint:
+ @lint -hbxncez -DGENERIC -Dvolatile= ${CPPFLAGS} -UKGDB \
+ ${MACPPC}/macppc/Locore.c ${CFILES} ${MACPPC}/macppc/swapgeneric.c \
+ ioconf.c param.c | \
+ grep -v 'static function .* unused'
+
+tags:
+ @echo "see $S/kern/Makefile for tags"
+
+links:
+ egrep '#if' ${CFILES} | sed -f $S/conf/defines | \
+ sed -e 's/:.*//' -e 's/\.c/.o/' | sort -u > dontlink
+ echo ${CFILES} | tr -s ' ' '\12' | sed 's/\.c/.o/' | \
+ sort -u | comm -23 - dontlink | \
+ sed 's,../.*/\(.*.o\),rm -f \1; ln -s ../GENERIC/\1 \1,' > makelinks
+ sh makelinks && rm -f dontlink
+
+SRCS= ${MACPPC}/macppc/locore.S \
+ param.c ioconf.c ${CFILES} ${SFILES}
+depend:: .depend
+.depend: ${SRCS} assym.h param.c
+ ${MKDEP} ${AFLAGS} ${CPPFLAGS} ${MACPPC}/macppc/locore.S
+ ${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES}
+.if ${SFILES} != ""
+ ${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES}
+.endif
+
+# depend on root or device configuration
+autoconf.o conf.o: Makefile
+
+# depend on network or filesystem configuration
+uipc_proto.o vfs_conf.o: Makefile
+
+# depend on maxusers
+genassym.o machdep.o: Makefile
+
+# depend on CPU configuration
+locore.o machdep.o: Makefile
+
+
+locore.o: ${MACPPC}/macppc/locore.S assym.h
+ ${NORMAL_S}
+
+# The install target can be redefined by putting a
+# install-kernel-${MACHINE_NAME} target into /etc/mk.conf
+MACHINE_NAME!= uname -n
+install: install-kernel-${MACHINE_NAME}
+.if !target(install-kernel-${MACHINE_NAME}})
+install-kernel-${MACHINE_NAME}:
+ rm -f /obsd
+ ln /bsd /obsd
+ cp bsd /nbsd
+ mv /nbsd /bsd
+.endif
+
+%RULES
diff --git a/sys/arch/macppc/conf/RAMDISK b/sys/arch/macppc/conf/RAMDISK
new file mode 100644
index 00000000000..25292e76b98
--- /dev/null
+++ b/sys/arch/macppc/conf/RAMDISK
@@ -0,0 +1,162 @@
+# $OpenBSD: RAMDISK,v 1.1 2001/09/01 15:59:31 drahn Exp $
+#
+# PPC GENERIC config file
+#
+
+machine macppc powerpc
+
+maxusers 32
+
+# default type, instructs system to try to determin what proper type is
+# actual machine type probed via name of openfirmware root node.
+option SYS_TYPE=APPL
+
+option FIREPOWERBUGS
+option PPC_MPC106_BUG
+option PCIVERBOSE
+option WSEMUL_NO_DUMB
+
+# include "../../../conf/GENERIC"
+option TIMEZONE=0 # time zone to adjust RTC time by
+option DST=0 # daylight saving time used by RTC
+option SWAPPAGER # paging; REQUIRED
+option DEVPAGER # mmap() of devices
+option COMPAT_43 # and 4.3BSD
+option FFS # UFS
+option MFS # memory file system
+option CD9660 # ISO 9660 + Rock Ridge file system
+option MSDOSFS # MS-DOS file system
+option INET # IP + ICMP + TCP + UDP
+option DDB # IP + ICMP + TCP + UDP
+
+config bsd root on rd0a swap on rd0b
+
+
+#
+# Now the Machine specification
+#
+mainbus0 at root
+cpu* at mainbus0
+
+mpcpcibr* at mainbus0 # MPC106 PCI Bridge.
+memc* at mainbus0
+pchb* at pci? # host bridge identifiers
+
+#### PCI Bus devices.
+
+pci* at mpcpcibr?
+ppb* at pci? dev ? function ? # PCI-PCI bridges
+pci* at ppb? bus ?
+
+siop* at pci? dev ? function ?
+#ncr* at pci? dev ? function ?
+fxp* at pci? dev ? function ?
+de* at pci? dev ? function ?
+#vme* at pci? dev ? function ?
+vgafb0 at pci? dev ? function ? # PCI VGA graphics
+#ep* at pci? dev ? function ? # 3Com 3c59x
+#ne* at pci? dev ? function ? # NE2000-compatible Ethernet
+#adv* at pci? dev ? function ? # AdvanSys 1200[A,B], 9xx[U,UA] SCSI
+#ahc* at pci? dev ? function ? # Adaptec 294x, aic78x0 SCSI
+#bha* at pci? dev ? function ? # BusLogic 9xx SCSI
+#pcscp* at pci? dev ? function ? # AMD Am53c974 PCscsi-PCI SCSI
+pciide* at pci? dev ? function ?
+macobio0 at pci? dev ? function ?
+gm* at pci? dev ? function ? # GMAC ethernet
+an* at pci? dev ? function ? # Cisco/Aironet 802.11DS
+
+# how many of these are needed?
+exphy* at mii? phy ? # 3Com internal PHYs
+inphy* at mii? phy ? # Intel 82555 PHYs
+iophy* at mii? phy ? # Intel 82553 PHYs
+icsphy* at mii? phy ? # Integrated Circuit Systems ICS1890
+#lxtphy* at mii? phy ? # Level One LXT-970 PHYs
+nsphy* at mii? phy ? # NS83840 PHYs
+#nsphyter* at mii? phy ? # NS83843 PHYs
+#qsphy* at mii? phy ? # Quality Semiconductor QS6612 PHYs
+sqphy* at mii? phy ? # Seeq 80220/80221/80223 PHYs
+#tlphy* at mii? phy ? # ThunderLAN PHYs
+#tqphy* at mii? phy ? # TDK Semiconductor PHYs
+brgphy* at mii? phy ? # Broadcom 10/100/1000 PHYs
+bmtphy* at mii? phy ? # Broadcom 10/100 PHYs
+ukphy* at mii? phy ? # generic unknown PHYs
+
+macintr0 at macobio? # old interrupt controller
+openpic0 at macobio? # openpic interrupt controller
+bm* at macobio? # bmac ethernet
+#mc* at macobio? # MACE ethernet
+#esp* at macobio? flags 0x00ff# 53c9x SCSI
+#mesh* at macobio? flags 0xffff# MESH SCSI
+#nvram* at macobio? # nvram
+adb* at macobio? # Apple Desktop Bus
+wi* at macobio? # Apple Airport 802.11DS
+gpio* at macobio? # GPIO, PMU interrupt router.
+gpio* at gpio? # GPIO, PMU interrupt router.
+aed* at adb? # ADB Event Device
+akbd* at adb? # ADB keyboard
+wskbd* at akbd? console ?
+#ams* at adb? # ADB mouse
+#wsmouse* at ams?
+abtn* at adb? # ADB button?
+#zsc* at macobio?
+#zstty* at zsc? channel ?
+
+scsibus* at siop?
+#scsibus* at ncr?
+#scsibus* at adv?
+#scsibus* at ahc?
+#scsibus* at bha?
+#scsibus* at esp?
+#scsibus* at mesh?
+#scsibus* at pcscp?
+
+wdc* at macobio? flags 0x0
+wd* at wdc? drive ? flags 0x0000
+wd* at pciide? channel ? drive ?
+atapiscsi* at wdc? channel ? flags 0x0000
+atapiscsi* at pciide? channel ? flags 0x0000
+scsibus* at atapiscsi?
+
+# PCI USB Controllers
+ohci* at pci? # Open Host Controller
+
+# USB bus support
+usb* at ohci? flags 0x1
+uhub* at usb?
+uhub* at uhub? port ? configuration ? interface ?
+
+uhid* at uhub? port ? configuration ? # USB Generic HID devices
+ukbd* at uhub? port ? configuration ? # USB HID Keyboard devices
+#ums* at uhub? port ? configuration ? # USB Mice
+#wsmouse* at ums? mux 0
+#ulpt* at uhub? port ? configuration ? # USB Printer
+#uscanner* at uhub? port ? # USB Scanner driver
+#usscanner* at uhub? port ? # USB SCSI scanners
+#scsibus* at usscanner?
+#uyap* at uhub? port ? # Y@P firmware loader
+#ugen* at uhub? port ? configuration ? # USB Generic driver
+umass* at uhub? port ? configuration ? # USB Mass Storage devices
+scsibus* at umass?
+kue* at uhub? port ? # Kawasaki KL5KUSB101B
+aue* at uhub? port ? # USB EtherNet
+
+wsdisplay* at vgafb?
+wskbd* at ukbd? console ?
+
+sd* at scsibus? target ? lun ?
+st* at scsibus? target ? lun ?
+cd* at scsibus? target ? lun ?
+#ch* at scsibus? target ? lun ?
+#ss* at scsibus? target ? lun ?
+#uk* at scsibus? target ? lun ?
+
+pseudo-device loop 1 # network loopback
+pseudo-device pty 64 # pseudo-terminals
+#pseudo-device ccd 4 # concatenated disk devices
+#pseudo-device ksyms 1 # kernel symbols device
+pseudo-device bpfilter 1 # packet filter
+pseudo-device rd 1 # ram disk
+
+# RAMDISK stuff
+option MINIROOTSIZE=8192
+option RAMDISK_HOOKS
diff --git a/sys/arch/macppc/conf/files.macppc b/sys/arch/macppc/conf/files.macppc
new file mode 100644
index 00000000000..4900fa97e19
--- /dev/null
+++ b/sys/arch/macppc/conf/files.macppc
@@ -0,0 +1,240 @@
+# $OpenBSD: files.macppc,v 1.1 2001/09/01 15:59:31 drahn Exp $
+
+#
+# macppc-specific configuration info
+#
+maxpartitions 16
+
+maxusers 2 8 64
+
+file arch/macppc/macppc/autoconf.c
+file arch/macppc/macppc/clock.c
+file arch/macppc/macppc/conf.c
+file arch/macppc/macppc/disksubr.c disk
+file arch/macppc/macppc/machdep.c
+file arch/macppc/macppc/wscons_machdep.c
+file arch/macppc/macppc/mem.c
+file arch/macppc/macppc/dma.c
+file arch/macppc/macppc/ofw_machdep.c
+file arch/macppc/macppc/openfirm.c
+file dev/cons.c
+file dev/cninit.c
+file arch/macppc/macppc/db_memrw.c ddb
+file arch/macppc/macppc/db_disasm.c ddb
+file arch/macppc/macppc/db_interface.c ddb
+file arch/macppc/macppc/db_trace.c ddb
+file arch/macppc/macppc/ofwreal.S
+
+#
+# Media Indepedent Interface (mii)
+#
+include "../../../dev/mii/files.mii"
+
+#
+# MAC generic
+#
+file arch/macppc/mac/dbdma.c
+
+#
+# Openfirmware support
+#
+
+define mainbus {}
+device mainbus
+attach mainbus at root
+file arch/macppc/macppc/mainbus.c mainbus
+
+device cpu
+attach cpu at mainbus
+file arch/macppc/macppc/cpu.c
+
+include "../../../dev/ofw/files.ofw"
+file arch/macppc/macppc/opendev.c
+major { ofdisk = 4 }
+
+
+device memc {}
+attach memc at mainbus
+file arch/macppc/mac/uni_n.c memc
+
+major {rd = 17}
+major {sd = 2}
+major {cd = 3}
+
+include "../../../scsi/files.scsi"
+
+#
+# I2O
+#
+include "../../../dev/i2o/files.i2o"
+
+include "dev/pci/files.pci"
+file arch/macppc/pci/pciide_machdep.c pciide
+
+device mpcpcibr {} : pcibus
+attach mpcpcibr at mainbus
+file arch/macppc/pci/mpcpcibus.c mpcpcibr
+#file arch/macppc/pci/pci_addr_fixup.c mpcpcibr
+
+#
+# "workstation console" routines
+#
+
+include "dev/wscons/files.wscons"
+
+
+#device ofb: wsemuldisplaydev, wsrasteremulops
+device ofb
+attach ofb at pci
+file arch/macppc/mac/ofb.c ofb needs-flag
+
+
+#
+# mac peripheral pieces.
+#
+
+#file arch/macppc/pci/bandit.c pci
+
+#PCI-Host bridge chipsets
+device pchb
+attach pchb at pci
+file arch/macppc/pci/pchb.c pchb
+
+
+#
+# Machine-independent ATAPI drivers
+#
+
+include "../../../dev/atapiscsi/files.atapiscsi"
+include "../../../dev/ata/files.ata"
+
+# MAC periph
+
+device macobio {}
+attach macobio at pci
+file arch/macppc/pci/macobio.c macobio
+
+#device esp: scsi, ncr53c9x
+#attach esp at macobio
+#file arch/macppc/dev/esp.c esp
+
+device mesh: scsi
+attach mesh at macobio
+file arch/macppc/dev/mesh.c mesh
+
+device mc: ifnet, ether
+attach mc at macobio
+file arch/macppc/dev/if_mc.c mc
+file arch/macppc/dev/am79c950.c mc
+
+device bm: ether, ifnet, ifmedia
+attach bm at macobio
+file arch/macppc/dev/if_bm.c bm
+
+device gm: ether, ifnet, ifmedia, mii
+attach gm at pci
+file arch/macppc/dev/if_gm.c gm needs-flag
+
+device macintr {}
+attach macintr at macobio
+file arch/macppc/dev/macintr.c macintr
+
+device openpic {}
+attach openpic at macobio
+file arch/macppc/dev/openpic.c openpic
+
+device zsc {channel = -1}
+attach zsc at macobio
+file arch/macppc/dev/zs.c zsc needs-flag
+file dev/ic/z8530sc.c zsc
+
+device zstty: tty
+attach zstty at zsc
+file dev/ic/z8530tty.c zstty needs-flag
+
+device adb {}
+attach adb at macobio
+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 aed
+attach aed at adb
+file arch/macppc/dev/aed.c aed needs-flag
+
+#??
+#define wskbddev {[console = -1]}
+#define wsmousedev {}
+#??
+
+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 abtn
+attach abtn at adb
+file arch/macppc/dev/abtn.c abtn
+
+device awacs: audio, auconv, mulaw
+attach awacs at macobio
+file arch/macppc/dev/awacs.c awacs
+
+device nvram
+attach nvram at macobio
+file arch/macppc/dev/nvram.c nvram needs-flag
+
+device gpio {}
+attach gpio at macobio with gpio_obio
+attach gpio at gpio with gpio_gpio
+file arch/macppc/dev/gpio.c gpio
+
+attach wdc at macobio with wdc_obio
+file arch/macppc/dev/wdc_obio.c wdc_obio
+
+attach wi at macobio with wi_obio
+file arch/macppc/dev/if_wi_obio.c wi_obio
+
+define grfdev {}
+
+device grfati: grfdev
+attach grfati at pci
+file arch/macppc/dev/grf_ati.c grfati needs-flag
+
+device grf {}
+attach grf at grfdev
+file arch/macppc/dev/grf.c grf needs-flag
+file arch/macppc/dev/grf_subr.c grf
+
+device ite: tty
+attach ite at grf
+file arch/macppc/dev/ite.c ite needs-flag
+
+
+# VGA framebuffer
+device vgafb: wsemuldisplaydev, wsrasteremulops
+file arch/macppc/pci/vgafb.c vgafb & vgafb_pci
+
+# Generic VGA Framebuffer version
+attach vgafb at pci with vgafb_pci
+file arch/macppc/pci/vgafb_pci.c vgafb_pci needs-flag
+
+
+#
+# CARDBUS
+#
+include "dev/cardbus/files.cardbus"
+#file arch/macppc/macppc/rbus_machdep.c cardbus
+
+#
+# Machine-independent PCMCIA drivers
+#
+include "dev/pcmcia/files.pcmcia"
+
+#
+# Machine-independent USB drivers
+#
+include "dev/usb/files.usb"