Path: blob/master/arch/unicore32/include/mach/hardware.h
10818 views
/*1* linux/arch/unicore32/include/mach/hardware.h2*3* Code specific to PKUnity SoC and UniCore ISA4*5* Copyright (C) 2001-2010 GUAN Xue-tao6*7* This program is free software; you can redistribute it and/or modify8* it under the terms of the GNU General Public License version 2 as9* published by the Free Software Foundation.10*11* This file contains the hardware definitions for PKUnity architecture12*/1314#ifndef __MACH_PUV3_HARDWARE_H__15#define __MACH_PUV3_HARDWARE_H__1617#include "PKUnity.h"1819#ifndef __ASSEMBLY__20#define io_p2v(x) (void __iomem *)((x) - PKUNITY_MMIO_BASE)21#define io_v2p(x) (phys_addr_t)((x) + PKUNITY_MMIO_BASE)22#else23#define io_p2v(x) ((x) - PKUNITY_MMIO_BASE)24#define io_v2p(x) ((x) + PKUNITY_MMIO_BASE)25#endif2627#define PCIBIOS_MIN_IO 0x4000 /* should lower than 64KB */28#define PCIBIOS_MIN_MEM io_v2p(PKUNITY_PCIMEM_BASE)2930/*31* We override the standard dma-mask routines for bouncing.32*/33#define HAVE_ARCH_PCI_SET_DMA_MASK3435#define pcibios_assign_all_busses() 13637#endif /* __MACH_PUV3_HARDWARE_H__ */383940