summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc/MAKEDEV.mi89
-rw-r--r--etc/Makefile4
-rw-r--r--etc/etc.hp300/MAKEDEV.md18
3 files changed, 61 insertions, 50 deletions
diff --git a/etc/MAKEDEV.mi b/etc/MAKEDEV.mi
index 26146ef1d5a..903b2baf596 100644
--- a/etc/MAKEDEV.mi
+++ b/etc/MAKEDEV.mi
@@ -1,6 +1,6 @@
include(MAKEDEV.sub)dnl
dnl
-vers(a,{-$OpenBSD: MAKEDEV.mi,v 1.26 2002/02/10 21:52:30 deraadt Exp $-})dnl
+vers(a,{-$OpenBSD: MAKEDEV.mi,v 1.27 2002/02/14 04:37:15 todd Exp $-})dnl
dnl
divert(1)dnl
{-#-}
@@ -115,7 +115,6 @@ target(all,std)dnl
target(all,vnd,0,1,2,3)dnl
target(all,ccd,0,1,2,3)dnl
target(all,raid,0,1,2,3)dnl
-target(all,hd,0,1,2,3,4)dnl
target(all,rd,0)dnl
target(all,rz,0,1,2,3,4)dnl
target(all,hk,0,1,2,3)dnl
@@ -193,6 +192,7 @@ twrget(all,grf_amiga,grf,0,1,2,3,4,5,6)dnl
target(all,par,0)dnl
twrget(all,amouse,mouse,0,1)dnl
twrget(all,akbd,kbd)dnl
+target(all,apci,0)dnl
target(all,ppi,0)dnl
target(all,view0,0,1,2,3,4,5)dnl
target(all,local)dnl
@@ -259,29 +259,6 @@ _mkdev(st,st*,{-n=Mult($U,16)
M ${pre}rst$U c major_st_c $n 660 operator
n=Add($n,1)
done-})dnl
-_mkdev(st_hp300,ct*|mt*|st*,
-{-case $i in
- ct*) name=ct blk=major_ct_b chr=major_ct_c;;
- mt*) name=mt blk=major_mt_b chr=major_mt_c;;
- st*) name=st blk=major_st_hp300_b chr=major_st_hp300_c;;
- esac
- case $U in
- [0-7])
- four=Add($U,4) eight=Add($U,8)
- twelve=Add($U,12) twenty=Add($U,20)
- M r$name$U c $chr $U 660 operator
- M r$name$four c $chr $four 660 operator
- M r$name$eight c $chr $eight 660 operator
- M r$name$twelve c $chr $twelve 660 operator
- MKlist="$MKlist;ln r$name$four nr$name$U";: sanity w/pdp11 v7
- MKlist="$MKlist;ln r$name$twelve nr$name$eight";: ditto
- RMlist="$RMlist nr$name$U nr$name$eight"
- ;;
- *)
- echo bad unit for tape in: $1
- ;;
- esac-})dnl
-__devitem(st_hp300,st*,Exabyte tape)dnl
__devitem(ct,ct*,HP300 HP-IB cartridge tape)dnl
__devitem(mt,mt*,(Magnetic) 9-track reel tape)dnl
__devitem(ht,ht*,massbus tm03 & tu??)dnl
@@ -396,19 +373,52 @@ target(ramd,wd,0,1)dnl
target(ramd,rd,0)dnl
-})dnl
ifelse(MACHINE,hp300,{-dnl
-target(ramd,ct,0,1)dnl
-target(ramd,hd,0,1,2,3,4)dnl
-target(ramd,sd,0,1,2,3,4)dnl
-target(ramd,rd,0,1)dnl
-target(ramd,pty,0)dnl
-target(ramd,hil)dnl
-target(ramd,grf,0)dnl
-target(ramd,apci,0)dnl
-target(ramd,ite,0)dnl
-target(ramd,dca,0)dnl
-target(ramd,dcm,0,1)dnl
-target(ramd,bpf,0,1)dnl
-target(ramd,tun,0,1)dnl
+_mkdev(st_hp300,ct*|mt*|st*,
+{-case $i in
+ ct*) name=ct blk=major_ct_b chr=major_ct_c;;
+ mt*) name=mt blk=major_mt_b chr=major_mt_c;;
+ st*) name=st blk=major_st_hp300_b chr=major_st_hp300_c;;
+ esac
+ case $U in
+ [0-7])
+ four=Add($U,4) eight=Add($U,8)
+ twelve=Add($U,12) twenty=Add($U,20)
+ M r$name$U c $chr $U 660 operator
+ M r$name$four c $chr $four 660 operator
+ M r$name$eight c $chr $eight 660 operator
+ M r$name$twelve c $chr $twelve 660 operator
+ MKlist="$MKlist;ln r$name$four nr$name$U";: sanity w/pdp11 v7
+ MKlist="$MKlist;ln r$name$twelve nr$name$eight";: ditto
+ RMlist="$RMlist nr$name$U nr$name$eight"
+ ;;
+ *)
+ echo bad unit for tape in: $1
+ ;;
+ esac-})dnl
+__devitem(st_hp300,st*,Exabyte tape)dnl
+__devitem(grf,grf*,raw interface to HP300 graphics devices)dnl
+target( all, grf, 0)dnl
+dnl XXX target( all, hil, 0,1,2,3,4,5,6,7)dnl
+target( all, hil, )dnl
+twrget( all, st_hp300,st,0,1)dnl
+target( all, dca, 0,1)dnl
+target( all, dcm, 0,1,2,3)dnl
+target( all, hd, 0,1,2)dnl
+target( all, ct, 0,1)dnl
+target( all, ite, 0)dnl
+target(ramd, ct, 0,1)dnl
+target(ramd, hd, 0,1,2)dnl
+target(ramd, sd, 0,1,2)dnl
+target(ramd, rd, 0,1)dnl
+target(ramd, pty, 0)dnl
+target(ramd, hil, )dnl
+target(ramd, grf, 0)dnl
+target(ramd, apci, 0)dnl
+target(ramd, ite, 0)dnl
+target(ramd, dca, 0)dnl
+target(ramd, dcm, 0,1)dnl
+target(ramd, bpf, 0,1)dnl
+target(ramd, tun, 0,1)dnl
-})dnl
ifelse(MACHINE,hppa,{-dnl
target(ramd,st,0,1)dnl
@@ -441,6 +451,7 @@ target(ramd,tty0,0,1)dnl
target(ramd,pty,0)dnl
-})dnl
ifelse(MACHINE,vax,{-
+target( all, hd, 0,1,2)dnl
target(ramd,fd,0)dnl
target(ramd,sd,0,1,2,3)dnl
target(ramd,rd,0)dnl
@@ -713,7 +724,6 @@ __devitem(grf_mac,grf*,{-custom chip (grf0){-,-} Retina Z2/Z3 (grf1/grf2){-,-}
{-#-} Cirrus boards (grf3){-,-} A2410 (grf4) video or
{-#-} CyberVision 64 (grf5)-})dnl
__devitem(grf_amiga,grf*,{-Motherboard bitmapped video.-})dnl
-__devitem(grf_hp300,grf*,raw interface to HP300 graphics devices)dnl
__devitem(ite,ite*,terminal emulator interface to HP300 graphics devices)dnl
__devitem({-hil-},{-hil-},HP300 HIL input devices)dnl
__devitem(oppr,openprom)dnl
@@ -898,6 +908,7 @@ dnl
dodisk()
{
+ [ "$DEBUG" ] && set -x
n=Add(Mult(${5},${7:-16}),${6}) count=0
RMlist="$RMlist {-$-}1{-$-}2? r{-$-}1{-$-}2?"
[ 0$7 -ne 8 ] && l="i j k l m n o p"
diff --git a/etc/Makefile b/etc/Makefile
index d7be156fe15..e3576027299 100644
--- a/etc/Makefile
+++ b/etc/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.146 2002/02/13 20:23:01 todd Exp $
+# $OpenBSD: Makefile,v 1.147 2002/02/14 04:37:15 todd Exp $
TZDIR= /usr/share/zoneinfo
LOCALTIME= US/Pacific
@@ -320,7 +320,7 @@ snap_md:
MAKEDEVARCHS+= alpha
MAKEDEVARCHS+= amiga
-#MAKEDEVARCHS+= hp300
+MAKEDEVARCHS+= hp300
MAKEDEVARCHS+= hppa
MAKEDEVARCHS+= i386
MAKEDEVARCHS+= mac68k
diff --git a/etc/etc.hp300/MAKEDEV.md b/etc/etc.hp300/MAKEDEV.md
index 190bc317176..3851522825c 100644
--- a/etc/etc.hp300/MAKEDEV.md
+++ b/etc/etc.hp300/MAKEDEV.md
@@ -1,5 +1,5 @@
vers(__file__,
- {-$OpenBSD: MAKEDEV.md,v 1.2 2002/02/09 16:59:50 deraadt Exp $-},
+ {-$OpenBSD: MAKEDEV.md,v 1.3 2002/02/14 04:37:15 todd Exp $-},
etc.MACHINE)dnl
dnl
dnl Copyright (c) 2001 Todd T. Fries <todd@OpenBSD.org>
@@ -40,8 +40,8 @@ _DEV(sd,8,4)
_DEV(vnd,19,6)
_DEV(rd,34,8)
_TITLE(termp)
-_DEV(dca)
-_DEV(dcm)
+_DEV(dca,12)
+_DEV(dcm,15)
_DEV(apci)
_TITLE(pty)
_DEV(tty,4)
@@ -51,9 +51,9 @@ _DEV(ppi,11)
_TITLE(call)
_TITLE(spec)
_DEV(fdesc,21)
-_DEV(grf_hp300)
+_DEV(grf,10)
_DEV(ite)
-_DEV(hil,)
+_DEV(hil,14)
_DEV(bpf,22)
_DEV(tun,23)
_DEV(pf,33)
@@ -77,8 +77,8 @@ _std(1,2,36,3,6)
dca*)
case $U in
0|1|2|3)
- M tty$U c 12 $U 660 dialer uucp
- M cua$U c 12 Add($U,128) 660 dialer uucp
+ M tty$U c major_dca_c $U 660 dialer uucp
+ M cua$U c major_dca_c Add($U,128) 660 dialer uucp
;;
*)
echo bad unit for dca in: $i
@@ -126,7 +126,7 @@ apci*)
ppi*)
case $U in
0|1|2|3)
- M ppi$U c MACHINE_ppi_maj $U 600
+ M ppi$U c major_ppi_c $U 600
;;
*)
echo bad unit for ppi in: $i
@@ -148,7 +148,7 @@ ite*)
grf*)
case $U in
0|1|2|3)
- M grf$U c 10 $U
+ M grf$U c major_grf_c $U
# echo "grf$U: use MAKEDEV.hpux to make HP-UX names for device"
;;
*)