2 * include/asm-sh/systemh/io.h
4 * Stupid I/O definitions for SystemH, cloned from SE7751.
6 * Copyright (C) 2003 Paul Mundt
8 * This file is subject to the terms and conditions of the GNU General Public
9 * License. See the file "COPYING" in the main directory of this archive
12 #ifndef __ASM_SH_SYSTEMH_IO_H
13 #define __ASM_SH_SYSTEMH_IO_H
15 extern unsigned char sh7751systemh_inb(unsigned long port
);
16 extern unsigned short sh7751systemh_inw(unsigned long port
);
17 extern unsigned int sh7751systemh_inl(unsigned long port
);
19 extern void sh7751systemh_outb(unsigned char value
, unsigned long port
);
20 extern void sh7751systemh_outw(unsigned short value
, unsigned long port
);
21 extern void sh7751systemh_outl(unsigned int value
, unsigned long port
);
23 extern unsigned char sh7751systemh_inb_p(unsigned long port
);
24 extern void sh7751systemh_outb_p(unsigned char value
, unsigned long port
);
26 extern void sh7751systemh_insb(unsigned long port
, void *addr
, unsigned long count
);
27 extern void sh7751systemh_insw(unsigned long port
, void *addr
, unsigned long count
);
28 extern void sh7751systemh_insl(unsigned long port
, void *addr
, unsigned long count
);
29 extern void sh7751systemh_outsb(unsigned long port
, const void *addr
, unsigned long count
);
30 extern void sh7751systemh_outsw(unsigned long port
, const void *addr
, unsigned long count
);
31 extern void sh7751systemh_outsl(unsigned long port
, const void *addr
, unsigned long count
);
33 extern unsigned char sh7751systemh_readb(unsigned long addr
);
34 extern unsigned short sh7751systemh_readw(unsigned long addr
);
35 extern unsigned int sh7751systemh_readl(unsigned long addr
);
36 extern void sh7751systemh_writeb(unsigned char b
, unsigned long addr
);
37 extern void sh7751systemh_writew(unsigned short b
, unsigned long addr
);
38 extern void sh7751systemh_writel(unsigned int b
, unsigned long addr
);
40 extern unsigned long sh7751systemh_isa_port2addr(unsigned long offset
);
42 #endif /* __ASM_SH_SYSTEMH_IO_H */