Browse Source

Extend /dev/tty[C-F]* to /dev/tty[C-J]* on sparc64, and to /dev/tty[C-I]* on

sparc.
ok miod@
OPENBSD_4_0
tsi 18 years ago
parent
commit
c1d29f5e2d
3 changed files with 16 additions and 5 deletions
  1. +7
    -3
      src/etc/MAKEDEV.common
  2. +4
    -1
      src/etc/etc.sparc/MAKEDEV.md
  3. +5
    -1
      src/etc/etc.sparc64/MAKEDEV.md

+ 7
- 3
src/etc/MAKEDEV.common View File

@ -1,4 +1,4 @@
vers(a, {-$OpenBSD: MAKEDEV.common,v 1.28 2006/06/11 10:58:57 mk Exp $-})dnl
vers(a, {-$OpenBSD: MAKEDEV.common,v 1.29 2006/08/28 21:04:04 tsi Exp $-})dnl
dnl dnl
dnl Copyright (c) 2001-2006 Todd T. Fries <todd@OpenBSD.org> dnl Copyright (c) 2001-2006 Todd T. Fries <todd@OpenBSD.org>
dnl dnl
@ -337,13 +337,17 @@ target(wscons, wsmouse, 0, 1, 2, 3)dnl
_mkdev({-wscons-}, {-wscons-}, {-dnl _mkdev({-wscons-}, {-wscons-}, {-dnl
show_target(wscons)dnl show_target(wscons)dnl
-})dnl -})dnl
__devitem(wsdisp, ttyC-F*, wscons display devices,wsdisplay)dnl
_mkdev({-wsdisp-}, tty[C-F]*, {-U=${i##tty[C-F]}
__devitem(wsdisp, ttyC-J*, wscons display devices,wsdisplay)dnl
_mkdev({-wsdisp-}, tty[C-J]*, {-U=${i##tty[C-J]}
case $i in case $i in
ttyC*) n=C m=expr(0*256);; ttyC*) n=C m=expr(0*256);;
ttyD*) n=D m=expr(1*256);; ttyD*) n=D m=expr(1*256);;
ttyE*) n=E m=expr(2*256);; ttyE*) n=E m=expr(2*256);;
ttyF*) n=F m=expr(3*256);; ttyF*) n=F m=expr(3*256);;
ttyG*) n=G m=expr(4*256);;
ttyH*) n=H m=expr(5*256);;
ttyI*) n=I m=expr(6*256);;
ttyJ*) n=J m=expr(7*256);;
esac esac
case $U in case $U in
[0-9a-f]) M tty$n$U c major_wsdisp_c Add(16#$U, $m) 600;; [0-9a-f]) M tty$n$U c major_wsdisp_c Add(16#$U, $m) 600;;


+ 4
- 1
src/etc/etc.sparc/MAKEDEV.md View File

@ -1,5 +1,5 @@
vers(__file__, vers(__file__,
{-$OpenBSD: MAKEDEV.md,v 1.30 2006/04/16 02:49:53 todd Exp $-},
{-$OpenBSD: MAKEDEV.md,v 1.31 2006/08/28 21:04:04 tsi Exp $-},
etc.MACHINE)dnl etc.MACHINE)dnl
dnl dnl
dnl Copyright (c) 2001-2006 Todd T. Fries <todd@OpenBSD.org> dnl Copyright (c) 2001-2006 Todd T. Fries <todd@OpenBSD.org>
@ -141,3 +141,6 @@ target(all, presto, 0)dnl
twrget(wscons, wscons, ttyD, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl twrget(wscons, wscons, ttyD, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl
twrget(wscons, wscons, ttyE, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl twrget(wscons, wscons, ttyE, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl
twrget(wscons, wscons, ttyF, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl twrget(wscons, wscons, ttyF, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl
twrget(wscons, wscons, ttyG, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl
twrget(wscons, wscons, ttyH, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl
twrget(wscons, wscons, ttyI, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl

+ 5
- 1
src/etc/etc.sparc64/MAKEDEV.md View File

@ -1,5 +1,5 @@
vers(__file__, vers(__file__,
{-$OpenBSD: MAKEDEV.md,v 1.40 2006/04/16 11:34:02 todd Exp $-},
{-$OpenBSD: MAKEDEV.md,v 1.41 2006/08/28 21:04:04 tsi Exp $-},
etc.MACHINE)dnl etc.MACHINE)dnl
dnl dnl
dnl Copyright (c) 2001-2006 Todd T. Fries <todd@OpenBSD.org> dnl Copyright (c) 2001-2006 Todd T. Fries <todd@OpenBSD.org>
@ -126,6 +126,10 @@ dnl
twrget(wscons, wscons, ttyD, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl twrget(wscons, wscons, ttyD, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl
twrget(wscons, wscons, ttyE, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl twrget(wscons, wscons, ttyE, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl
twrget(wscons, wscons, ttyF, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl twrget(wscons, wscons, ttyF, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl
twrget(wscons, wscons, ttyG, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl
twrget(wscons, wscons, ttyH, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl
twrget(wscons, wscons, ttyI, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl
twrget(wscons, wscons, ttyJ, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl
target(all, ccd, 0, 1, 2, 3)dnl target(all, ccd, 0, 1, 2, 3)dnl
target(all, ch, 0)dnl target(all, ch, 0)dnl
target(all, ss, 0, 1)dnl target(all, ss, 0, 1)dnl


Loading…
Cancel
Save