Path: blob/master/arch/arm/mach-footbridge/include/mach/io.h
17683 views
/*1* arch/arm/mach-footbridge/include/mach/io.h2*3* Copyright (C) 1997-1999 Russell King4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License version 2 as7* published by the Free Software Foundation.8*9* Modifications:10* 06-12-1997 RMK Created.11* 07-04-1999 RMK Major cleanup12*/13#ifndef __ASM_ARM_ARCH_IO_H14#define __ASM_ARM_ARCH_IO_H1516#ifdef CONFIG_MMU17#define MMU_IO(a, b) (a)18#else19#define MMU_IO(a, b) (b)20#endif2122#define PCIO_SIZE 0x0010000023#define PCIO_BASE MMU_IO(0xff000000, 0x7c000000)2425#define IO_SPACE_LIMIT 0xffff2627/*28* Translation of various region addresses to virtual addresses29*/30#define __io(a) ((void __iomem *)(PCIO_BASE + (a)))31#if 132#define __mem_pci(a) (a)33#else3435static inline void __iomem *___mem_pci(void __iomem *p)36{37unsigned long a = (unsigned long)p;38BUG_ON(a <= 0xc0000000 || a >= 0xe0000000);39return p;40}4142#define __mem_pci(a) ___mem_pci(a)43#endif4445#endif464748