2 * include/asm-sh/io_hd64461.h
4 * Copyright 2000 Stuart Menefy (stuart.menefy@st.com)
6 * May be copied or modified under the terms of the GNU General Public
7 * License. See linux/COPYING for more information.
9 * IO functions for an HD64461
12 #ifndef _ASM_SH_IO_HD64461_H
13 #define _ASM_SH_IO_HD64461_H
15 #include <asm/io_generic.h>
17 extern unsigned char hd64461_inb(unsigned long port);
18 extern unsigned short hd64461_inw(unsigned long port);
19 extern unsigned int hd64461_inl(unsigned long port);
21 extern void hd64461_outb(unsigned char value, unsigned long port);
22 extern void hd64461_outw(unsigned short value, unsigned long port);
23 extern void hd64461_outl(unsigned int value, unsigned long port);
25 extern unsigned char hd64461_inb_p(unsigned long port);
26 extern void hd64461_outb_p(unsigned char value, unsigned long port);
28 extern void hd64461_insb(unsigned long port, void *addr, unsigned long count);
29 extern void hd64461_insw(unsigned long port, void *addr, unsigned long count);
30 extern void hd64461_insl(unsigned long port, void *addr, unsigned long count);
31 extern void hd64461_outsb(unsigned long port, const void *addr, unsigned long count);
32 extern void hd64461_outsw(unsigned long port, const void *addr, unsigned long count);
33 extern void hd64461_outsl(unsigned long port, const void *addr, unsigned long count);
34 extern int hd64461_irq_demux(int irq);
38 # define __inb hd64461_inb
39 # define __inw hd64461_inw
40 # define __inl hd64461_inl
41 # define __outb hd64461_outb
42 # define __outw hd64461_outw
43 # define __outl hd64461_outl
45 # define __inb_p hd64461_inb_p
46 # define __inw_p hd64461_inw
47 # define __inl_p hd64461_inl
48 # define __outb_p hd64461_outb_p
49 # define __outw_p hd64461_outw
50 # define __outl_p hd64461_outl
52 # define __insb hd64461_insb
53 # define __insw hd64461_insw
54 # define __insl hd64461_insl
55 # define __outsb hd64461_outsb
56 # define __outsw hd64461_outsw
57 # define __outsl hd64461_outsl
59 # define __readb generic_readb
60 # define __readw generic_readw
61 # define __readl generic_readl
62 # define __writeb generic_writeb
63 # define __writew generic_writew
64 # define __writel generic_writel
66 # define __isa_port2addr generic_isa_port2addr
67 # define __ioremap generic_ioremap
68 # define __ioremap_nocache generic_ioremap_nocache
69 # define __iounmap generic_iounmap
73 #endif /* _ASM_SH_IO_HD64461_H */