diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-10-18 08:53:40 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-10-18 08:53:40 +0000 |
commit | d6583bb2a13f329cf0332ef2570eb8bb8fc0e39c (patch) | |
tree | ece253b876159b39c620e62b6c9b1174642e070e /sys/arch/sparc/conf |
initial import of NetBSD tree
Diffstat (limited to 'sys/arch/sparc/conf')
-rw-r--r-- | sys/arch/sparc/conf/GENERIC | 152 | ||||
-rw-r--r-- | sys/arch/sparc/conf/GENERIC_SCSI3 | 156 | ||||
-rw-r--r-- | sys/arch/sparc/conf/Makefile.sparc | 165 | ||||
-rw-r--r-- | sys/arch/sparc/conf/SUN4 | 96 | ||||
-rw-r--r-- | sys/arch/sparc/conf/SUN4C | 101 | ||||
-rw-r--r-- | sys/arch/sparc/conf/SUN4M | 93 | ||||
-rw-r--r-- | sys/arch/sparc/conf/TDR | 102 | ||||
-rw-r--r-- | sys/arch/sparc/conf/files.sparc | 162 |
8 files changed, 1027 insertions, 0 deletions
diff --git a/sys/arch/sparc/conf/GENERIC b/sys/arch/sparc/conf/GENERIC new file mode 100644 index 00000000000..1dd2e692cf6 --- /dev/null +++ b/sys/arch/sparc/conf/GENERIC @@ -0,0 +1,152 @@ +# $NetBSD: GENERIC,v 1.19 1995/10/08 11:45:39 pk Exp $ + +machine sparc +options "SUN4", "SUN4C" +#options MMU_3L +#options DDB,DEBUG,DIAGNOSTIC + +# obsolete timezone spec +options TIMEZONE=0, DST=0 + +# Standard system options +options SWAPPAGER, VNODEPAGER, DEVPAGER # paging +#options DEBUG, DIAGNOSTIC # extra kernel debugging +options KTRACE # system call tracing support +#options KGDB # support for kernel gdb +#options KGDBDEV=0xc01, KGDBRATE=38400 # device & baud rate +options RASTERCONSOLE # fast rasterop console +options SYSVMSG,SYSVSEM,SYSVSHM +options "COMPAT_09", "COMPAT_10" + +# Filesystem options +options FFS +options NFSSERVER # Sun NFS-compatible filesystem +options NFSCLIENT # Sun NFS-compatible filesystem +options KERNFS # kernel data-structure filesystem +options FIFO # POSIX fifo support (in all filesystems) +options QUOTA # fast filesystem with user and group quotas +options MFS # memory-based filesystem +options LOFS # Loop-back 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 # /proc +options CD9660 # ISO 9660 + Rock Ridge file system +options UNION # union file system + +# 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_43 + +options LKM + +# Options for SPARCstation hardware +options COMPAT_SUNOS # compatibility with SunOS binaries +options COMPAT_SVR4 # compatibility with SVR4 binaries + +config netbsd swap generic + +mainbus0 at root +cpu0 at mainbus0 + +sbus0 at mainbus0 +obio0 at mainbus0 +vmes0 at mainbus0 +vmel0 at mainbus0 + +audio0 at mainbus0 +auxreg0 at mainbus0 +clock0 at mainbus0 +clock0 at obio0 addr 0xf2000000 +oclock0 at obio0 addr 0xf3000000 +oclock0 at obio0 addr 0x03000000 # 4/100 +memreg0 at mainbus0 +memreg0 at obio0 addr 0xf4000000 +memreg0 at obio0 addr 0x04000000 # 4/100 +timer0 at mainbus0 +timer0 at obio0 addr 0xef000000 +eeprom0 at obio0 addr 0xf2000000 +eeprom0 at obio0 addr 0x02000000 # 4/100 + +zs0 at mainbus0 +zs0 at obio0 addr 0xf1000000 level 12 flags 0x103 +zs0 at obio0 addr 0x01000000 level 12 flags 0x103 # 4/100 +zs1 at mainbus0 +zs1 at obio0 addr 0xf0000000 level 12 flags 0x103 +zs1 at obio0 addr 0x00000000 level 12 flags 0x103 # 4/100 +zs2 at obio0 addr 0xe0000000 level 12 flags 0x103 + +# FSBE/S or sun4m +espdma0 at sbus0 slot ? offset ? +espdma* at sbus0 slot ? offset ? +esp0 at espdma? slot ? offset ? +esp* at espdma? slot ? offset ? + +# old sun4c SCSI +dma0 at sbus0 slot ? offset ? +dma* at sbus0 slot ? offset ? +dma0 at obio0 addr 0xfa001000 level 4 +esp0 at sbus0 slot ? offset ? +esp* at sbus0 slot ? offset ? +esp0 at obio0 addr 0xfa000000 level 4 + +# old sun4c +le0 at sbus? slot ? offset ? +le* at sbus? slot ? offset ? +le0 at obio0 addr 0xf9000000 level 6 + +ie0 at obio0 addr 0xf6000000 level 6 +ie0 at obio0 addr 0x06000000 level 6 # 4/100 +ie1 at vmes0 addr 0xffe88000 level 5 vect 0x75 +ie2 at vmes0 addr 0xff31ff02 level 5 vect 0x76 +ie3 at vmes0 addr 0xff35ff02 level 5 vect 0x77 +ie4 at vmes0 addr 0xff2dff02 level 5 vect 0x7c + +xdc0 at vmel0 addr 0xffffee80 level 3 vect 0x44 +xdc1 at vmel0 addr 0xffffee90 level 3 vect 0x45 +xdc2 at vmel0 addr 0xffffeea0 level 3 vect 0x46 +xdc3 at vmel0 addr 0xffffeeb0 level 3 vect 0x47 +xd* at xdc? drive ? + +xyc0 at vmes0 addr 0xffffee40 level 3 vect 0x48 +xyc1 at vmes0 addr 0xffffee48 level 3 vect 0x49 +xy* at xyc? drive ? + +si0 at vmes0 addr 0xff200000 level 2 vect 0x40 +sw0 at obio0 addr 0x0a000000 level 2 + +bwtwo0 at sbus? slot ? offset ? +bwtwo* at sbus? slot ? offset ? +bwtwo0 at obio0 addr 0xfd000000 level 4 # 4/260 +bwtwo0 at obio0 addr 0xfb300000 level 4 # 4/{300/400} ?? +cgtwo0 at vmes0 addr 0xff400000 level 4 vect 0xa8 +cgthree0 at sbus? slot ? offset ? +cgthree* at sbus? slot ? offset ? +cgsix0 at sbus? slot ? offset ? +cgsix* at sbus? slot ? offset ? + +scsibus* at esp? +scsibus* at si? +scsibus* at sw? + +sd* at scsibus? target ? lun ? +st* at scsibus? target ? lun ? +cd* at scsibus? target ? lun ? + +fdc0 at mainbus0 +fd* at fdc0 + +pseudo-device loop +pseudo-device pty 32 +pseudo-device sl 2 +pseudo-device kbd +pseudo-device ppp 2 +pseudo-device tun 4 +pseudo-device vnd 3 +pseudo-device bpfilter 16 diff --git a/sys/arch/sparc/conf/GENERIC_SCSI3 b/sys/arch/sparc/conf/GENERIC_SCSI3 new file mode 100644 index 00000000000..cdc0c032fad --- /dev/null +++ b/sys/arch/sparc/conf/GENERIC_SCSI3 @@ -0,0 +1,156 @@ +# $NetBSD: GENERIC_SCSI3,v 1.19 1995/10/08 11:45:40 pk Exp $ + +machine sparc +options "SUN4", "SUN4C" +#options MMU_3L +#options DDB,DEBUG,DIAGNOSTIC + +# obsolete timezone spec +options TIMEZONE=0, DST=0 + +# Standard system options +options SWAPPAGER, VNODEPAGER, DEVPAGER # paging +#options DEBUG, DIAGNOSTIC # extra kernel debugging +options KTRACE # system call tracing support +#options KGDB # support for kernel gdb +#options KGDBDEV=0xc01, KGDBRATE=38400 # device & baud rate +options RASTERCONSOLE # fast rasterop console +options SYSVMSG,SYSVSEM,SYSVSHM +options "COMPAT_09", "COMPAT_10" + +# Filesystem options +options FFS +options NFSSERVER # Sun NFS-compatible filesystem +options NFSCLIENT # Sun NFS-compatible filesystem +options KERNFS # kernel data-structure filesystem +options FIFO # POSIX fifo support (in all filesystems) +options QUOTA # fast filesystem with user and group quotas +options MFS # memory-based filesystem +options LOFS # Loop-back 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 # /proc +options CD9660 # ISO 9660 + Rock Ridge file system +options UNION # union file system + +# 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_43 + +options LKM + +# Options for SPARCstation hardware +options COMPAT_SUNOS # compatibility with SunOS binaries +options COMPAT_SVR4 # compatibility with SVR4 binaries + +config netbsd swap generic + +mainbus0 at root +cpu0 at mainbus0 + +sbus0 at mainbus0 +obio0 at mainbus0 +vmes0 at mainbus0 +vmel0 at mainbus0 + +audio0 at mainbus0 +auxreg0 at mainbus0 +clock0 at mainbus0 +clock0 at obio0 addr 0xf2000000 +oclock0 at obio0 addr 0xf3000000 +oclock0 at obio0 addr 0x03000000 # 4/100 +memreg0 at mainbus0 +memreg0 at obio0 addr 0xf4000000 +memreg0 at obio0 addr 0x04000000 # 4/100 +timer0 at mainbus0 +timer0 at obio0 addr 0xef000000 +eeprom0 at obio0 addr 0xf2000000 +eeprom0 at obio0 addr 0x02000000 # 4/100 + +zs0 at mainbus0 +zs0 at obio0 addr 0xf1000000 level 12 flags 0x103 +zs0 at obio0 addr 0x01000000 level 12 flags 0x103 # 4/100 +zs1 at mainbus0 +zs1 at obio0 addr 0xf0000000 level 12 flags 0x103 +zs1 at obio0 addr 0x00000000 level 12 flags 0x103 # 4/100 +zs2 at obio0 addr 0xe0000000 level 12 flags 0x103 + +# FSBE/S or sun4m +espdma0 at sbus0 slot ? offset ? +espdma* at sbus0 slot ? offset ? +esp0 at espdma? slot ? offset ? +esp* at espdma? slot ? offset ? + +# old sun4c SCSI +dma0 at sbus0 slot ? offset ? +dma* at sbus0 slot ? offset ? +dma0 at obio0 addr 0xfa001000 level 4 +esp0 at sbus0 slot ? offset ? +esp* at sbus0 slot ? offset ? +esp0 at obio0 addr 0xfa000000 level 4 + +# old sun4c +le0 at sbus? slot ? offset ? +le* at sbus? slot ? offset ? +le0 at obio0 addr 0xf9000000 level 6 + +ie0 at obio0 addr 0xf6000000 level 6 +ie0 at obio0 addr 0x06000000 level 6 # 4/100 +ie1 at vmes0 addr 0xffe88000 level 5 vect 0x75 +ie2 at vmes0 addr 0xff31ff02 level 5 vect 0x76 +ie3 at vmes0 addr 0xff35ff02 level 5 vect 0x77 +ie4 at vmes0 addr 0xff2dff02 level 5 vect 0x7c + +xdc0 at vmel0 addr 0xffffee80 level 3 vect 0x44 +xdc1 at vmel0 addr 0xffffee90 level 3 vect 0x45 +xdc2 at vmel0 addr 0xffffeea0 level 3 vect 0x46 +xdc3 at vmel0 addr 0xffffeeb0 level 3 vect 0x47 +xd* at xdc? drive ? + +xyc0 at vmes0 addr 0xffffee40 level 3 vect 0x48 +xyc1 at vmes0 addr 0xffffee48 level 3 vect 0x49 +xy* at xyc? drive ? + +si0 at vmes0 addr 0xff200000 level 2 vect 0x40 +sw0 at obio0 addr 0x0a000000 level 2 + +bwtwo0 at sbus? slot ? offset ? +bwtwo* at sbus? slot ? offset ? +bwtwo0 at obio0 addr 0xfd000000 level 4 # 4/260 +bwtwo0 at obio0 addr 0xfb300000 level 4 # 4/{300/400} ?? +cgtwo0 at vmes0 addr 0xff400000 level 4 vect 0xa8 +cgthree0 at sbus? slot ? offset ? +cgthree* at sbus? slot ? offset ? +cgsix0 at sbus? slot ? offset ? +cgsix* at sbus? slot ? offset ? + +scsibus* at esp? +scsibus* at si? +scsibus* at sw? + +# Map scsi-id 3 to sd0; no questions asked. Map the remaining drives +# in the default order. This is because SunOS's rom swaps scsi-id 3 to +# sd0, and scsi-id 0 to sd3. +sd0 at scsibus? target 3 lun ? +sd* at scsibus? target ? lun ? +st* at scsibus? target ? lun ? +cd* at scsibus? target ? lun ? + +fdc0 at mainbus0 +fd* at fdc0 + +pseudo-device loop +pseudo-device pty 32 +pseudo-device sl 2 +pseudo-device kbd +pseudo-device ppp 2 +pseudo-device tun 4 +pseudo-device vnd 3 +pseudo-device bpfilter 16 diff --git a/sys/arch/sparc/conf/Makefile.sparc b/sys/arch/sparc/conf/Makefile.sparc new file mode 100644 index 00000000000..62b33a4e152 --- /dev/null +++ b/sys/arch/sparc/conf/Makefile.sparc @@ -0,0 +1,165 @@ +# $NetBSD: Makefile.sparc,v 1.22 1995/09/19 23:26:58 thorpej Exp $ + +# @(#)Makefile.sparc 8.1 (Berkeley) 7/19/93 +# Makefile for 4.4 BSD +# +# 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 if debugging. +# PROF is set to -pg if profiling. + +AS?= as + +CC= cc ${DEBUG} +CPP= cpp +LD= ld +TOUCH= touch -f -c +AWK= awk + +# source tree is located via $S relative to the compilation directory +S= ../../../.. +SPARC= ../.. + +INCLUDES= -I. -I$S/arch -I$S -I$S/sys +COPTS= ${INCLUDES} ${IDENT} -D_KERNEL +CFLAGS= ${COPTS} -O2 -Werror -fno-builtin + +### 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. + +# sparc kernel uses volatile, rather than heavy "device-driver"s. + +NORMAL_C= ${CC} -c ${CFLAGS} ${PROF} $< +NORMAL_C_C= ${CC} -c ${CFLAGS} ${PROF} ${PARAM} $< + +# optimizer breaks sometimes; temporary workaround uses ${NOOPT_C} +NOOPT_C= ${CC} -c ${COPTS} ${PROF} ${PARAM} $< + +NORMAL_S= rm -f $*.c; ln -s $< $*.c; \ + ${CC} ${COPTS} -I${SPARC}/sparc -E $*.c > $*.i; \ + ${AS} -o $@ $*.i; rm -f $*.c $*.i +NORMAL_S_C= rm -f $*.c; ln -s $< $*.c; \ + ${CC} ${COPTS} ${PARAM} -I${SPARC}/sparc -E $*.c > $*.i; \ + ${AS} -o $@ $*.i; rm -f $*.c $*.i + +%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} +DEBUG?= +.if ${DEBUG} == "-g" +LDX=-X +.else +LDX=-x +.endif +SYSTEM_OBJ= locore.o vnode_if.o ${OBJS} param.o ioconf.o \ + ${LIBKERN} ${LIBCOMPAT} +SYSTEM_DEP= Makefile ${SYSTEM_OBJ} +SYSTEM_LD_HEAD= @echo loading $@; rm -f $@ +SYSTEM_LD= @${LD} ${LDX} -p -N -e start -T f8004000 -o $@ \ + ${SYSTEM_OBJ} vers.o +SYSTEM_LD_TAIL= @echo rearranging symbols; size $@; chmod 755 $@ +#.if ${DEBUG} == "-g" +#SYSTEM_LD_TAIL+=; echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \ +# echo strip -d $@; strip -d $@ +#.endif + +%LOAD + +newvers: + sh $S/conf/newvers.sh + ${CC} ${CFLAGS} -c vers.c + +clean:: + rm -f eddep *netbsd netbsd.gdb tags vnode_if.[ch] tags1 *.[io] \ + [a-z]*.s Errs errs linterrs makelinks genassym + +locore.o: ${SPARC}/sparc/locore.s assym.s + ${NORMAL_S} + +# depend on maxusers +assym.s: Makefile + +./assym.s: assym.s +assym.s: genassym + ./genassym >assym.s + +genassym: genassym.o + ${CC} -static -o $@ genassym.o + +genassym.o: ${SPARC}/sparc/genassym.c + ${CC} -c ${CFLAGS} ${PARAM} $< + +SRCS= ${CFILES} ioconf.c param.c vnode_if.c +depend: .depend +.depend: ${SRCS} assym.s + mkdep ${COPTS} ${SRCS} + mkdep -a -p ${COPTS} ${SPARC}/sparc/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: depend + sh $S/conf/systags.sh + rm -f tags1 + sed -e 's, ../, ,' tags > tags1 + +ioconf.o: ioconf.c + ${CC} -c ${CFLAGS} ioconf.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} 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 + +# DO NOT DELETE THIS LINE -- make depend uses it + diff --git a/sys/arch/sparc/conf/SUN4 b/sys/arch/sparc/conf/SUN4 new file mode 100644 index 00000000000..5029257292e --- /dev/null +++ b/sys/arch/sparc/conf/SUN4 @@ -0,0 +1,96 @@ +# $NetBSD: SUN4,v 1.12 1995/06/02 17:53:57 pk Exp $ + +machine sparc +options "SUN4" + +# obsolete timezone spec +options TIMEZONE=0, DST=0 + +# Standard system options +options SWAPPAGER, VNODEPAGER, DEVPAGER # paging +#options DEBUG, DIAGNOSTIC # extra kernel debugging +options KTRACE # system call tracing support +#options KGDB # support for kernel gdb +#options KGDBDEV=0xc01, KGDBRATE=38400 # device & baud rate +options RCONSOLE # fast rasterop console +options SYSVMSG,SYSVSEM,SYSVSHM +options "COMPAT_09", "COMPAT_10" + +# Filesystem options +options FFS +options NFSSERVER # Sun NFS-compatible filesystem +options NFSCLIENT # Sun NFS-compatible filesystem +#options KERNFS # kernel data-structure filesystem +#options FIFO # POSIX fifo support (in all filesystems) +#options QUOTA # fast filesystem with user and group quotas +#options MFS # memory-based filesystem +#options LOFS # Loop-back 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 # /proc +#options CD9660 # ISO 9660 + Rock Ridge file system + +# 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_43 + +options LKM + +# Options for SPARCstation hardware +options COMPAT_SUNOS # compatibility with SunOS binaries + +config netbsd swap generic + +mainbus0 at root +cpu0 at mainbus0 + +obio0 at mainbus0 +vmes0 at mainbus0 +vmel0 at mainbus0 + +clock0 at obio0 addr 0xf2000000 +oclock0 at obio0 addr 0xf3000000 +oclock0 at obio0 addr 0x03000000 # 4/100 +memreg0 at obio0 addr 0xf4000000 +memreg0 at obio0 addr 0x04000000 # 4/100 +timer0 at obio0 addr 0xef000000 + +zs0 at obio0 addr 0xf1000000 level 12 flags 0x103 +zs0 at obio0 addr 0x01000000 level 12 flags 0x103 # 4/100 +zs1 at obio0 addr 0xf0000000 level 12 flags 0x103 +zs1 at obio0 addr 0x00000000 level 12 flags 0x103 # 4/100 +zs2 at obio0 addr 0xe0000000 level 12 flags 0x103 + +dma0 at obio0 addr 0xfa001000 level 4 +esp0 at obio0 addr 0xfa000000 level 4 + +le0 at obio0 addr 0xf9000000 level 6 + +ie0 at obio0 addr 0xf6000000 level 6 +ie0 at obio0 addr 0x06000000 level 6 # 4/100 +ie1 at vmes0 addr 0xffe88000 level 5 vect 0x75 +ie2 at vmes0 addr 0xff31ff02 level 5 vect 0x76 +ie3 at vmes0 addr 0xff35ff02 level 5 vect 0x77 +ie4 at vmes0 addr 0xff2dff02 level 5 vect 0x7c + +scsibus* at esp? + +sd* at scsibus? target ? lun ? +st* at scsibus? target ? lun ? +cd* at scsibus? target ? lun ? + +pseudo-device loop +pseudo-device pty 32 +pseudo-device sl 2 +pseudo-device kbd +pseudo-device ppp 2 +pseudo-device tun 4 +pseudo-device vnd 3 +pseudo-device bpfilter 16 diff --git a/sys/arch/sparc/conf/SUN4C b/sys/arch/sparc/conf/SUN4C new file mode 100644 index 00000000000..34b08562974 --- /dev/null +++ b/sys/arch/sparc/conf/SUN4C @@ -0,0 +1,101 @@ +# $NetBSD: SUN4C,v 1.3 1995/06/02 17:53:59 pk Exp $ + +# Kernel for Theo's wimpy sparcstation IPC + +machine sparc +options "SUN4C" + +# obsolete timezone spec +options TIMEZONE=0, DST=0 + +# Standard system options +options SWAPPAGER, VNODEPAGER, DEVPAGER # paging +#options DEBUG, DIAGNOSTIC # extra kernel debugging +options KTRACE # system call tracing support +#options KGDB # support for kernel gdb +#options KGDBDEV=0xc01, KGDBRATE=38400 # device & baud rate +options RCONSOLE # fast rasterop console +options SYSVMSG,SYSVSEM,SYSVSHM +options "COMPAT_09", "COMPAT_10" + +# Filesystem options +options FFS +options NFSSERVER # Sun NFS-compatible filesystem +options NFSCLIENT # Sun NFS-compatible filesystem +options KERNFS # kernel data-structure filesystem +#options FIFO # POSIX fifo support (in all filesystems) +#options QUOTA # fast filesystem with user and group quotas +#options MFS # memory-based filesystem +#options LOFS # Loop-back 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) + +# 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_43 + +options LKM + +# Options for SPARCstation hardware +options COMPAT_SUNOS # compatibility with SunOS binaries + +config netbsd root on sd0 swap on sd0 + +mainbus0 at root +cpu0 at mainbus0 + +sbus0 at mainbus0 + +audio0 at mainbus0 +auxreg0 at mainbus0 +clock0 at mainbus0 +memreg0 at mainbus0 +timer0 at mainbus0 + +zs0 at mainbus0 +zs1 at mainbus0 + +# FSBE/S or sun4m +espdma0 at sbus0 slot ? offset ? +espdma* at sbus0 slot ? offset ? +esp0 at espdma? slot ? offset ? +esp* at espdma? slot ? offset ? + +# old sun4c SCSI +dma0 at sbus0 slot ? offset ? +dma* at sbus0 slot ? offset ? +esp0 at sbus0 slot ? offset ? +esp* at sbus0 slot ? offset ? + +# old sun4c +le0 at sbus? slot ? offset ? +le* at sbus? slot ? offset ? + +bwtwo0 at sbus? slot ? offset ? +bwtwo* at sbus? slot ? offset ? +cgthree0 at sbus? slot ? offset ? +cgthree* at sbus? slot ? offset ? +cgsix0 at sbus? slot ? offset ? +cgsix* at sbus? slot ? offset ? + +scsibus* at esp? + +sd* at scsibus? target ? lun ? +st* at scsibus? target ? lun ? +cd* at scsibus? target ? lun ? + +pseudo-device loop +pseudo-device pty 32 +pseudo-device sl 2 +pseudo-device kbd +pseudo-device ppp 2 +pseudo-device tun 4 +pseudo-device vnd 3 +pseudo-device bpfilter 16 diff --git a/sys/arch/sparc/conf/SUN4M b/sys/arch/sparc/conf/SUN4M new file mode 100644 index 00000000000..dcd654f1ff4 --- /dev/null +++ b/sys/arch/sparc/conf/SUN4M @@ -0,0 +1,93 @@ +# $NetBSD: SUN4M,v 1.4 1995/06/02 17:54:02 pk Exp $ + +machine sparc +options "SUN4M" + +# obsolete timezone spec +options TIMEZONE=0, DST=0 + +# Standard system options +options SWAPPAGER, VNODEPAGER, DEVPAGER # paging +options DEBUG, DIAGNOSTIC # extra kernel debugging +options KTRACE # system call tracing support +#options KGDB # support for kernel gdb +#options KGDBDEV=0xc01, KGDBRATE=38400 # device & baud rate +options RCONSOLE # fast rasterop console +options SYSVMSG,SYSVSEM,SYSVSHM +options "COMPAT_09", "COMPAT_10" + +# Filesystem options +options FFS +options NFSSERVER # Sun NFS-compatible filesystem +options NFSCLIENT # Sun NFS-compatible filesystem +#options KERNFS # kernel data-structure filesystem +#options FIFO # POSIX fifo support (in all filesystems) +#options QUOTA # fast filesystem with user and group quotas +#options MFS # memory-based filesystem +#options LOFS # Loop-back 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) + +# 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_43 + +options LKM + +# Options for SPARCstation hardware +options COMPAT_SUNOS # compatibility with SunOS binaries + +config netbsd root on sd0 swap on sd0 + +mainbus0 at root +cpu0 at mainbus0 + +sbus0 at mainbus0 + +audio0 at mainbus0 +auxreg0 at mainbus0 +clock0 at mainbus0 +memreg0 at mainbus0 +timer0 at mainbus0 + +zs0 at mainbus0 +zs1 at mainbus0 + +# FSBE/S or sun4m +espdma0 at sbus0 slot ? offset ? +espdma* at sbus0 slot ? offset ? +esp0 at espdma? slot ? offset ? +esp* at espdma? slot ? offset ? + +le0 at sbus? slot ? offset ? +le* at sbus? slot ? offset ? + +bwtwo0 at sbus? slot ? offset ? +bwtwo* at sbus? slot ? offset ? +cgthree0 at sbus? slot ? offset ? +cgthree* at sbus? slot ? offset ? +cgsix0 at sbus? slot ? offset ? +cgsix* at sbus? slot ? offset ? + +scsibus* at esp? + +# drives here, drives there... +sd* at scsibus? target ? lun ? +st* at scsibus? target ? lun ? +cd* at scsibus? target ? lun ? + +pseudo-device loop +pseudo-device pty 32 +pseudo-device sl 2 +pseudo-device kbd +pseudo-device ppp 2 +pseudo-device tun 4 +pseudo-device vnd 3 +pseudo-device bpfilter 16 diff --git a/sys/arch/sparc/conf/TDR b/sys/arch/sparc/conf/TDR new file mode 100644 index 00000000000..e6b2ca0f0ac --- /dev/null +++ b/sys/arch/sparc/conf/TDR @@ -0,0 +1,102 @@ +# $NetBSD: TDR,v 1.24 1995/06/02 17:54:04 pk Exp $ + +# Kernel for Theo's wimpy sparcstation IPC + +machine sparc +options "SUN4C" + +# obsolete timezone spec +options TIMEZONE=0, DST=0 + +# Standard system options +options SWAPPAGER, VNODEPAGER, DEVPAGER # paging +#options DEBUG, DIAGNOSTIC # extra kernel debugging +options KTRACE # system call tracing support +#options KGDB # support for kernel gdb +#options KGDBDEV=0xc01, KGDBRATE=38400 # device & baud rate +options RCONSOLE # fast rasterop console +options SYSVMSG,SYSVSEM,SYSVSHM +options "COMPAT_09", "COMPAT_10" + +# Filesystem options +options FFS +options NFSSERVER # Sun NFS-compatible filesystem +options NFSCLIENT # Sun NFS-compatible filesystem +options KERNFS # kernel data-structure filesystem +#options FIFO # POSIX fifo support (in all filesystems) +#options QUOTA # fast filesystem with user and group quotas +#options MFS # memory-based filesystem +#options LOFS # Loop-back 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) + +# 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_43 + +options LKM + +# Options for SPARCstation hardware +options COMPAT_SUNOS # compatibility with SunOS binaries + +config netbsd root on sd0 swap on sd0 + +mainbus0 at root +cpu0 at mainbus0 + +sbus0 at mainbus0 + +audio0 at mainbus0 +auxreg0 at mainbus0 +clock0 at mainbus0 +memreg0 at mainbus0 +timer0 at mainbus0 + +zs0 at mainbus0 +zs1 at mainbus0 + +# FSBE/S or sun4m +espdma0 at sbus0 slot ? offset ? +espdma* at sbus0 slot ? offset ? +esp0 at espdma? slot ? offset ? +esp* at espdma? slot ? offset ? + +# old sun4c SCSI +dma0 at sbus0 slot ? offset ? +dma* at sbus0 slot ? offset ? +esp0 at sbus0 slot ? offset ? +esp* at sbus0 slot ? offset ? + +# old sun4c +le0 at sbus? slot ? offset ? +le* at sbus? slot ? offset ? + +bwtwo0 at sbus? slot ? offset ? +bwtwo* at sbus? slot ? offset ? +cgthree0 at sbus? slot ? offset ? +cgthree* at sbus? slot ? offset ? +cgsix0 at sbus? slot ? offset ? +cgsix* at sbus? slot ? offset ? + +scsibus* at esp? + +# drives here, drives there... +sd* at scsibus? target ? lun ? +st* at scsibus? target ? lun ? +cd* at scsibus? target ? lun ? + +pseudo-device loop +pseudo-device pty 32 +pseudo-device sl 2 +pseudo-device kbd +pseudo-device ppp 2 +pseudo-device tun 4 +pseudo-device vnd 3 +pseudo-device bpfilter 16 diff --git a/sys/arch/sparc/conf/files.sparc b/sys/arch/sparc/conf/files.sparc new file mode 100644 index 00000000000..dd88e6b185e --- /dev/null +++ b/sys/arch/sparc/conf/files.sparc @@ -0,0 +1,162 @@ +# $NetBSD: files.sparc,v 1.12 1995/10/05 00:21:35 pk Exp $ + +# @(#)files.sparc 8.1 (Berkeley) 7/19/93 +# sparc-specific configuration info + +# maxpartitions must be first item in files.${ARCH}.newconf +maxpartitions 8 + +maxusers 2 8 64 + +device mainbus at root {} + +device obio at mainbus { [addr = -1], [level = -1] } +device vmel at mainbus { [addr = -1], [level = -1], [vect = -1] } +device vmes at mainbus { [addr = -1], [level = -1], [vect = -1] } +file arch/sparc/dev/obio.c obio vmel vmes + +device audio at mainbus +file arch/sparc/dev/amd7930.c audio needs-flag + +device auxreg at mainbus +file arch/sparc/sparc/auxreg.c + +device clock at mainbus, obio +device oclock at obio +device timer at mainbus, obio +device eeprom at obio +file arch/sparc/sparc/clock.c + +device cpu at mainbus +file arch/sparc/sparc/cpu.c + +device memreg at mainbus, obio +file arch/sparc/sparc/memreg.c + +device zs at mainbus, obio +file arch/sparc/dev/zs.c zs needs-count + +device fdc at mainbus {} +device fd at fdc: disk +file arch/sparc/dev/fd.c fd needs-flag +file arch/sparc/sparc/bsd_fdintr.s fd + +device sbus at mainbus { slot = -1, offset = -1 } +file arch/sparc/dev/sbus.c sbus + +# +# Machine-independent SCSI drivers +# +include "../../../scsi/files.scsi" + +major { sd = 7 } +major { vnd = 8 } +major { cd = 18 } + +device dma at sbus, obio +device espdma at sbus { slot = -1, offset = -1 } +device ledma at sbus { slot = -1, offset = -1 } +file arch/sparc/dev/dma.c dma espdma ledma needs-flag + +device esp at sbus, espdma, obio: scsi +file arch/sparc/dev/esp.c esp needs-flag + +device bwtwo at sbus, obio, vmes, vmel +file arch/sparc/dev/bwtwo.c bwtwo needs-flag + +device cgtwo at sbus, obio, vmes +file arch/sparc/dev/cgtwo.c cgtwo needs-flag + +device cgthree at sbus +file arch/sparc/dev/cgthree.c cgthree needs-flag + +device cgsix at sbus +file arch/sparc/dev/cgsix.c cgsix needs-flag + +file arch/sparc/dev/bt_subr.c cgsix cgthree + +device le at sbus, ledma, obio: ifnet, ether +file arch/sparc/dev/if_le.c le + +device ie at obio, vmes, vmel: ifnet, ether +file arch/sparc/dev/if_ie.c ie + +device xdc at vmel {drive = -1} +device xd at xdc: disk +file arch/sparc/dev/xd.c xd needs-flag +major {xd = 10} + +device xyc at vmes {drive = -1} +device xy at xyc: disk +file arch/sparc/dev/xy.c xy needs-flag +major {xy = 3} + +device si at vmes: scsi +device sw at obio: scsi +file arch/sparc/dev/si.c si sw needs-flag + +pseudo-device kbd + +file arch/sparc/dev/cons.c +file arch/sparc/dev/event.c +file arch/sparc/dev/fb.c +file arch/sparc/dev/ms.c +file arch/sparc/dev/kbd.c kbd + +file arch/sparc/fpu/fpu.c +file arch/sparc/fpu/fpu_add.c +file arch/sparc/fpu/fpu_compare.c +file arch/sparc/fpu/fpu_div.c +file arch/sparc/fpu/fpu_explode.c +file arch/sparc/fpu/fpu_implode.c +file arch/sparc/fpu/fpu_mul.c +file arch/sparc/fpu/fpu_sqrt.c +file arch/sparc/fpu/fpu_subr.c + +# N.B.: optimizer breaks pmap.c and/or cache.c somehow -- have not +# identified the exact problem yet. NOOPT_C suffices for now. +file arch/sparc/sparc/autoconf.c +file arch/sparc/sparc/amd7930intr.s audio +file arch/sparc/sparc/cache.c +file arch/sparc/sparc/conf.c +file arch/sparc/sparc/in_cksum.c +file arch/sparc/sparc/intr.c +file arch/sparc/sparc/kgdb_stub.c +# sparc/sparc/locore.s is handled specially in the makefile, +# because it must come first in the "ld" command line. +file arch/sparc/sparc/locore2.c +file arch/sparc/sparc/machdep.c +file arch/sparc/sparc/process_machdep.c +file arch/sparc/sparc/mem.c +file arch/sparc/sparc/openprom.c +file arch/sparc/sparc/pmap.c +# the following overrides the generic "sys_process.c" +# commented out by deraadt +#file arch/sparc/sparc/sys_process.c +file arch/sparc/sparc/sys_machdep.c +file arch/sparc/sparc/trap.c +file arch/sparc/sparc/vm_machdep.c +file arch/sparc/sparc/disksubr.c + +file kludge_for_in_proto.c hy needs-flag + +file arch/sparc/sparc/db_interface.c ddb +file arch/sparc/sparc/db_trace.c ddb +file arch/sparc/sparc/db_disasm.c ddb + +# +# Raster Console +# +include "../../../dev/rcons/files.rcons" + +# +# Compatibility modules +# + +# SVR4 Binary Compatibility (COMPAT_SVR4) +include "../../../compat/svr4/files.svr4" +file arch/sparc/sparc/svr4_machdep.c compat_svr4 +file arch/sparc/sparc/sunos_machdep.c compat_sunos + +# SunOS Binary Compatibility (COMPAT_SUNOS) +include "../../../compat/sunos/files.sunos" |