forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/mips/include/asm/mach-loongson64/spaces.h
....@@ -6,5 +6,12 @@
66 #define CAC_BASE _AC(0x9800000000000000, UL)
77 #endif /* CONFIG_64BIT */
88
9
+/* Skip 128k to trap NULL pointer dereferences */
10
+#define PCI_IOBASE _AC(0xc000000000000000 + SZ_128K, UL)
11
+#define PCI_IOSIZE SZ_16M
12
+#define MAP_BASE (PCI_IOBASE + PCI_IOSIZE)
13
+
14
+#define IO_SPACE_LIMIT (PCI_IOSIZE - 1)
15
+
916 #include <asm/mach-generic/spaces.h>
1017 #endif