summaryrefslogtreecommitdiff
path: root/sys/arch/mac68k/conf
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-10-18 08:53:40 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-10-18 08:53:40 +0000
commitd6583bb2a13f329cf0332ef2570eb8bb8fc0e39c (patch)
treeece253b876159b39c620e62b6c9b1174642e070e /sys/arch/mac68k/conf
initial import of NetBSD tree
Diffstat (limited to 'sys/arch/mac68k/conf')
-rw-r--r--sys/arch/mac68k/conf/GENERIC83
-rw-r--r--sys/arch/mac68k/conf/Makefile.mac68k179
-rw-r--r--sys/arch/mac68k/conf/OCELOT70
-rw-r--r--sys/arch/mac68k/conf/PUMA67
-rw-r--r--sys/arch/mac68k/conf/files.mac68k77
-rw-r--r--sys/arch/mac68k/conf/std.mac68k20
6 files changed, 496 insertions, 0 deletions
diff --git a/sys/arch/mac68k/conf/GENERIC b/sys/arch/mac68k/conf/GENERIC
new file mode 100644
index 00000000000..c700ecf7ac1
--- /dev/null
+++ b/sys/arch/mac68k/conf/GENERIC
@@ -0,0 +1,83 @@
+# $NetBSD: GENERIC,v 1.31 1995/10/04 11:05:25 briggs Exp $
+#
+# GENERIC
+
+include "std.mac68k"
+
+maxusers 16
+
+# obsolete timezone spec
+options TIMEZONE=0, DST=1, MAXFDESCS=2048
+
+# Standard system options
+options SWAPPAGER, VNODEPAGER, DEVPAGER # paging
+options DIAGNOSTIC # DEBUG for extra kernel debugging
+options KTRACE # system call tracing support
+#options KGDB # support for kernel gdb
+#options GDB # support for normal gdb
+#options KGDBDEV=0xc01, KGDBRATE=38400 # device & baud rate
+
+# Filesystem options
+options FIFO # POSIX fifo support (in all filesystems)
+options DDB
+options FFS
+options QUOTA # fast filesystem with user and group quotas
+options MFS # memory-based filesystem
+#options NFSSERVER # Sun NFS-compatible filesystem
+options NFSCLIENT # Sun NFS-compatible filesystem
+options NULLFS # Null (formerly loop-back) filesystem
+options CD9660 # ISO-9660 w/ RockRidge
+options KERNFS # kernel data-structure filesystem
+options FDESC # user file descriptor filesystem
+#options UMAPFS # uid/gid remapping filesystem
+#options LFS # Log-based filesystem (still experimental)
+#options PORTAL # portal filesystem (still experimental)
+options PROCFS # Process filesystem
+
+options SCSI
+#options SCSIDEBUG
+
+# Networking options
+options INET
+options TCP_COMPAT_42 # compatibility with 4.2BSD TCP/IP
+options GATEWAY # IP packet forwarding
+#options ISO # OSI networking
+#options TPIP
+#options EON
+options COMPAT_42
+options COMPAT_43
+options NS
+options MAPMEM
+options SYSVSHM,SYSVSEM,SYSVMSG
+
+# Mac-specific options
+options M68040
+options M68030 # Includes the 020+851
+options FPSP
+options FPU_EMULATE
+options COMPAT_NOMID
+options COMPAT_SUNOS
+options COMPAT_09
+options COMPAT_10
+options MACHINE_NONCONTIG
+
+config netbsd swap generic
+options GENERIC
+
+ae* at nubus0 slot -1 id ? claimed 0
+
+ncrscsi0 at mainbus? # SCSI NCR 5380
+ncr96scsi0 at mainbus? # SCSI NCR 53C96
+
+scsibus* at scsi?
+sd* at scsibus? target ? lun ?
+st* at scsibus? target ? lun ?
+cd* at scsibus? target ? lun ?
+ch* at scsibus? target ? lun ?
+
+pseudo-device pty 16
+pseudo-device bpfilter 12
+pseudo-device vnd 2
+pseudo-device ppp 2
+pseudo-device loop
+pseudo-device sl
diff --git a/sys/arch/mac68k/conf/Makefile.mac68k b/sys/arch/mac68k/conf/Makefile.mac68k
new file mode 100644
index 00000000000..5765e26f3e5
--- /dev/null
+++ b/sys/arch/mac68k/conf/Makefile.mac68k
@@ -0,0 +1,179 @@
+# $NetBSD: Makefile.mac68k,v 1.25 1995/10/10 03:47:59 briggs Exp $
+
+# Makefile for NetBSD for the mac
+# Derived from makefile for hp300 from NetBSD
+#
+# This makefile is constructed from a machine description:
+# config machineid
+# Most changes should be made in the machine description
+# /sys/conf/``machineid''
+# after which you should do
+# config machineid
+# Machine generic makefile changes should be made in
+# /sys/conf/Makefile.``machinetype''
+# 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
+
+# DEBUG is set to -g by "makeoptions DEBUG=-g"
+# PROF is set to -pg by config if profiling is requested (config -p).
+AS= /usr/bin/as ${DEBUG}
+CC= /usr/bin/cc ${DEBUG}
+LOCAL_CC=${CC}
+CPP= /usr/bin/cpp
+LD= /usr/bin/ld
+TOUCH= touch -f -c
+GPROF.EX=/usr/src/lib/libc/csu.mac68k/gmon.ex
+
+# source tree is located via $S relative to the compilation directory
+S= ../../../..
+MAC68K= ../..
+
+INCLUDES= -I. -I$S/arch -I$S -I$S/sys
+COPTS= ${INCLUDES} ${IDENT} -D_KERNEL -DREFBIT -Dmac68k
+CFLAGS= -O -Werror -fno-builtin ${COPTS}
+
+### 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
+
+### for the Motorola 68040 Floating Point Software Product
+.include "$S/arch/m68k/fpsp/Makefile.inc"
+
+# 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.
+
+NORMAL_C= ${CC} -c ${CFLAGS} ${PROF} $<
+NORMAL_C_C= ${CC} -c ${CFLAGS} ${PROF} ${PARAM} $<
+
+DRIVER_C= ${CC} -c ${CFLAGS} ${PROF} $<
+DRIVER_C_C= ${CC} -c ${CFLAGS} ${PROF} ${PARAM} $<
+
+PROFILE_C= ${CC} -S -c ${COPTS} $<; \
+ ex - $*.s < ${GPROF.EX}; \
+ ${AS} -o $@ $*.s; \
+ rm -f $*.s
+
+# This really bites for now, but we need to run assembly through sed
+# until the real problem (cpp, I think) is fixed.
+NORMAL_S= ${CPP} ${COPTS} $< | ${AS} -o $@
+NORMAL_S_C= ${CPP} ${COPTS} ${PARAM} $< | ${AS} -o $@
+
+%OBJS
+
+%CFILES
+
+# 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 vnode_if.o ${OBJS} param.o ioconf.o conf.o \
+ ${FPSP} ${LIBKERN} ${LIBCOMPAT}
+SYSTEM_DEP= Makefile ${SYSTEM_OBJ}
+SYSTEM_LD_HEAD= @echo loading $@; rm -f $@
+SYSTEM_LD= @strip=-x; [ X${DEBUG} = X-g ] && strip=-X || true; \
+ ${LD} $$strip -n -T 0 -e start -o $@ \
+ ${SYSTEM_OBJ} vers.o
+SYSTEM_LD_TAIL= @chmod 755 $@; size $@; \
+ [ X${DEBUG} = X-g ] && { \
+ echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
+ echo strip -d $@; strip -d $@; } || true
+
+%LOAD
+
+newvers:
+ sh $S/conf/newvers.sh "${KERN_IDENT}" ${IDENT}
+ ${CC} ${CFLAGS} -c vers.c
+
+clean::
+ rm -f eddep netbsd tags *.o locore.i [a-z]*.s \
+ Errs errs linterrs makelinks
+
+lint: /tmp param.c
+ @lint -hbxn -DGENERIC -Dvolatile= ${COPTS} ${PARAM} -UKGDB \
+ ${MAC68K}/mac68k/Locore.c ${CFILES} \
+ ioconf.c param.c| \
+ grep -v 'struct/union .* never defined' | \
+ grep -v 'possible pointer alignment problem'
+
+symbols.sort: ${MAC68K}/mac68k/symbols.raw
+ grep -v '^#' ${MAC68K}/mac68k/symbols.raw \
+ | sed 's/^ //' | sort -u > symbols.sort
+
+locore.o: assym.s ${MAC68K}/mac68k/vectors.s ${MAC68K}/mac68k/macglobals.s
+locore.o: ${MAC68K}/mac68k/locore.s
+locore.o: ${MAC68K}/include/trap.h ${MAC68K}/include/psl.h
+locore.o: ${MAC68K}/include/pte.h ${MAC68K}/include/cpu.h
+ ${CPP} -DLOCORE ${COPTS} ${MAC68K}/mac68k/locore.s | ${AS} -o locore.o
+
+# the following is necessary because autoconf.o depends on #if GENERIC
+autoconf.o: Makefile
+
+# the following are necessary because the files depend on the types of
+# hp cpu's included in the system configuration
+clock.o machdep.o autoconf.o conf.o: Makefile
+
+# depend on network configuration
+af.o uipc_proto.o locore.o: Makefile
+
+# depend on maxusers
+assym.s: Makefile
+
+assym.s: genassym
+ ./genassym >assym.s
+
+genassym: ${MAC68K}/mac68k/genassym.c
+ ${LOCAL_CC} ${INCLUDES} ${IDENT} -D_KERNEL ${PARAM} -o genassym \
+ ${MAC68K}/mac68k/genassym.c
+
+depend: assym.s param.c vnode_if.h
+ mkdep ${COPTS} ${CFILES} ioconf.c param.c
+ mkdep -a -p ${INCLUDES} ${IDENT} ${PARAM} ${MAC68K}/mac68k/genassym.c
+
+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
+
+tags:
+ @echo "see $S/kern/Makefile for tags"
+
+ioconf.o: ioconf.c
+ ${CC} -c ${CFLAGS} ioconf.c
+
+conf.o: ${MAC68K}/mac68k/conf.c
+ ${NORMAL_C}
+
+param.c: $S/conf/param.c
+ rm -f param.c
+ cp $S/conf/param.c .
+
+param.o: param.c Makefile
+ ${CC} -c ${CFLAGS} ${PARAM} -DHZ=60 param.c
+
+vnode_if.c vnode_if.h: $S/kern/vnode_if.sh $S/kern/vnode_if.src
+ AWK="${AWK}" sh $S/kern/vnode_if.sh $S/kern/vnode_if.src
+
+%RULES
diff --git a/sys/arch/mac68k/conf/OCELOT b/sys/arch/mac68k/conf/OCELOT
new file mode 100644
index 00000000000..c3a64f244ce
--- /dev/null
+++ b/sys/arch/mac68k/conf/OCELOT
@@ -0,0 +1,70 @@
+# $NetBSD: OCELOT,v 1.5 1995/09/16 12:33:07 briggs Exp $
+#
+# OCELOT
+
+include "std.mac68k"
+
+maxusers 16
+
+# obsolete timezone spec
+options TIMEZONE=0, DST=1, MAXFDESCS=2048
+
+# Standard system options
+options SWAPPAGER, VNODEPAGER, DEVPAGER # paging
+options DIAGNOSTIC # DEBUG for extra kernel debugging
+
+# Filesystem options
+options FIFO # POSIX fifo support (in all filesystems)
+options DDB
+options FFS
+options MFS # memory-based filesystem
+options NFSSERVER # Sun NFS-compatible filesystem
+options NFSCLIENT # Sun NFS-compatible filesystem
+options NULLFS # Null (formerly loop-back) filesystem
+options UNION # Union filesystem
+options CD9660 # ISO-9660 w/ RockRidge
+options KERNFS # kernel data-structure filesystem
+options FDESC # user file descriptor filesystem
+options PROCFS # Process filesystem
+
+options LKM # Loadable Kernel Modules
+
+options SCSI
+
+# Networking options
+options INET
+options TCP_COMPAT_42 # compatibility with 4.2BSD TCP/IP
+options GATEWAY # IP packet forwarding
+options COMPAT_42
+options COMPAT_43
+options NS
+options MAPMEM
+options SYSVSHM,SYSVSEM,SYSVMSG
+
+# Mac-specific options
+options M68040
+options M68030 # Includes the 020+851
+options COMPAT_NOMID
+options COMPAT_SUNOS
+options COMPAT_09
+options COMPAT_10
+options MACHINE_NONCONTIG
+
+config netbsd swap generic
+
+ae0 at nubus0 slot -1 id ? claimed 0
+ae1 at nubus0 slot -1 id ? claimed 0
+
+ncrscsi0 at mainbus? # SCSI NCR 5380
+ncr96scsi0 at mainbus? # SCSI NCR 53C96
+
+scsibus* at scsi?
+sd* at scsibus? target ? lun ?
+st* at scsibus? target ? lun ?
+cd* at scsibus? target ? lun ?
+
+pseudo-device loop
+pseudo-device pty 16
+pseudo-device sl
+pseudo-device bpfilter 4
+pseudo-device ppp
diff --git a/sys/arch/mac68k/conf/PUMA b/sys/arch/mac68k/conf/PUMA
new file mode 100644
index 00000000000..fe0e10fb870
--- /dev/null
+++ b/sys/arch/mac68k/conf/PUMA
@@ -0,0 +1,67 @@
+# $NetBSD: PUMA,v 1.5.2.1 1995/10/16 14:17:10 briggs Exp $
+#
+# PUMA
+
+include "std.mac68k"
+
+maxusers 16
+
+# obsolete timezone spec
+options TIMEZONE=0, DST=1, MAXFDESCS=2048
+
+# Standard system options
+options SWAPPAGER, VNODEPAGER, DEVPAGER # paging
+
+# Filesystem options
+options FIFO # POSIX fifo support (in all filesystems)
+options DDB
+options FFS
+options MFS # memory-based filesystem
+options NFSSERVER # Sun NFS-compatible filesystem
+options NFSCLIENT # Sun NFS-compatible filesystem
+options NULLFS # Null (formerly loop-back) filesystem
+options UNION # Union filesystem
+options CD9660 # ISO-9660 w/ RockRidge
+options KERNFS # kernel data-structure filesystem
+options FDESC # user file descriptor filesystem
+options PROCFS # Process filesystem
+
+options LKM # Loadable Kernel Modules
+
+options SCSI
+
+# Networking options
+options INET
+options TCP_COMPAT_42 # compatibility with 4.2BSD TCP/IP
+options GATEWAY # IP packet forwarding
+options COMPAT_42
+options COMPAT_43
+options NS
+options MAPMEM
+options SYSVSHM,SYSVSEM,SYSVMSG
+
+# Mac-specific options
+options M68030 # Includes the 020+851
+options COMPAT_NOMID
+options COMPAT_SUNOS
+options COMPAT_09
+options COMPAT_10
+options MACHINE_NONCONTIG
+
+config netbsd root on sd0 swap on sd0 and sd1 and vnd0a dumps on sd1b
+
+ae* at nubus0 slot -1 id ? claimed 0
+
+ncrscsi0 at mainbus? # SCSI NCR 5380
+
+scsibus* at scsi?
+sd* at scsibus? target ? lun ?
+st* at scsibus? target ? lun ?
+cd* at scsibus? target ? lun ?
+
+pseudo-device loop
+pseudo-device pty 16
+pseudo-device sl
+pseudo-device bpfilter 4
+pseudo-device ppp
+pseudo-device vnd 4
diff --git a/sys/arch/mac68k/conf/files.mac68k b/sys/arch/mac68k/conf/files.mac68k
new file mode 100644
index 00000000000..f750fee0ea3
--- /dev/null
+++ b/sys/arch/mac68k/conf/files.mac68k
@@ -0,0 +1,77 @@
+# $NetBSD: files.mac68k,v 1.35 1995/09/03 03:37:32 briggs Exp $
+
+# mac68k-specific configuration info
+
+# maxpartitions must be first item in files.${ARCH}.newconf
+maxpartitions 8
+
+maxusers 2 8 64
+
+device mainbus at root { } # no locators (yet?)
+
+device nubus at mainbus { slot = -1, id = -1, claimed = 0 }
+file arch/mac68k/dev/nubus.c nubus
+
+device ser at mainbus: tty
+file arch/mac68k/dev/ser.c ser needs-flag
+
+device adb at mainbus
+file arch/mac68k/dev/adb.c adb
+file arch/mac68k/dev/adbsys.c
+file arch/mac68k/dev/adbsysasm.s
+
+device asc at mainbus
+file arch/mac68k/dev/asc.c asc
+
+device fpu at mainbus
+file arch/mac68k/mac68k/fpu.c fpu
+
+device grf at nubus
+file arch/mac68k/dev/grf.c grf needs-count
+file arch/mac68k/dev/grf_mv.c grf
+file arch/mac68k/dev/grf_iv.c grf
+device ite at mainbus
+file arch/mac68k/dev/ite.c ite needs-flag
+
+device ae at nubus: ifnet, ether
+file arch/mac68k/dev/if_ae.c ae needs-flag
+
+include "../../../scsi/files.scsi"
+major {sd = 4}
+major {st = 5}
+major {cd = 6}
+
+device ncrscsi at mainbus: scsi
+file arch/mac68k/dev/mac68k5380.c ncrscsi needs-flag
+
+device ncr96scsi at mainbus: scsi
+file arch/mac68k/dev/scsi96.c ncr96scsi needs-flag
+
+file arch/m68k/m68k/copy.s
+file arch/m68k/fpe/fpu_emulate.c fpu_emulate
+file arch/mac68k/mac68k/autoconf.c
+file arch/mac68k/mac68k/clock.c
+file arch/mac68k/mac68k/disksubr.c disk
+file arch/mac68k/mac68k/machdep.c
+file arch/mac68k/mac68k/macrom.c
+file arch/mac68k/mac68k/macromasm.s
+file arch/mac68k/mac68k/mem.c
+file arch/mac68k/mac68k/pmap.c
+file arch/mac68k/mac68k/pmap_bootstrap.c
+file arch/mac68k/mac68k/pram.c
+file arch/mac68k/mac68k/pramasm.s
+file arch/mac68k/mac68k/sys_machdep.c
+file arch/mac68k/mac68k/trap.c
+file arch/mac68k/mac68k/via.c
+file arch/mac68k/mac68k/vm_machdep.c
+
+file dev/cons.c
+file dev/cninit.c
+
+major {vnd = 8}
+
+# Compatibility modules
+
+# SunOS Binary Compatibility (COMPAT_SUNOS)
+include "../../../compat/sunos/files.sunos"
+file arch/m68k/m68k/sunos_machdep.c compat_sunos
diff --git a/sys/arch/mac68k/conf/std.mac68k b/sys/arch/mac68k/conf/std.mac68k
new file mode 100644
index 00000000000..9423fd9fb36
--- /dev/null
+++ b/sys/arch/mac68k/conf/std.mac68k
@@ -0,0 +1,20 @@
+# $NetBSD: std.mac68k,v 1.6.2.1 1995/10/14 22:26:46 briggs Exp $
+#
+# standard Macintosh information.
+# roughly copied from std.sparc 14 Oct 1993.
+
+machine mac68k m68k
+
+mainbus0 at root
+
+nubus0 at mainbus0
+ite0 at mainbus0
+adb0 at mainbus0
+
+fpu0 at mainbus0
+
+asc0 at mainbus0
+
+ser0 at mainbus0
+grf0 at nubus0 slot -1 id ? claimed 0
+grf1 at nubus0 slot -1 id ? claimed 0