Linux 2.6.12-rc6
[cris-mirror.git] / include / asm-sh / hd64461 / io.h
blob67f2489088d9ee0b9feadd36a70cd994c41609ef
1 /*
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 extern unsigned char hd64461_inb(unsigned long port);
16 extern unsigned short hd64461_inw(unsigned long port);
17 extern unsigned int hd64461_inl(unsigned long port);
19 extern void hd64461_outb(unsigned char value, unsigned long port);
20 extern void hd64461_outw(unsigned short value, unsigned long port);
21 extern void hd64461_outl(unsigned int value, unsigned long port);
23 extern unsigned char hd64461_inb_p(unsigned long port);
24 extern void hd64461_outb_p(unsigned char value, unsigned long port);
26 extern void hd64461_insb(unsigned long port, void *addr, unsigned long count);
27 extern void hd64461_insw(unsigned long port, void *addr, unsigned long count);
28 extern void hd64461_insl(unsigned long port, void *addr, unsigned long count);
30 extern void hd64461_outsb(unsigned long port, const void *buffer, unsigned long count);
31 extern void hd64461_outsw(unsigned long port, const void *buffer, unsigned long count);
32 extern void hd64461_outsl(unsigned long port, const void *buffer, unsigned long count);
34 extern unsigned short hd64461_readw(unsigned long addr);
35 extern void hd64461_writew(unsigned short b, unsigned long addr);
38 extern int hd64461_irq_demux(int irq);
39 extern void hd64461_register_irq_demux(int irq,
40 int (*demux)(int irq, void *dev), void *dev);
41 extern void hd64461_unregister_irq_demux(int irq);
43 #endif /* _ASM_SH_IO_HD64461_H */