mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
Fix generation of Comtrol RocketPort devices.
PR: 5468 Submitted by: Steve Gericke <steveg@comtrol.com>
This commit is contained in:
parent
cac1743203
commit
62778de06e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=32372
@ -106,7 +106,7 @@
|
|||||||
# perfmon CPU performance-monitoring counters
|
# perfmon CPU performance-monitoring counters
|
||||||
# pci PCI configuration-space access from user mode
|
# pci PCI configuration-space access from user mode
|
||||||
#
|
#
|
||||||
# $Id: MAKEDEV,v 1.147 1998/01/02 22:16:15 jkh Exp $
|
# $Id: MAKEDEV,v 1.148 1998/01/03 11:53:52 jkh Exp $
|
||||||
#
|
#
|
||||||
|
|
||||||
PATH=/sbin:/bin/:/usr/bin:/usr/sbin:$PATH
|
PATH=/sbin:/bin/:/usr/bin:/usr/sbin:$PATH
|
||||||
@ -891,7 +891,7 @@ ttyR?)
|
|||||||
|
|
||||||
cuaR?)
|
cuaR?)
|
||||||
major=81
|
major=81
|
||||||
CUnum=128; ICUnum=160; LCUnum=192
|
Rnum=0; CUnum=128; ICUnum=160; LCUnum=192
|
||||||
unit=1; minor=0
|
unit=1; minor=0
|
||||||
dmesg | grep ^RocketPort[0-4] > /tmp/rp_list
|
dmesg | grep ^RocketPort[0-4] > /tmp/rp_list
|
||||||
controllers=`awk '{print $1}' < /tmp/rp_list`
|
controllers=`awk '{print $1}' < /tmp/rp_list`
|
||||||
@ -910,6 +910,7 @@ cuaR?)
|
|||||||
name=cuaiR$Rnum
|
name=cuaiR$Rnum
|
||||||
echo -n "$name "
|
echo -n "$name "
|
||||||
mknod /dev/$name c $major $ICUnum
|
mknod /dev/$name c $major $ICUnum
|
||||||
|
Rnum=`expr $Rnum + 1`
|
||||||
CUnum=`expr $CUnum + 1`
|
CUnum=`expr $CUnum + 1`
|
||||||
LCUnum=`expr $LCUnum + 1`
|
LCUnum=`expr $LCUnum + 1`
|
||||||
ICUnum=`expr $ICUnum + 1`
|
ICUnum=`expr $ICUnum + 1`
|
||||||
|
@ -106,7 +106,7 @@
|
|||||||
# perfmon CPU performance-monitoring counters
|
# perfmon CPU performance-monitoring counters
|
||||||
# pci PCI configuration-space access from user mode
|
# pci PCI configuration-space access from user mode
|
||||||
#
|
#
|
||||||
# $Id: MAKEDEV,v 1.147 1998/01/02 22:16:15 jkh Exp $
|
# $Id: MAKEDEV,v 1.148 1998/01/03 11:53:52 jkh Exp $
|
||||||
#
|
#
|
||||||
|
|
||||||
PATH=/sbin:/bin/:/usr/bin:/usr/sbin:$PATH
|
PATH=/sbin:/bin/:/usr/bin:/usr/sbin:$PATH
|
||||||
@ -891,7 +891,7 @@ ttyR?)
|
|||||||
|
|
||||||
cuaR?)
|
cuaR?)
|
||||||
major=81
|
major=81
|
||||||
CUnum=128; ICUnum=160; LCUnum=192
|
Rnum=0; CUnum=128; ICUnum=160; LCUnum=192
|
||||||
unit=1; minor=0
|
unit=1; minor=0
|
||||||
dmesg | grep ^RocketPort[0-4] > /tmp/rp_list
|
dmesg | grep ^RocketPort[0-4] > /tmp/rp_list
|
||||||
controllers=`awk '{print $1}' < /tmp/rp_list`
|
controllers=`awk '{print $1}' < /tmp/rp_list`
|
||||||
@ -910,6 +910,7 @@ cuaR?)
|
|||||||
name=cuaiR$Rnum
|
name=cuaiR$Rnum
|
||||||
echo -n "$name "
|
echo -n "$name "
|
||||||
mknod /dev/$name c $major $ICUnum
|
mknod /dev/$name c $major $ICUnum
|
||||||
|
Rnum=`expr $Rnum + 1`
|
||||||
CUnum=`expr $CUnum + 1`
|
CUnum=`expr $CUnum + 1`
|
||||||
LCUnum=`expr $LCUnum + 1`
|
LCUnum=`expr $LCUnum + 1`
|
||||||
ICUnum=`expr $ICUnum + 1`
|
ICUnum=`expr $ICUnum + 1`
|
||||||
|
Loading…
Reference in New Issue
Block a user