mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
88a9192e21
write{b,w,l}_relaxed are implemented by some architectures in order to permit memory-mapped I/O accesses with weaker barrier semantics than the non-relaxed variants. This patch adds dummy macros for the write accessors to m68k, in the same vein as the dummy definitions for the relaxed read accessors. Additionally, the existing relaxed read accessors are moved into asm/io.h, so that they can be used by m68k targets with an MMU. Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Will Deacon <will.deacon@arm.com>
14 lines
344 B
C
14 lines
344 B
C
#ifdef __uClinux__
|
|
#include <asm/io_no.h>
|
|
#else
|
|
#include <asm/io_mm.h>
|
|
#endif
|
|
|
|
#define readb_relaxed(addr) readb(addr)
|
|
#define readw_relaxed(addr) readw(addr)
|
|
#define readl_relaxed(addr) readl(addr)
|
|
|
|
#define writeb_relaxed(b, addr) writeb(b, addr)
|
|
#define writew_relaxed(b, addr) writew(b, addr)
|
|
#define writel_relaxed(b, addr) writel(b, addr)
|