Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: MIT */
0002 /*
0003  * Copyright © 2021 Intel Corporation
0004  */
0005 
0006 #ifndef __I915_IOSF_MBI_H__
0007 #define __I915_IOSF_MBI_H__
0008 
0009 #if IS_ENABLED(CONFIG_IOSF_MBI)
0010 #include <asm/iosf_mbi.h>
0011 #else
0012 
0013 /* Stubs to compile for all non-x86 archs */
0014 #define MBI_PMIC_BUS_ACCESS_BEGIN       1
0015 #define MBI_PMIC_BUS_ACCESS_END         2
0016 
0017 struct notifier_block;
0018 
0019 static inline void iosf_mbi_punit_acquire(void) {}
0020 static inline void iosf_mbi_punit_release(void) {}
0021 static inline void iosf_mbi_assert_punit_acquired(void) {}
0022 
0023 static inline
0024 int iosf_mbi_register_pmic_bus_access_notifier(struct notifier_block *nb)
0025 {
0026     return 0;
0027 }
0028 
0029 static inline int
0030 iosf_mbi_unregister_pmic_bus_access_notifier_unlocked(struct notifier_block *nb)
0031 {
0032     return 0;
0033 }
0034 
0035 static inline
0036 int iosf_mbi_unregister_pmic_bus_access_notifier(struct notifier_block *nb)
0037 {
0038     return 0;
0039 }
0040 #endif
0041 
0042 #endif /* __I915_IOSF_MBI_H__ */