Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/wscons Introduce wsdisplay_isconsole(struct wsdispla...



details:   https://anonhg.NetBSD.org/src/rev/30f3944d6e24
branches:  trunk
changeset: 836092:30f3944d6e24
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Wed Sep 26 09:04:12 2018 +0000

description:
Introduce wsdisplay_isconsole(struct wsdisplay_softc *), which
returns sc->sc_isconsole

diffstat:

 sys/dev/wscons/wsdisplay.c    |  11 +++++++++--
 sys/dev/wscons/wsdisplayvar.h |   4 +++-
 2 files changed, 12 insertions(+), 3 deletions(-)

diffs (50 lines):

diff -r 21214690e48a -r 30f3944d6e24 sys/dev/wscons/wsdisplay.c
--- a/sys/dev/wscons/wsdisplay.c        Tue Sep 25 22:23:22 2018 +0000
+++ b/sys/dev/wscons/wsdisplay.c        Wed Sep 26 09:04:12 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wsdisplay.c,v 1.146 2018/09/18 06:19:28 mrg Exp $ */
+/* $NetBSD: wsdisplay.c,v 1.147 2018/09/26 09:04:12 bouyer Exp $ */
 
 /*
  * Copyright (c) 1996, 1997 Christopher G. Demetriou.  All rights reserved.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wsdisplay.c,v 1.146 2018/09/18 06:19:28 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wsdisplay.c,v 1.147 2018/09/26 09:04:12 bouyer Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_wsdisplay_compat.h"
@@ -2127,6 +2127,13 @@
        }
 }
 
+
+bool
+wsdisplay_isconsole(struct wsdisplay_softc *sc)
+{
+       return sc->sc_isconsole;
+}
+
 /*
  * Interface for (external) VT switch / process synchronization code
  */
diff -r 21214690e48a -r 30f3944d6e24 sys/dev/wscons/wsdisplayvar.h
--- a/sys/dev/wscons/wsdisplayvar.h     Tue Sep 25 22:23:22 2018 +0000
+++ b/sys/dev/wscons/wsdisplayvar.h     Wed Sep 26 09:04:12 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wsdisplayvar.h,v 1.52 2017/05/19 19:22:33 macallan Exp $ */
+/* $NetBSD: wsdisplayvar.h,v 1.53 2018/09/26 09:04:12 bouyer Exp $ */
 
 /*
  * Copyright (c) 1996, 1997 Christopher G. Demetriou.  All rights reserved.
@@ -208,6 +208,8 @@
 int wsdisplay_cfg_ioctl(struct wsdisplay_softc *, u_long, void *,
                        int, struct lwp *);
 
+bool wsdisplay_isconsole(struct wsdisplay_softc *);
+
 struct wsdisplayio_edid_info;
 int wsdisplayio_get_edid(device_t, struct wsdisplayio_edid_info *);
 



Home | Main Index | Thread Index | Old Index