Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/drm2/include/linux linux: Misc empty stubs ...



details:   https://anonhg.NetBSD.org/src/rev/77028308af27
branches:  trunk
changeset: 1028778:77028308af27
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 12:00:24 2021 +0000

description:
linux: Misc empty stubs for amdgpu.

diffstat:

 sys/external/bsd/drm2/include/linux/reboot.h         |   9 ++++++++-
 sys/external/bsd/drm2/include/linux/suspend.h        |   6 +++++-
 sys/external/bsd/drm2/include/linux/vga_switcheroo.h |  10 +++++++++-
 3 files changed, 22 insertions(+), 3 deletions(-)

diffs (69 lines):

diff -r ea103e71da8d -r 77028308af27 sys/external/bsd/drm2/include/linux/reboot.h
--- a/sys/external/bsd/drm2/include/linux/reboot.h      Sun Dec 19 12:00:16 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/reboot.h      Sun Dec 19 12:00:24 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: reboot.h,v 1.6 2020/01/01 22:57:17 thorpej Exp $       */
+/*     $NetBSD: reboot.h,v 1.7 2021/12/19 12:00:24 riastradh Exp $     */
 
 /*-
  * Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -61,4 +61,11 @@
        return 0;
 }
 
+static inline void
+emergency_restart(void)
+{
+
+       kern_reboot(0, NULL);
+}
+
 #endif /* _LINUX_REBOOT_H_ */
diff -r ea103e71da8d -r 77028308af27 sys/external/bsd/drm2/include/linux/suspend.h
--- a/sys/external/bsd/drm2/include/linux/suspend.h     Sun Dec 19 12:00:16 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/suspend.h     Sun Dec 19 12:00:24 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: suspend.h,v 1.2 2014/03/18 18:20:43 riastradh Exp $    */
+/*     $NetBSD: suspend.h,v 1.3 2021/12/19 12:00:24 riastradh Exp $    */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -32,4 +32,8 @@
 #ifndef _LINUX_SUSPEND_H_
 #define _LINUX_SUSPEND_H_
 
+#include <sys/cdefs.h>
+
+#define        ksys_sync_helper()      __nothing
+
 #endif  /* _LINUX_SUSPEND_H_ */
diff -r ea103e71da8d -r 77028308af27 sys/external/bsd/drm2/include/linux/vga_switcheroo.h
--- a/sys/external/bsd/drm2/include/linux/vga_switcheroo.h      Sun Dec 19 12:00:16 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/vga_switcheroo.h      Sun Dec 19 12:00:24 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vga_switcheroo.h,v 1.3 2021/12/19 01:48:52 riastradh Exp $     */
+/*     $NetBSD: vga_switcheroo.h,v 1.4 2021/12/19 12:00:24 riastradh Exp $     */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -32,7 +32,10 @@
 #ifndef _LINUX_VGA_SWITCHEROO_H_
 #define _LINUX_VGA_SWITCHEROO_H_
 
+#include <sys/types.h>
+
 #include <sys/cdefs.h>
+#include <sys/device_if.h>
 
 #define        VGA_SWITCHEROO_CAN_SWITCH_DDC   __BIT(0)
 
@@ -42,4 +45,9 @@
        return 0;
 }
 
+static inline void
+vga_switcheroo_fini_domain_pm_ops(device_t dev)
+{
+}
+
 #endif  /* _LINUX_VGA_SWITCHEROO_H_ */



Home | Main Index | Thread Index | Old Index