]> git.pld-linux.org Git - packages/kernel.git/blob - linux-alpha-isa.patch
This commit was manufactured by cvs2git to create branch 'LINUX_2_6_16'.
[packages/kernel.git] / linux-alpha-isa.patch
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  
5  #include <linux/config.h>
6  #include <linux/kernel.h>
7 +#include <linux/mm.h>
8  #include <asm/compiler.h>
9  #include <asm/system.h>
10  #include <asm/pgtable.h>
11 @@ -127,6 +128,15 @@
12         return (long)address <= 0 ? NULL : virt;
13  }
14  
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 +}
23 +
24  /*
25   * There are different chipsets to interface the Alpha CPUs to the world.
26   */
This page took 0.176997 seconds and 3 git commands to generate.