Module Name: src
Committed By: bouyer
Date: Wed Sep 26 09:04:12 UTC 2018
Modified Files:
src/sys/dev/wscons: wsdisplay.c wsdisplayvar.h
Log Message:
Introduce wsdisplay_isconsole(struct wsdisplay_softc *), which
returns sc->sc_isconsole
To generate a diff of this commit:
cvs rdiff -u -r1.146 -r1.147 src/sys/dev/wscons/wsdisplay.c
cvs rdiff -u -r1.52 -r1.53 src/sys/dev/wscons/wsdisplayvar.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/wscons/wsdisplay.c
diff -u src/sys/dev/wscons/wsdisplay.c:1.146 src/sys/dev/wscons/wsdisplay.c:1.147
--- src/sys/dev/wscons/wsdisplay.c:1.146 Tue Sep 18 06:19:28 2018
+++ src/sys/dev/wscons/wsdisplay.c Wed Sep 26 09:04:12 2018
@@ -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 @@ wsdisplay_reset(device_t dv, enum wsdisp
}
}
+
+bool
+wsdisplay_isconsole(struct wsdisplay_softc *sc)
+{
+ return sc->sc_isconsole;
+}
+
/*
* Interface for (external) VT switch / process synchronization code
*/
Index: src/sys/dev/wscons/wsdisplayvar.h
diff -u src/sys/dev/wscons/wsdisplayvar.h:1.52 src/sys/dev/wscons/wsdisplayvar.h:1.53
--- src/sys/dev/wscons/wsdisplayvar.h:1.52 Fri May 19 19:22:33 2017
+++ src/sys/dev/wscons/wsdisplayvar.h Wed Sep 26 09:04:12 2018
@@ -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_stat_ioctl(struct wsdispla
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 *);