The branch main has been updated by manu:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=137e91dbf68969ffb1762286889e2e22dd8d1118

commit 137e91dbf68969ffb1762286889e2e22dd8d1118
Author:     Emmanuel Vadot <m...@freebsd.org>
AuthorDate: 2022-06-23 08:12:27 +0000
Commit:     Emmanuel Vadot <m...@freebsd.org>
CommitDate: 2022-06-29 07:55:19 +0000

    linuxkpi: Add asm/iosfmbi.h
    
    Provide dummy functions needed for drm-kmod.
    
    Obtain from:    OpenBSD (via drm-kmod)
    MFC after:      1 week
    Sponsored by:   Beckhoff Automation GmbH & Co. KG
    Differential Revision:  https://reviews.freebsd.org/D35570
---
 sys/compat/linuxkpi/common/include/asm/iosf_mbi.h | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/asm/iosf_mbi.h 
b/sys/compat/linuxkpi/common/include/asm/iosf_mbi.h
new file mode 100644
index 000000000000..a99c9cced6a4
--- /dev/null
+++ b/sys/compat/linuxkpi/common/include/asm/iosf_mbi.h
@@ -0,0 +1,15 @@
+/* Public domain. */
+
+#ifndef _LINUXKPI_ASM_IOSF_MBI_H_
+#define _LINUXKPI_ASM_IOSF_MBI_H_
+
+#define MBI_PMIC_BUS_ACCESS_BEGIN      1
+#define MBI_PMIC_BUS_ACCESS_END                2
+
+#define iosf_mbi_assert_punit_acquired()
+#define iosf_mbi_punit_acquire()
+#define iosf_mbi_punit_release()
+#define iosf_mbi_register_pmic_bus_access_notifier(x)                  0
+#define iosf_mbi_unregister_pmic_bus_access_notifier_unlocked(x)       0
+
+#endif /* _LINUXKPI_ASM_IOSF_MBI_H_ */

Reply via email to