diff options
author | gingold <gingold@cvs.openbsd.org> | 1997-10-14 07:25:35 +0000 |
---|---|---|
committer | gingold <gingold@cvs.openbsd.org> | 1997-10-14 07:25:35 +0000 |
commit | f6491d400ca651a8a1493d72c6a74c622aa231b1 (patch) | |
tree | 39f29255154f230f637c12e9214f12a9e64bd9d4 /sys/arch/kbus/conf | |
parent | 7a9e3739a66bd0fadfdc611c72e879fcc6f9ef01 (diff) |
Gingold's port for kbus Series5 machine. Not fully finished and not very stable
Diffstat (limited to 'sys/arch/kbus/conf')
-rw-r--r-- | sys/arch/kbus/conf/DEFAULT | 111 | ||||
-rw-r--r-- | sys/arch/kbus/conf/DISKLESS | 112 | ||||
-rw-r--r-- | sys/arch/kbus/conf/Makefile.kbus | 160 | ||||
-rw-r--r-- | sys/arch/kbus/conf/files.kbus | 144 |
4 files changed, 527 insertions, 0 deletions
diff --git a/sys/arch/kbus/conf/DEFAULT b/sys/arch/kbus/conf/DEFAULT new file mode 100644 index 00000000000..2e05cca852f --- /dev/null +++ b/sys/arch/kbus/conf/DEFAULT @@ -0,0 +1,111 @@ +# +# DEFAULT: default install kernel +# + +machine kbus + +maxusers 8 # estimated number of users +options TIMEZONE=0, DST=0 # time zone to read RTC in +options SWAPPAGER # paging +options DEVPAGER # device node caching +options OLD_PIPE +#options KGDB + +options DDB # kernel debugger; recommended +#options DIAGNOSTIC # internal consistency checking +options KTRACE # system call tracing, a la ktrace(1) + +options ACCOUNTING # process accounting +#options FIFO # fifos; recommended +#options SYSVSHM # System V shared memory; broken +#options SHMMAXPGS=1024 +#options LKM # loadable kernel modules +#options LEDEBUG + +# compatibility options +#options COMPAT_09 # NetBSD 0.9, +#options COMPAT_10 # NetBSD 1.0, +#options COMPAT_43 # and 4.3BSD +#options TCP_COMPAT_42 # TCP bug compatibility with 4.2BSD +options COMPAT_SUNOS # Compatibility with SunOS binaries + +# file system options +#options QUOTA # file system quotas +options FFS # Berkeley fast file system +#options LFS # log-structered file system +#options MFS # memory file system; uses RAM and swap +#options MSDOSFS # MS-DOS file system +#options CD9660 # ISO 9660 CD-ROM file system, with RR +#options NULLFS # loopback file system +#options UMAPFS # NULLFS + uid and gid remapping +#options UNION # union file system +#options PORTAL # /portal +#options FDESC # /dev/fd +#options KERNFS # /kern +#options PROCFS # /proc +#options NFSSERVER # Network File System server +options NFSCLIENT # Network File System client + +# networking options +#options GATEWAY # packet forwarding +options INET # IP + ICMP + TCP + UDP +#options NS # XNS +#options ISO,TPIP # OSI +#options EON # OSI tunneling over IP +#options CCITT,LLC,HDLC # X.25 + +# pc532 specific options +#options COMDEF_SPEED=B19200 # default baud on the scn chips +#options PLIP # PLIP driver in dev/lpt.c + +#config netbsd root on nfs swap on nfs +config netbsd swap generic + +mainbus0 at root + +kbus0 at mainbus? +vmel0 at mainbus? +vmeh0 at mainbus? +vmes0 at mainbus? + +zsc1 at kbus0 addr 0x17012000 +zsc0 at kbus0 addr 0x17011000 + +# clock +clock0 at zsc0 channel 1 # clock + +# +# Serial ports +# +zstty0 at zsc1 channel 0 # ttya +zstty1 at zsc1 channel 1 # ttyb + +# Lance Ethernet (only onboard) +sle0 at kbus0 addr 0x90001000 level 3 + +# Xylogics 753 controllers +xdc0 at vmes0 addr 0xffffee80 level 2 vect 0x44 +# xdc1 at vmes0 addr 0xffffee90 level 2 vect 0x45 +xd* at xdc? drive ? + +# WD33C93A SCSI controler. +si0 at kbus? addr 0x90000800 + +scsibus* at si? + +#sd* at scsibus? target ? lun ? +st* at scsibus? target ? lun ? # SCSI Tapes +#cd* at scsibus? target ? lun ? +#ch* at scsibus? target ? lun ? +#ss* at scsibus? target ? lun ? +#uk* at scsibus? target ? lun ? + +pseudo-device pty 16 # pseudo-terminals +pseudo-device loop 1 # loopback network +#pseudo-device vnd 2 # vnode devices +#pseudo-device bpfilter 4 # packet filter +#pseudo-device sl 1 # compressed SLIP +#pseudo-device ppp 1 # Point-to-Point Protocol +#pseudo-device tun 1 # network tunneling + + diff --git a/sys/arch/kbus/conf/DISKLESS b/sys/arch/kbus/conf/DISKLESS new file mode 100644 index 00000000000..4e03cdf7ae0 --- /dev/null +++ b/sys/arch/kbus/conf/DISKLESS @@ -0,0 +1,112 @@ +# +# DEFAULT: default install kernel +# + +machine kbus + +maxusers 8 # estimated number of users +options TIMEZONE=0, DST=0 # time zone to read RTC in +options SWAPPAGER # paging +options DEVPAGER # device node caching +options OLD_PIPE +#options KGDB + +options DDB # kernel debugger; recommended +#options DIAGNOSTIC # internal consistency checking +#options KTRACE # system call tracing, a la ktrace(1) + +#options ACCOUNTING # process accounting +#options FIFO # fifos; recommended +#options SYSVSHM # System V shared memory; broken +#options SHMMAXPGS=1024 +#options LKM # loadable kernel modules +options LEDEBUG + +# compatibility options +#options COMPAT_09 # NetBSD 0.9, +#options COMPAT_10 # NetBSD 1.0, +#options COMPAT_43 # and 4.3BSD +#options TCP_COMPAT_42 # TCP bug compatibility with 4.2BSD +options COMPAT_SUNOS # Compatibility with SunOS binaries + +# file system options +#options QUOTA # file system quotas +options FFS # Berkeley fast file system +#options LFS # log-structered file system +#options MFS # memory file system; uses RAM and swap +#options MSDOSFS # MS-DOS file system +#options CD9660 # ISO 9660 CD-ROM file system, with RR +#options NULLFS # loopback file system +#options UMAPFS # NULLFS + uid and gid remapping +#options UNION # union file system +#options PORTAL # /portal +#options FDESC # /dev/fd +#options KERNFS # /kern +#options PROCFS # /proc +#options NFSSERVER # Network File System server +options NFSCLIENT # Network File System client + +# networking options +#options GATEWAY # packet forwarding +options INET # IP + ICMP + TCP + UDP +#options NS # XNS +#options ISO,TPIP # OSI +#options EON # OSI tunneling over IP +#options CCITT,LLC,HDLC # X.25 + +# pc532 specific options +#options COMDEF_SPEED=B19200 # default baud on the scn chips +#options PLIP # PLIP driver in dev/lpt.c + +config netbsd root on nfs swap on nfs +#config netbsd swap generic +options GENERIC + +mainbus0 at root + +kbus0 at mainbus? +vmel0 at mainbus? +vmeh0 at mainbus? +vmes0 at mainbus? + +zsc1 at kbus0 addr 0x17012000 +zsc0 at kbus0 addr 0x17011000 + +# clock +clock0 at zsc0 channel 1 # clock + +# +# Serial ports +# +zstty0 at zsc1 channel 0 # ttya +zstty1 at zsc1 channel 1 # ttyb + +# Lance Ethernet (only onboard) +sle0 at kbus0 addr 0x90001000 level 3 + +# Xylogics 753 controllers +xdc0 at vmes0 addr 0xffffee80 level 2 vect 0x44 +# xdc1 at vmes0 addr 0xffffee90 level 2 vect 0x45 +xd* at xdc? drive ? + +# WD33C93A SCSI controler. +si0 at kbus? addr 0x90000800 + +scsibus* at si? + +#sd* at scsibus? target ? lun ? +st* at scsibus? target ? lun ? # SCSI Tapes +#cd* at scsibus? target ? lun ? +#ch* at scsibus? target ? lun ? +#ss* at scsibus? target ? lun ? +#uk* at scsibus? target ? lun ? + +pseudo-device pty 16 # pseudo-terminals +pseudo-device loop 1 # loopback network +#pseudo-device vnd 2 # vnode devices +#pseudo-device bpfilter 4 # packet filter +#pseudo-device sl 1 # compressed SLIP +#pseudo-device ppp 1 # Point-to-Point Protocol +#pseudo-device tun 1 # network tunneling + + diff --git a/sys/arch/kbus/conf/Makefile.kbus b/sys/arch/kbus/conf/Makefile.kbus new file mode 100644 index 00000000000..f537691682f --- /dev/null +++ b/sys/arch/kbus/conf/Makefile.kbus @@ -0,0 +1,160 @@ +# $NetBSD: Makefile.kbus,v 1.15 1996/01/14 21:06:52 thorpej Exp $ + +# Copyright 1990 W. Jolitz +# @(#)Makefile.i386 7.1 5/10/91 +# +# Makefile for NetBSD/Kbus +# +# Edited by Philip A. Nelson +# +# This makefile is constructed from a machine description: +# config machineid +# Most changes should be made in the machine description +# /sys/arch/kbus/conf/``machineid'' +# after which you should do +# config machineid +# Generic makefile changes should be made in +# /sys/arch/kbus/conf/Makefile.kbus +# after which config should be rerun for all machines. +# +# N.B.: NO DEPENDENCIES ON FOLLOWING FLAGS ARE INVISIBLE 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 +# + +TOUCH= touch -f -c +HOSTCC= gcc +HOST=sparc-sun-sunos4- +AS= $(HOST)as +LD= $(HOST)ld +CC= $(HOST)gcc +CPP= $(HOST)cpp +AWK= awk + +S= ../../../.. +KBUS= ../.. + +.s.o: + $(CC) -x assembler-with-cpp -traditional-cpp -c ${COPTS} ${KBUS}/kbus/$*.s ${ASFLAGS} -o $*.o + +CPPFLAGS= -I. -I$S -I$S/sys -I${KBUS} +INCLUDES=$(CPPFLAGS) +COPTS= ${INCLUDES} ${IDENT} -D_KERNEL +CDIAGFLAGS= -Wall -Werror -Wno-format -Wstrict-prototypes -Wmissing-prototypes +CFLAGS= -pipe -O ${COPTS} ${CDIAGFLAGS} +ASFLAGS= + +### 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 + +NORMAL_S= (${CPP} ${COPTS} ${PROF} $< | ${AS} ${ASFLAGS} -o $*.o) +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} $< +SYSTEM_OBJS=locore.o ${OBJS} param.o ioconf.o conf.o ${LIBKERN} \ + ${LIBCOMPAT} +SYSTEM_DEP=Makefile ${SYSTEM_OBJS} +SYSTEM_LD_HEAD= @echo loading $@; rm -f $@ +SYSTEM_LD= ${LD} -T ${KBUS}/kbus/ldscript -e start -d -o $@ -X ${SYSTEM_OBJS} vers.o +SYSTEM_LD_TAIL= $(HOST)size $@ ; $(HOST)nm -n $@ > SYMMS ; chmod 755 $@; cp $@ /tftpboot + +%OBJS + +%CFILES + +%LOAD + +clean:: + rm -f eddep *netbsd tags *.o locore.i [a-uw-z]*.s \ + errs linterrs makelinks genassym + +#lint: /tmp param.c +# @lint -hbxn -I. -DGENERIC -Dvolatile= ${COPTS} ${PARAM} \ +# ${I386}/i386/Locore.c ${CFILES} ioconf.c param.c | \ +# grep -v 'struct/union .* never defined' | \ +# grep -v 'possible pointer alignment problem' + +locore.o: assym.h ${KBUS}/kbus/locore.s + +# the following is necessary because autoconf.o depends on #if GENERIC +autoconf.o: Makefile + +# depend on network configuration +af.o uipc_domain.o uipc_proto.o locore.o: Makefile +if_tun.o if_loop.o if_ethersubr.o: Makefile +in_proto.o: Makefile + +# depend on maxusers +assym.s machdep.o: Makefile + +# depends on KDB (cons.o also depends on GENERIC) +trap.o cons.o: Makefile + +assym.s: $S/sys/param.h machine/pte.h $S/sys/buf.h \ + $S/sys/vmmeter.h \ + $S/sys/proc.h $S/sys/msgbuf.h machine/vmparam.h + +assym.h: genassym + ./genassym >assym.h + +genassym: ${KBUS}/kbus/genassym.c + ${HOSTCC} ${INCLUDES} -D_KERNEL ${IDENT} ${PARAM} \ + ${KBUS}/kbus/genassym.c -o genassym + +depend:: .depend +.depend: assym.h param.c + mkdep ${COPTS} ${CFILES} ioconf.c + mkdep -a -p ${INCLUDES} ${IDENT} ${PARAM} ${KBUS}/kbus/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 $S/sys/param.h $S/sys/buf.h + ${CC} -c ${CFLAGS} ioconf.c + +conf.o: $S/sys/param.h $S/sys/systm.h $S/sys/buf.h $S/sys/ioctl.h \ + $S/sys/tty.h $S/sys/conf.h ${KBUS}/kbus/conf.c + ${CC} -c ${CFLAGS} ${KBUS}/kbus/conf.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 + +vers.o: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP} + sh $S/conf/newvers.sh + ${CC} ${CFLAGS} -c vers.c + +# for config.new +newvers: + sh $S/conf/newvers.sh + ${CC} ${CFLAGS} -c vers.c + +%RULES + diff --git a/sys/arch/kbus/conf/files.kbus b/sys/arch/kbus/conf/files.kbus new file mode 100644 index 00000000000..d2029f7c967 --- /dev/null +++ b/sys/arch/kbus/conf/files.kbus @@ -0,0 +1,144 @@ +# $NetBSD: files.series5,v 1.16 1995/11/30 00:58:42 jtc Exp $ +# +# new style config file for kbus architecture +# + +# maxpartitions must be first item in files.${ARCH}.newconf +maxpartitions 16 + +maxusers 2 16 64 + +device mainbus {} +attach mainbus at root +file arch/kbus/kbus/mainbus.c mainbus + +device kbus {addr = -1, [level = -1]} +attach kbus at mainbus +file arch/kbus/dev/kbus.c kbus + +# VME Space +device vmel {addr = -1, [level = -1], [vect = -1]} +attach vmel at mainbus +device vmeh {addr = -1, [level = -1], [vect = -1]} +attach vmeh at mainbus +device vmes {addr = -1, [level = -1], [vect = -1]} +attach vmes at mainbus +file arch/kbus/dev/vme.c vmel | vmeh | vmes + +major {vnd = 5} + +#device rd at membus: disk +#file arch/kbus/dev/rd.c rd needs-count +#major {rd = 3} + +#device timer at membus +#device clock at membus +file arch/kbus/kbus/clock.c # clock timer + +device zsc {channel = -1} +attach zsc at kbus +file arch/kbus/dev/zs.c zsc needs-flag +file dev/ic/z8530sc.c zsc + +device clock +attach clock at zsc + +device zstty: tty +attach zstty at zsc +file dev/ic/z8530tty.c zstty needs-flag +file arch/skbus/dev/zs_kgdb.c kgdb + +# device defined in sys/conf/files +device sle: ether, ifnet +attach sle at kbus +file arch/kbus/dev/if_le.c sle +file arch/kbus/dev/am7990.c sle + + +include "../../../scsi/files.scsi" + +device si: scsi +attach si at kbus +file arch/kbus/dev/sbic.c si +file arch/kbus/dev/sbicdma.c si + + +#define scsi {} + +#device ncr at membus: scsi +#file arch/kbus/dev/ncr.c ncr needs-count +#device oldncr at membus: scsi +#file arch/kbus/dev/oldncr.c oldncr needs-count +#device dp at membus: scsi +#file arch/kbus/dev/dp.c dp needs-count +#device aic at membus: scsi +#file arch/kbus/dev/aic.c aic needs-count + +#device scsibus at scsi {target = -1, lun = -1} + +#device cd at scsibus: disk +#file scsi/cd.c cd needs-flag +#major {cd = 4} +#device sd at scsibus: disk +#file scsi/sd.c sd needs-flag +#major {sd = 0} +#device st at scsibus: tape +#file scsi/st.c st needs-flag +#major {st = 2} +#device ch at scsibus: disk +#file scsi/ch.c ch needs-flag +#device uk at scsibus: disk +#file scsi/uk.c uk needs-flag +#device su at scsibus: disk +#file scsi/su.c su needs-flag +#device ss at scsibus: tape +#file scsi/ss.c ss needs-flag + +# +# VME +# +device xdc {drive = -1} +attach xdc at vmes +device xd: disk +attach xd at xdc +file arch/kbus/dev/xd.c xd needs-flag + +file dev/cons.c +#file scsi/scsiconf.c scsi +#file scsi/scsi_base.c scsi +#file scsi/scsi_ioctl.c scsi +file arch/kbus/kbus/autoconf.c +file arch/kbus/kbus/locore2.c +file arch/kbus/kbus/db_disasm.c ddb +file arch/kbus/kbus/db_interface.c ddb +file arch/kbus/kbus/db_trace.c ddb +file arch/kbus/kbus/disksubr.c disk +#file arch/kbus/kbus/icuinit.c +file arch/kbus/kbus/in_cksum.c inet +file arch/kbus/kbus/intr.c +file arch/kbus/kbus/machdep.c +file arch/kbus/kbus/mem.c +file arch/kbus/kbus/ns_cksum.c ns +#file arch/kbus/kbus/ntoh.s +file arch/kbus/kbus/pmap.c +file arch/kbus/kbus/process_machdep.c +#file arch/kbus/kbus/random.s +file arch/kbus/kbus/sys_machdep.c +file arch/kbus/kbus/trap.c +file arch/kbus/kbus/vm_machdep.c + +file arch/kbus/fpu/fpu.c +file arch/kbus/fpu/fpu_add.c +file arch/kbus/fpu/fpu_compare.c +file arch/kbus/fpu/fpu_div.c +file arch/kbus/fpu/fpu_explode.c +file arch/kbus/fpu/fpu_implode.c +file arch/kbus/fpu/fpu_mul.c +file arch/kbus/fpu/fpu_sqrt.c +file arch/kbus/fpu/fpu_subr.c + +# SunOS Binary Compatibility (COMPAT_SUNOS) +include "../../../compat/sunos/files.sunos" +file arch/kbus/kbus/sunos_machdep.c compat_sunos + + |