summaryrefslogtreecommitdiffstats
path: root/arch/microblaze/include/asm/io.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/microblaze/include/asm/io.h')
-rw-r--r--arch/microblaze/include/asm/io.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/arch/microblaze/include/asm/io.h b/arch/microblaze/include/asm/io.h
index f82df5d221a8..06d804b15a51 100644
--- a/arch/microblaze/include/asm/io.h
+++ b/arch/microblaze/include/asm/io.h
@@ -17,7 +17,21 @@
#include <linux/mm.h> /* Get struct page {...} */
#include <asm-generic/iomap.h>
-#define PCI_DRAM_OFFSET 0
+#ifndef CONFIG_PCI
+#define _IO_BASE 0
+#define _ISA_MEM_BASE 0
+#define PCI_DRAM_OFFSET 0
+#else
+#define _IO_BASE isa_io_base
+#define _ISA_MEM_BASE isa_mem_base
+#define PCI_DRAM_OFFSET pci_dram_offset
+#endif
+
+extern unsigned long isa_io_base;
+extern unsigned long pci_io_base;
+extern unsigned long pci_dram_offset;
+
+extern resource_size_t isa_mem_base;
#define IO_SPACE_LIMIT (0xFFFFFFFF)
OpenPOWER on IntegriCloud