MOXA linux-2.6.x / linux-2.6.19-uc1 from UC-7110-LX-BOOTLOADER-1.9_VERSION-4.2.tgz
[linux-2.6.19-moxart.git] / include / asm-arm / arch-s5c7375 / io.h
blobd5d75ab5a22164c40d6f5512ab54e40fabba06fc
1 /*
2 * linux/include/asm-arm/arch-s5c7375/io.h
4 * Copyright (C) 2003 SAMSUNG ELECTRONICS
5 * Hyok S. Choi <hyok.choi@samsung.com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef __ASM_ARM_ARCH_IO_H
22 #define __ASM_ARM_ARCH_IO_H
24 #define IO_SPACE_LIMIT 0xffffffff
25 /* Used in kernel/resource.c */
28 * We have the this routine to use usb host device driver
33 #define PCI_IO_VADDR (0x0)
34 #define PCI_MEMORY_VADDR (0x0)
36 #define __io(a) (PCI_IO_VADDR + (a))
37 #define __mem_pci(a) ((unsigned long)(a))
38 #define __mem_isa(a) (PCI_MEMORY_VADDR + (unsigned long)(a))
42 * Generic virtual read/write
44 #if 0
45 #define __arch_getw(a) (*(volatile unsigned short *)(a))
46 #define __arch_putw(v,a) (*(volatile unsigned short *)(a) = (v))
47 #endif
49 * Validate the pci memory address for ioremap.
51 #define iomem_valid_addr(iomem,size) (1)
54 /*
55 * For example,
56 * CS8900A Net Device Driver
57 * for asm/io.h
60 #define __io
65 * Convert PCI memory space to a CPU physical address
67 #define iomem_to_phys(iomem) (iomem)
69 #endif