18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#ifndef _ASM_POWERPC_MMIOWB_H 38c2ecf20Sopenharmony_ci#define _ASM_POWERPC_MMIOWB_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci#ifdef CONFIG_MMIOWB 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci#include <linux/compiler.h> 88c2ecf20Sopenharmony_ci#include <asm/barrier.h> 98c2ecf20Sopenharmony_ci#include <asm/paca.h> 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci#define arch_mmiowb_state() (&local_paca->mmiowb_state) 128c2ecf20Sopenharmony_ci#define mmiowb() mb() 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci#endif /* CONFIG_MMIOWB */ 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci#include <asm-generic/mmiowb.h> 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci#endif /* _ASM_POWERPC_MMIOWB_H */ 19