Browse Source

add Zilog serial devices to all)

OPENBSD_3_0
todd 23 years ago
parent
commit
6229139c61
1 changed files with 18 additions and 24 deletions
  1. +18
    -24
      src/etc/etc.sparc64/MAKEDEV

+ 18
- 24
src/etc/etc.sparc64/MAKEDEV View File

@ -1,7 +1,6 @@
#!/bin/sh - #!/bin/sh -
# #
# $OpenBSD: MAKEDEV,v 1.17 2001/09/07 16:53:50 todd Exp $
# $OpenBSD: MAKEDEV,v 1.18 2001/09/07 19:26:03 todd Exp $
# #
# Copyright (c) 2001 Todd T. Fries <todd@OpenBSD.org> # Copyright (c) 2001 Todd T. Fries <todd@OpenBSD.org>
# All rights reserved. # All rights reserved.
@ -55,6 +54,7 @@
# #
# Terminal ports: # Terminal ports:
# tty[a-z]* Zilog 8530 Serial Port # tty[a-z]* Zilog 8530 Serial Port
# cua[a-z]* Zilog 8530 Serial Port
# com* NS16x50 serial ports # com* NS16x50 serial ports
# #
# Pseudo terminals: # Pseudo terminals:
@ -193,6 +193,7 @@ all)
R fd0 fd0B fd0C fd0D fd0E fd0F fd0G fd0H R fd0 fd0B fd0C fd0D fd0E fd0F fd0G fd0H
R fd1 fd1B fd1C fd1D fd1E fd1F fd1G fd1H R fd1 fd1B fd1C fd1D fd1E fd1F fd1G fd1H
R xfs0 tcx0 lkm audio0 local R xfs0 tcx0 lkm audio0 local
R ttya ttyb ttyc ttyd cuaa cuab cuac cuad
;; ;;
floppy) floppy)
R std fd0 wd0 wd1 sd0 sd1 R std fd0 wd0 wd1 sd0 sd1
@ -214,40 +215,33 @@ std)M console c 0 0 600
M stdout c 24 1 M stdout c 24 1
M stderr c 24 2 M stderr c 24 2
M kbd c 29 0 666 M kbd c 29 0 666
mklist=""
M mem c 3 0 640
M kmem c 3 1 640
M drum c 7 0 640
MKlist="$MKlist;chown root.kmem $mklist";;
tty[a-z])
rm -f tty$unit
case $unit in
M mem c 3 0 640 kmem
M kmem c 3 1 640 kmem
M drum c 7 0 640 kmem;;
mouse*)name=${i##mouse-}
if [ ! -c $name ]; then
$0 $name # make the appropriate device
fi
RMlist="$RMlist mouse"
MKlist="$MKlist;ln -s $name mouse";;
tty[a-z])u=${i#tty*}
case $u in
a) n=0 ;; a) n=0 ;;
b) n=1 ;; b) n=1 ;;
c) n=4 ;; c) n=4 ;;
d) n=5 ;; d) n=5 ;;
*) echo unknown tty device $i ;; *) echo unknown tty device $i ;;
esac esac
M tty$unit c 12 $n
chown uucp.wheel tty$unit
;;
cua[a-z])
rm -f cua$unit
case $unit in
M tty$u c 12 $n 660 dialer uucp;;
cua[a-z])u=${i#cua*}
case $u in
a) n=0 ;; a) n=0 ;;
b) n=1 ;; b) n=1 ;;
c) n=4 ;; c) n=4 ;;
d) n=5 ;; d) n=5 ;;
*) echo unknown cua device $i ;; *) echo unknown cua device $i ;;
esac esac
M cua$unit c 12 $(($n+128)) wheel uucp
;;
mouse*)name=${i##mouse-}
if [ ! -c $name ]; then
$0 $name # make the appropriate device
fi
RMlist="$RMlist mouse"
MKlist="$MKlist;ln -s $name mouse";;
M cua$u c 12 $(($n+128)) 660 dialer uucp;;
pty*)case $U in pty*)case $U in
0) off=0 name=p;; 0) off=0 name=p;;
1) off=16 name=q;; 1) off=16 name=q;;


Loading…
Cancel
Save