|
|
@ -1,6 +1,6 @@ |
|
|
|
include(MAKEDEV.sub)dnl |
|
|
|
dnl |
|
|
|
vers(a, {-$OpenBSD: MAKEDEV.mi,v 1.51 2002/08/29 23:43:16 todd Exp $-})dnl |
|
|
|
vers(a, {-$OpenBSD: MAKEDEV.mi,v 1.52 2002/10/16 15:48:31 todd Exp $-})dnl |
|
|
|
dnl |
|
|
|
divert(1)dnl |
|
|
|
{-#-} |
|
|
@ -301,457 +301,6 @@ __devitem(ramd, ramdisk, makes all devices for a ramdisk kernel)dnl arc |
|
|
|
_mkdev(ramd, ramdisk, {-dnl |
|
|
|
show_target(ramd)dnl |
|
|
|
-})dnl |
|
|
|
ifelse(MACHINE, mvmeppc, {-dnl |
|
|
|
target(all, ses, 0)dnl |
|
|
|
target(all, ch, 0)dnl |
|
|
|
target(all, ss, 0, 1)dnl |
|
|
|
target(all, xfs, 0)dnl |
|
|
|
twrget(all, flo, fd, 0, 0B, 0C, 0D, 0E, 0F, 0G, 0H)dnl |
|
|
|
twrget(all, flo, fd, 1, 1B, 1C, 1D, 1E, 1F, 1G, 1H)dnl |
|
|
|
target(all, pty, 0, 1, 2)dnl |
|
|
|
target(all, bpf, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)dnl |
|
|
|
target(all, tun, 0, 1, 2, 3)dnl |
|
|
|
target(all, xy, 0, 1, 2, 3)dnl |
|
|
|
target(all, rd, 0)dnl |
|
|
|
target(all, cd, 0, 1)dnl |
|
|
|
target(all, sd, 0, 1, 2, 3, 4)dnl |
|
|
|
target(all, vnd, 0, 1, 2, 3)dnl |
|
|
|
target(all, ccd, 0, 1, 2, 3)dnl |
|
|
|
target(ramd, tty0, 0, 1, 2, 3)dnl |
|
|
|
twrget(ramd, wsdisp, ttyC, 0)dnl |
|
|
|
target(ramd, rd, 0)dnl |
|
|
|
target(ramd, wd, 0, 1, 2, 3)dnl |
|
|
|
target(ramd, sd, 0, 1, 2, 3, 4)dnl |
|
|
|
target(ramd, cd, 0, 1)dnl |
|
|
|
target(ramd, st, 0, 1)dnl |
|
|
|
target(ramd, bpf, 0)dnl |
|
|
|
target(ramd, rd, 0)dnl |
|
|
|
-})dnl |
|
|
|
ifelse(MACHINE, sparc, {-dnl |
|
|
|
twrget(wscons, wscons, ttyD, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl |
|
|
|
twrget(wscons, wscons, ttyE, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl |
|
|
|
twrget(wscons, wscons, ttyF, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl |
|
|
|
target(all, ses, 0)dnl |
|
|
|
target(all, ch, 0)dnl |
|
|
|
target(all, ss, 0, 1)dnl |
|
|
|
target(all, xfs, 0)dnl |
|
|
|
twrget(all, flo, fd, 0, 0B, 0C, 0D, 0E, 0F, 0G, 0H)dnl |
|
|
|
twrget(all, flo, fd, 1, 1B, 1C, 1D, 1E, 1F, 1G, 1H)dnl |
|
|
|
target(all, pty, 0, 1, 2)dnl |
|
|
|
target(all, bpf, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)dnl |
|
|
|
target(all, tun, 0, 1, 2, 3)dnl |
|
|
|
target(all, xy, 0, 1, 2, 3)dnl |
|
|
|
target(all, hk, 0, 1, 2, 3)dnl |
|
|
|
target(all, rd, 0)dnl |
|
|
|
target(all, cd, 0, 1)dnl |
|
|
|
target(all, sd, 0, 1, 2, 3, 4)dnl |
|
|
|
target(all, vnd, 0, 1, 2, 3)dnl |
|
|
|
target(all, ccd, 0, 1, 2, 3)dnl |
|
|
|
target(ramd, fd, 0)dnl |
|
|
|
target(ramd, sd, 0, 1, 2, 3)dnl |
|
|
|
target(ramd, rd, 0)dnl |
|
|
|
target(ramd, cd, 0)dnl |
|
|
|
-})dnl |
|
|
|
ifelse(MACHINE, sparc64, {-dnl |
|
|
|
twrget(wscons, wscons, ttyD, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl |
|
|
|
twrget(wscons, wscons, ttyE, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl |
|
|
|
twrget(wscons, wscons, ttyF, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl |
|
|
|
target(all, ccd, 0, 1, 2, 3)dnl |
|
|
|
target(all, ses, 0)dnl |
|
|
|
target(all, ch, 0)dnl |
|
|
|
target(all, ss, 0, 1)dnl |
|
|
|
target(all, xfs, 0)dnl |
|
|
|
twrget(all, flo, fd, 0, 0B, 0C, 0D, 0E, 0F, 0G, 0H)dnl |
|
|
|
twrget(all, flo, fd, 1, 1B, 1C, 1D, 1E, 1F, 1G, 1H)dnl |
|
|
|
target(all, pty, 0, 1, 2)dnl |
|
|
|
target(all, bpf, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)dnl |
|
|
|
target(all, tun, 0, 1, 2, 3)dnl |
|
|
|
target(all, xy, 0, 1, 2, 3)dnl |
|
|
|
target(all, rd, 0)dnl |
|
|
|
target(all, cd, 0, 1)dnl |
|
|
|
target(all, sd, 0, 1, 2, 3, 4)dnl |
|
|
|
target(all, vnd, 0, 1, 2, 3)dnl |
|
|
|
target(ramd, fd, 0)dnl |
|
|
|
target(ramd, rd, 0)dnl |
|
|
|
target(ramd, sd, 0, 1, 2, 3)dnl |
|
|
|
target(ramd, wd, 0, 1, 2, 3)dnl |
|
|
|
target(ramd, cd, 0, 1)dnl |
|
|
|
target(ramd, st, 0, 1)dnl |
|
|
|
target(ramd, bpf, 0)dnl |
|
|
|
twrget(all, s64_tzs, tty, a, b, c, d)dnl |
|
|
|
twrget(all, s64_czs, cua, a, b, c, d)dnl |
|
|
|
__devitem(s64_tzs, tty[a-z]*, Zilog 8530 Serial Port)dnl |
|
|
|
__devitem(s64_czs, cua[a-z]*, Zilog 8530 Serial Port)dnl |
|
|
|
_mkdev(s64_tzs, {-tty[a-z]-}, {-u=${i#tty*} |
|
|
|
case $u in |
|
|
|
a) n=0 ;; |
|
|
|
b) n=1 ;; |
|
|
|
c) n=2 ;; |
|
|
|
d) n=3 ;; |
|
|
|
*) echo unknown tty device $i ;; |
|
|
|
esac |
|
|
|
M tty$u c major_s64_tzs_c $n 660 dialer uucp-})dnl |
|
|
|
_mkdev(s64_czs, cua[a-z], {-u=${i#cua*} |
|
|
|
case $u in |
|
|
|
a) n=0 ;; |
|
|
|
b) n=1 ;; |
|
|
|
c) n=2 ;; |
|
|
|
d) n=3 ;; |
|
|
|
*) echo unknown cua device $i ;; |
|
|
|
esac |
|
|
|
M cua$u c major_s64_czs_c Add($n, 128) 660 dialer uucp-})dnl |
|
|
|
-})dnl |
|
|
|
ifelse(MACHINE, i386, {-dnl |
|
|
|
target(all, ses, 0)dnl |
|
|
|
target(all, ch, 0)dnl |
|
|
|
target(all, ss, 0, 1)dnl |
|
|
|
target(all, xfs, 0)dnl |
|
|
|
twrget(all, flo, fd, 0, 0B, 0C, 0D, 0E, 0F, 0G, 0H)dnl |
|
|
|
twrget(all, flo, fd, 1, 1B, 1C, 1D, 1E, 1F, 1G, 1H)dnl |
|
|
|
target(all, pty, 0, 1, 2)dnl |
|
|
|
target(all, bpf, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)dnl |
|
|
|
target(all, tun, 0, 1, 2, 3)dnl |
|
|
|
target(all, xy, 0, 1, 2, 3)dnl |
|
|
|
target(all, rd, 0)dnl |
|
|
|
target(all, cd, 0, 1)dnl |
|
|
|
target(all, sd, 0, 1, 2, 3, 4)dnl |
|
|
|
target(all, vnd, 0, 1, 2, 3)dnl |
|
|
|
target(all, ccd, 0, 1, 2, 3)dnl |
|
|
|
target(all, bktr, 0)dnl |
|
|
|
target(ramd, tty0, 0, 1, 2, 3)dnl |
|
|
|
twrget(ramd, wsdisp, ttyC, 0)dnl |
|
|
|
target(ramd, wt, 0)dnl |
|
|
|
target(ramd, fd, 0)dnl |
|
|
|
target(ramd, rd, 0)dnl |
|
|
|
target(ramd, wd, 0, 1, 2, 3)dnl |
|
|
|
target(ramd, sd, 0, 1, 2, 3)dnl |
|
|
|
target(ramd, cd, 0, 1)dnl |
|
|
|
target(ramd, st, 0, 1)dnl |
|
|
|
target(ramd, mcd, 0)dnl |
|
|
|
-})dnl |
|
|
|
ifelse(MACHINE, alpha, {-dnl |
|
|
|
target(all, ses, 0)dnl |
|
|
|
target(all, ch, 0)dnl |
|
|
|
target(all, ss, 0, 1)dnl |
|
|
|
target(all, xfs, 0)dnl |
|
|
|
twrget(all, flo, fd, 0, 0B, 0C, 0D, 0E, 0F, 0G, 0H)dnl |
|
|
|
twrget(all, flo, fd, 1, 1B, 1C, 1D, 1E, 1F, 1G, 1H)dnl |
|
|
|
target(all, pty, 0, 1, 2)dnl |
|
|
|
target(all, bpf, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)dnl |
|
|
|
target(all, tun, 0, 1, 2, 3)dnl |
|
|
|
target(all, xy, 0, 1, 2, 3)dnl |
|
|
|
target(all, rd, 0)dnl |
|
|
|
target(all, cd, 0, 1)dnl |
|
|
|
target(all, sd, 0, 1, 2, 3, 4)dnl |
|
|
|
target(all, vnd, 0, 1, 2, 3)dnl |
|
|
|
target(all, ccd, 0, 1, 2, 3)dnl |
|
|
|
target(ramd, sd, 0, 1, 2)dnl |
|
|
|
target(ramd, wd, 0)dnl |
|
|
|
target(ramd, tty0, 0, 1)dnl |
|
|
|
target(ramd, st, 0)dnl |
|
|
|
target(ramd, cd, 0)dnl |
|
|
|
target(ramd, ttyB, 0, 1)dnl |
|
|
|
target(ramd, ttyE, 0, 1)dnl |
|
|
|
-})dnl |
|
|
|
ifelse(MACHINE, amiga, {-dnl |
|
|
|
target(all, ses, 0)dnl |
|
|
|
target(all, ch, 0)dnl |
|
|
|
target(all, ss, 0, 1)dnl |
|
|
|
target(all, xfs, 0)dnl |
|
|
|
twrget(all, flo, fd, 0, 0B, 0C, 0D, 0E, 0F, 0G, 0H)dnl |
|
|
|
twrget(all, flo, fd, 1, 1B, 1C, 1D, 1E, 1F, 1G, 1H)dnl |
|
|
|
target(all, pty, 0, 1, 2)dnl |
|
|
|
target(all, bpf, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)dnl |
|
|
|
target(all, tun, 0, 1, 2, 3)dnl |
|
|
|
target(all, xy, 0, 1, 2, 3)dnl |
|
|
|
target(all, rd, 0)dnl |
|
|
|
target(all, cd, 0, 1)dnl |
|
|
|
target(all, sd, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)dnl |
|
|
|
target(all, vnd, 0, 1, 2, 3)dnl |
|
|
|
target(all, ccd, 0, 1, 2, 3)dnl |
|
|
|
target(ramd, kbd)dnl |
|
|
|
target(ramd, pty, 0)dnl |
|
|
|
target(ramd, tty0, 0)dnl |
|
|
|
target(ramd, ttyA, 0, 1)dnl |
|
|
|
target(ramd, ttyB, 0, 1)dnl |
|
|
|
target(ramd, ttye, 0, 1, 2, 3, 4, 5, 6)dnl |
|
|
|
target(ramd, cd, 0, 1)dnl |
|
|
|
target(ramd, sd, 0, 1, 2, 3)dnl |
|
|
|
target(ramd, st, 0, 1)dnl |
|
|
|
target(ramd, fd, 0, 1)dnl |
|
|
|
target(ramd, wd, 0, 1)dnl |
|
|
|
target(ramd, rd, 0)dnl |
|
|
|
-})dnl |
|
|
|
ifelse(MACHINE, hp300, {-dnl |
|
|
|
target(all, ses, 0)dnl |
|
|
|
target(all, ch, 0)dnl |
|
|
|
target(all, ss, 0, 1)dnl |
|
|
|
target(all, xfs, 0)dnl |
|
|
|
twrget(all, flo, fd, 0, 0B, 0C, 0D, 0E, 0F, 0G, 0H)dnl |
|
|
|
twrget(all, flo, fd, 1, 1B, 1C, 1D, 1E, 1F, 1G, 1H)dnl |
|
|
|
target(all, pty, 0, 1, 2)dnl |
|
|
|
target(all, bpf, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)dnl |
|
|
|
target(all, tun, 0, 1, 2, 3)dnl |
|
|
|
target(all, xy, 0, 1, 2, 3)dnl |
|
|
|
target(all, rd, 0)dnl |
|
|
|
target(all, cd, 0, 1)dnl |
|
|
|
target(all, sd, 0, 1, 2, 3, 4)dnl |
|
|
|
target(all, vnd, 0, 1, 2, 3)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, ccd, 0, 1, 2, 3)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(all, ses, 0)dnl |
|
|
|
target(all, ch, 0)dnl |
|
|
|
target(all, ss, 0, 1)dnl |
|
|
|
target(all, xfs, 0)dnl |
|
|
|
twrget(all, flo, fd, 0, 0B, 0C, 0D, 0E, 0F, 0G, 0H)dnl |
|
|
|
twrget(all, flo, fd, 1, 1B, 1C, 1D, 1E, 1F, 1G, 1H)dnl |
|
|
|
target(all, pty, 0, 1, 2)dnl |
|
|
|
target(all, bpf, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)dnl |
|
|
|
target(all, tun, 0, 1, 2, 3)dnl |
|
|
|
target(all, xy, 0, 1, 2, 3)dnl |
|
|
|
target(all, rd, 0)dnl |
|
|
|
target(all, cd, 0, 1)dnl |
|
|
|
target(all, sd, 0, 1, 2, 3, 4)dnl |
|
|
|
target(all, vnd, 0, 1, 2, 3)dnl |
|
|
|
target(all, ccd, 0, 1, 2, 3)dnl |
|
|
|
target(ramd, st, 0, 1)dnl |
|
|
|
target(ramd, sd, 0, 1, 2, 3)dnl |
|
|
|
target(ramd, rd, 0, 1)dnl |
|
|
|
target(ramd, pty, 0)dnl |
|
|
|
target(ramd, hil)dnl |
|
|
|
target(ramd, com, 0, 1)dnl |
|
|
|
target(ramd, bpf, 0, 1)dnl |
|
|
|
target(ramd, tun, 0, 1)dnl |
|
|
|
-})dnl |
|
|
|
ifelse(MACHINE, mac68k, {-dnl |
|
|
|
target(all, ses, 0)dnl |
|
|
|
target(all, sd, 0, 1, 2, 3, 4)dnl |
|
|
|
target(all, vnd, 0, 1, 2, 3)dnl |
|
|
|
target(all, ch, 0)dnl |
|
|
|
target(all, ss, 0, 1)dnl |
|
|
|
target(all, xfs, 0)dnl |
|
|
|
twrget(all, flo, fd, 0, 0B, 0C, 0D, 0E, 0F, 0G, 0H)dnl |
|
|
|
twrget(all, flo, fd, 1, 1B, 1C, 1D, 1E, 1F, 1G, 1H)dnl |
|
|
|
target(all, pty, 0, 1, 2)dnl |
|
|
|
target(all, bpf, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)dnl |
|
|
|
target(all, tun, 0, 1, 2, 3)dnl |
|
|
|
target(all, xy, 0, 1, 2, 3)dnl |
|
|
|
target(all, rd, 0)dnl |
|
|
|
target(all, cd, 0, 1)dnl |
|
|
|
target(all, ccd, 0, 1, 2, 3)dnl |
|
|
|
target(ramd, sd, 0, 1, 2, 3)dnl |
|
|
|
target(ramd, st, 0, 1)dnl |
|
|
|
target(ramd, rd, 0, 1)dnl |
|
|
|
target(ramd, adb)dnl |
|
|
|
target(ramd, asc, 0)dnl |
|
|
|
target(ramd, grf, 0, 1)dnl |
|
|
|
target(ramd, ttye, 0)dnl |
|
|
|
twrget(ramd, mac_tty0, tty0, 0, 1)dnl |
|
|
|
target(ramd, pty, 0)dnl |
|
|
|
-})dnl |
|
|
|
ifelse(MACHINE, macppc, {-dnl |
|
|
|
target(all, ses, 0)dnl |
|
|
|
target(all, ch, 0)dnl |
|
|
|
target(all, ss, 0, 1)dnl |
|
|
|
target(all, xfs, 0)dnl |
|
|
|
twrget(all, flo, fd, 0, 0B, 0C, 0D, 0E, 0F, 0G, 0H)dnl |
|
|
|
twrget(all, flo, fd, 1, 1B, 1C, 1D, 1E, 1F, 1G, 1H)dnl |
|
|
|
target(all, pty, 0, 1, 2)dnl |
|
|
|
target(all, bpf, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)dnl |
|
|
|
target(all, tun, 0, 1, 2, 3)dnl |
|
|
|
target(all, xy, 0, 1, 2, 3)dnl |
|
|
|
target(all, rd, 0)dnl |
|
|
|
target(all, cd, 0, 1)dnl |
|
|
|
target(all, sd, 0, 1, 2, 3, 4)dnl |
|
|
|
target(all, vnd, 0, 1, 2, 3)dnl |
|
|
|
target(all, ccd, 0, 1, 2, 3)dnl |
|
|
|
target(ramd, sd, 0, 1, 2, 3, 4)dnl |
|
|
|
target(ramd, wd, 0, 1, 2, 3, 4)dnl |
|
|
|
target(ramd, st, 0, 1)dnl |
|
|
|
target(ramd, cd, 0, 1)dnl)dnl |
|
|
|
target(ramd, rd, 0)dnl |
|
|
|
target(ramd, ttyE, 0)dnl |
|
|
|
target(ramd, tty0, 0, 1)dnl |
|
|
|
target(ramd, pty, 0)dnl |
|
|
|
-})dnl |
|
|
|
ifelse(MACHINE, sun3, {- |
|
|
|
target(all, ses, 0)dnl |
|
|
|
target(all, ch, 0)dnl |
|
|
|
target(all, ss, 0, 1)dnl |
|
|
|
target(all, xfs, 0)dnl |
|
|
|
twrget(all, flo, fd, 0, 0B, 0C, 0D, 0E, 0F, 0G, 0H)dnl |
|
|
|
twrget(all, flo, fd, 1, 1B, 1C, 1D, 1E, 1F, 1G, 1H)dnl |
|
|
|
target(all, pty, 0, 1, 2)dnl |
|
|
|
target(all, bpf, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)dnl |
|
|
|
target(all, tun, 0, 1, 2, 3)dnl |
|
|
|
target(all, xy, 0, 1, 2, 3)dnl |
|
|
|
target(all, hk, 0, 1, 2, 3)dnl |
|
|
|
target(all, rd, 0)dnl |
|
|
|
target(all, cd, 0, 1)dnl |
|
|
|
target(all, sd, 0, 1, 2, 3, 4)dnl |
|
|
|
target(all, vnd, 0, 1, 2, 3)dnl |
|
|
|
target(all, ccd, 0, 1, 2, 3)dnl |
|
|
|
-})dnl |
|
|
|
ifelse(MACHINE, vax, {- |
|
|
|
dnl target(all, ses, 0)dnl |
|
|
|
dnl target(all, ut, 0)dnl |
|
|
|
dnl target(all, ch, 0)dnl |
|
|
|
target(all, ss, 0)dnl |
|
|
|
dnl target(all, xfs, 0)dnl |
|
|
|
target(all, pty, 0, 1)dnl |
|
|
|
target(all, bpf, 0, 1, 2, 3, 4, 5, 6, 7)dnl |
|
|
|
target(all, tun, 0, 1)dnl |
|
|
|
dnl target(all, xy, 0, 1, 2, 3)dnl |
|
|
|
dnl target(all, hk, 0, 1, 2, 3)dnl |
|
|
|
dnl target(all, up, 0, 1, 2, 3)dnl |
|
|
|
dnl target(all, rd, 0)dnl |
|
|
|
target(all, cd, 0)dnl |
|
|
|
target(all, sd, 0, 1, 2, 3)dnl |
|
|
|
target(all, vnd, 0)dnl |
|
|
|
__devitem(dhu, dhu*, unibus dhu11)dnl |
|
|
|
__devitem(dmz, dmz*, unibus dmz32)dnl |
|
|
|
__devitem(dmf, dmf*, unibus dmf32)dnl |
|
|
|
__devitem(dh, dh*, {-unibus dh11 and emulations (e.g. Able dmax, Emulex cs-11)-}) |
|
|
|
__devitem(vt, vt*, {-console-})dnl |
|
|
|
__devitem(dz, dz*, unibus dz11 and dz32)dnl |
|
|
|
__devitem(dl, dl*, unibus dl11)dnl |
|
|
|
_mkdev(dz, dz*, |
|
|
|
{-case $U in |
|
|
|
[0-7]) |
|
|
|
i=0 |
|
|
|
while [ $i -lt 8 ]; do |
|
|
|
no=Add(Mult($U, 8), $i) |
|
|
|
if [ $no -lt 10 ]; then |
|
|
|
no="0${no}" |
|
|
|
fi |
|
|
|
M tty${no} c 1 $no 600 |
|
|
|
let i=i+1 |
|
|
|
done |
|
|
|
;; |
|
|
|
*) |
|
|
|
echo bad unit for dz in: $i |
|
|
|
;; |
|
|
|
esac-})dnl |
|
|
|
dnl XXX split this up abit? |
|
|
|
_mkdev(dhu, dhu*|dmz*|dmf*|dh*|vt*, |
|
|
|
{-set -A cnvtbl 0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v |
|
|
|
case $i in |
|
|
|
vt*) name=vt; major=68; count=8; |
|
|
|
case $U in |
|
|
|
0) ch=w ;; |
|
|
|
*) echo bad unit for $name in: $i ;; |
|
|
|
esac;; |
|
|
|
dmz*) name=dmz; major=37; count=24; |
|
|
|
case $U in |
|
|
|
0) ch=a ;; 1) ch=b ;; 2) ch=c ;; 3) ch=e ;; 4) ch=f ;; |
|
|
|
*) echo bad unit for $name in: $i ;; |
|
|
|
esac;; |
|
|
|
dmf*) name=dmf; major=22; count=8; |
|
|
|
case $U in |
|
|
|
0) ch=A ;; 1) ch=B ;; 2) ch=C ;; 3) ch=E ;; |
|
|
|
4) ch=F ;; 5) ch=G ;; 6) ch=H ;; 7) ch=I ;; |
|
|
|
*) echo bad unit for $name in: $i ;; |
|
|
|
esac;; |
|
|
|
dhu*) name=dhu; major=34; count=16; |
|
|
|
case $U in |
|
|
|
0) ch=S ;; 1) ch=T ;; 2) ch=U ;; 3) ch=V ;; |
|
|
|
4) ch=W ;; 5) ch=X ;; 6) ch=Y ;; 7) ch=Z ;; |
|
|
|
*) echo bad unit for $name in: $i ;; |
|
|
|
esac;; |
|
|
|
dh*) name=dh; major=12; count=16; |
|
|
|
case $U in |
|
|
|
0) ch=h ;; 1) ch=i ;; 2) ch=j ;; 3) ch=k ;; |
|
|
|
4) ch=l ;; 5) ch=m ;; 6) ch=n ;; 7) ch=o ;; |
|
|
|
*) echo bad unit for $name in: $i ;; |
|
|
|
esac;; |
|
|
|
esac |
|
|
|
i=0 |
|
|
|
while [ $i -lt $count ]; do |
|
|
|
let=${cnvtbl[$i]} |
|
|
|
if [ -n "$let" ] ;then |
|
|
|
M tty${ch}${let} c $major Add(Mult($U, $count), $i) 600 |
|
|
|
else |
|
|
|
echo bad count for ${name}: $U, $count, $i |
|
|
|
fi |
|
|
|
let i=i+1 |
|
|
|
done |
|
|
|
;; |
|
|
|
|
|
|
|
dl*) |
|
|
|
major=66 |
|
|
|
let=${cnvtbl[$U]} |
|
|
|
if [ -n "$let" ] ;then |
|
|
|
M ttyJ${let} c $major $U 600 |
|
|
|
else |
|
|
|
echo bad number for ${name}: $U |
|
|
|
fi-})dnl |
|
|
|
dnl |
|
|
|
target( all, ccd, 0)dnl |
|
|
|
target( all, hd, 0, 1, 2)dnl |
|
|
|
target( all, mt, 0, 1)dnl |
|
|
|
target( all, ts, 0, 1)dnl |
|
|
|
target( all, uu, 0)dnl |
|
|
|
target( all, st, 0, 1)dnl |
|
|
|
target( all, dhu, 0)dnl |
|
|
|
dnl target( all, dmz, 0)dnl |
|
|
|
dnl target( all, dmf, 0)dnl |
|
|
|
dnl target( all, dh, 0)dnl |
|
|
|
target( all, dz, 0)dnl |
|
|
|
target( all, dl, 0)dnl |
|
|
|
target( all, vt, 0)dnl |
|
|
|
target(ramd, fd, 0)dnl |
|
|
|
target(ramd, sd, 0, 1, 2, 3)dnl |
|
|
|
target(ramd, rd, 0)dnl |
|
|
|
target(ramd, cd, 0)dnl |
|
|
|
target(ramd, bpf, 0)dnl |
|
|
|
-})dnl |
|
|
|
target(ramd, std)dnl |
|
|
|
target(ramd, random)dnl |
|
|
|
target(ramd, bpf, 0)dnl |
|
|
|