2 * linux/arch/unicore32/include/mach/hardware.h
4 * Code specific to PKUnity SoC and UniCore ISA
6 * Copyright (C) 2001-2010 GUAN Xue-tao
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
12 * This file contains the hardware definitions for PKUnity architecture
15 #ifndef __MACH_PUV3_HARDWARE_H__
16 #define __MACH_PUV3_HARDWARE_H__
20 #define io_p2v(x) ((x) - PKUNITY_MMIO_BASE)
21 #define io_v2p(x) ((x) + PKUNITY_MMIO_BASE)
25 # define __REG(x) (void __iomem *)io_p2v(x)
29 #define PCIBIOS_MIN_IO 0x4000 /* should lower than 64KB */
30 #define PCIBIOS_MIN_MEM PKUNITY_PCIMEM_BASE
33 * We override the standard dma-mask routines for bouncing.
35 #define HAVE_ARCH_PCI_SET_DMA_MASK
37 #define pcibios_assign_all_busses() 1
39 #endif /* __MACH_PUV3_HARDWARE_H__ */