summaryrefslogtreecommitdiff
path: root/etc/etc.powerpc
diff options
context:
space:
mode:
authorDale S. Rahn <rahnds@cvs.openbsd.org>2000-09-06 02:54:27 +0000
committerDale S. Rahn <rahnds@cvs.openbsd.org>2000-09-06 02:54:27 +0000
commit4b126e30c7520a5e573a93f1b4e98e4b76bb44f9 (patch)
tree0c7d2ab6dd6ad9a8f55d372de9a62d4dcff4c2ed /etc/etc.powerpc
parent15d7b4a2e698a8a2e0b59f9358b1cd04731ec748 (diff)
Add device nodes for USB, move the console control from openfirmware to wscons.
Diffstat (limited to 'etc/etc.powerpc')
-rw-r--r--etc/etc.powerpc/MAKEDEV69
-rw-r--r--etc/etc.powerpc/ttys8
2 files changed, 68 insertions, 9 deletions
diff --git a/etc/etc.powerpc/MAKEDEV b/etc/etc.powerpc/MAKEDEV
index 02dc2dcde00..79a480e3ebb 100644
--- a/etc/etc.powerpc/MAKEDEV
+++ b/etc/etc.powerpc/MAKEDEV
@@ -1,5 +1,5 @@
#!/bin/sh -
-# $OpenBSD: MAKEDEV,v 1.29 2000/03/22 07:34:30 niklas Exp $
+# $OpenBSD: MAKEDEV,v 1.30 2000/09/06 02:54:26 rahnds Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@@ -55,6 +55,14 @@
# Cirrus boards (grf3), A2410 (grf4) video or
# CyberVision 64 (grf5)
#
+# USB devices:
+# usb* Bus control devices used by usbd for attach/detach
+# uhid* Generic HID devices
+# ulpt* Printer devices
+# urio* Diamond Multimedia Rio 500
+# ugen* Generic device
+# utty* Serial ports
+#
# Special purpose devices:
# ch* SCSI media changer
# bpf* Berkeley Packet Filter
@@ -134,8 +142,6 @@ all)
sh $this std fd
sh $this wd0 wd1 wd2 wd3
sh $this sd0 sd1 sd2 sd3 st0 st1 cd0 cd1
- sh $this ofdisk0 ofdisk1 ofdisk2 ofdisk3 ofdisk4
- sh $this ofdisk5 ofdisk6 ofdisk7 ofdisk8 ofdisk9
sh $this vnd0 vnd1 vnd2 vnd3
sh $this ccd0 ccd1 ccd2 ccd3
sh $this rd0 ipl
@@ -146,6 +152,7 @@ all)
sh $this random uk0 uk1 ss0 ss1
sh $this kbd mouse
sh $this lkm xfs0
+ sh $this usbs
sh $this local
;;
@@ -153,7 +160,6 @@ ramdisk)
sh $this std
sh $this wd0 wd1 wd2 wd3
sh $this sd0 sd1 sd2 sd3 sd4 st0 st1 cd0 cd1
- sh $this ofdisk0 ofdisk1 ofdisk2 ofdisk3 ofdisk4
sh $this rd0
sh $this ttyo0 ttyE0
sh $this random
@@ -178,6 +184,14 @@ std)
# mknod ksyms c 43 0 ; chmod 640 ksyms ; chown root.kmem ksyms
;;
+usbs)
+ sh $this usb0 usb1
+ sh $this uhid0 uhid1 uhid2 uhid3
+ sh $this ulpt0 ulpt1
+ sh $this urio0
+ sh $this utty0 utty1
+ ;;
+
fd)
rm -f fd/*
mkdir fd > /dev/null 2>&1
@@ -423,11 +437,56 @@ cd*)
umask 77
;;
+usb*)
+ rm -f usb$unit
+ mknod usb$unit c 61 $unit
+ chown root.wheel usb$unit
+ chmod 660 usb$unit
+ ;;
+
+uhid*)
+ rm -f uhid$unit
+ mknod uhid$unit c 62 $unit
+ chown root.wheel uhid$unit
+ chmod 660 uhid$unit
+ ;;
+
+ugen*)
+ for j in 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15
+ do
+ rm -f ugen$unit.$j
+ mknod ugen$unit.$j c 63 $(( $unit * 16 + $j ))
+ chown root.wheel ugen$unit.$j
+ chmod 660 ugen$unit.$j
+ done
+ ;;
+
+ulpt*)
+ rm -f ulpt$unit
+ mknod ulpt$unit c 64 $unit
+ chown root.wheel ulpt$unit
+ chmod 660 ulpt$unit
+ ;;
+
+urio*)
+ rm -f urio$unit
+ mknod urio$unit c 65 $unit
+ chown root.wheel urio$unit
+ chmod 660 urio$unit
+ ;;
+
+utty*)
+ rm -f utty$unit
+ mknod utty$unit c 66 $unit
+ chown root.wheel utty$unit
+ chmod 660 utty$unit
+ ;;
+
ttyE*)
type=E
unit=${i##ttyE}
case $type in
- E) major=25; minor=$unit ;;
+ E) major=67; minor=$unit ;;
esac
rm -f tty$type$unit
mknod tty$type$unit c $major $minor
diff --git a/etc/etc.powerpc/ttys b/etc/etc.powerpc/ttys
index b2625f48bd3..df8e72e7d30 100644
--- a/etc/etc.powerpc/ttys
+++ b/etc/etc.powerpc/ttys
@@ -1,5 +1,5 @@
#
-# $OpenBSD: ttys,v 1.9 2000/07/09 22:50:44 rahnds Exp $
+# $OpenBSD: ttys,v 1.10 2000/09/06 02:54:26 rahnds Exp $
#
# name getty type status comments
#
@@ -7,6 +7,6 @@ console "/usr/libexec/getty std.9600" unknown off secure
tty00 "/usr/libexec/getty std.9600" unknown on secure
tty01 "/usr/libexec/getty std.9600" unknown off secure
tty02 "/usr/libexec/getty std.9600" unknown off secure
-tty03 "/usr/libexec/getty std.9600" unknown on secure
-ttyo0 "/usr/libexec/getty std.9600" vt220 on secure
-ttyE0 "/usr/libexec/getty std.9600" unknown off secure
+tty03 "/usr/libexec/getty std.9600" unknown off secure
+ttyo0 "/usr/libexec/getty std.9600" vt220 off secure
+ttyE0 "/usr/libexec/getty std.9600" vt100 on secure