Article View: comp.bugs.2bsd
Article #56DL-11 defined in /dev/MAKEDEV plus change to dh.4 man page (#74)
From: Steven M. Schultz
Date: Sun, 30 Aug 1992 04:51
Date: Sun, 30 Aug 1992 04:51
141 lines
4572 bytes
4572 bytes
Subject: DL-11 defined in /dev/MAKEDEV plus change to dh.4 man page (#74)
Index: /dev/MAKEDEV,/usr/src/man/man4/dh.4 2.11BSD
Description:
The 11/93 and 11/94 have 7 extra DL-11 type serial ports on the
cpu board. A device node name was needed. 'dl' was selected
and the /dev name is /dev/ttyl[1-7]. Unit 0 is reserved for the
console device.
Repeat-By:
Put 2.11BSD on a 11/93, note that /dev/MAKEDEV doesn't know what
to do.
Fix:
It is highly unlikely that more than 4 DH-11 units will (or can)
be used. The dh.4 man page and /dev/MAKEDEV script were updated
to only allow tty[h,i,j,k] and ttyl was selected as the DL-11
device name.
==============================cut here============================
*** /dev/MAKEDEV.old Sun Dec 22 17:16:18 1991
--- /dev/MAKEDEV Thu Jul 23 20:29:09 1992
***************
*** 24,29 ****
--- 24,30 ----
# si* unibus cdc 9766 w/ si 9500
# xp* unibus rm02/03/05, rp04/05/06, diva, eagle, cdc9766, fuji 160.
# Terminal multiplexors:
+ # dl* dl-11 units other than the console
# dz* unibus dz11 and dz32
# dh* unibus dh11 and emulations (e.g. Able dmax, Emulex cs-11)
# dmf* unibus dmf32
***************
*** 250,256 ****
unit=`expr $i : "$name\(.*\)"`
case $unit 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
--- 251,256 ----
***************
*** 263,274 ****
printf("/etc/mknod tty%s%c c %d %d; ",ch,87+i,m,u+i); }'`
;;
# we may want va and vp someday...
# lp*|va*|vp*)
lp*|dn*)
case $i in
lp*) name=lp; major=5;;
! dn*) name=dn; major=21;
# va*) name=va; major=10;;
# vp*) name=vp; major=6;;
esac
--- 263,293 ----
printf("/etc/mknod tty%s%c c %d %d; ",ch,87+i,m,u+i); }'`
;;
+ # extra DL-11 units not including the console. unit numbers start at 1 because
+ # the console is always unit 0. Seven units (1 - 7) are defined for the 11/93
+ # and 11/94. Device name is "ttyl?". The DH range was restricted from 'h'-'o'
+ # to 'h' - 'k' (very unlikely that more than 64 channels of DH-11 will or could
+ # be put on an 11.
+
+ dl*)
+ name=dl; major=0; ch=l
+ unit=`expr $i : "$name\(.*\)"`
+ case $unit in
+ 1|2|3|4|5|6|7)
+ /etc/mknod tty${ch}${unit} c $major $unit;
+ ;;
+ *)
+ echo bad unit for $name in: $i
+ ;;
+ esac
+ ;;
+
# we may want va and vp someday...
# lp*|va*|vp*)
lp*|dn*)
case $i in
lp*) name=lp; major=5;;
! dn*) name=dn; major=21;;
# va*) name=va; major=10;;
# vp*) name=vp; major=6;;
esac
*** /usr/src/man/man4/dh.4.old Thu Jan 28 11:56:23 1988
--- /usr/src/man/man4/dh.4 Thu Jul 23 20:29:11 1992
***************
*** 2,8 ****
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
! .\" @(#)dh.4 6.2 (Berkeley) 1/28/88
.\"
.TH DH 4 "January 28, 1988"
.UC 2
--- 2,8 ----
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
! .\" @(#)dh.4 6.3 (Berkeley) 7/23/92
.\"
.TH DH 4 "January 28, 1988"
.UC 2
***************
*** 26,32 ****
raw: 3
minor device encoding:
bits 0017 specify line on DH unit
! bits 0160 specify DH unit
bit 0200 specifies non-blocking open (``CD always on'')
.fi
.ft R
--- 26,33 ----
raw: 3
minor device encoding:
bits 0017 specify line on DH unit
! bits 0060 specify DH unit
! bit 0100 unused
bit 0200 specifies non-blocking open (``CD always on'')
.fi
.ft R
***************
*** 63,69 ****
the driver polls for input 30 times per second.
.SH FILES
.ta \w'/dev/MAKEDEV.local 'u
! /dev/tty[h-o][0-9a-f]
.br
/dev/ttyd[0-9a-f]
.br
--- 64,70 ----
the driver polls for input 30 times per second.
.SH FILES
.ta \w'/dev/MAKEDEV.local 'u
! /dev/tty[h-k][0-9a-f]
.br
/dev/ttyd[0-9a-f]
.br
Technical Details
Message-ID:
<1992Aug30.045114.15668@wlbr.iipo.gtegsc.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!know!mips2!news.bbn.com!usc!zaphod.mps.ohio-state.edu!darwin.sura.net!europa.asd.contel.com!awds.imsd.contel.com!wlbr!smsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!know!mips2!news.bbn.com!usc!zaphod.mps.ohio-state.edu!darwin.sura.net!europa.asd.contel.com!awds.imsd.contel.com!wlbr!sms From: sms@WLV.IIPO.GTEGSC.COM (Steven M. Schultz) Newsgroups: comp.bugs.2bsd Subject: DL-11 defined in /dev/MAKEDEV plus change to dh.4 man page (#74) Message-ID: <1992Aug30.045114.15668@wlbr.iipo.gtegsc.com> Date: 30 Aug 92 04:51:14 GMT Sender: news@wlbr.iipo.gtegsc.com (news) Organization: GTE Government Systems Lines: 141 Nntp-Posting-Host: wlv.iipo.gtegsc.com