From 8c62f8dd253f113f51bb136bcc2f94db06a3e85e Mon Sep 17 00:00:00 2001 From: dlg Date: Sun, 23 Apr 2023 00:49:04 +0000 Subject: [PATCH] iosf(4) implements functionality that was stubbed out in drm --- sys/dev/pci/drm/include/asm/iosf_mbi.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/sys/dev/pci/drm/include/asm/iosf_mbi.h b/sys/dev/pci/drm/include/asm/iosf_mbi.h index 8e8dc5c1fd4..081e790896d 100644 --- a/sys/dev/pci/drm/include/asm/iosf_mbi.h +++ b/sys/dev/pci/drm/include/asm/iosf_mbi.h @@ -3,10 +3,11 @@ #ifndef _ASM_IOSF_MBI_H #define _ASM_IOSF_MBI_H -struct notifier_block; +#include "iosf.h" -#define MBI_PMIC_BUS_ACCESS_BEGIN 1 -#define MBI_PMIC_BUS_ACCESS_END 2 +#if NIOSF > 0 +#include +#else static inline void iosf_mbi_assert_punit_acquired(void) @@ -23,6 +24,13 @@ iosf_mbi_punit_release(void) { } +#endif /* NIOSF */ + +struct notifier_block; + +#define MBI_PMIC_BUS_ACCESS_BEGIN 1 +#define MBI_PMIC_BUS_ACCESS_END 2 + static inline int iosf_mbi_register_pmic_bus_access_notifier(struct notifier_block *nb) { -- 2.20.1