xref: /linux/arch/powerpc/include/asm/mmiowb.h (revision da1d9caf95def6f0320819cf941c9fd1069ba9e1)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_POWERPC_MMIOWB_H
3 #define _ASM_POWERPC_MMIOWB_H
4 
5 #ifdef CONFIG_MMIOWB
6 
7 #include <linux/compiler.h>
8 #include <asm/barrier.h>
9 #include <asm/paca.h>
10 
11 #define arch_mmiowb_state()	(&local_paca->mmiowb_state)
12 #define mmiowb()		mb()
13 
14 #endif /* CONFIG_MMIOWB */
15 
16 #include <asm-generic/mmiowb.h>
17 
18 #endif	/* _ASM_POWERPC_MMIOWB_H */
19