patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / include / asm-h8300 / pgtable.h
1 #ifndef _H8300_PGTABLE_H
2 #define _H8300_PGTABLE_H
3
4 #include <linux/config.h>
5 #include <linux/slab.h>
6 #include <asm/processor.h>
7 #include <asm/page.h>
8 #include <asm/io.h>
9
10 #define pgd_present(pgd)     (1)       /* pages are always present on NO_MM */
11 #define pgd_none(pgd)           (0)
12 #define pgd_bad(pgd)            (0)
13 #define pgd_clear(pgdp)
14 #define kern_addr_valid(addr)   (1)
15 #define pmd_offset(a, b)        ((void *)0)
16 #define pmd_none(pmd)           (1)
17 #define pgd_offset_k(adrdress)  ((pgd_t *)0)
18 #define pte_offset_kernel(dir, address) ((pte_t *)0)
19
20 #define PAGE_NONE               __pgprot(0)    /* these mean nothing to NO_MM */
21 #define PAGE_SHARED             __pgprot(0)    /* these mean nothing to NO_MM */
22 #define PAGE_COPY               __pgprot(0)    /* these mean nothing to NO_MM */
23 #define PAGE_READONLY   __pgprot(0)    /* these mean nothing to NO_MM */
24 #define PAGE_KERNEL             __pgprot(0)    /* these mean nothing to NO_MM */
25
26 extern void paging_init(void);
27 #define swapper_pg_dir ((pgd_t *) 0)
28
29 #define __swp_type(x)           (0)
30 #define __swp_offset(x)         (0)
31 #define __swp_entry(typ,off)    ((swp_entry_t) { ((typ) | ((off) << 7)) })
32 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
33 #define __swp_entry_to_pte(x)   ((pte_t) { (x).val })
34
35 static inline int pte_file(pte_t pte) { return 0; }
36
37 /*
38  * ZERO_PAGE is a global shared page that is always zero: used
39  * for zero-mapped memory areas etc..
40  */
41 #define ZERO_PAGE(vaddr)        (virt_to_page(0))
42
43 /*
44  * These would be in other places but having them here reduces the diffs.
45  */
46 extern unsigned int kobjsize(const void *objp);
47 extern int is_in_rom(unsigned long);
48
49 /*
50  * No page table caches to initialise
51  */
52 #define pgtable_cache_init()   do { } while (0)
53 #define io_remap_page_range     remap_page_range
54
55 /*
56  * All 32bit addresses are effectively valid for vmalloc...
57  * Sort of meaningless for non-VM targets.
58  */
59 #define VMALLOC_START   0
60 #define VMALLOC_END     0xffffffff
61
62 /*
63  * All 32bit addresses are effectively valid for vmalloc...
64  * Sort of meaningless for non-VM targets.
65  */
66 #define VMALLOC_START   0
67 #define VMALLOC_END     0xffffffff
68
69 #endif /* _H8300_PGTABLE_H */