xref: /openbmc/linux/arch/ia64/include/asm/mmiowb.h (revision 1fa0a7dc)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 
3 #ifndef _ASM_IA64_MMIOWB_H
4 #define _ASM_IA64_MMIOWB_H
5 
6 #include <asm/machvec.h>
7 
8 /**
9  * ___ia64_mmiowb - I/O write barrier
10  *
11  * Ensure ordering of I/O space writes.  This will make sure that writes
12  * following the barrier will arrive after all previous writes.  For most
13  * ia64 platforms, this is a simple 'mf.a' instruction.
14  */
15 static inline void ___ia64_mmiowb(void)
16 {
17 	ia64_mfa();
18 }
19 
20 #define __ia64_mmiowb	___ia64_mmiowb
21 #define mmiowb()	platform_mmiowb()
22 
23 #include <asm-generic/mmiowb.h>
24 
25 #endif	/* _ASM_IA64_MMIOWB_H */
26