1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-13 14:40:22 +00:00

New rocketport device entries, merged again (gack).

This commit is contained in:
Jordan K. Hubbard 1998-02-17 15:28:29 +00:00
parent 45f4be3300
commit 1a4a509dbb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=33480
2 changed files with 66 additions and 102 deletions

View File

@ -107,7 +107,7 @@
# perfmon CPU performance-monitoring counters
# pci PCI configuration-space access from user mode
#
# $Id: MAKEDEV,v 1.152 1998/02/09 08:41:49 cwt Exp $
# $Id: MAKEDEV,v 1.153 1998/02/13 22:40:32 pst Exp $
#
PATH=/sbin:/bin/:/usr/bin:/usr/sbin:$PATH
@ -875,69 +875,51 @@ cuaD?)
umask 77
;;
# Rocketport multiport serial card.
#
#
ttyR?)
major=81
Rnum=0; IRnum=32; LRnum=64
unit=1; minor=0
BOARD=1; MINOR=65536; Rnum=0
MINOR=`expr $BOARD \* 65536`
dmesg | grep ^RocketPort[0-4] > /tmp/rp_list
controllers=`awk '{print $1}' < /tmp/rp_list`
for i in $controllers; do
ndevices=`grep ^$i /tmp/rp_list | sed -e 's/.* \([0-9]*\) ports/\1/'`
echo -n "Creating $ndevices devices for $i: "
for dev in `jot $ndevices 0`; do
name=ttyR$Rnum
echo -n "$name "
mknod /dev/$name c $major $Rnum
name=ttylR$Rnum
echo -n "$name "
mknod /dev/$name c $major $LRnum
name=ttyiR$Rnum
echo -n "$name "
mknod /dev/$name c $major $IRnum
Rnum=`expr $Rnum + 1`
LRnum=`expr $LRnum + 1`
IRnum=`expr $IRnum + 1`
done
unit=`expr $unit + 1`
echo " "
rm -f /dev/ttyR*; rm -f /dev/ttyiR*; rm -f /dev/ttylR*
for i in $controllers;do
ndevices=`grep ^$i /tmp/rp_list | sed -e 's/.* \([0-9]*\) ports/\1/'`
echo -n "Creating $ndevices devices for $i: "
for dev in `jot $ndevices 0`;do
mknod /dev/ttyR$Rnum c $major $MINOR
mknod /dev/ttylR$Rnum c $major `expr $MINOR + 32`
mknod /dev/ttyiR$Rnum c $major `expr $MINOR + 64`
Rnum=`expr $Rnum + 1`
MINOR=`expr $MINOR + 1`
done
BOARD=`expr $BOARD + 1`
MINOR=`expr $BOARD \* 65536`
echo " "
done
;;
cuaR?)
major=81
Rnum=0; CUnum=128; ICUnum=160; LCUnum=192
unit=1; minor=0
BOARD=1; MINOR=65536; Rnum=0
MINOR=`expr $BOARD \* 65536`
dmesg | grep ^RocketPort[0-4] > /tmp/rp_list
controllers=`awk '{print $1}' < /tmp/rp_list`
umask 7
for i in $controllers; do
ndevices=`grep ^$i /tmp/rp_list | sed -e 's/.* \([0-9]*\) ports/\1/'`
echo -n "Creating $ndevices devices for $i: "
for dev in `jot $ndevices 0`; do
name=cuaR$Rnum
echo -n "$name "
mknod /dev/$name c $major $CUnum
name=cualR$Rnum
echo -n "$name "
mknod /dev/$name c $major $LCUnum
name=cuaiR$Rnum
echo -n "$name "
mknod /dev/$name c $major $ICUnum
Rnum=`expr $Rnum + 1`
CUnum=`expr $CUnum + 1`
LCUnum=`expr $LCUnum + 1`
ICUnum=`expr $ICUnum + 1`
done
unit=`expr $unit + 1`
echo " "
rm -f /dev/cuaR*; rm -f /dev/cuaiR*; rm -f /dev/cualR*
for i in $controllers;do
ndevices=`grep ^$i /tmp/rp_list | sed -e 's/.* \([0-9]*\) ports/\1/'`
echo -n "Creating $ndevices devices for $i: "
for dev in `jot $ndevices 0`;do
mknod /dev/cuaR$Rnum c $major `expr $MINOR + 128`
mknod /dev/cualR$Rnum c $major `expr $MINOR + 128 + 32`
mknod /dev/cuaiR$Rnum c $major `expr $MINOR + 128 + 64`
Rnum=`expr $Rnum + 1`
MINOR=`expr $MINOR + 1`
done
BOARD=`expr $BOARD + 1`
MINOR=`expr $BOARD \* 65536`
echo " "
done
chown uucp.dialer /dev/cuaR*
umask 77
;;
mse*)

View File

@ -107,7 +107,7 @@
# perfmon CPU performance-monitoring counters
# pci PCI configuration-space access from user mode
#
# $Id: MAKEDEV,v 1.152 1998/02/09 08:41:49 cwt Exp $
# $Id: MAKEDEV,v 1.153 1998/02/13 22:40:32 pst Exp $
#
PATH=/sbin:/bin/:/usr/bin:/usr/sbin:$PATH
@ -875,69 +875,51 @@ cuaD?)
umask 77
;;
# Rocketport multiport serial card.
#
#
ttyR?)
major=81
Rnum=0; IRnum=32; LRnum=64
unit=1; minor=0
BOARD=1; MINOR=65536; Rnum=0
MINOR=`expr $BOARD \* 65536`
dmesg | grep ^RocketPort[0-4] > /tmp/rp_list
controllers=`awk '{print $1}' < /tmp/rp_list`
for i in $controllers; do
ndevices=`grep ^$i /tmp/rp_list | sed -e 's/.* \([0-9]*\) ports/\1/'`
echo -n "Creating $ndevices devices for $i: "
for dev in `jot $ndevices 0`; do
name=ttyR$Rnum
echo -n "$name "
mknod /dev/$name c $major $Rnum
name=ttylR$Rnum
echo -n "$name "
mknod /dev/$name c $major $LRnum
name=ttyiR$Rnum
echo -n "$name "
mknod /dev/$name c $major $IRnum
Rnum=`expr $Rnum + 1`
LRnum=`expr $LRnum + 1`
IRnum=`expr $IRnum + 1`
done
unit=`expr $unit + 1`
echo " "
rm -f /dev/ttyR*; rm -f /dev/ttyiR*; rm -f /dev/ttylR*
for i in $controllers;do
ndevices=`grep ^$i /tmp/rp_list | sed -e 's/.* \([0-9]*\) ports/\1/'`
echo -n "Creating $ndevices devices for $i: "
for dev in `jot $ndevices 0`;do
mknod /dev/ttyR$Rnum c $major $MINOR
mknod /dev/ttylR$Rnum c $major `expr $MINOR + 32`
mknod /dev/ttyiR$Rnum c $major `expr $MINOR + 64`
Rnum=`expr $Rnum + 1`
MINOR=`expr $MINOR + 1`
done
BOARD=`expr $BOARD + 1`
MINOR=`expr $BOARD \* 65536`
echo " "
done
;;
cuaR?)
major=81
Rnum=0; CUnum=128; ICUnum=160; LCUnum=192
unit=1; minor=0
BOARD=1; MINOR=65536; Rnum=0
MINOR=`expr $BOARD \* 65536`
dmesg | grep ^RocketPort[0-4] > /tmp/rp_list
controllers=`awk '{print $1}' < /tmp/rp_list`
umask 7
for i in $controllers; do
ndevices=`grep ^$i /tmp/rp_list | sed -e 's/.* \([0-9]*\) ports/\1/'`
echo -n "Creating $ndevices devices for $i: "
for dev in `jot $ndevices 0`; do
name=cuaR$Rnum
echo -n "$name "
mknod /dev/$name c $major $CUnum
name=cualR$Rnum
echo -n "$name "
mknod /dev/$name c $major $LCUnum
name=cuaiR$Rnum
echo -n "$name "
mknod /dev/$name c $major $ICUnum
Rnum=`expr $Rnum + 1`
CUnum=`expr $CUnum + 1`
LCUnum=`expr $LCUnum + 1`
ICUnum=`expr $ICUnum + 1`
done
unit=`expr $unit + 1`
echo " "
rm -f /dev/cuaR*; rm -f /dev/cuaiR*; rm -f /dev/cualR*
for i in $controllers;do
ndevices=`grep ^$i /tmp/rp_list | sed -e 's/.* \([0-9]*\) ports/\1/'`
echo -n "Creating $ndevices devices for $i: "
for dev in `jot $ndevices 0`;do
mknod /dev/cuaR$Rnum c $major `expr $MINOR + 128`
mknod /dev/cualR$Rnum c $major `expr $MINOR + 128 + 32`
mknod /dev/cuaiR$Rnum c $major `expr $MINOR + 128 + 64`
Rnum=`expr $Rnum + 1`
MINOR=`expr $MINOR + 1`
done
BOARD=`expr $BOARD + 1`
MINOR=`expr $BOARD \* 65536`
echo " "
done
chown uucp.dialer /dev/cuaR*
umask 77
;;
mse*)