forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/arch/nds32/include/asm/io.h
....@@ -1,4 +1,4 @@
1
-// SPDX-License-Identifier: GPL-2.0
1
+/* SPDX-License-Identifier: GPL-2.0 */
22 // Copyright (C) 2005-2017 Andes Technology Corporation
33
44 #ifndef __ASM_NDS32_IO_H
....@@ -6,7 +6,6 @@
66
77 #include <linux/types.h>
88
9
-extern void iounmap(volatile void __iomem *addr);
109 #define __raw_writeb __raw_writeb
1110 static inline void __raw_writeb(u8 val, volatile void __iomem *addr)
1211 {
....@@ -55,8 +54,6 @@
5554 #define __iormb() rmb()
5655 #define __iowmb() wmb()
5756
58
-#define mmiowb() __asm__ __volatile__ ("msync all" : : : "memory");
59
-
6057 /*
6158 * {read,write}{b,w,l,q}_relaxed() are like the regular version, but
6259 * are not guaranteed to provide ordering against spinlocks or memory
....@@ -81,5 +78,7 @@
8178 #define writeb(v,c) ({ __iowmb(); writeb_relaxed((v),(c)); })
8279 #define writew(v,c) ({ __iowmb(); writew_relaxed((v),(c)); })
8380 #define writel(v,c) ({ __iowmb(); writel_relaxed((v),(c)); })
81
+
8482 #include <asm-generic/io.h>
83
+
8584 #endif /* __ASM_NDS32_IO_H */