File Index
Files and directories
Sign in
FILE

i915_iosf_mbi.h

File preview with syntax highlighting.

linux-6.19.14/drivers/gpu/drm/i915/i915_iosf_mbi.h C
 1/* SPDX-License-Identifier: MIT */
 2/*
 3 * Copyright © 2021 Intel Corporation
 4 */
 5
 6#ifndef __I915_IOSF_MBI_H__
 7#define __I915_IOSF_MBI_H__
 8
 9#if IS_ENABLED(CONFIG_IOSF_MBI)
10#include <asm/iosf_mbi.h>
11#else
12
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
16
17struct notifier_block;
18
19static inline void iosf_mbi_punit_acquire(void) {}
20static inline void iosf_mbi_punit_release(void) {}
21static inline void iosf_mbi_assert_punit_acquired(void) {}
22
23static inline
24int iosf_mbi_register_pmic_bus_access_notifier(struct notifier_block *nb)
25{
26	return 0;
27}
28
29static inline int
30iosf_mbi_unregister_pmic_bus_access_notifier_unlocked(struct notifier_block *nb)
31{
32	return 0;
33}
34#endif
35
36#endif /* __I915_IOSF_MBI_H__ */
~/ Read-only file preview.