xref: /openbsd-src/sys/dev/pci/drm/include/asm/iosf_mbi.h (revision 8c62f8dd253f113f51bb136bcc2f94db06a3e85e)
1 /* Public domain. */
2 
3 #ifndef _ASM_IOSF_MBI_H
4 #define _ASM_IOSF_MBI_H
5 
6 #include "iosf.h"
7 
8 #if NIOSF > 0
9 #include <dev/ic/iosfvar.h>
10 #else
11 
12 static inline void
iosf_mbi_assert_punit_acquired(void)13 iosf_mbi_assert_punit_acquired(void)
14 {
15 }
16 
17 static inline void
iosf_mbi_punit_acquire(void)18 iosf_mbi_punit_acquire(void)
19 {
20 }
21 
22 static inline void
iosf_mbi_punit_release(void)23 iosf_mbi_punit_release(void)
24 {
25 }
26 
27 #endif /* NIOSF */
28 
29 struct notifier_block;
30 
31 #define MBI_PMIC_BUS_ACCESS_BEGIN	1
32 #define MBI_PMIC_BUS_ACCESS_END		2
33 
34 static inline int
iosf_mbi_register_pmic_bus_access_notifier(struct notifier_block * nb)35 iosf_mbi_register_pmic_bus_access_notifier(struct notifier_block *nb)
36 {
37 	return 0;
38 }
39 
40 static inline int
iosf_mbi_unregister_pmic_bus_access_notifier_unlocked(struct notifier_block * nb)41 iosf_mbi_unregister_pmic_bus_access_notifier_unlocked(struct notifier_block *nb)
42 {
43 	return 0;
44 }
45 
46 #endif
47