Browse Source

sync

OPENBSD_3_1
jason 23 years ago
parent
commit
ad72c511f0
1 changed files with 18 additions and 19 deletions
  1. +18
    -19
      src/etc/etc.sparc/MAKEDEV

+ 18
- 19
src/etc/etc.sparc/MAKEDEV View File

@ -3,11 +3,11 @@
# THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT. # THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.
# generated from: # generated from:
# #
# OpenBSD: etc.sparc/MAKEDEV.md,v 1.1 2002/01/08 06:00:15 todd Exp
# OpenBSD: etc.sparc/MAKEDEV.md,v 1.2 2002/01/12 21:02:03 jason Exp
# OpenBSD: MAKEDEV.mi,v 1.16 2002/01/08 06:00:15 todd Exp # OpenBSD: MAKEDEV.mi,v 1.16 2002/01/08 06:00:15 todd Exp
# OpenBSD: MAKEDEV.sub,v 1.4 2002/01/07 06:54:10 todd Exp # OpenBSD: MAKEDEV.sub,v 1.4 2002/01/07 06:54:10 todd Exp
# #
# $OpenBSD: MAKEDEV,v 1.71 2002/01/08 06:32:16 todd Exp $
# $OpenBSD: MAKEDEV,v 1.72 2002/01/12 21:02:47 jason Exp $
# #
# Copyright (c) 2001 Todd T. Fries <todd@OpenBSD.org> # Copyright (c) 2001 Todd T. Fries <todd@OpenBSD.org>
# All rights reserved. # All rights reserved.
@ -216,41 +216,40 @@ std)
;; ;;
magma*) magma*)
if [ 0$U -gt 3 ]
then
echo "bad unit for $i: $U"
exit 127
fi
case $U in
0) offset=0 nam=m;;
1) offset=16 nam=n;;
2) offset=32 nam=o;;
*) echo "bad unit for $i: $U"; exit 127;;
esac
offset=$(($U*64)) offset=$(($U*64))
n=0 n=0
while [ $n -lt 16 ] while [ $n -lt 16 ]
do do
name=$U`hex $n`
name=${nam}`hex $n`
M tty$name c 100 $(($offset+$n)) M tty$name c 100 $(($offset+$n))
n=$(($n+1)) n=$(($n+1))
done done
M bpp${unit}0 c 101 $(($offset+0))
M bpp${unit}1 c 101 $(($offset+1))
M bpp${nam}0 c 101 $(($offset+0))
M bpp${nam}1 c 101 $(($offset+1))
;; ;;
magma*)
spif*)
case $U in case $U in
0) offset=0 nam=m;;
1) offset=16 nam=n;;
2) offset=32 nam=o;;
3) offset=48 nam=p;;
0) offset=0 nam=j;;
1) offset=16 nam=k;;
2) offset=32 nam=l;;
*) echo "bad unit for $i: $U"; exit 127;; *) echo "bad unit for $i: $U"; exit 127;;
esac esac
offset=$(($U*64)) offset=$(($U*64))
n=0 n=0
while [ $n -lt 16 ] while [ $n -lt 16 ]
do do
name=$U`hex $n`
M tty$name c 100 $(($offset+$n))
name=${nam}`hex $n`
M tty$name c 102 $(($offset+$n))
n=$(($n+1)) n=$(($n+1))
done done
M bppm${unit} c 101 $(($offset+0))
M bppm${unit} c 101 $(($offset+1))
M bpp${nam}0 c 103 $(($offset+0))
;; ;;
ses*) ses*)


Loading…
Cancel
Save