| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* | 
| Uwe Zeisberger | f30c226 | 2006-10-03 23:01:26 +0200 | [diff] [blame] | 2 |  * include/asm-sh/hd64465/io.h | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3 |  * | 
 | 4 |  * By Greg Banks <gbanks@pocketpenguins.com> | 
 | 5 |  * (c) 2000 PocketPenguins Inc. | 
 | 6 |  * | 
 | 7 |  * Derived from io_hd64461.h, which bore the message: | 
 | 8 |  * Copyright 2000 Stuart Menefy (stuart.menefy@st.com) | 
 | 9 |  * | 
 | 10 |  * May be copied or modified under the terms of the GNU General Public | 
 | 11 |  * License.  See linux/COPYING for more information. | 
 | 12 |  * | 
 | 13 |  * IO functions for an HD64465 "Windows CE Intelligent Peripheral Controller". | 
 | 14 |  */ | 
 | 15 |  | 
 | 16 | #ifndef _ASM_SH_IO_HD64465_H | 
 | 17 | #define _ASM_SH_IO_HD64465_H | 
 | 18 |  | 
 | 19 | extern unsigned char hd64465_inb(unsigned long port); | 
 | 20 | extern unsigned short hd64465_inw(unsigned long port); | 
 | 21 | extern unsigned int hd64465_inl(unsigned long port); | 
 | 22 |  | 
 | 23 | extern void hd64465_outb(unsigned char value, unsigned long port); | 
 | 24 | extern void hd64465_outw(unsigned short value, unsigned long port); | 
 | 25 | extern void hd64465_outl(unsigned int value, unsigned long port); | 
 | 26 |  | 
 | 27 | extern unsigned char hd64465_inb_p(unsigned long port); | 
 | 28 | extern void hd64465_outb_p(unsigned char value, unsigned long port); | 
 | 29 |  | 
 | 30 | extern unsigned long hd64465_isa_port2addr(unsigned long offset); | 
 | 31 | extern int hd64465_irq_demux(int irq); | 
 | 32 | /* Provision for generic secondary demux step -- used by PCMCIA code */ | 
 | 33 | extern void hd64465_register_irq_demux(int irq, | 
 | 34 | 		int (*demux)(int irq, void *dev), void *dev); | 
 | 35 | extern void hd64465_unregister_irq_demux(int irq); | 
 | 36 | /* Set this variable to 1 to see port traffic */ | 
 | 37 | extern int hd64465_io_debug; | 
 | 38 | /* Map a range of ports to a range of kernel virtual memory. | 
 | 39 |  */ | 
 | 40 | extern void hd64465_port_map(unsigned short baseport, unsigned int nports, | 
 | 41 | 			     unsigned long addr, unsigned char shift); | 
 | 42 | extern void hd64465_port_unmap(unsigned short baseport, unsigned int nports); | 
 | 43 |  | 
 | 44 | #endif /* _ASM_SH_IO_HD64465_H */ |