Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc Add MAKEDEV support for Cyclom-Y multiport serial boards...
details: https://anonhg.NetBSD.org/src/rev/33e7b06ea321
branches: trunk
changeset: 500111:33e7b06ea321
user: wrstuden <wrstuden%NetBSD.org@localhost>
date: Tue Dec 05 18:18:04 2000 +0000
description:
Add MAKEDEV support for Cyclom-Y multiport serial boards. Driver
support was already in $MACHINE/$MACHINE/conf.c.
diffstat:
etc/etc.alpha/MAKEDEV | 28 ++++++++++++++++++++++++++--
etc/etc.bebox/MAKEDEV | 27 +++++++++++++++++++++++++--
etc/etc.i386/MAKEDEV | 28 ++++++++++++++++++++++++++--
etc/etc.macppc/MAKEDEV | 28 ++++++++++++++++++++++++++--
etc/etc.prep/MAKEDEV | 27 +++++++++++++++++++++++++--
5 files changed, 128 insertions(+), 10 deletions(-)
diffs (287 lines):
diff -r 1cb0d973475a -r 33e7b06ea321 etc/etc.alpha/MAKEDEV
--- a/etc/etc.alpha/MAKEDEV Tue Dec 05 18:11:02 2000 +0000
+++ b/etc/etc.alpha/MAKEDEV Tue Dec 05 18:18:04 2000 +0000
@@ -1,5 +1,5 @@
#!/bin/sh -
-# $NetBSD: MAKEDEV,v 1.65 2000/11/26 17:44:11 ad Exp $
+# $NetBSD: MAKEDEV,v 1.66 2000/12/05 18:18:04 wrstuden Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@@ -71,6 +71,8 @@
# ttyE? Workstation console ("wscons") glass-tty emulators
# ttyCZ? Cyclades-Z multiport serial boards. Each "unit"
# makes 64 ports.
+# ttyCY* Cyclom-Y multiport serial boards. Each "unit" makes
+# 32 ports.
#
# Pseudo terminals:
# pty* set of 16 master and slave pseudo terminals
@@ -130,7 +132,7 @@
sh $0 scsibus0 scsibus1 scsibus2 scsibus3
sh $0 usbs wscons
sh $0 music rmidi0 rmidi1 rmidi2 rmidi3 rmidi4 rmidi5 rmidi6 rmidi7
- sh $0 ttyCZ0
+ sh $0 ttyCZ0 ttyCY0
;;
minimal)
@@ -343,6 +345,28 @@
done
;;
+ttyCY*)
+ unit=${i#ttyCY}
+ major=60
+ minor=$(($unit * 32))
+ eminor=$(($minor + 32))
+ while [ $minor -lt $eminor ]; do
+ if [ $minor -lt 10 ]; then
+ nminor=00$minor
+ elif [ $minor -lt 100 ]; then
+ nminor=0$minor
+ else
+ nminor=$minor
+ fi
+ rm -f ttyCY$nminor dtyCY$nminor
+ mknod ttyCY$nminor c $major $(($minor + $dialin ))
+ mknod dtyCY$nminor c $major $(($minor + $dialout ))
+ chown uucp.wheel ttyCY$nminor dtyCY$nminor
+ chmod 600 ttyCY$nminor dtyCY$nminor
+ minor=$(($minor + 1))
+ done
+ ;;
+
ttyEcfg)
rm -f $i
mknod $i c 25 255
diff -r 1cb0d973475a -r 33e7b06ea321 etc/etc.bebox/MAKEDEV
--- a/etc/etc.bebox/MAKEDEV Tue Dec 05 18:11:02 2000 +0000
+++ b/etc/etc.bebox/MAKEDEV Tue Dec 05 18:18:04 2000 +0000
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $NetBSD: MAKEDEV,v 1.13 2000/09/27 10:33:27 tsutsui Exp $
+# $NetBSD: MAKEDEV,v 1.14 2000/12/05 18:18:05 wrstuden Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@@ -67,6 +67,7 @@
# Terminal ports:
# com* standard PC COM ports (XXX)
# tty* alias for PC COM ports, this is what the system really wants
+# ttyCY* Cyclom-Y multiport serial boards. Each "unit" makes 32 ports.
#
# Pseudo terminals:
# pty* set of 16 master and slave pseudo terminals
@@ -110,7 +111,7 @@
sh $0 st0 st1 ch0 cd0 cd1 vnd0 vnd1 lpa0 lpa1 lpa2
sh $0 lpt0 lpt1 lpt2 ttyv0 tun0 tun1 ipl
sh $0 bpf0 bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7
- sh $0 ccd0 ccd1 ccd2 ccd3 md0 ss0 ch0 uk0 uk1 random
+ sh $0 ccd0 ccd1 ccd2 ccd3 md0 ss0 ch0 uk0 uk1 random ttyCY0
sh $0 speaker lkm mms0 lms0 pms0 audio joy0 joy1 apm local satlink0
sh $0 audio0 audio1 audio2 audio3
sh $0 ttyv0 ttyE0 ttyE1 ttyE2 ttyE3 ttyE4 ttyE5 ttyE6 ttyE7 ttyE8
@@ -283,6 +284,28 @@
chmod 640 $name$unit? r$name$unit?
;;
+ttyCY*)
+ unit=${i#ttyCY}
+ major=38
+ minor=$(($unit * 32))
+ eminor=$(($minor + 32))
+ while [ $minor -lt $eminor ]; do
+ if [ $minor -lt 10 ]; then
+ nminor=00$minor
+ elif [ $minor -lt 100 ]; then
+ nminor=0$minor
+ else
+ nminor=$minor
+ fi
+ rm -f ttyCY$nminor dtyCY$nminor
+ mknod ttyCY$nminor c $major $(($minor + $dialin ))
+ mknod dtyCY$nminor c $major $(($minor + $dialout ))
+ chown uucp.wheel ttyCY$nminor dtyCY$nminor
+ chmod 600 ttyCY$nminor dtyCY$nminor
+ minor=$(($minor + 1))
+ done
+ ;;
+
com*|tty*) # (XXX -- com should die)
unit=${i#???}
rm -f com$unit tty0$unit dty0$unit
diff -r 1cb0d973475a -r 33e7b06ea321 etc/etc.i386/MAKEDEV
--- a/etc/etc.i386/MAKEDEV Tue Dec 05 18:11:02 2000 +0000
+++ b/etc/etc.i386/MAKEDEV Tue Dec 05 18:18:04 2000 +0000
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $NetBSD: MAKEDEV,v 1.129 2000/12/03 13:23:12 ad Exp $
+# $NetBSD: MAKEDEV,v 1.130 2000/12/05 18:18:05 wrstuden Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@@ -73,6 +73,8 @@
# tty* alias for PC COM ports, this is what the system really wants
# ttyCZ* Cyclades-Z multiport serial boards. Each "unit"
# makes 64 ports.
+# ttyCY* Cyclom-Y multiport serial boards. Each "unit" makes
+# 32 ports.
#
# Pseudo terminals:
# pty* set of 16 master and slave pseudo terminals
@@ -152,7 +154,7 @@
sh $0 ld0 ld1 ld2 ld3
sh $0 sysmon
sh $0 bktr
- sh $0 ttyCZ0
+ sh $0 ttyCZ0 ttyCY0
;;
audio)
@@ -450,6 +452,28 @@
done
;;
+ttyCY*)
+ unit=${i#ttyCY}
+ major=38
+ minor=$(($unit * 32))
+ eminor=$(($minor + 32))
+ while [ $minor -lt $eminor ]; do
+ if [ $minor -lt 10 ]; then
+ nminor=00$minor
+ elif [ $minor -lt 100 ]; then
+ nminor=0$minor
+ else
+ nminor=$minor
+ fi
+ rm -f ttyCY$nminor dtyCY$nminor
+ mknod ttyCY$nminor c $major $(($minor + $dialin ))
+ mknod dtyCY$nminor c $major $(($minor + $dialout ))
+ chown uucp.wheel ttyCY$nminor dtyCY$nminor
+ chmod 600 ttyCY$nminor dtyCY$nminor
+ minor=$(($minor + 1))
+ done
+ ;;
+
com*|tty*) # (XXX -- com should die)
ounit=${i#???}
ounit=$(($ounit + 0))
diff -r 1cb0d973475a -r 33e7b06ea321 etc/etc.macppc/MAKEDEV
--- a/etc/etc.macppc/MAKEDEV Tue Dec 05 18:11:02 2000 +0000
+++ b/etc/etc.macppc/MAKEDEV Tue Dec 05 18:18:04 2000 +0000
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $NetBSD: MAKEDEV,v 1.33 2000/11/14 21:21:31 matt Exp $
+# $NetBSD: MAKEDEV,v 1.34 2000/12/05 18:18:05 wrstuden Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@@ -64,6 +64,8 @@
# tty* standard built-in serial ports
# ttyCZ* Cyclades-Z multiport serial boards. Each "unit"
# makes 64 ports.
+# ttyCY* Cyclom-Y multiport serial boards. Each "unit" makes
+# 32 ports.
#
# Pseudo terminals:
# pty* set of 16 master and slave pseudo terminals
@@ -107,7 +109,7 @@
sh $0 ss0 ch0 uk0 uk1 vnd0 vnd1 ccd0 ccd1 ccd2 ccd3
sh $0 random tty00 tty01 tty10 pty0 pty1 pty2 pty3 adb grf0 wscons
sh $0 bpf0 bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7
- sh $0 tun0 tun1 ipl usbs ttyCZ0 audio openfirm
+ sh $0 tun0 tun1 ipl usbs ttyCZ0 ttyCY0 audio openfirm
sh $0 music rmidi0 rmidi1 rmidi2 rmidi3 rmidi4 rmidi5 rmidi6 rmidi7
sh $0 lkm nvram local raid0 raid1 raid2 raid3
sh $0 scsibus0 scsibus1 scsibus2 scsibus3
@@ -331,6 +333,28 @@
done
;;
+ttyCY*)
+ unit=${i#ttyCY}
+ major=47
+ minor=$(($unit * 32))
+ eminor=$(($minor + 32))
+ while [ $minor -lt $eminor ]; do
+ if [ $minor -lt 10 ]; then
+ nminor=00$minor
+ elif [ $minor -lt 100 ]; then
+ nminor=0$minor
+ else
+ nminor=$minor
+ fi
+ rm -f ttyCY$nminor dtyCY$nminor
+ mknod ttyCY$nminor c $major $(($minor + $dialin ))
+ mknod dtyCY$nminor c $major $(($minor + $dialout ))
+ chown uucp.wheel ttyCY$nminor dtyCY$nminor
+ chmod 600 ttyCY$nminor dtyCY$nminor
+ minor=$(($minor + 1))
+ done
+ ;;
+
ttyU*)
unit=${i#ttyU}
ttyU=ttyU$unit
diff -r 1cb0d973475a -r 33e7b06ea321 etc/etc.prep/MAKEDEV
--- a/etc/etc.prep/MAKEDEV Tue Dec 05 18:11:02 2000 +0000
+++ b/etc/etc.prep/MAKEDEV Tue Dec 05 18:18:04 2000 +0000
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $NetBSD: MAKEDEV,v 1.4 2000/07/27 18:43:30 mason Exp $
+# $NetBSD: MAKEDEV,v 1.5 2000/12/05 18:18:06 wrstuden Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@@ -62,6 +62,7 @@
#
# Terminal ports:
# tty* alias for PC COM ports, this is what the system really wants
+# ttyCY* Cyclom-Y multiport serial boards. Each "unit" makes 32 ports.
#
# Pseudo terminals:
# pty* set of 16 master and slave pseudo terminals
@@ -106,7 +107,7 @@
sh $0 ccd0 ccd1 ccd2 ccd3 md0 ss0 ch0 uk0 uk1 random
sh $0 speaker lkm audio joy0 joy1 local
sh $0 audio0 audio1 audio2 audio3
- sh $0 ttyv0
+ sh $0 ttyv0 ttyCY0
sh $0 music rmidi0 rmidi1 rmidi2 rmidi3 rmidi4 rmidi5 rmidi6 rmidi7
sh $0 scsibus0 scsibus1 scsibus2 scsibus3
sh $0 wscons
@@ -262,6 +263,28 @@
chmod 640 $name$unit? r$name$unit?
;;
+ttyCY*)
+ unit=${i#ttyCY}
+ major=38
+ minor=$(($unit * 32))
+ eminor=$(($minor + 32))
+ while [ $minor -lt $eminor ]; do
+ if [ $minor -lt 10 ]; then
+ nminor=00$minor
+ elif [ $minor -lt 100 ]; then
+ nminor=0$minor
+ else
+ nminor=$minor
+ fi
+ rm -f ttyCY$nminor dtyCY$nminor
+ mknod ttyCY$nminor c $major $(($minor + $dialin ))
+ mknod dtyCY$nminor c $major $(($minor + $dialout ))
+ chown uucp.wheel ttyCY$nminor dtyCY$nminor
+ chmod 600 ttyCY$nminor dtyCY$nminor
+ minor=$(($minor + 1))
+ done
+ ;;
+
tty*)
unit=${i#???}
rm -f com$unit tty0$unit dty0$unit
Home |
Main Index |
Thread Index |
Old Index