2 * include/asm-sh/io_cat68701.h
4 * Copyright 2000 Stuart Menefy (stuart.menefy@st.com)
5 * 2001 Yutarou Ebihar (ebihara@si-linux.com)
7 * May be copied or modified under the terms of the GNU General Public
8 * License. See linux/COPYING for more information.
10 * IO functions for an AONE Corp. CAT-68701 SH7708 Borad
13 #ifndef _ASM_SH_IO_CAT68701_H
14 #define _ASM_SH_IO_CAT68701_H
16 #include <asm/io_generic.h>
18 extern unsigned char cat68701_inb(unsigned long port);
19 extern unsigned short cat68701_inw(unsigned long port);
20 extern unsigned int cat68701_inl(unsigned long port);
22 extern void cat68701_outb(unsigned char value, unsigned long port);
23 extern void cat68701_outw(unsigned short value, unsigned long port);
24 extern void cat68701_outl(unsigned int value, unsigned long port);
26 extern unsigned char cat68701_inb_p(unsigned long port);
27 extern void cat68701_outb_p(unsigned char value, unsigned long port);
29 extern void cat68701_insb(unsigned long port, void *addr, unsigned long count);
30 extern void cat68701_insw(unsigned long port, void *addr, unsigned long count);
31 extern void cat68701_insl(unsigned long port, void *addr, unsigned long count);
32 extern void cat68701_outsb(unsigned long port, const void *addr, unsigned long count);
33 extern void cat68701_outsw(unsigned long port, const void *addr, unsigned long count);
34 extern void cat68701_outsl(unsigned long port, const void *addr, unsigned long count);
36 extern unsigned char cat68701_readb(unsigned long addr);
37 extern unsigned short cat68701_readw(unsigned long addr);
38 extern unsigned int cat68701_readl(unsigned long addr);
39 extern void cat68701_writeb(unsigned char b, unsigned long addr);
40 extern void cat68701_writew(unsigned short b, unsigned long addr);
41 extern void cat68701_writel(unsigned int b, unsigned long addr);
43 extern void * cat68701_ioremap(unsigned long offset, unsigned long size);
44 extern void cat68701_iounmap(void *addr);
46 extern unsigned long cat68701_isa_port2addr(unsigned long offset);
47 extern int cat68701_irq_demux(int irq);
49 extern void setup_cat68701(void);
50 extern void init_cat68701_IRQ(void);
51 extern void heartbeat_cat68701(void);
55 # define __inb cat68701_inb
56 # define __inw cat68701_inw
57 # define __inl cat68701_inl
58 # define __outb cat68701_outb
59 # define __outw cat68701_outw
60 # define __outl cat68701_outl
62 # define __inb_p cat68701_inb_p
63 # define __inw_p cat68701_inw
64 # define __inl_p cat68701_inl
65 # define __outb_p cat68701_outb_p
66 # define __outw_p cat68701_outw
67 # define __outl_p cat68701_outl
69 # define __insb cat68701_insb
70 # define __insw cat68701_insw
71 # define __insl cat68701_insl
72 # define __outsb cat68701_outsb
73 # define __outsw cat68701_outsw
74 # define __outsl cat68701_outsl
76 # define __readb cat68701_readb
77 # define __readw cat68701_readw
78 # define __readl cat68701_readl
79 # define __writeb cat68701_writeb
80 # define __writew cat68701_writew
81 # define __writel cat68701_writel
83 # define __isa_port2addr cat68701_isa_port2addr
84 # define __ioremap generic_ioremap
85 # define __iounmap generic_iounmap
89 #endif /* _ASM_SH_IO_CAT68701_H */