Path: blob/master/arch/arm/mach-integrator/include/mach/hardware.h
15162 views
/*1* arch/arm/mach-integrator/include/mach/hardware.h2*3* This file contains the hardware definitions of the Integrator.4*5* Copyright (C) 1999 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/*27* Where in virtual memory the IO devices (timers, system controllers28* and so on)29*/30#define IO_BASE 0xF0000000 // VA of IO31#define IO_SIZE 0x0B000000 // How much?32#define IO_START INTEGRATOR_HDR_BASE // PA of IO3334#define PCIMEM_BASE PCI_MEMORY_VADDR3536#define pcibios_assign_all_busses() 13738#define PCIBIOS_MIN_IO 0x600039#define PCIBIOS_MIN_MEM 0x001000004041/* macro to get at IO space when running virtually */42#ifdef CONFIG_MMU43#define IO_ADDRESS(x) (((x) & 0x000fffff) | (((x) >> 4) & 0x0ff00000) | IO_BASE)44#else45#define IO_ADDRESS(x) (x)46#endif4748#define __io_address(n) ((void __iomem *)IO_ADDRESS(n))4950#endif51525354