Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * linux/include/asm-sh/io_microdev.h |
| 3 | * |
| 4 | * Copyright (C) 2003 Sean McGoogan (Sean.McGoogan@superh.com) |
| 5 | * |
| 6 | * IO functions for the SuperH SH4-202 MicroDev board. |
| 7 | * |
| 8 | * May be copied or modified under the terms of the GNU General Public |
| 9 | * License. See linux/COPYING for more information. |
| 10 | * |
| 11 | */ |
| 12 | |
| 13 | |
| 14 | #ifndef _ASM_SH_IO_MICRODEV_H |
| 15 | #define _ASM_SH_IO_MICRODEV_H |
| 16 | |
| 17 | extern unsigned long microdev_isa_port2addr(unsigned long offset); |
| 18 | |
| 19 | extern unsigned char microdev_inb(unsigned long port); |
| 20 | extern unsigned short microdev_inw(unsigned long port); |
| 21 | extern unsigned int microdev_inl(unsigned long port); |
| 22 | |
| 23 | extern void microdev_outb(unsigned char value, unsigned long port); |
| 24 | extern void microdev_outw(unsigned short value, unsigned long port); |
| 25 | extern void microdev_outl(unsigned int value, unsigned long port); |
| 26 | |
| 27 | extern unsigned char microdev_inb_p(unsigned long port); |
| 28 | extern unsigned short microdev_inw_p(unsigned long port); |
| 29 | extern unsigned int microdev_inl_p(unsigned long port); |
| 30 | |
| 31 | extern void microdev_outb_p(unsigned char value, unsigned long port); |
| 32 | extern void microdev_outw_p(unsigned short value, unsigned long port); |
| 33 | extern void microdev_outl_p(unsigned int value, unsigned long port); |
| 34 | |
| 35 | extern void microdev_insb(unsigned long port, void *addr, unsigned long count); |
| 36 | extern void microdev_insw(unsigned long port, void *addr, unsigned long count); |
| 37 | extern void microdev_insl(unsigned long port, void *addr, unsigned long count); |
| 38 | |
| 39 | extern void microdev_outsb(unsigned long port, const void *addr, unsigned long count); |
| 40 | extern void microdev_outsw(unsigned long port, const void *addr, unsigned long count); |
| 41 | extern void microdev_outsl(unsigned long port, const void *addr, unsigned long count); |
| 42 | |
| 43 | #if defined(CONFIG_PCI) |
| 44 | extern unsigned char microdev_pci_inb(unsigned long port); |
| 45 | extern unsigned short microdev_pci_inw(unsigned long port); |
| 46 | extern unsigned long microdev_pci_inl(unsigned long port); |
| 47 | extern void microdev_pci_outb(unsigned char data, unsigned long port); |
| 48 | extern void microdev_pci_outw(unsigned short data, unsigned long port); |
| 49 | extern void microdev_pci_outl(unsigned long data, unsigned long port); |
| 50 | #endif |
| 51 | |
| 52 | #endif /* _ASM_SH_IO_MICRODEV_H */ |
| 53 | |