[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251007092313.755856-2-daniel@thingy.jp>
Date: Tue, 7 Oct 2025 18:23:09 +0900
From: Daniel Palmer <daniel@...ngy.jp>
To: linux-m68k@...ts.linux-m68k.org,
linux-pci@...r.kernel.org
Cc: linux-kernel@...r.kernel.org,
Daniel Palmer <daniel@...ngy.jp>
Subject: [RFC PATCH 1/5] m68k: Adjust the pci io range
For the Amiga at least the zorro->PCI bridges are in the
zorro address space so currently the PCI IO range is not
big enough for something in the zorro area to be in there.
Signed-off-by: Daniel Palmer <daniel@...ngy.jp>
---
arch/m68k/include/asm/io_mm.h | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/arch/m68k/include/asm/io_mm.h b/arch/m68k/include/asm/io_mm.h
index 090aec54b8fa..47aff2ba75f6 100644
--- a/arch/m68k/include/asm/io_mm.h
+++ b/arch/m68k/include/asm/io_mm.h
@@ -379,10 +379,13 @@ static inline void isa_delay(void)
#define writesw(port, buf, nr) raw_outsw((port), (u16 *)(buf), (nr))
#define writesl(port, buf, nr) raw_outsl((port), (u32 *)(buf), (nr))
-#ifndef CONFIG_SUN3
-#define IO_SPACE_LIMIT 0xffff
-#else
+#if defined(CONFIG_SUN3)
#define IO_SPACE_LIMIT 0x0fffffff
+/* For the mediator we have io space somewhere in the Zorro 3 space */
+#elif defined(CONFIG_PCI_MEDIATOR4000)
+#define IO_SPACE_LIMIT 0x7fffffff
+#else
+#define IO_SPACE_LIMIT 0xffff
#endif
#endif /* __KERNEL__ */
--
2.51.0
Powered by blists - more mailing lists