1 /* SPDX-License-Identifier: MIT */
3 * Copyright © 2021 Intel Corporation
6 #ifndef __I915_IOSF_MBI_H__
7 #define __I915_IOSF_MBI_H__
9 #if IS_ENABLED(CONFIG_IOSF_MBI)
10 #include <asm/iosf_mbi.h>
13 /* Stubs to compile for all non-x86 archs */
14 #define MBI_PMIC_BUS_ACCESS_BEGIN 1
15 #define MBI_PMIC_BUS_ACCESS_END 2
17 struct notifier_block;
19 static inline void iosf_mbi_punit_acquire(void) {}
20 static inline void iosf_mbi_punit_release(void) {}
21 static inline void iosf_mbi_assert_punit_acquired(void) {}
24 int iosf_mbi_register_pmic_bus_access_notifier(struct notifier_block *nb)
30 iosf_mbi_unregister_pmic_bus_access_notifier_unlocked(struct notifier_block *nb)
36 int iosf_mbi_unregister_pmic_bus_access_notifier(struct notifier_block *nb)
42 #endif /* __I915_IOSF_MBI_H__ */