Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc/etc.dreamcast Added target to make maple direct access d...
details: https://anonhg.NetBSD.org/src/rev/7c0e4228867b
branches: trunk
changeset: 510311:7c0e4228867b
user: marcus <marcus%NetBSD.org@localhost>
date: Sat May 26 19:06:09 2001 +0000
description:
Added target to make maple direct access device nodes.
diffstat:
etc/etc.dreamcast/MAKEDEV | 24 ++++++++++++++++++++++--
1 files changed, 22 insertions(+), 2 deletions(-)
diffs (54 lines):
diff -r 0f01827f0478 -r 7c0e4228867b etc/etc.dreamcast/MAKEDEV
--- a/etc/etc.dreamcast/MAKEDEV Sat May 26 19:04:39 2001 +0000
+++ b/etc/etc.dreamcast/MAKEDEV Sat May 26 19:06:09 2001 +0000
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $NetBSD: MAKEDEV,v 1.3 2001/03/28 20:55:27 marcus Exp $
+# $NetBSD: MAKEDEV,v 1.4 2001/05/26 19:06:09 marcus Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@@ -82,7 +82,7 @@
case $i in
all)
- sh $0 std fd gdrom0
+ sh $0 std fd gdrom0 maple
sh $0 scif0 sci0 pty0 pty1
sh $0 vnd0 vnd1
sh $0 ttyE0 ttyEcfg wsmouse0 wskbd0 bpf0 bpf1 bpf2 bpf3 tun0 tun1 ipl
@@ -103,6 +103,11 @@
sh $0 ttyEcfg
;;
+maple)
+ sh $0 mapleA mapleA1 mapleA2 mapleB mapleB1 mapleB2
+ sh $0 mapleC mapleC1 mapleC2 mapleD mapleD1 mapleD2
+ ;;
+
std)
rm -f console drum mem kmem null zero io tty klog stdin stdout stderr
mknod console c 0 0
@@ -263,6 +268,21 @@
chmod 640 $name$unit? r$name$unit?
;;
+maple*)
+ chr=58
+ case $i in
+ mapleA*) name="mapleA"; unit=0;;
+ mapleB*) name="mapleB"; unit=1;;
+ mapleC*) name="mapleC"; unit=2;;
+ mapleD*) name="mapleD"; unit=3;;
+ esac
+ subunit=${i#$name}
+ rm -f $name$subunit
+ mknod $name$subunit c $chr $(($unit * 8 + 0$subunit))
+ chown root.wheel $name$subunit
+ chmod 600 $name$subunit
+ ;;
+
bpf*|tun*|mms*|lms*|pms*|joy*)
case $i in
bpf*) name=bpf; unit=${i#bpf}; chr=23;;
Home |
Main Index |
Thread Index |
Old Index