Update to match new MSCP device handling.
Remove support for old config system.
This commit is contained in:
parent
dfdb4e6863
commit
f85a693859
@ -1,4 +1,4 @@
|
|||||||
# $NetBSD: GENERIC,v 1.13 1996/05/19 16:25:23 ragge Exp $
|
# $NetBSD: GENERIC,v 1.14 1996/07/01 21:07:29 ragge Exp $
|
||||||
#
|
#
|
||||||
# GENERIC VAX configuration file; all supported devices.
|
# GENERIC VAX configuration file; all supported devices.
|
||||||
#
|
#
|
||||||
@ -79,34 +79,32 @@ mba* at sbi? tr? # Massbus adapters
|
|||||||
hp* at mba? drive? # RM/RP disk drives
|
hp* at mba? drive? # RM/RP disk drives
|
||||||
|
|
||||||
# Disk controllers at Unibus
|
# Disk controllers at Unibus
|
||||||
uda0 at uba? csr 0172150
|
uda0 at uba? csr 0172150 # UDA50/RQDX?
|
||||||
ra0 at uda0 drive 0
|
|
||||||
ra1 at uda0 drive 1
|
|
||||||
ra2 at uda0 drive 2
|
|
||||||
ra3 at uda0 drive 3
|
|
||||||
|
|
||||||
uda1 at uba? csr 0160334
|
uda1 at uba? csr 0160334
|
||||||
ra4 at uda1 drive 0
|
mscpbus* at uda?
|
||||||
ra5 at uda1 drive 1
|
|
||||||
ra6 at uda1 drive 2
|
# Tape drivers
|
||||||
ra7 at uda1 drive 3
|
#mtc0 at uba? csr 0174500 # TMSCP ctlr
|
||||||
|
#mscpbus* at mtc?
|
||||||
|
|
||||||
|
# MSCP devices
|
||||||
|
ra* at mscpbus? drive? # MSCP disk
|
||||||
|
#mt* at mscpbus? drive? # MSCP tape
|
||||||
|
|
||||||
|
# Unibus tapes
|
||||||
|
#ts0 at uba? csr 0172520 # TS11/TSV05 tape.
|
||||||
|
|
||||||
# Ethernet cards
|
# Ethernet cards
|
||||||
de0 at uba? csr 0174510 # DELUA/DEUNA
|
de0 at uba? csr 0174510 # DELUA/DEUNA
|
||||||
qe0 at uba? csr 0174440 # DEQNA/DELQA
|
qe0 at uba? csr 0174440 # DEQNA/DELQA
|
||||||
|
|
||||||
# Tape drivers
|
|
||||||
tmscp0 at uba? csr 0174500 # TMSCP ctlr
|
|
||||||
tms0 at tmscp0 drive ? # TMSCP tape
|
|
||||||
ts0 at uba? csr 0172520 # TS11/TSV05 tape.
|
|
||||||
|
|
||||||
# Terminal lines
|
# Terminal lines
|
||||||
dhu0 at uba? csr 0160440 # DHU-11
|
dhu0 at uba? csr 0160440 # DHU-11
|
||||||
dz0 at uba? csr 0160100 # DZ-11
|
dz0 at uba? csr 0160100 # DZ-11
|
||||||
|
|
||||||
pseudo-device loop 1
|
pseudo-device loop 1
|
||||||
pseudo-device pty 48
|
pseudo-device pty 48
|
||||||
pseudo-device bpfilter 8
|
pseudo-device bpfilter 8 # Not supported by de or qe yet.
|
||||||
pseudo-device sl 2
|
pseudo-device sl 2
|
||||||
pseudo-device ppp 2
|
pseudo-device ppp 2
|
||||||
pseudo-device tun 2
|
pseudo-device tun 2
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# $NetBSD: Makefile.vax,v 1.21 1996/05/11 16:13:17 mycroft Exp $
|
# $NetBSD: Makefile.vax,v 1.22 1996/07/01 21:07:28 ragge Exp $
|
||||||
|
|
||||||
# Makefile for NetBSD
|
# Makefile for NetBSD
|
||||||
#
|
#
|
||||||
@ -80,7 +80,7 @@ NORMAL_S_C= ${CC} ${AFLAGS} ${CPPFLAGS} ${PARAM} -c $<
|
|||||||
# ${SYSTEM_LD_HEAD}
|
# ${SYSTEM_LD_HEAD}
|
||||||
# ${SYSTEM_LD} swapxxx.o
|
# ${SYSTEM_LD} swapxxx.o
|
||||||
# ${SYSTEM_LD_TAIL}
|
# ${SYSTEM_LD_TAIL}
|
||||||
SYSTEM_OBJ= intvec.o subr.o lim.o \
|
SYSTEM_OBJ= intvec.o subr.o \
|
||||||
param.o ioconf.o ${OBJS} ${LIBKERN} ${LIBCOMPAT}
|
param.o ioconf.o ${OBJS} ${LIBKERN} ${LIBCOMPAT}
|
||||||
SYSTEM_DEP= Makefile ${SYSTEM_OBJ}
|
SYSTEM_DEP= Makefile ${SYSTEM_OBJ}
|
||||||
SYSTEM_LD_HEAD= @rm -f $@
|
SYSTEM_LD_HEAD= @rm -f $@
|
||||||
@ -136,12 +136,11 @@ links:
|
|||||||
sed 's,../.*/\(.*.o\),rm -f \1; ln -s ../GENERIC/\1 \1,' > makelinks
|
sed 's,../.*/\(.*.o\),rm -f \1; ln -s ../GENERIC/\1 \1,' > makelinks
|
||||||
sh makelinks && rm -f dontlink
|
sh makelinks && rm -f dontlink
|
||||||
|
|
||||||
SRCS= ${VAX}/vax/intvec.s ${VAX}/vax/subr.s lim.c \
|
SRCS= ${VAX}/vax/intvec.s ${VAX}/vax/subr.s \
|
||||||
param.c ioconf.c ${CFILES} ${SFILES}
|
param.c ioconf.c ${CFILES} ${SFILES}
|
||||||
depend:: .depend
|
depend:: .depend
|
||||||
.depend: ${SRCS} param.c
|
.depend: ${SRCS} param.c
|
||||||
mkdep ${AFLAGS} ${CPPFLAGS} ${VAX}/vax/intvec.s ${VAX}/vax/subr.s
|
mkdep ${AFLAGS} ${CPPFLAGS} ${VAX}/vax/intvec.s ${VAX}/vax/subr.s
|
||||||
mkdep -a ${CFLAGS} ${CPPFLAGS} lim.c
|
|
||||||
mkdep -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES}
|
mkdep -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES}
|
||||||
mkdep -a ${AFLAGS} ${CPPFLAGS} ${SFILES}
|
mkdep -a ${AFLAGS} ${CPPFLAGS} ${SFILES}
|
||||||
|
|
||||||
@ -166,10 +165,4 @@ intvec.o: ${VAX}/vax/intvec.s
|
|||||||
subr.o: ${VAX}/vax/subr.s
|
subr.o: ${VAX}/vax/subr.s
|
||||||
${NORMAL_S}
|
${NORMAL_S}
|
||||||
|
|
||||||
lim.c: ioconf.c
|
|
||||||
../../conf/mkoldconf.awk < ioconf.c > lim.c
|
|
||||||
|
|
||||||
lim.o: lim.c
|
|
||||||
${NORMAL_C_C}
|
|
||||||
|
|
||||||
%RULES
|
%RULES
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# $NetBSD: files.vax,v 1.19 1996/05/19 16:25:29 ragge Exp $
|
# $NetBSD: files.vax,v 1.20 1996/07/01 21:07:26 ragge Exp $
|
||||||
#
|
#
|
||||||
# new style config file for vax architecture
|
# new style config file for vax architecture
|
||||||
#
|
#
|
||||||
@ -13,12 +13,14 @@ attach backplane at root
|
|||||||
|
|
||||||
device sbi { tr=-1 }
|
device sbi { tr=-1 }
|
||||||
attach sbi at backplane
|
attach sbi at backplane
|
||||||
|
|
||||||
device bi { node=-1 }
|
device bi { node=-1 }
|
||||||
attach bi at backplane
|
attach bi at backplane
|
||||||
|
|
||||||
device cpu
|
device cpu
|
||||||
attach cpu at backplane with cpu_backplane
|
attach cpu at backplane with cpu_backplane
|
||||||
attach cpu at bi with cpu_bi
|
attach cpu at bi with cpu_bi
|
||||||
|
|
||||||
device mem
|
device mem
|
||||||
attach mem at backplane with mem_backplane
|
attach mem at backplane with mem_backplane
|
||||||
attach mem at bi with mem_bi
|
attach mem at bi with mem_bi
|
||||||
@ -40,30 +42,27 @@ device ht
|
|||||||
attach ht at mba
|
attach ht at mba
|
||||||
file arch/vax/mba/ht.c ht needs-flag
|
file arch/vax/mba/ht.c ht needs-flag
|
||||||
|
|
||||||
|
# MSCP device drivers
|
||||||
|
include "../mscp/files.mscp"
|
||||||
|
major {ra = 9}
|
||||||
|
major {mt = 16}
|
||||||
|
|
||||||
device uba { csr }
|
device uba { csr }
|
||||||
attach uba at sbi, bi
|
attach uba at sbi, bi
|
||||||
file arch/vax/uba/uba.c uba
|
file arch/vax/uba/uba.c uba
|
||||||
|
|
||||||
device uda { drive=-1 }
|
device uda: mscp
|
||||||
attach uda at uba
|
attach uda at uba
|
||||||
file arch/vax/uba/uda.c uda needs-count
|
file arch/vax/uba/uda.c uda
|
||||||
|
|
||||||
|
device mtc: mscp
|
||||||
|
attach mtc at uba
|
||||||
|
file arch/vax/uba/mtc.c mtc
|
||||||
|
|
||||||
device de:ifnet, ether
|
device de:ifnet, ether
|
||||||
attach de at uba
|
attach de at uba
|
||||||
file arch/vax/if/if_de.c de
|
file arch/vax/if/if_de.c de
|
||||||
|
|
||||||
device ra: disk
|
|
||||||
attach ra at uda
|
|
||||||
file arch/vax/vax/mscp.c ra needs-count
|
|
||||||
major {ra = 9}
|
|
||||||
|
|
||||||
# TK50/TU81 at UBA
|
|
||||||
device tmscp {drive = -1}
|
|
||||||
attach tmscp at uba
|
|
||||||
device tms
|
|
||||||
attach tms at tmscp
|
|
||||||
file arch/vax/uba/tmscp.c tmscp needs-count
|
|
||||||
|
|
||||||
# DEQNA/DELQA used on Qbus
|
# DEQNA/DELQA used on Qbus
|
||||||
device qe:ifnet, ether
|
device qe:ifnet, ether
|
||||||
attach qe at uba
|
attach qe at uba
|
||||||
@ -88,6 +87,11 @@ file arch/vax/uba/dz.c dz needs-count
|
|||||||
# They are just included here to make some files happy ;)
|
# They are just included here to make some files happy ;)
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# KDB50 on BI
|
||||||
|
device kdb: mscp
|
||||||
|
attach kdb at bi
|
||||||
|
file arch/vax/bi/kdb.c kdb
|
||||||
|
|
||||||
# Ikonas framebuffer
|
# Ikonas framebuffer
|
||||||
device ik
|
device ik
|
||||||
attach ik at uba
|
attach ik at uba
|
||||||
@ -112,12 +116,6 @@ device mu
|
|||||||
attach mu at mba
|
attach mu at mba
|
||||||
file arch/vax/mba/mt.c mu needs-count
|
file arch/vax/mba/mt.c mu needs-count
|
||||||
|
|
||||||
# KDB50 on BI
|
|
||||||
device kdb { drive=-1 }
|
|
||||||
attach kdb at bi
|
|
||||||
file arch/vax/bi/kdb.c kdb needs-count
|
|
||||||
|
|
||||||
|
|
||||||
# DMF32 on UBA
|
# DMF32 on UBA
|
||||||
device dmf
|
device dmf
|
||||||
attach dmf at uba
|
attach dmf at uba
|
||||||
|
@ -1,151 +0,0 @@
|
|||||||
#!/usr/bin/awk -f
|
|
||||||
#
|
|
||||||
# $NetBSD: mkoldconf.awk,v 1.7 1996/03/17 22:56:31 ragge Exp $
|
|
||||||
#
|
|
||||||
|
|
||||||
/tms_cd/{
|
|
||||||
tmsplats[ntms]=$3;
|
|
||||||
tmsaddr[ntms]=$6;
|
|
||||||
ntms++;
|
|
||||||
}
|
|
||||||
|
|
||||||
/ts_cd/{
|
|
||||||
tsplats[nts]=$3;
|
|
||||||
tsaddr[nts]=$6;
|
|
||||||
nts++;
|
|
||||||
}
|
|
||||||
|
|
||||||
/ra_cd/{
|
|
||||||
raplats[nra]=$3;
|
|
||||||
raaddr[nra]=$6;
|
|
||||||
nra++;
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
if(savenext==1){
|
|
||||||
l=sprintf("%d",$3)
|
|
||||||
udanummer[l-1]=nuda-1
|
|
||||||
savenext=0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
{
|
|
||||||
if(tmssavenext==1){
|
|
||||||
l=sprintf("%d",$3)
|
|
||||||
tmsnummer[l-1]=ntmscp-1
|
|
||||||
tmssavenext=0;
|
|
||||||
}
|
|
||||||
if(tssavenext==1){
|
|
||||||
l=sprintf("%d",$3)
|
|
||||||
tsnummer[l-1]=nts-1
|
|
||||||
tssavenext=0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/tmscp_cd/{
|
|
||||||
tmscpplats[ntmscp]=$3;
|
|
||||||
tmscpaddr[ntmscp]=$6;
|
|
||||||
ntmscp++;
|
|
||||||
tmssavenext=1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/uda_cd/{
|
|
||||||
udaplats[nuda]=$3;
|
|
||||||
udaddr[nuda]=$6;
|
|
||||||
nuda++;
|
|
||||||
savenext=1;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/};/{
|
|
||||||
k=0;
|
|
||||||
m=0;
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
if (k==1){
|
|
||||||
for(i=1;i<NF+1;i++){
|
|
||||||
loc[loccnt+i]=$i;
|
|
||||||
}
|
|
||||||
loccnt+=NF;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/static int loc/{
|
|
||||||
k=1;
|
|
||||||
loccnt=0;
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
if(m==1){
|
|
||||||
for(i=1;i<NF+1;i++){
|
|
||||||
pv[i]=$i;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/static short pv/{
|
|
||||||
m=1;
|
|
||||||
}
|
|
||||||
|
|
||||||
END{
|
|
||||||
|
|
||||||
printf "#include <sys/param.h>\n"
|
|
||||||
printf "#include <machine/pte.h>\n"
|
|
||||||
printf "#include <sys/buf.h>\n"
|
|
||||||
printf "#include <sys/map.h>\n"
|
|
||||||
|
|
||||||
printf "#include <vax/uba/ubavar.h>\n"
|
|
||||||
|
|
||||||
printf "int antal_ra=%d;\n",nra-1
|
|
||||||
printf "int antal_uda=%d;\n",nuda-1
|
|
||||||
printf "int antal_ts=%d;\n",nts-1
|
|
||||||
printf "int antal_tms=%d;\n",ntms-1
|
|
||||||
printf "int antal_tmscp=%d;\n",ntmscp-1
|
|
||||||
|
|
||||||
printf "extern struct uba_driver udadriver;\n"
|
|
||||||
if(nts) printf "extern struct uba_driver tsdriver;\n"
|
|
||||||
if(nts) printf "void tsintr();\n"
|
|
||||||
if(ntms) printf "extern struct uba_driver tmscpdriver;\n"
|
|
||||||
if(ntms) printf "void tmscpintr();\n"
|
|
||||||
printf "void udaintr();\n"
|
|
||||||
printf "int ra_cd=0, ra_ca=0, tms_cd=0, tms_ca=0;\n"
|
|
||||||
printf "#define C (caddr_t)\n"
|
|
||||||
|
|
||||||
printf "struct uba_ctlr ubminit[]={\n"
|
|
||||||
for(i=1;i<nuda;i++){
|
|
||||||
k=sprintf("%d",udaddr[i])
|
|
||||||
printf " { &udadriver, %d,'?',0,udaintr,C %s},\n",
|
|
||||||
udaplats[i],loc[k+1]
|
|
||||||
}
|
|
||||||
for(i=1;i<nts;i++){
|
|
||||||
k=sprintf("%d",tsaddr[i])
|
|
||||||
if(nts)printf " { &tsdriver, %d,'?',0,tsintr,C %s},\n",
|
|
||||||
tsplats[i],loc[k+1]
|
|
||||||
}
|
|
||||||
for(i=1;i<ntmscp;i++){
|
|
||||||
k=sprintf("%d",tmscpaddr[i])
|
|
||||||
if(ntms)printf " { &tmscpdriver, %d,'?',0,tmscpintr,C %s},\n",
|
|
||||||
tmscpplats[i],loc[k+1]
|
|
||||||
}
|
|
||||||
printf "0};\n"
|
|
||||||
|
|
||||||
printf "struct uba_device ubdinit[]={\n"
|
|
||||||
for(i=1;i<nra;i++){
|
|
||||||
k=sprintf("%d",raaddr[i])
|
|
||||||
printf " { &udadriver,%d,%d,'?',%d,0,0,1,0},\n",raplats[i],
|
|
||||||
rr++/4,loc[k+1]
|
|
||||||
}
|
|
||||||
for(i=1;i<nts;i++){
|
|
||||||
k=sprintf("%d",tsaddr[i])
|
|
||||||
printf " {&tsdriver,%d,0,'?',0,0,C 0,1,0},\n",tsplats[i]
|
|
||||||
}
|
|
||||||
for(i=1;i<ntms;i++){
|
|
||||||
k=sprintf("%d",tmsaddr[i])
|
|
||||||
printf " {&tmscpdriver,%d,0,'?',0,0,C 0,1,0},\n",tmsplats[i]
|
|
||||||
}
|
|
||||||
printf "0};\n"
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user