summaryrefslogtreecommitdiff
path: root/sys/external/bsd/drm2/include/linux
diff options
context:
space:
mode:
authorriastradh <riastradh@NetBSD.org>2020-02-14 04:37:09 +0000
committerriastradh <riastradh@NetBSD.org>2020-02-14 04:37:09 +0000
commit1272ac9c74fa85331ab0308ecfa99c1f7b480010 (patch)
tree65269b211f8bc1ace6ac5ee7bb4fb0d251c2b9bf /sys/external/bsd/drm2/include/linux
parent657463e36886295dbe41de2a0b8c8cd9f78736ff (diff)
Stub out console_lock/unlock and drm_fb_helper_set_suspend.
Reduce some more diffs.
Diffstat (limited to 'sys/external/bsd/drm2/include/linux')
-rw-r--r--sys/external/bsd/drm2/include/linux/console.h12
-rw-r--r--sys/external/bsd/drm2/include/linux/fb.h5
2 files changed, 15 insertions, 2 deletions
diff --git a/sys/external/bsd/drm2/include/linux/console.h b/sys/external/bsd/drm2/include/linux/console.h
index 95ab1f2e5f8..2e40314b209 100644
--- a/sys/external/bsd/drm2/include/linux/console.h
+++ b/sys/external/bsd/drm2/include/linux/console.h
@@ -1,4 +1,4 @@
-/* $NetBSD: console.h,v 1.2 2014/03/18 18:20:43 riastradh Exp $ */
+/* $NetBSD: console.h,v 1.3 2020/02/14 04:37:10 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -32,4 +32,14 @@
#ifndef _LINUX_CONSOLE_H_
#define _LINUX_CONSOLE_H_
+static inline void
+console_lock(void)
+{
+}
+
+static inline void
+console_unlock(void)
+{
+}
+
#endif /* _LINUX_CONSOLE_H_ */
diff --git a/sys/external/bsd/drm2/include/linux/fb.h b/sys/external/bsd/drm2/include/linux/fb.h
index 007cabd24b4..5e04e2ec5a2 100644
--- a/sys/external/bsd/drm2/include/linux/fb.h
+++ b/sys/external/bsd/drm2/include/linux/fb.h
@@ -1,4 +1,4 @@
-/* $NetBSD: fb.h,v 1.3 2018/08/27 06:06:41 riastradh Exp $ */
+/* $NetBSD: fb.h,v 1.4 2020/02/14 04:37:10 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -38,4 +38,7 @@
#define PICOS2KHZ(PICOS) (1000000000ul / (PICOS))
#define KHZ2PICOS(KHZ) (1000000000ul / (KHZ))
+#define FBINFO_STATE_RUNNING 0
+#define FBINFO_STATE_SUSPENDED 1
+
#endif /* _LINUX_FB_H_ */