Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Aug 2022 14:04:30 GMT
From:      Emmanuel Vadot <manu@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 2ff0f051498a - main - linuxkpi: pm: Add more defines and includes
Message-ID:  <202208081404.278E4U7t089090@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by manu:

URL: https://cgit.FreeBSD.org/src/commit/?id=2ff0f051498aadfe119149ae3720bef58846f3b2

commit 2ff0f051498aadfe119149ae3720bef58846f3b2
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2022-08-02 08:49:13 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2022-08-08 13:22:36 +0000

    linuxkpi: pm: Add more defines and includes
    
    Needed by drm-kmod.
    
    Reviewed By:    emaste, hselasky
    Obtained from:  drm-kmod
    Sponsored by:   Beckhoff Automation GmbH & Co. KG
    Differential Revision:  https://reviews.freebsd.org/D36024
---
 sys/compat/linuxkpi/common/include/linux/pm.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/pm.h b/sys/compat/linuxkpi/common/include/linux/pm.h
index 255c9bf0ea8b..d67cebb9764a 100644
--- a/sys/compat/linuxkpi/common/include/linux/pm.h
+++ b/sys/compat/linuxkpi/common/include/linux/pm.h
@@ -33,10 +33,20 @@
 #ifndef	_LINUXKPI_LINUX_PM_H
 #define	_LINUXKPI_LINUX_PM_H
 
+/* Needed but breaks linux_usb.c */
+/* #include <linux/completion.h> */
+/* #include <linux/wait.h> */
+
 typedef struct pm_message {
 	int event;
 } pm_message_t;
 
+struct dev_pm_domain {
+};
+
+#define	PM_EVENT_FREEZE		0x0001
+#define	PM_EVENT_SUSPEND	0x0002
+
 #ifdef CONFIG_PM_SLEEP
 #define	SIMPLE_DEV_PM_OPS(_name, _suspendfunc, _resumefunc)	\
 const struct dev_pm_ops _name = {				\



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202208081404.278E4U7t089090>