Linux-2.6.12-rc2
[linux-2.6/next.git] / include / asm-sh / adx / io.h
blobab1225f1d557eb5a8c367623ee1376967b18ac6c
1 /*
2 * include/asm-sh/io_adx.h
4 * Copyright (C) 2001 A&D Co., Ltd.
6 * This file may be copied or modified under the terms of the GNU
7 * General Public License. See linux/COPYING for more information.
9 * IO functions for an A&D ADX Board
12 #ifndef _ASM_SH_IO_ADX_H
13 #define _ASM_SH_IO_ADX_H
15 #include <asm/io_generic.h>
17 extern unsigned char adx_inb(unsigned long port);
18 extern unsigned short adx_inw(unsigned long port);
19 extern unsigned int adx_inl(unsigned long port);
21 extern void adx_outb(unsigned char value, unsigned long port);
22 extern void adx_outw(unsigned short value, unsigned long port);
23 extern void adx_outl(unsigned int value, unsigned long port);
25 extern unsigned char adx_inb_p(unsigned long port);
26 extern void adx_outb_p(unsigned char value, unsigned long port);
28 extern void adx_insb(unsigned long port, void *addr, unsigned long count);
29 extern void adx_insw(unsigned long port, void *addr, unsigned long count);
30 extern void adx_insl(unsigned long port, void *addr, unsigned long count);
31 extern void adx_outsb(unsigned long port, const void *addr, unsigned long count);
32 extern void adx_outsw(unsigned long port, const void *addr, unsigned long count);
33 extern void adx_outsl(unsigned long port, const void *addr, unsigned long count);
35 extern unsigned char adx_readb(unsigned long addr);
36 extern unsigned short adx_readw(unsigned long addr);
37 extern unsigned int adx_readl(unsigned long addr);
38 extern void adx_writeb(unsigned char b, unsigned long addr);
39 extern void adx_writew(unsigned short b, unsigned long addr);
40 extern void adx_writel(unsigned int b, unsigned long addr);
42 extern void * adx_ioremap(unsigned long offset, unsigned long size);
43 extern void adx_iounmap(void *addr);
45 extern unsigned long adx_isa_port2addr(unsigned long offset);
47 extern void setup_adx(void);
48 extern void init_adx_IRQ(void);
50 #ifdef __WANT_IO_DEF
52 #define __inb adx_inb
53 #define __inw adx_inw
54 #define __inl adx_inl
55 #define __outb adx_outb
56 #define __outw adx_outw
57 #define __outl adx_outl
59 #define __inb_p adx_inb_p
60 #define __inw_p adx_inw
61 #define __inl_p adx_inl
62 #define __outb_p adx_outb_p
63 #define __outw_p adx_outw
64 #define __outl_p adx_outl
66 #define __insb adx_insb
67 #define __insw adx_insw
68 #define __insl adx_insl
69 #define __outsb adx_outsb
70 #define __outsw adx_outsw
71 #define __outsl adx_outsl
73 #define __readb adx_readb
74 #define __readw adx_readw
75 #define __readl adx_readl
76 #define __writeb adx_writeb
77 #define __writew adx_writew
78 #define __writel adx_writel
80 #define __isa_port2addr adx_isa_port2addr
81 #define __ioremap adx_ioremap
82 #define __iounmap adx_iounmap
84 #endif
86 #endif /* _ASM_SH_IO_AANDD_H */