mirror of
https://github.com/torvalds/linux.git
synced 2024-12-26 12:52:30 +00:00
c9d95fbe59
Convert PCIBIOS_MIN_IO and PCIBIOS_MIN_MEM to variables to allow multi-platform builds. This also removes the requirement for a platform to have a mach/hardware.h. The default values for i/o and mem are 0x1000 and 0x01000000, respectively. Per Arnd Bergmann, other values are likely to be incorrect, but this commit does not try to address that issue. Signed-off-by: Rob Herring <rob.herring@calxeda.com> Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org> Reviewed-by: Arnd Bergmann <arnd@arndb.de>
39 lines
847 B
C
39 lines
847 B
C
/*
|
|
* arch/arm/mach-ixp4xx/include/mach/hardware.h
|
|
*
|
|
* Copyright (C) 2002 Intel Corporation.
|
|
* Copyright (C) 2003-2004 MontaVista Software, Inc.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
*/
|
|
|
|
/*
|
|
* Hardware definitions for IXP4xx based systems
|
|
*/
|
|
|
|
#ifndef __ASM_ARCH_HARDWARE_H__
|
|
#define __ASM_ARCH_HARDWARE_H__
|
|
|
|
#ifdef CONFIG_IXP4XX_INDIRECT_PCI
|
|
#define PCIBIOS_MAX_MEM 0x4FFFFFFF
|
|
#else
|
|
#define PCIBIOS_MAX_MEM 0x4BFFFFFF
|
|
#endif
|
|
|
|
#define ARCH_HAS_DMA_SET_COHERENT_MASK
|
|
|
|
/* Register locations and bits */
|
|
#include "ixp4xx-regs.h"
|
|
|
|
#ifndef __ASSEMBLER__
|
|
#include <mach/cpu.h>
|
|
#endif
|
|
|
|
/* Platform helper functions and definitions */
|
|
#include "platform.h"
|
|
|
|
#endif /* _ASM_ARCH_HARDWARE_H */
|