[PATCH] w1: Adds a sysfs entry (w1_master_search) that allows you to disable/enable...
[linux-2.6/verdex.git] / include / asm-sh / microdev / io.h
blobf2ca4ac8c88aea7833ba38310caf06bee005a884
1 /*
2 * linux/include/asm-sh/io_microdev.h
4 * Copyright (C) 2003 Sean McGoogan (Sean.McGoogan@superh.com)
6 * IO functions for the SuperH SH4-202 MicroDev board.
8 * May be copied or modified under the terms of the GNU General Public
9 * License. See linux/COPYING for more information.
14 #ifndef _ASM_SH_IO_MICRODEV_H
15 #define _ASM_SH_IO_MICRODEV_H
17 extern unsigned long microdev_isa_port2addr(unsigned long offset);
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);
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);
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);
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);
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);
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);
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
52 #endif /* _ASM_SH_IO_MICRODEV_H */