1*9e5fbd4fSriastradh /* $NetBSD: iosf_mbi.h,v 1.2 2021/12/19 11:49:12 riastradh Exp $ */
2*9e5fbd4fSriastradh
3*9e5fbd4fSriastradh /*-
4*9e5fbd4fSriastradh * Copyright (c) 2021 The NetBSD Foundation, Inc.
5*9e5fbd4fSriastradh * All rights reserved.
6*9e5fbd4fSriastradh *
7*9e5fbd4fSriastradh * Redistribution and use in source and binary forms, with or without
8*9e5fbd4fSriastradh * modification, are permitted provided that the following conditions
9*9e5fbd4fSriastradh * are met:
10*9e5fbd4fSriastradh * 1. Redistributions of source code must retain the above copyright
11*9e5fbd4fSriastradh * notice, this list of conditions and the following disclaimer.
12*9e5fbd4fSriastradh * 2. Redistributions in binary form must reproduce the above copyright
13*9e5fbd4fSriastradh * notice, this list of conditions and the following disclaimer in the
14*9e5fbd4fSriastradh * documentation and/or other materials provided with the distribution.
15*9e5fbd4fSriastradh *
16*9e5fbd4fSriastradh * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
17*9e5fbd4fSriastradh * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
18*9e5fbd4fSriastradh * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19*9e5fbd4fSriastradh * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
20*9e5fbd4fSriastradh * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21*9e5fbd4fSriastradh * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22*9e5fbd4fSriastradh * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23*9e5fbd4fSriastradh * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24*9e5fbd4fSriastradh * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25*9e5fbd4fSriastradh * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26*9e5fbd4fSriastradh * POSSIBILITY OF SUCH DAMAGE.
27*9e5fbd4fSriastradh */
28*9e5fbd4fSriastradh
29*9e5fbd4fSriastradh #ifndef _LINUX_ASM_IOSF_MBI_H_
30*9e5fbd4fSriastradh #define _LINUX_ASM_IOSF_MBI_H_
31*9e5fbd4fSriastradh
32*9e5fbd4fSriastradh struct notifier_block;
33*9e5fbd4fSriastradh
34*9e5fbd4fSriastradh enum {
35*9e5fbd4fSriastradh MBI_PMIC_BUS_ACCESS_BEGIN,
36*9e5fbd4fSriastradh MBI_PMIC_BUS_ACCESS_END,
37*9e5fbd4fSriastradh };
38*9e5fbd4fSriastradh
39*9e5fbd4fSriastradh static inline void
iosf_mbi_punit_acquire(void)40*9e5fbd4fSriastradh iosf_mbi_punit_acquire(void)
41*9e5fbd4fSriastradh {
42*9e5fbd4fSriastradh }
43*9e5fbd4fSriastradh
44*9e5fbd4fSriastradh static inline void
iosf_mbi_punit_release(void)45*9e5fbd4fSriastradh iosf_mbi_punit_release(void)
46*9e5fbd4fSriastradh {
47*9e5fbd4fSriastradh }
48*9e5fbd4fSriastradh
49*9e5fbd4fSriastradh static inline void
iosf_mbi_assert_punit_acquired(void)50*9e5fbd4fSriastradh iosf_mbi_assert_punit_acquired(void)
51*9e5fbd4fSriastradh {
52*9e5fbd4fSriastradh }
53*9e5fbd4fSriastradh
54*9e5fbd4fSriastradh static inline void
iosf_mbi_register_pmic_bus_access_notifier(struct notifier_block * notifier)55*9e5fbd4fSriastradh iosf_mbi_register_pmic_bus_access_notifier(struct notifier_block *notifier)
56*9e5fbd4fSriastradh {
57*9e5fbd4fSriastradh }
58*9e5fbd4fSriastradh
59*9e5fbd4fSriastradh static inline void
iosf_mbi_unregister_pmic_bus_access_notifier_unlocked(struct notifier_block * notifier)60*9e5fbd4fSriastradh iosf_mbi_unregister_pmic_bus_access_notifier_unlocked(
61*9e5fbd4fSriastradh struct notifier_block *notifier)
62*9e5fbd4fSriastradh {
63*9e5fbd4fSriastradh }
64*9e5fbd4fSriastradh
65*9e5fbd4fSriastradh #endif /* _LINUX_ASM_IOSF_MBI_H_ */
66