From: John Linn Date: Wed, 24 Feb 2010 19:55:02 +0000 (-0700) Subject: microblaze: Added more support for PCI X-Git-Tag: next-20121005~80^2~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c74c8b1dcbaa890a064a5892e29cec5ce42d5b84;p=karo-tx-linux.git microblaze: Added more support for PCI In order to use an off the shelf nic, like the intel pro card, changes are needed to support pci dma interfaces and other small changes. Signed-off-by: John Linn Signed-off-by: Michal Simek --- diff --git a/arch/microblaze/include/asm/io.h b/arch/microblaze/include/asm/io.h index e4a797478603..4fbfdc1ac7f8 100644 --- a/arch/microblaze/include/asm/io.h +++ b/arch/microblaze/include/asm/io.h @@ -35,6 +35,10 @@ extern resource_size_t isa_mem_base; #define IO_SPACE_LIMIT (0xFFFFFFFF) +/* the following is needed to support PCI with some drivers */ + +#define mmiowb() + static inline unsigned char __raw_readb(const volatile void __iomem *addr) { return *(volatile unsigned char __force *)addr; diff --git a/arch/microblaze/include/asm/pci.h b/arch/microblaze/include/asm/pci.h index a0da88bf70c5..41cc841091b0 100644 --- a/arch/microblaze/include/asm/pci.h +++ b/arch/microblaze/include/asm/pci.h @@ -22,6 +22,8 @@ #include #include +#include + #define PCIBIOS_MIN_IO 0x1000 #define PCIBIOS_MIN_MEM 0x10000000