Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Define separate flags for console input and output.



details:   https://anonhg.NetBSD.org/src/rev/c0dd6e9e3380
branches:  trunk
changeset: 483828:c0dd6e9e3380
user:      pk <pk%NetBSD.org@localhost>
date:      Sun Mar 19 12:39:47 2000 +0000

description:
Define separate flags for console input and output.
Allow console operations to be passed in attachment arguments.

diffstat:

 sys/dev/ic/z8530sc.h |  22 +++++++++++++++-------
 1 files changed, 15 insertions(+), 7 deletions(-)

diffs (38 lines):

diff -r 62b990b2ca04 -r c0dd6e9e3380 sys/dev/ic/z8530sc.h
--- a/sys/dev/ic/z8530sc.h      Sun Mar 19 11:10:57 2000 +0000
+++ b/sys/dev/ic/z8530sc.h      Sun Mar 19 12:39:47 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: z8530sc.h,v 1.13 2000/03/14 21:20:52 jdc Exp $ */
+/*     $NetBSD: z8530sc.h,v 1.14 2000/03/19 12:39:47 pk Exp $  */
 
 /*
  * Copyright (c) 1994 Gordon W. Ross
@@ -122,14 +122,22 @@
        /* MD code might define a larger variant of this. */
 };
 
+struct consdev;
 struct zsc_attach_args {
-       int channel;    /* two serial channels per zsc */
-       int hwflags;
+       int channel;            /* two serial channels per zsc */
+       int hwflags;            /* see definitions below */
+       /* `consdev' is only valid if ZS_HWFLAG_USE_CONSDEV is set */
+       struct consdev *consdev;
 };
-#define ZS_HWFLAG_CONSOLE      1
-#define ZS_HWFLAG_NO_DCD       2       /* Ignore the DCD bit */
-#define ZS_HWFLAG_NO_CTS       4       /* Ignore the CTS bit */
-#define ZS_HWFLAG_RAW          8       /* advise raw mode */
+/* In case of split console devices, use these: */
+#define ZS_HWFLAG_CONSOLE_INPUT                1
+#define ZS_HWFLAG_CONSOLE_OUTPUT       2
+#define ZS_HWFLAG_CONSOLE              \
+       (ZS_HWFLAG_CONSOLE_INPUT | ZS_HWFLAG_CONSOLE_OUTPUT)
+#define ZS_HWFLAG_NO_DCD       4       /* Ignore the DCD bit */
+#define ZS_HWFLAG_NO_CTS       8       /* Ignore the CTS bit */
+#define ZS_HWFLAG_RAW          16      /* advise raw mode */
+#define ZS_HWFLAG_USE_CONSDEV          32      /* Use console ops from `consdev' */
 
 int    zsc_intr_soft __P((void *));
 int    zsc_intr_hard __P((void *));



Home | Main Index | Thread Index | Old Index