blob: 74a00127eb20416e95ec4761c088ec83bab7ae39 [file] [log] [blame]
Will Deacon420af152019-02-22 14:45:42 +00001/* 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
Will Deacon420af152019-02-22 14:45:42 +000014#endif /* CONFIG_MMIOWB */
15
16#include <asm-generic/mmiowb.h>
17
18#endif /* _ASM_POWERPC_MMIOWB_H */