aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/blackfin/include/asm/io.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/arch/blackfin/include/asm/io.h b/arch/blackfin/include/asm/io.h
index cbbf7ffdbbff..7dc77a21fdf3 100644
--- a/arch/blackfin/include/asm/io.h
+++ b/arch/blackfin/include/asm/io.h
@@ -134,6 +134,36 @@ extern void dma_insb(unsigned long port, void *addr, unsigned short count);
134extern void dma_insw(unsigned long port, void *addr, unsigned short count); 134extern void dma_insw(unsigned long port, void *addr, unsigned short count);
135extern void dma_insl(unsigned long port, void *addr, unsigned short count); 135extern void dma_insl(unsigned long port, void *addr, unsigned short count);
136 136
137static inline void readsl(const void __iomem *addr, void *buf, int len)
138{
139 insl((unsigned long)addr, buf, len);
140}
141
142static inline void readsw(const void __iomem *addr, void *buf, int len)
143{
144 insw((unsigned long)addr, buf, len);
145}
146
147static inline void readsb(const void __iomem *addr, void *buf, int len)
148{
149 insb((unsigned long)addr, buf, len);
150}
151
152static inline void writesl(const void __iomem *addr, const void *buf, int len)
153{
154 outsl((unsigned long)addr, buf, len);
155}
156
157static inline void writesw(const void __iomem *addr, const void *buf, int len)
158{
159 outsw((unsigned long)addr, buf, len);
160}
161
162static inline void writesb(const void __iomem *addr, const void *buf, int len)
163{
164 outsb((unsigned long)addr, buf, len);
165}
166
137/* 167/*
138 * Map some physical address range into the kernel address space. 168 * Map some physical address range into the kernel address space.
139 */ 169 */