patch-2.4.0-test2 linux/include/asm-ppc/io.h
Next file: linux/include/asm-ppc/mc146818rtc.h
Previous file: linux/include/asm-ppc/est8260.h
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Mon Jun 19 17:59:37 2000
- Orig file:
v2.4.0-test1/linux/include/asm-ppc/io.h
- Orig date:
Thu May 11 15:30:08 2000
diff -u --recursive --new-file v2.4.0-test1/linux/include/asm-ppc/io.h linux/include/asm-ppc/io.h
@@ -161,6 +161,20 @@
}
/*
+ * The PCI bus bridge can translate addresses issued by the processor(s)
+ * into a different address on the PCI bus. On 32-bit cpus, we assume
+ * this mapping is 1-1, but on 64-bit systems it often isn't.
+ */
+#ifndef CONFIG_PPC64BRIDGE
+#define phys_to_bus(x) (x)
+#define bus_to_phys(x) (x)
+
+#else
+extern unsigned long phys_to_bus(unsigned long pa);
+extern unsigned long bus_to_phys(unsigned int ba, int busnr);
+#endif /* CONFIG_PPC64BRIDGE */
+
+/*
* Change virtual addresses to physical addresses and vv, for
* addresses in the area where the kernel has the RAM mapped.
*/
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)