提交 f456da5e 编写于 作者: C Chris Metcalf

tile: fix memcpy_*io functions for allnoconfig

On tilepro without CONFIG_PCI, we can't provide inlines of these
functions, as we don't have readl/writel.

In addition, fix memset_io() signature to take a volatile void *.
Signed-off-by: NChris Metcalf <cmetcalf@tilera.com>
上级 7c63e1ee
...@@ -250,7 +250,9 @@ static inline void writeq(u64 val, unsigned long addr) ...@@ -250,7 +250,9 @@ static inline void writeq(u64 val, unsigned long addr)
#define iowrite32 writel #define iowrite32 writel
#define iowrite64 writeq #define iowrite64 writeq
static inline void memset_io(void *dst, int val, size_t len) #if CHIP_HAS_MMIO() || defined(CONFIG_PCI)
static inline void memset_io(volatile void *dst, int val, size_t len)
{ {
int x; int x;
BUG_ON((unsigned long)dst & 0x3); BUG_ON((unsigned long)dst & 0x3);
...@@ -277,6 +279,8 @@ static inline void memcpy_toio(volatile void __iomem *dst, const void *src, ...@@ -277,6 +279,8 @@ static inline void memcpy_toio(volatile void __iomem *dst, const void *src,
writel(*(u32 *)(src + x), dst + x); writel(*(u32 *)(src + x), dst + x);
} }
#endif
/* /*
* The Tile architecture does not support IOPORT, even with PCI. * The Tile architecture does not support IOPORT, even with PCI.
* Unfortunately we can't yet simply not declare these methods, * Unfortunately we can't yet simply not declare these methods,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册