Path: blob/master/arch/arm/mach-realview/include/mach/hardware.h
10820 views
/*1* arch/arm/mach-realview/include/mach/hardware.h2*3* This file contains the hardware definitions of the RealView boards.4*5* Copyright (C) 2003 ARM Limited.6*7* This program is free software; you can redistribute it and/or modify8* it under the terms of the GNU General Public License as published by9* the Free Software Foundation; either version 2 of the License, or10* (at your option) any later version.11*12* This program is distributed in the hope that it will be useful,13* but WITHOUT ANY WARRANTY; without even the implied warranty of14* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the15* GNU General Public License for more details.16*17* You should have received a copy of the GNU General Public License18* along with this program; if not, write to the Free Software19* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA20*/21#ifndef __ASM_ARCH_HARDWARE_H22#define __ASM_ARCH_HARDWARE_H2324#include <asm/sizes.h>2526/* macro to get at IO space when running virtually */27#ifdef CONFIG_MMU28/*29* Statically mapped addresses:30*31* 10xx xxxx -> fbxx xxxx32* 1exx xxxx -> fdxx xxxx33* 1fxx xxxx -> fexx xxxx34*/35#define IO_ADDRESS(x) (((x) & 0x03ffffff) + 0xfb000000)36#else37#define IO_ADDRESS(x) (x)38#endif39#define __io_address(n) __io(IO_ADDRESS(n))4041#endif424344