]> git.pld-linux.org Git - packages/kernel.git/blob - linux-alpha-isa.patch
- ported from linux-2.4.25-atmdd.patch
[packages/kernel.git] / linux-alpha-isa.patch
1 --- linux-2.6.3/include/asm-alpha/io.h.orig     2004-02-18 04:59:27.000000000 +0100
2 +++ linux-2.6.3/include/asm-alpha/io.h  2004-02-25 13:42:10.000000000 +0100
3 @@ -17,6 +17,7 @@
4  #ifdef __KERNEL__
5  #include <linux/config.h>
6  #include <linux/kernel.h>
7 +#include <linux/mm.h>          /* for mem_map, used in page_to_pa */
8  #include <asm/system.h>
9  #include <asm/pgtable.h>
10  #include <asm/machvec.h>
11 @@ -118,6 +119,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  #else /* !__KERNEL__ */
25  
26  /*
This page took 0.084192 seconds and 3 git commands to generate.