1 #include <linux/config.h>
2 #include <linux/module.h>
3 #include <linux/types.h>
8 * Copy data from IO memory space to "real" memory space.
9 * This needs to be optimized.
12 __ia64_memcpy_fromio (void *to, unsigned long from, long count)
18 *dst++ = readb(from++);
21 EXPORT_SYMBOL(__ia64_memcpy_fromio);
24 * Copy data from "real" memory space to IO memory space.
25 * This needs to be optimized.
28 __ia64_memcpy_toio (unsigned long to, void *from, long count)
37 EXPORT_SYMBOL(__ia64_memcpy_toio);
40 * "memset" on IO memory space.
41 * This needs to be optimized.
44 __ia64_memset_c_io (unsigned long dst, unsigned long c, long count)
46 unsigned char ch = (char)(c & 0xff);
54 EXPORT_SYMBOL(__ia64_memset_c_io);
56 #ifdef CONFIG_IA64_GENERIC
68 #undef __ia64_readb_relaxed
69 #undef __ia64_readw_relaxed
70 #undef __ia64_readl_relaxed
71 #undef __ia64_readq_relaxed
78 __ia64_inb (unsigned long port)
80 return ___ia64_inb(port);
84 __ia64_inw (unsigned long port)
86 return ___ia64_inw(port);
90 __ia64_inl (unsigned long port)
92 return ___ia64_inl(port);
96 __ia64_outb (unsigned char val, unsigned long port)
98 ___ia64_outb(val, port);
102 __ia64_outw (unsigned short val, unsigned long port)
104 ___ia64_outw(val, port);
108 __ia64_outl (unsigned int val, unsigned long port)
110 ___ia64_outl(val, port);
114 __ia64_readb (void *addr)
116 return ___ia64_readb (addr);
120 __ia64_readw (void *addr)
122 return ___ia64_readw (addr);
126 __ia64_readl (void *addr)
128 return ___ia64_readl (addr);
132 __ia64_readq (void *addr)
134 return ___ia64_readq (addr);
138 __ia64_readb_relaxed (void *addr)
140 return ___ia64_readb (addr);
144 __ia64_readw_relaxed (void *addr)
146 return ___ia64_readw (addr);
150 __ia64_readl_relaxed (void *addr)
152 return ___ia64_readl (addr);
156 __ia64_readq_relaxed (void *addr)
158 return ___ia64_readq (addr);
161 #endif /* CONFIG_IA64_GENERIC */