Subject: Cyclades Cyclom-Y series.
To: None <current-users@netbsd.org>
From: None <seirios@Matrix.IRI.Co.Jp>
List: current-users
Date: 06/23/2000 18:46:44
----Next_Part(Fri_Jun_23_18:46:44_2000_850)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi. This is HEO SeonMeyong writing.
I have Cyclades Cyclom-8YsPCI+(cy) and this device now running on my host.
I have question about this device.
Why CY device entry is not define in MAKEDEV?
I think this device is similer to Cyclom-Z series(cz).
Just now, I wrote MAKEDEV entry based CZ.
The patch is following.
HEO
----Next_Part(Fri_Jun_23_18:46:44_2000_850)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="MAKEDEV.diff"
--- MAKEDEV.bak Fri Jun 9 22:40:30 2000
+++ MAKEDEV Fri Jun 23 18:36:23 2000
@@ -72,6 +72,8 @@
# Terminal ports:
# com* standard PC COM ports (XXX)
# tty* alias for PC COM ports, this is what the system really wants
+# ttyCY* Cyclades-Y multiport serial boards. Each "unit"
+# makes 32 ports.
# ttyCZ* Cyclades-Z multiport serial boards. Each "unit"
# makes 64 ports.
#
@@ -151,6 +153,7 @@
sh $0 ca0 ca1 ca2 ca3
sh $0 lm0
sh $0 bktr
+ sh $0 ttyCY0
sh $0 ttyCZ0
;;
@@ -413,6 +416,28 @@
mknod r${name}${unit}h c $chr $(($unit * 8 + 7))
chgrp operator $name$unit? r$name$unit?
chmod 640 $name$unit? r$name$unit?
+ ;;
+
+ttyCY*)
+ unit=${i#ttyCY}
+ major=73
+ 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))
+ mknod dtyCY$nminor c $major $(($minor + 128 ))
+ chown uucp.wheel ttyCY$nminor dtyCY$nminor
+ chmod 600 ttyCY$nminor dtyCY$nminor
+ minor=$(($minor + 1))
+ done
;;
ttyCZ*)
----Next_Part(Fri_Jun_23_18:46:44_2000_850)----