Module Name: src
Committed By: riastradh
Date: Mon Aug 27 06:07:20 UTC 2018
Modified Files:
src/sys/external/bsd/common/include/linux: kernel.h
src/sys/external/bsd/drm2/include/linux: pm.h
Log Message:
more declarations of things we need.
more power management ops.
Author: coypu <[email protected]>
Committer: Taylor R Campbell <[email protected]>
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/external/bsd/common/include/linux/kernel.h
cvs rdiff -u -r1.4 -r1.5 src/sys/external/bsd/drm2/include/linux/pm.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/common/include/linux/kernel.h
diff -u src/sys/external/bsd/common/include/linux/kernel.h:1.10 src/sys/external/bsd/common/include/linux/kernel.h:1.11
--- src/sys/external/bsd/common/include/linux/kernel.h:1.10 Mon Aug 27 06:06:10 2018
+++ src/sys/external/bsd/common/include/linux/kernel.h Mon Aug 27 06:07:20 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: kernel.h,v 1.10 2018/08/27 06:06:10 riastradh Exp $ */
+/* $NetBSD: kernel.h,v 1.11 2018/08/27 06:07:20 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -43,6 +43,7 @@
#define oops_in_progress (panicstr != NULL)
#define IS_ENABLED(option) (option)
+#define IS_BUILTIN(option) (1) /* Probably... */
#define __printf __printflike
#define __user
Index: src/sys/external/bsd/drm2/include/linux/pm.h
diff -u src/sys/external/bsd/drm2/include/linux/pm.h:1.4 src/sys/external/bsd/drm2/include/linux/pm.h:1.5
--- src/sys/external/bsd/drm2/include/linux/pm.h:1.4 Thu Mar 5 17:35:56 2015
+++ src/sys/external/bsd/drm2/include/linux/pm.h Mon Aug 27 06:07:20 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: pm.h,v 1.4 2015/03/05 17:35:56 riastradh Exp $ */
+/* $NetBSD: pm.h,v 1.5 2018/08/27 06:07:20 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -40,6 +40,7 @@ typedef struct {
#define PM_EVENT_PRETHAW 0
#define PM_EVENT_SUSPEND 1
+#define PM_EVENT_FREEZE 2
struct dev_pm_domain {
char dummy; /* XXX */
@@ -47,6 +48,19 @@ struct dev_pm_domain {
struct dev_pm_ops {
int (*resume)(struct device *);
+ int (*resume_early)(struct device *);
+ int (*suspend)(struct device *);
+ int (*suspend_late)(struct device *);
+ int (*freeze)(struct device *);
+ int (*freeze_late)(struct device *);
+ int (*thaw_early)(struct device *);
+ int (*thaw)(struct device *);
+ int (*poweroff)(struct device *);
+ int (*poweroff_late)(struct device *);
+ int (*restore_early)(struct device *);
+ int (*restore)(struct device *);
+ int (*runtime_suspend)(struct device *);
+ int (*runtime_resume)(struct device *);
};
#endif /* _LINUX_PM_H_ */