@@ -112,6 +112,8 @@ static inline u64 __raw_readq(const volatile void __iomem *addr)
#define __iowmb() dma_wmb()
#define __iomb() dma_mb()
+#define flush_wc_write() dgh()
+
/*
* Relaxed I/O memory access primitives. These follow the Device memory
* ordering rules but do not guarantee any ordering relative to Normal memory
@@ -166,4 +166,10 @@ static inline void arch_io_free_memtype_wc(resource_size_t base,
}
#endif
+/* IO barriers */
+
+#ifndef flush_wc_write
+#define flush_wc_write() do { } while (0)
+#endif
+
#endif /* _LINUX_IO_H */