From: dlg Date: Sun, 23 Apr 2023 00:49:04 +0000 (+0000) Subject: iosf(4) implements functionality that was stubbed out in drm X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8c62f8dd253f113f51bb136bcc2f94db06a3e85e;p=openbsd iosf(4) implements functionality that was stubbed out in drm --- 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) {