浏览代码

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 <john.linn@xilinx.com>
Signed-off-by: Michal Simek <monstr@monstr.eu>
John Linn 16 年之前
父节点
当前提交
c74c8b1dcb
共有 2 个文件被更改,包括 6 次插入0 次删除
  1. 4 0
      arch/microblaze/include/asm/io.h
  2. 2 0
      arch/microblaze/include/asm/pci.h

+ 4 - 0
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;

+ 2 - 0
arch/microblaze/include/asm/pci.h

@@ -22,6 +22,8 @@
 #include <asm/prom.h>
 #include <asm/pci-bridge.h>
 
+#include <asm-generic/pci-dma-compat.h>
+
 #define PCIBIOS_MIN_IO		0x1000
 #define PCIBIOS_MIN_MEM		0x10000000