Go to the documentation of this file.
26 #include <linux/types.h>
29 #include <asm/string.h>
30 #include <asm/mem-layout.h>
33 #include <asm/cacheflush.h>
34 #include <asm/tlbflush.h>
40 #define IO_SPACE_LIMIT 0xffff
41 #define _IO_BASE ((void __iomem *)0xfe000000)
43 extern int remap_area_pages(
unsigned long start,
unsigned long phys_addr,
44 unsigned long end,
unsigned long flags);
55 #define readsw(p, d, l) __raw_readsw(p, d, l)
56 #define writesw(p, d, l) __raw_writesw(p, d, l)
58 #define readsl(p, d, l) __raw_readsl(p, d, l)
59 #define writesl(p, d, l) __raw_writesl(p, d, l)
83 #define xlate_dev_kmem_ptr(p) __va(p)
84 #define xlate_dev_mem_ptr(p) __va(p)
144 :
"r" (
addr),
"r" (data)
154 :
"r" (
addr),
"r" (data)
165 :
"r" (
addr),
"r" (data)
170 #define __raw_writeb writeb
171 #define __raw_writew writew
172 #define __raw_writel writel
174 #define __raw_readb readb
175 #define __raw_readw readw
176 #define __raw_readl readl
194 #define __raw_writel writel
199 memcpy(dst, (
void *) src, count);
205 memcpy((
void *) dst, src, count);
208 #define PCI_IO_ADDR (volatile void __iomem *)
221 static inline u16 inw(
unsigned long port)
226 static inline u32 inl(
unsigned long port)
236 static inline void outb(
u8 data,
unsigned long port)
241 static inline void outw(
u16 data,
unsigned long port)
246 static inline void outl(
u32 data,
unsigned long port)
259 static inline void insb(
unsigned long port,
void *
buffer,
int count)
270 static inline void insw(
unsigned long port,
void *buffer,
int count)
281 static inline void insl(
unsigned long port,
void *buffer,
int count)
292 static inline void outsb(
unsigned long port,
const void *buffer,
int count)
302 static inline void outsw(
unsigned long port,
const void *buffer,
int count)
312 static inline void outsl(
unsigned long port,
const void *buffer,
int count)
322 #define flush_write_buffers() do { } while (0)