/* * Copyright 2004-2007 Freescale Semiconductor, Inc. All Rights Reserved. */ /* * The code contained herein is licensed under the GNU General Public * License. You may obtain a copy of the GNU General Public License * Version 2 or later at the following locations: * * http://www.opensource.org/licenses/gpl-license.html * http://www.gnu.org/copyleft/gpl.html */ /*! * @file arch-mxc/io.h * @brief This file contains some memory mapping macros. * @note We don't have a PCI bus, but we have to define these macros * for some drivers to compile. * * @ingroup MSL_MX27 MSL_MX31 */ #ifndef __ASM_ARCH_MXC_IO_H__ #define __ASM_ARCH_MXC_IO_H__ //#include /*! Allow IO space to be anywhere in the memory */ #define IO_SPACE_LIMIT 0xffffffff /*! * io address mapping macro */ #define __io(a) ((void __iomem *)(a)) #define __mem_pci(a) (a) /*! * Validate the pci memory address for ioremap. */ #define iomem_valid_addr(iomem,size) (1) /*! * Convert PCI memory space to a CPU physical address */ #define iomem_to_phys(iomem) (iomem) extern void __iomem *__mxc_ioremap(unsigned long cookie, size_t size, unsigned int mtype); extern void __mxc_iounmap(void __iomem *addr); #define __arch_ioremap(a, s, f) __mxc_ioremap(a, s, f) #define __arch_iounmap(a) __mxc_iounmap(a) #endif