Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Add wscons to MAKEDEV. Add wsfont major number.
details: https://anonhg.NetBSD.org/src/rev/cb0fa25a3692
branches: trunk
changeset: 544171:cb0fa25a3692
user: hannken <hannken%NetBSD.org@localhost>
date: Thu Mar 13 14:56:56 2003 +0000
description:
Add wscons to MAKEDEV. Add wsfont major number.
diffstat:
etc/etc.evbppc/MAKEDEV | 143 ++++++++++++++++++++--------------
share/man/man8/man8.evbppc/MAKEDEV.8 | 23 +++++-
sys/arch/evbppc/conf/majors.evbppc | 3 +-
3 files changed, 105 insertions(+), 64 deletions(-)
diffs (255 lines):
diff -r 9279c9306ab7 -r cb0fa25a3692 etc/etc.evbppc/MAKEDEV
--- a/etc/etc.evbppc/MAKEDEV Thu Mar 13 14:49:12 2003 +0000
+++ b/etc/etc.evbppc/MAKEDEV Thu Mar 13 14:56:56 2003 +0000
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $NetBSD: MAKEDEV,v 1.1 2002/12/09 12:37:10 scw Exp $
+# $NetBSD: MAKEDEV,v 1.2 2003/03/13 14:56:58 hannken Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@@ -54,6 +54,13 @@
# 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.
+# ttyE* wscons
+#
+# Pointing devices:
+# wsmouse* wscons mouse events
+#
+# Keyboard devices:
+# wskbd* wscons keyboard events
#
# Pseudo terminals:
# pty* set of 62 master and slave pseudo terminals
@@ -87,6 +94,8 @@
# systrace syscall tracer
# kttcp kernel ttcp helper
# sysmon System Monitoring hardware
+# wsfont* console font control
+# wsmux* wscons event multiplexor
#
dialin=0
@@ -113,7 +122,7 @@
case $i in
all)
- makedev std fd wd0 wd1 wd2 wd3 sd0 sd1 sd2 sd3 sd4
+ makedev std wscons fd wd0 wd1 wd2 wd3 sd0 sd1 sd2 sd3 sd4
makedev tty0 tty1 pty0
makedev raid0 raid1 raid2 raid3 raid4 raid5 raid6 raid7
makedev st0 st1 ch0 cd0 cd1 vnd0 vnd1 lpa0 lpa1 lpa2
@@ -157,72 +166,84 @@
fi
;;
-# Wscons commented out for now until it is supported for real.
-# Note that the major numbers will need to be revised at that time.
-#wscons)
-# makedev ttyE0 ttyE1 ttyE2 ttyE3 ttyE4 ttyE5 ttyE6 ttyE7
-# makedev wsmouse0 wsmouse1 wsmouse2 wsmouse3
-# makedev wskbd0 wskbd1 wskbd2 wskbd3
-# makedev wsmux0 wsmux1 wsmux2 wsmux3
-# makedev wsmouse wskbd
-# makedev ttyEcfg
-# ;;
+wscons)
+ makedev ttyE0 ttyE1 ttyE2 ttyE3 ttyE4 ttyE5 ttyE6 ttyE7
+ makedev wsmouse0 wsmouse1 wsmouse2 wsmouse3
+ makedev wskbd0 wskbd1 wskbd2 wskbd3
+ makedev wsmux0 wsmux1 wsmux2 wsmux3
+ makedev wsmouse wskbd
+ makedev ttyEcfg ttyEstat
+ makedev wsfont
+ ;;
+
+wsmouse)
+ rm -f wsmouse
+ mknod wsmouse c 68 0
+ chmod 600 wsmouse
+ ;;
-#wsmouse)
-# rm -f wsmouse
-# mknod wsmouse c 52 0
-# chmod 600 wsmouse
-# ;;
+wskbd)
+ rm -f wskbd
+ mknod wskbd c 68 1
+ chmod 600 wskbd
+ ;;
-#wskbd)
-# rm -f wskbd
-# mknod wskbd c 52 1
-# chmod 600 wskbd
-# ;;
+wsmux*)
+ unit=${i#wsmux}
+ unitctl=$(($unit + 128))
+ wsmux=wsmux$unit
+ wsmuxctl=wsmuxctl$unit
+ major=65
+ rm -f $wsmux $wsmuxctl
+ mknod $wsmux c $major $unit
+ chmod 600 $wsmux
+ mknod $wsmuxctl c $major $unitctl
+ chmod 200 $wsmuxctl
+ ;;
-#wsmux*)
-# unit=${i#wsmux}
-# unitctl=$(($unit + 128))
-# wsmux=wsmux$unit
-# wsmuxctl=wsmuxctl$unit
-# major=52
-# rm -f $wsmux $wsmuxctl
-# mknod $wsmux c $major $unit
-# chmod 600 $wsmux
-# mknod $wsmuxctl c $major $unitctl
-# chmod 200 $wsmuxctl
-# ;;
+wsfont)
+ rm -f wsfont
+ mknod wsfont c 69 0
+ chmod 600 wsfont
+ ;;
-#ttyEcfg)
-# chr=47
-# rm -f ttyEcfg
-# mknod ttyEcfg c $chr 255
-# chmod 600 ttyEcfg
-# ;;
+ttyEstat)
+ chr=65
+ rm -f ttyEcfg
+ mknod ttyEcfg c $chr 254
+ chmod 600 ttyEcfg
+ ;;
+
+ttyEcfg)
+ chr=65
+ rm -f ttyEcfg
+ mknod ttyEcfg c $chr 255
+ chmod 600 ttyEcfg
+ ;;
-#ttyE*)
-# chr=47; unit=${i#ttyE}
-# rm -f ttyE$unit
-# mknod ttyE$unit c $chr $unit
-# ;;
+ttyE*)
+ chr=65; unit=${i#ttyE}
+ rm -f ttyE$unit
+ mknod ttyE$unit c $chr $unit
+ ;;
-#wsmouse*)
-# unit=${i#wsmouse}
-# wsmouse=wsmouse$unit
-# major=49
-# rm -f $wsmouse
-# mknod $wsmouse c $major $unit
-# chmod 600 $wsmouse
-# ;;
+wsmouse*)
+ unit=${i#wsmouse}
+ wsmouse=wsmouse$unit
+ major=67
+ rm -f $wsmouse
+ mknod $wsmouse c $major $unit
+ chmod 600 $wsmouse
+ ;;
-#wskbd*)
-# unit=${i#wskbd}
-# wskbd=wskbd$unit
-# major=48
-# rm -f $wskbd
-# mknod $wskbd c $major $unit
-# chmod 600 $wskbd
-# ;;
+wskbd*)
+ unit=${i#wskbd}
+ wskbd=wskbd$unit
+ major=66
+ rm -f $wskbd
+ mknod $wskbd c $major $unit
+ chmod 600 $wskbd
+ ;;
fd)
if $nofdesc; then
diff -r 9279c9306ab7 -r cb0fa25a3692 share/man/man8/man8.evbppc/MAKEDEV.8
--- a/share/man/man8/man8.evbppc/MAKEDEV.8 Thu Mar 13 14:49:12 2003 +0000
+++ b/share/man/man8/man8.evbppc/MAKEDEV.8 Thu Mar 13 14:56:56 2003 +0000
@@ -6,7 +6,7 @@
.\" *** DO NOT EDIT - any changes will be lost!!!
.\" *** ------------------------------------------------------------------
.\"
-.\" $NetBSD: MAKEDEV.8,v 1.2 2003/02/25 10:35:22 wiz Exp $
+.\" $NetBSD: MAKEDEV.8,v 1.3 2003/03/13 14:56:58 hannken Exp $
.\"
.\" Copyright (c) 2001 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -42,7 +42,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd
+.Dd March 13, 2003
.Dt MAKEDEV 8 evbppc
.Os
.Sh NAME
@@ -142,6 +142,20 @@
.Xr \&tty 4
. It Ar ttyCY#
Cyclom-Y multiport serial boards. Each ``unit'' makes 32 ports.
+. It Ar ttyE#
+Wscons
+. El
+.It Pointing devices :
+. Bl -tag -width 0123456789 -compact
+. It Ar wsmouse#
+Wscons mouse events, see
+.Xr \&wsmouse 4
+. El
+.It Keyboard devices :
+. Bl -tag -width 0123456789 -compact
+. It Ar wskbd#
+Wscons keyboard events, see
+.Xr \&wskbd 4
. El
.It Pseudo terminals :
. Bl -tag -width 0123456789 -compact
@@ -222,6 +236,11 @@
Kernel ttcp helper
. It Ar sysmon
System Monitoring hardware
+. It Ar wsfont#
+Console font control
+. It Ar wsmux#
+Wscons event multiplexor, see
+.Xr \&wsmux 4
. El
.El
.Sh FILES
diff -r 9279c9306ab7 -r cb0fa25a3692 sys/arch/evbppc/conf/majors.evbppc
--- a/sys/arch/evbppc/conf/majors.evbppc Thu Mar 13 14:49:12 2003 +0000
+++ b/sys/arch/evbppc/conf/majors.evbppc Thu Mar 13 14:56:56 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: majors.evbppc,v 1.3 2003/03/11 10:57:55 hannken Exp $
+# $NetBSD: majors.evbppc,v 1.4 2003/03/13 14:56:56 hannken Exp $
#
# Device majors for evbppc
#
@@ -59,3 +59,4 @@
device-major wskbd char 66 wskbd
device-major wsmouse char 67 wsmouse
device-major wsmux char 68 wsmux
+device-major wsfont char 69 wsmux
Home |
Main Index |
Thread Index |
Old Index