Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd more declarations of things we need.
details: https://anonhg.NetBSD.org/src/rev/2ecf0183b21c
branches: trunk
changeset: 992400:2ecf0183b21c
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Aug 27 06:07:20 2018 +0000
description:
more declarations of things we need.
more power management ops.
Author: coypu <coypu%sdf.org@localhost>
Committer: Taylor R Campbell <riastradh%NetBSD.org@localhost>
diffstat:
sys/external/bsd/common/include/linux/kernel.h | 3 ++-
sys/external/bsd/drm2/include/linux/pm.h | 16 +++++++++++++++-
2 files changed, 17 insertions(+), 2 deletions(-)
diffs (54 lines):
diff -r 2198deb6e797 -r 2ecf0183b21c sys/external/bsd/common/include/linux/kernel.h
--- a/sys/external/bsd/common/include/linux/kernel.h Mon Aug 27 06:07:07 2018 +0000
+++ b/sys/external/bsd/common/include/linux/kernel.h Mon Aug 27 06:07:20 2018 +0000
@@ -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
diff -r 2198deb6e797 -r 2ecf0183b21c sys/external/bsd/drm2/include/linux/pm.h
--- a/sys/external/bsd/drm2/include/linux/pm.h Mon Aug 27 06:07:07 2018 +0000
+++ b/sys/external/bsd/drm2/include/linux/pm.h Mon Aug 27 06:07:20 2018 +0000
@@ -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 @@
#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_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_ */
Home |
Main Index |
Thread Index |
Old Index