summaryrefslogtreecommitdiff
path: root/etc/etc.alpha/MAKEDEV
diff options
context:
space:
mode:
authorEric Jackson <ericj@cvs.openbsd.org>2001-03-08 02:37:16 +0000
committerEric Jackson <ericj@cvs.openbsd.org>2001-03-08 02:37:16 +0000
commit342ce63a610b55295932f8ea5d8be3a2bde63fac (patch)
treec87ad7150b4bbe1e53d5239af68d337709dbe894 /etc/etc.alpha/MAKEDEV
parent3df93f319d4d308c8715427f2dd55c6f06aaedf3 (diff)
create devices for usb devices and raid
Diffstat (limited to 'etc/etc.alpha/MAKEDEV')
-rw-r--r--etc/etc.alpha/MAKEDEV61
1 files changed, 58 insertions, 3 deletions
diff --git a/etc/etc.alpha/MAKEDEV b/etc/etc.alpha/MAKEDEV
index e5bf4cc906c..fa35f66d617 100644
--- a/etc/etc.alpha/MAKEDEV
+++ b/etc/etc.alpha/MAKEDEV
@@ -1,5 +1,5 @@
#!/bin/sh -
-# $OpenBSD: MAKEDEV,v 1.49 2001/01/30 08:34:09 deraadt Exp $
+# $OpenBSD: MAKEDEV,v 1.50 2001/03/08 02:37:15 ericj Exp $
# $NetBSD: MAKEDEV,v 1.8.4.1 1996/06/18 00:41:56 cgd Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
@@ -49,6 +49,7 @@
# vnd* "file" pseudo-disks
# ccd* concatenated disk devices
# wd* ISA "winchester" disk drives (ST506,IDE,ESDI,RLL,...)
+# raid* RAIDframe disk driver
#
# Terminal ports:
# ttyB? DEC 3000 ZS8530 ("scc") serial ports
@@ -62,6 +63,13 @@
# lpt* stock lp
# lpa* interruptless lp
#
+# USB devices:
+# usb* Bus control devices used by usbd for attach/detach
+# uhid* Generic HID devices
+# ulpt* Printer devices
+# ugen* Generic device
+# utty* Serial ports
+#
# Special purpose devices:
# ch* SCSI media changer
# bpf* Berkeley Packet Filter
@@ -147,6 +155,7 @@ all)
sh $this std fd sd0 sd1 sd2 sd3 sd4 pty0 pty1
sh $this st0 st1 ch0 cd0 cd1 vnd0 vnd1 vnd2 vnd3
sh $this ccd0 ccd1 ccd2 ccd3 wd0 wd1 wd2 wd3
+ sh $this raid0 raid1 raid2 raid3
sh $this bpf0 bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7 bpf8 bpf9
sh $this tun0 tun1 tun2 tun3
sh $this ttyB0 ttyB1 tty00 tty01 lkm
@@ -154,7 +163,7 @@ all)
sh $this uk0 uk1 ss0 ss1
sh $this ttyc0 ttyc1 ttyc2 ttyc3 ttyc4 ttyc5 ttyc6 ttyc7
sh $this local xfs0
- sh $this wscons ttyCcfg
+ sh $this usbs wscons ttyCcfg
;;
raminst)
@@ -182,6 +191,13 @@ wsmux|wskbd|wsmouse)
chmod 600 wsmouse wskbd
;;
+usbs)
+ sh $this usb usb0 usb1
+ sh $this uhid0 uhid1 uhid2 uhid3
+ sh $this ugen0 ugen1
+ sh $this ulpt0 ulpt1
+ sh $this utty0 utty1
+ ;;
std)
rm -f console drum mem kmem null zero io tty klog stdin stdout stderr ksyms
mknod console c 0 0
@@ -198,6 +214,44 @@ std)
mknod ksyms c 39 0 ; chmod 640 ksyms ; chown root.kmem ksyms
;;
+usb*)
+ rm -f usb$unit
+ mknod usb$unit c 45 $unit
+ chown root.wheel usb$unit
+ chmod 660 usb$unit
+ ;;
+
+uhid*)
+ rm -f uhid$unit
+ mknod uhid$unit c 46 $unit
+ chown root.wheel uhid$unit
+ chmod 660 uhid$unit
+ ;;
+
+ulpt*)
+ rm -f ulpt$unit
+ mknod ulpt$unit c 47 $unit
+ chown root.wheel ulpt$unit
+ chmod 660 ulpt$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 48 $(( $unit * 16 + $j ))
+ chown root.wheel ugen$unit.$j
+ chmod 660 ugen$unit.$j
+ done
+ ;;
+
+utty*)
+ rm -f utty$unit
+ mknod utty$unit c 49 $unit
+ chown root.wheel utty$unit
+ chmod 660 utty$unit
+ ;;
+
fd)
rm -f fd/*
mkdir fd > /dev/null 2>&1
@@ -208,13 +262,14 @@ fd)
chmod 666 fd/*
;;
-sd*|wd*|ccd*|rd*)
+sd*|wd*|ccd*|rd*|raid*)
umask 2 ; unit=${i##*d}
case $i in
rd*) name=rd; blk=6; chr=28;;
sd*) name=sd; blk=8; chr=8;;
ccd*) name=ccd; blk=7; chr=27;;
wd*) name=wd; blk=0; chr=36;;
+ raid*) name=raid; blk=16; chr=43;;
esac
rm -f $name$unit? r$name$unit?
mknod ${name}${unit}a b $blk $(mult $unit 16)