Module Name:    src
Committed By:   riastradh
Date:           Sun Dec 19 12:00:24 UTC 2021

Modified Files:
        src/sys/external/bsd/drm2/include/linux: reboot.h suspend.h
            vga_switcheroo.h

Log Message:
linux: Misc empty stubs for amdgpu.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/external/bsd/drm2/include/linux/reboot.h
cvs rdiff -u -r1.2 -r1.3 src/sys/external/bsd/drm2/include/linux/suspend.h
cvs rdiff -u -r1.3 -r1.4 \
    src/sys/external/bsd/drm2/include/linux/vga_switcheroo.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/external/bsd/drm2/include/linux/reboot.h
diff -u src/sys/external/bsd/drm2/include/linux/reboot.h:1.6 src/sys/external/bsd/drm2/include/linux/reboot.h:1.7
--- src/sys/external/bsd/drm2/include/linux/reboot.h:1.6	Wed Jan  1 22:57:17 2020
+++ src/sys/external/bsd/drm2/include/linux/reboot.h	Sun Dec 19 12:00:24 2021
@@ -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 @@ unregister_reboot_notifier(struct notifi
 	return 0;
 }
 
+static inline void
+emergency_restart(void)
+{
+
+	kern_reboot(0, NULL);
+}
+
 #endif	/* _LINUX_REBOOT_H_ */

Index: src/sys/external/bsd/drm2/include/linux/suspend.h
diff -u src/sys/external/bsd/drm2/include/linux/suspend.h:1.2 src/sys/external/bsd/drm2/include/linux/suspend.h:1.3
--- src/sys/external/bsd/drm2/include/linux/suspend.h:1.2	Tue Mar 18 18:20:43 2014
+++ src/sys/external/bsd/drm2/include/linux/suspend.h	Sun Dec 19 12:00:24 2021
@@ -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_ */

Index: src/sys/external/bsd/drm2/include/linux/vga_switcheroo.h
diff -u src/sys/external/bsd/drm2/include/linux/vga_switcheroo.h:1.3 src/sys/external/bsd/drm2/include/linux/vga_switcheroo.h:1.4
--- src/sys/external/bsd/drm2/include/linux/vga_switcheroo.h:1.3	Sun Dec 19 01:48:52 2021
+++ src/sys/external/bsd/drm2/include/linux/vga_switcheroo.h	Sun Dec 19 12:00:24 2021
@@ -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 @@ vga_switcheroo_handler_flags(void)
 	return 0;
 }
 
+static inline void
+vga_switcheroo_fini_domain_pm_ops(device_t dev)
+{
+}
+
 #endif  /* _LINUX_VGA_SWITCHEROO_H_ */

Reply via email to