diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-03-23 02:25:38 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-03-23 02:25:38 +0000 |
commit | 16b5d462f73eb29d1f67fa01cc1ea66afdc72569 (patch) | |
tree | 5407bd573f4840e473ea27cbe61e5c7a07131fcd /include/asm-alpha/core_apecs.h | |
parent | ce8a076e11e7e5ee36007f9a3eee5bb3744cb8f6 (diff) |
Merge with Linux 2.3.99-pre2.
Diffstat (limited to 'include/asm-alpha/core_apecs.h')
-rw-r--r-- | include/asm-alpha/core_apecs.h | 47 |
1 files changed, 21 insertions, 26 deletions
diff --git a/include/asm-alpha/core_apecs.h b/include/asm-alpha/core_apecs.h index 927aa2ea7..fee9f3c13 100644 --- a/include/asm-alpha/core_apecs.h +++ b/include/asm-alpha/core_apecs.h @@ -511,32 +511,27 @@ __EXTERN_INLINE int apecs_is_ioaddr(unsigned long addr) #ifdef __WANT_IO_DEF -#define __inb apecs_inb -#define __inw apecs_inw -#define __inl apecs_inl -#define __outb apecs_outb -#define __outw apecs_outw -#define __outl apecs_outl -#define __readb apecs_readb -#define __readw apecs_readw -#define __readl apecs_readl -#define __readq apecs_readq -#define __writeb apecs_writeb -#define __writew apecs_writew -#define __writel apecs_writel -#define __writeq apecs_writeq -#define __ioremap apecs_ioremap -#define __is_ioaddr apecs_is_ioaddr - -#define inb(port) \ - (__builtin_constant_p((port))?__inb(port):_inb(port)) -#define outb(x, port) \ - (__builtin_constant_p((port))?__outb((x),(port)):_outb((x),(port))) - -#define __raw_readl(a) __readl((unsigned long)(a)) -#define __raw_readq(a) __readq((unsigned long)(a)) -#define __raw_writel(v,a) __writel((v),(unsigned long)(a)) -#define __raw_writeq(v,a) __writeq((v),(unsigned long)(a)) +#define __inb(p) apecs_inb((unsigned long)(p)) +#define __inw(p) apecs_inw((unsigned long)(p)) +#define __inl(p) apecs_inl((unsigned long)(p)) +#define __outb(x,p) apecs_outb((x),(unsigned long)(p)) +#define __outw(x,p) apecs_outw((x),(unsigned long)(p)) +#define __outl(x,p) apecs_outl((x),(unsigned long)(p)) +#define __readb(a) apecs_readb((unsigned long)(a)) +#define __readw(a) apecs_readw((unsigned long)(a)) +#define __readl(a) apecs_readl((unsigned long)(a)) +#define __readq(a) apecs_readq((unsigned long)(a)) +#define __writeb(x,a) apecs_writeb((x),(unsigned long)(a)) +#define __writew(x,a) apecs_writew((x),(unsigned long)(a)) +#define __writel(x,a) apecs_writel((x),(unsigned long)(a)) +#define __writeq(x,a) apecs_writeq((x),(unsigned long)(a)) +#define __ioremap(a) apecs_ioremap((unsigned long)(a)) +#define __is_ioaddr(a) apecs_is_ioaddr((unsigned long)(a)) + +#define __raw_readl(a) __readl(a) +#define __raw_readq(a) __readq(a) +#define __raw_writel(v,a) __writel((v),(a)) +#define __raw_writeq(v,a) __writeq((v),(a)) #endif /* __WANT_IO_DEF */ |