1 #include <linux/config.h>
2 #include <linux/types.h>
7 * Copy data from IO memory space to "real" memory space.
8 * This needs to be optimized.
11 __ia64_memcpy_fromio (void * to, unsigned long from, long count)
15 *(char *) to = readb(from);
22 * Copy data from "real" memory space to IO memory space.
23 * This needs to be optimized.
26 __ia64_memcpy_toio (unsigned long to, void * from, long count)
30 writeb(*(char *) from, to);
37 * "memset" on IO memory space.
38 * This needs to be optimized.
41 __ia64_memset_c_io (unsigned long dst, unsigned long c, long count)
43 unsigned char ch = (char)(c & 0xff);
52 #ifdef CONFIG_IA64_GENERIC
70 __ia64_inb (unsigned long port)
72 return ___ia64_inb(port);
76 __ia64_inw (unsigned long port)
78 return ___ia64_inw(port);
82 __ia64_inl (unsigned long port)
84 return ___ia64_inl(port);
88 __ia64_outb (unsigned char val, unsigned long port)
90 ___ia64_outb(val, port);
94 __ia64_outw (unsigned short val, unsigned long port)
96 ___ia64_outw(val, port);
100 __ia64_outl (unsigned int val, unsigned long port)
102 ___ia64_outl(val, port);
106 __ia64_readb (void *addr)
108 return ___ia64_readb (addr);
112 __ia64_readw (void *addr)
114 return ___ia64_readw (addr);
118 __ia64_readl (void *addr)
120 return ___ia64_readl (addr);
124 __ia64_readq (void *addr)
126 return ___ia64_readq (addr);
129 #endif /* CONFIG_IA64_GENERIC */