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/pc532/conf |
initial import of NetBSD tree
Diffstat (limited to 'sys/arch/pc532/conf')
-rw-r--r-- | sys/arch/pc532/conf/DEFAULT | 90 | ||||
-rw-r--r-- | sys/arch/pc532/conf/INSTALL | 65 | ||||
-rw-r--r-- | sys/arch/pc532/conf/KLONDIKE | 84 | ||||
-rw-r--r-- | sys/arch/pc532/conf/Makefile.pc532 | 159 | ||||
-rw-r--r-- | sys/arch/pc532/conf/STEELHEAD | 85 | ||||
-rw-r--r-- | sys/arch/pc532/conf/files.pc532 | 80 |
6 files changed, 563 insertions, 0 deletions
diff --git a/sys/arch/pc532/conf/DEFAULT b/sys/arch/pc532/conf/DEFAULT new file mode 100644 index 00000000000..f25774619f9 --- /dev/null +++ b/sys/arch/pc532/conf/DEFAULT @@ -0,0 +1,90 @@ +# +# DEFAULT: default install kernel +# Only has scn0-5 are configured. +# Instead of scn6/7 the lpt0/1 devices get into the kernel. +# + +machine pc532 + +maxusers 8 # estimated number of users +options TIMEZONE=0, DST=0 # time zone to read RTC in +options SWAPPAGER # paging +options VNODEPAGER,DEVPAGER # vnode and device node caching + +#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 + +# 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 + +# 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 +options DEV_RTC # RTC driver in pc532/mem.c +options NO_INLINE_SPLX # don't inline splx calls + +config netbsd swap generic +options GENERIC + +membus0 at root + +ncr0 at membus? + +scsibus0 at scsi? + +sd* at scsibus? target ? lun ? # SCSI disks +st* at scsibus? target ? lun ? # SCSI tapes +cd* at scsibus? target ? lun ? # SCSI CD-ROMs + +scn0 at membus? +scn1 at membus? +scn2 at membus? +scn3 at membus? +scn4 at membus? +scn5 at membus? + +lpt0 at membus? addr 0xffc80030 irq 7 +lpt1 at membus? addr 0xffc80034 irq 6 + +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/pc532/conf/INSTALL b/sys/arch/pc532/conf/INSTALL new file mode 100644 index 00000000000..2ae8556d6c4 --- /dev/null +++ b/sys/arch/pc532/conf/INSTALL @@ -0,0 +1,65 @@ +# $NetBSD: INSTALL,v 1.3 1995/09/29 04:16:48 phil Exp $ +# +# INSTALL -- install kernel +# +# + +# architecture type and name of kernel; REQUIRED +machine "pc532" + +# time zone RTC is expected to be set in; REQUIRED +options TIMEZONE=0, DST=0 # time zone to read RTC in +options GENERIC + +# estimated number of users +maxusers 2 + +# paging of processes, and caching vnodes and devices; REQUIRED +options SWAPPAGER +options VNODEPAGER +options DEVPAGER + +# networking options +#options INET + +# generic SCSI system +options SCSI + +# filesystems +#options FIFO +options MSDOSFS +options FFS +#options NFSCLIENT +options CD9660 + +# pc532 special options +# options PLIP +options NO_INLINE_SPLX + +config "netbsd" swap generic + +membus0 at root + +rd0 at membus? +options RD_SIZE=0x200000 + +ncr0 at membus? +scsibus0 at scsi? + +sd* at scsibus? target ? lun ? +st* at scsibus? target ? lun ? +cd* at scsibus? target ? lun ? + +scn0 at membus? +scn1 at membus? +scn2 at membus? +scn3 at membus? +#scn4 at membus? +#scn5 at membus? + +#lpt0 at membus? addr 0xffc80030 irq 7 +#lpt1 at membus? addr 0xffc80034 irq 6 + +#pseudo-device loop 1 # loopback network +#pseudo-device sl 1 # compressed SLIP +#pseudo-device ppp 1 # Point-to-Point Protocol diff --git a/sys/arch/pc532/conf/KLONDIKE b/sys/arch/pc532/conf/KLONDIKE new file mode 100644 index 00000000000..4bbf1a1998d --- /dev/null +++ b/sys/arch/pc532/conf/KLONDIKE @@ -0,0 +1,84 @@ +# $NetBSD: KLONDIKE,v 1.2 1995/09/26 20:16:01 phil Exp $ +# +# KLONDIKE: Matthias Pfaller's pc532 +# + +machine pc532 + +maxusers 8 # estimated number of users +options TIMEZONE=0, DST=0 # time zone to read RTC in +options SWAPPAGER # paging +options VNODEPAGER,DEVPAGER # vnode and device node caching + +#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 + +# compatibility options +options COMPAT_43 # 4.3 system calls + +# 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 +options DEV_RTC # RTC driver in pc532/mem.c + +config netbsd root on sd0a swap on sd0b and sd1b + +membus0 at root +#clock0 at membus? +#timer0 at membus? + +ncr0 at membus? + +scsibus0 at scsi? + +sd* at scsibus? target ? lun ? # SCSI disks +st* at scsibus? target ? lun ? # SCSI tapes +cd* at scsibus? target ? lun ? # SCSI CD-ROMs + +scn0 at membus? +scn1 at membus? +scn2 at membus? +scn3 at membus? + +lpt0 at membus? addr 0xffc80030 irq 7 +lpt1 at membus? addr 0xffc80034 irq 6 + +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 # ip tunneling diff --git a/sys/arch/pc532/conf/Makefile.pc532 b/sys/arch/pc532/conf/Makefile.pc532 new file mode 100644 index 00000000000..a1fd431b9bd --- /dev/null +++ b/sys/arch/pc532/conf/Makefile.pc532 @@ -0,0 +1,159 @@ +# $NetBSD: Makefile.pc532,v 1.14 1995/09/19 23:51:40 thorpej Exp $ + +# Copyright 1990 W. Jolitz +# @(#)Makefile.i386 7.1 5/10/91 +# +# Makefile for NetBSD/532 +# +# 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/pc532/conf/``machineid'' +# after which you should do +# config machineid +# Generic makefile changes should be made in +# /sys/arch/pc532/conf/Makefile.pc532 +# 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 +AS= as +LD= ld +CC= cc +CPP= cpp +AWK= awk + +S= ../../../.. +PC532= ../.. + +.s.o:; (${CPP} ${COPTS} ${PC532}/pc532/$*.s | ${AS} ${ASFLAGS} -o $*.o) + +INCLUDES= -I. -I$S -I$S/sys -I${PC532} +COPTS= ${INCLUDES} ${IDENT} -D_KERNEL +ASFLAGS= +CFLAGS= -O -Werror -fno-builtin -msb ${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 + +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 vnode_if.o ${LIBKERN} \ + ${LIBCOMPAT} +SYSTEM_DEP=Makefile ${SYSTEM_OBJS} +SYSTEM_LD_HEAD= @echo loading $@; rm -f $@ +SYSTEM_LD= @${LD} -z -T FE002000 -o $@ -X vers.o ${SYSTEM_OBJS} +SYSTEM_LD_TAIL= size $@ ; nm -n $@ > SYMMS ; chmod 755 $@ + +%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 ${PC532}/pc532/locore.s \ + ${PC532}/pc532/bcopy.s ${PC532}/pc532/bzero.s + +# the following is necessary because autoconf.o depends on #if GENERIC +autoconf.o: Makefile + +# depend on network configuration +af.o uipc_proto.o locore.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: ${PC532}/pc532/genassym.c + ${CC} -static ${INCLUDES} -D_KERNEL ${IDENT} ${PARAM} \ + ${PC532}/pc532/genassym.c -o genassym + +depend: assym.h param.c vnode_if.h + sh /usr/bin/mkdep ${COPTS} ${CFILES} ioconf.c + sh /usr/bin/mkdep -a -p ${INCLUDES} ${IDENT} ${PARAM} ${PC532}/pc532/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 \ + ${PC532}/dev/device.h machine/icu.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 ${PC532}/pc532/conf.c + ${CC} -traditional -c ${CFLAGS} ${PC532}/pc532/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 + +# This allows you to specify which "awk" you will run, i.e.: +# make AWK=nawk ... +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/pc532/conf/STEELHEAD b/sys/arch/pc532/conf/STEELHEAD new file mode 100644 index 00000000000..076615e0393 --- /dev/null +++ b/sys/arch/pc532/conf/STEELHEAD @@ -0,0 +1,85 @@ +# $NetBSD: STEELHEAD,v 1.9 1995/09/26 20:16:02 phil Exp $ +# +# STEELHEAD: Phil Nelson's pc532 +# +machine "pc532" + +maxusers 10 # estimated number of users +options TIMEZONE=0, DST=0 # time zone to read RTC in +options SWAPPAGER # paging +options VNODEPAGER,DEVPAGER # vnode and device node caching +#options DDB # kernel debugger; not working +#options DIAGNOSTIC # internal consistency checking + +#options ACCOUNTING # process accounting +options KTRACE # system call tracing, a la ktrace(1) +options FIFO # fifos; recommended +#options SYSVSHM # System V shared memory; broken +#options "SHMMAXPGS=1024" +#options LKM # loadable kernel modules + +# compatibility options +options "COMPAT_43" # 4.3 system calls +options "TCP_COMPAT_42" # 4.2 networking ABI +options "COMPAT_09" # NetBSD-0.9 +options "COMPAT_10" # NetBSD-1.0 + +# file system options +#options QUOTA # file system quotas +options FFS # Berkeley fast file system +#options FASTLINKS # fast symbolic links in FFS +#options MFS # memory file system; uses RAM and swap +options NFSSERVER # Network File System server +options NFSCLIENT # Network File System client +#options ISOFS # ISO 9660 CD-ROM file system, with RR +#options MSDOSFS # MS-DOS FAT file system +options FDESC # /dev/fd +options KERNFS # kernel file system; recommended + +# networking options +#options GATEWAY # packet forwarding +options INET # IP +#options NS # XNS +#options CCITT # X.25 +#options ISO # OSI +#options TPIP # ? +#options EON # ? + +# pc532 specific options +options "COMDEF_SPEED=B19200" # default baud on the scn chips +#options "RAMD_SIZE=1536000" # Size of the "boot strap ram disk" +#options "RAMD_ADR=0x400000" # Adr of the "boot strap ram disk" +options "CONFIG_NEW" # Use config.new stuff +options "DEV_RTC" # /dev/rtc access to hardware clock +options "CON_BRK_PANIC" # 3 breaks on tty0 -> panic? y/n + +config "netbsd" root on sd0 swap on sd0 and sd1 and vnd0a + +membus0 at root + +#rd0 at membus? + +ncr0 at membus? + +scsibus0 at scsi? + +sd* at scsibus? target ? lun ? # SCSI disks +st* at scsibus? target ? lun ? # SCSI tapes +#cd* at scsibus? target ? lun ? # SCSI ??? + +scn0 at membus? +scn1 at membus? +scn2 at membus? +scn3 at membus? +scn4 at membus? +scn5 at membus? +scn6 at membus? +scn7 at membus? + +pseudo-device pty 16 # pseudo-terminals +pseudo-device loop 1 # loopback network +pseudo-device bpfilter 4 # packet filter +pseudo-device sl 1 # compressed SLIP +pseudo-device ppp 1 # Point-to-Point Protocol +pseudo-device vnd 4 # Vnode devices +#pseudo-device ether # diff --git a/sys/arch/pc532/conf/files.pc532 b/sys/arch/pc532/conf/files.pc532 new file mode 100644 index 00000000000..06d6a76db93 --- /dev/null +++ b/sys/arch/pc532/conf/files.pc532 @@ -0,0 +1,80 @@ +# $NetBSD: files.pc532,v 1.15.2.1 1995/10/17 00:18:56 phil Exp $ +# +# new style config file for pc532 architecture +# + +# maxpartitions must be first item in files.${ARCH}.newconf +maxpartitions 8 + +maxusers 2 16 64 + +device membus at root {[addr = -1], [irq = -1]} + +major {vnd = 5} + +device rd at membus: disk +file arch/pc532/dev/rd.c rd needs-count +major {rd = 3} + +#device timer at membus +#device clock at membus +file arch/pc532/pc532/clock.c # clock timer + +device scn at membus: tty +file arch/pc532/dev/scn.c scn needs-flag + +device lpt at membus: ether, ifnet +file arch/pc532/dev/lpt.c lpt needs-count + +define scsi {} + +device ncr at membus: scsi +file arch/pc532/dev/ncr.c ncr needs-count +device oldncr at membus: scsi +file arch/pc532/dev/oldncr.c oldncr needs-count +device dp at membus: scsi +file arch/pc532/dev/dp.c dp needs-count +device aic at membus: scsi +file arch/pc532/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 + +file dev/cons.c +file dev/cninit.c +file scsi/scsiconf.c scsi +file scsi/scsi_base.c scsi +file scsi/scsi_ioctl.c scsi +file arch/pc532/pc532/autoconf.c +file arch/pc532/pc532/db_disasm.c ddb +file arch/pc532/pc532/db_interface.c ddb +file arch/pc532/pc532/db_trace.c ddb +file arch/pc532/pc532/disksubr.c disk +file arch/pc532/pc532/icuinit.c +file arch/pc532/pc532/in_cksum.c inet +file arch/pc532/pc532/intr.c +file arch/pc532/pc532/machdep.c +file arch/pc532/pc532/mem.c +file arch/pc532/pc532/ns_cksum.c ns +#file arch/pc532/pc532/ntoh.s +file arch/pc532/pc532/pmap.c +file arch/pc532/pc532/process_machdep.c +file arch/pc532/pc532/random.s +file arch/pc532/pc532/sys_machdep.c +file arch/pc532/pc532/trap.c +file arch/pc532/pc532/vm_machdep.c |