diff options
author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1997-08-28 12:14:14 +0000 |
---|---|---|
committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1997-08-28 12:14:14 +0000 |
commit | f9e0c4246ccad9e3c30e4ba235ff1735cce29cdb (patch) | |
tree | 780f8e73a11de27a1343ac98e1fcddee1abd63d4 | |
parent | ca61c524588521206ece119f5a6e786544e5d1dd (diff) | |
download | src-f9e0c4246ccad9e3c30e4ba235ff1735cce29cdb.tar.gz src-f9e0c4246ccad9e3c30e4ba235ff1735cce29cdb.zip |
Add entries for Comtrol Rocketport driver.
Submitted by: Amir Farah <amir@comtrol.com>
Notes
Notes:
svn path=/head/; revision=28866
-rw-r--r-- | etc/MAKEDEV | 77 | ||||
-rw-r--r-- | etc/etc.i386/MAKEDEV | 77 |
2 files changed, 152 insertions, 2 deletions
diff --git a/etc/MAKEDEV b/etc/MAKEDEV index 1b35184f7273..49f349ebf736 100644 --- a/etc/MAKEDEV +++ b/etc/MAKEDEV @@ -65,6 +65,8 @@ # cuaA* Specialix SI/XIO dialout ports # ttyD* Digiboard - 16 dialin ports # cuaD* Digiboard - 16 dialout ports +# ttyR* Rocketport dialin ports +# cuaR* Rocketport dialout ports # # Pseudo terminals: # pty* set of 32 master and slave pseudo terminals @@ -104,7 +106,7 @@ # perfmon CPU performance-monitoring counters # pci PCI configuration-space access from user mode # -# $Id: MAKEDEV,v 1.139 1997/03/10 02:10:58 danny Exp $ +# $Id: MAKEDEV,v 1.140 1997/05/11 00:34:36 jmg Exp $ # PATH=/sbin:/bin/:/usr/bin:/usr/sbin:$PATH @@ -903,6 +905,79 @@ cuaD?) umask 77 ;; +# Rocketport multiport serial card. +# +# +ttyR?) + major=81 + Rnum=0; IRnum=32; LRnum=64 + unit=1; minor=0 + dmesg | grep ^RocketPort[0-4] > /tmp/rp_list + controllers=`awk '{print $1}' < /tmp/rp_list` + + 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 + 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 " " + done + chown root.wheel /dev/ttyR* + ;; + +cuaR?) + major=81 + CUnum=128; ICUnum=160; LCUnum=192 + unit=1; minor=0 + dmesg | grep ^RocketPort[0-4] > /tmp/rp_list + controllers=`awk '{print $1}' < /tmp/rp_list` + + umask 7 + 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 + 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 + CUnum=`expr $CUnum + 1` + LCUnum=`expr $LCUnum + 1` + ICUnum=`expr $ICUnum + 1` + done + unit=`expr $unit + 1` + echo " " + done + chown uucp.dialer /dev/cuaR* + umask 77 + ;; + mse*) unit=`expr $i : 'mse\(.*\)'` chr=27 diff --git a/etc/etc.i386/MAKEDEV b/etc/etc.i386/MAKEDEV index 1b35184f7273..49f349ebf736 100644 --- a/etc/etc.i386/MAKEDEV +++ b/etc/etc.i386/MAKEDEV @@ -65,6 +65,8 @@ # cuaA* Specialix SI/XIO dialout ports # ttyD* Digiboard - 16 dialin ports # cuaD* Digiboard - 16 dialout ports +# ttyR* Rocketport dialin ports +# cuaR* Rocketport dialout ports # # Pseudo terminals: # pty* set of 32 master and slave pseudo terminals @@ -104,7 +106,7 @@ # perfmon CPU performance-monitoring counters # pci PCI configuration-space access from user mode # -# $Id: MAKEDEV,v 1.139 1997/03/10 02:10:58 danny Exp $ +# $Id: MAKEDEV,v 1.140 1997/05/11 00:34:36 jmg Exp $ # PATH=/sbin:/bin/:/usr/bin:/usr/sbin:$PATH @@ -903,6 +905,79 @@ cuaD?) umask 77 ;; +# Rocketport multiport serial card. +# +# +ttyR?) + major=81 + Rnum=0; IRnum=32; LRnum=64 + unit=1; minor=0 + dmesg | grep ^RocketPort[0-4] > /tmp/rp_list + controllers=`awk '{print $1}' < /tmp/rp_list` + + 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 + 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 " " + done + chown root.wheel /dev/ttyR* + ;; + +cuaR?) + major=81 + CUnum=128; ICUnum=160; LCUnum=192 + unit=1; minor=0 + dmesg | grep ^RocketPort[0-4] > /tmp/rp_list + controllers=`awk '{print $1}' < /tmp/rp_list` + + umask 7 + 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 + 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 + CUnum=`expr $CUnum + 1` + LCUnum=`expr $LCUnum + 1` + ICUnum=`expr $ICUnum + 1` + done + unit=`expr $unit + 1` + echo " " + done + chown uucp.dialer /dev/cuaR* + umask 77 + ;; + mse*) unit=`expr $i : 'mse\(.*\)'` chr=27 |