1/* 2 * include/asm-sh/io_hd64461.h 3 * 4 * Copyright 2000 Stuart Menefy (stuart.menefy@st.com) 5 * 6 * May be copied or modified under the terms of the GNU General Public 7 * License. See linux/COPYING for more information. 8 * 9 * IO functions for an HD64461 10 */ 11 12#ifndef _ASM_SH_IO_HD64461_H 13#define _ASM_SH_IO_HD64461_H 14 15#include <asm/io_generic.h> 16 17extern unsigned char hd64461_inb(unsigned long port); 18extern unsigned short hd64461_inw(unsigned long port); 19extern unsigned int hd64461_inl(unsigned long port); 20 21extern void hd64461_outb(unsigned char value, unsigned long port); 22extern void hd64461_outw(unsigned short value, unsigned long port); 23extern void hd64461_outl(unsigned int value, unsigned long port); 24 25extern unsigned char hd64461_inb_p(unsigned long port); 26extern void hd64461_outb_p(unsigned char value, unsigned long port); 27 28extern void hd64461_insb(unsigned long port, void *addr, unsigned long count); 29extern void hd64461_insw(unsigned long port, void *addr, unsigned long count); 30extern void hd64461_insl(unsigned long port, void *addr, unsigned long count); 31extern void hd64461_outsb(unsigned long port, const void *addr, unsigned long count); 32extern void hd64461_outsw(unsigned long port, const void *addr, unsigned long count); 33extern void hd64461_outsl(unsigned long port, const void *addr, unsigned long count); 34extern int hd64461_irq_demux(int irq); 35 36#ifdef __WANT_IO_DEF 37 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 44 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 51 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 58 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 65 66# define __isa_port2addr generic_isa_port2addr 67# define __ioremap generic_ioremap 68# define __ioremap_nocache generic_ioremap_nocache 69# define __iounmap generic_iounmap 70 71#endif 72 73#endif /* _ASM_SH_IO_HD64461_H */ 74