]> git.pld-linux.org Git - packages/kernel.git/blame - linux-alpha-isa.patch
- ppc configs updated, rel 0.7
[packages/kernel.git] / linux-alpha-isa.patch
CommitLineData
7d8a34a9
PS
1--- linux-2.6.9-rc2/include/asm-alpha/io.h.orig 2004-09-28 15:28:32.376274856 +0200
2+++ linux-2.6.9-rc2/include/asm-alpha/io.h 2004-09-28 15:34:56.009953672 +0200
3@@ -5,6 +5,7 @@
4
55aee290
JB
5 #include <linux/config.h>
6 #include <linux/kernel.h>
7d8a34a9
PS
7+#include <linux/mm.h>
8 #include <asm/compiler.h>
55aee290
JB
9 #include <asm/system.h>
10 #include <asm/pgtable.h>
7d8a34a9 11@@ -127,6 +128,15 @@
8267180f
JB
12 return (long)address <= 0 ? NULL : virt;
13 }
47c2a4ef 14
8267180f
JB
15+#define isa_virt_to_bus virt_to_bus
16+#define isa_bus_to_virt bus_to_virt
17+static inline unsigned long isa_page_to_bus(struct page *page)
18+{
19+ unsigned long phys = page_to_phys(page);
20+ unsigned long bus = phys + __direct_map_base;
21+ return phys <= __direct_map_size ? bus : 0;
22+}
47c2a4ef 23+
8267180f 24 /*
7d8a34a9
PS
25 * There are different chipsets to interface the Alpha CPUs to the world.
26 */
This page took 0.261557 seconds and 4 git commands to generate.