diff options
Diffstat (limited to 'include/asm-m68knommu/pgtable.h')
-rw-r--r-- | include/asm-m68knommu/pgtable.h | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/include/asm-m68knommu/pgtable.h b/include/asm-m68knommu/pgtable.h new file mode 100644 index 000000000000..e2a69fffa370 --- /dev/null +++ b/include/asm-m68knommu/pgtable.h | |||
@@ -0,0 +1,76 @@ | |||
1 | #ifndef _M68KNOMMU_PGTABLE_H | ||
2 | #define _M68KNOMMU_PGTABLE_H | ||
3 | |||
4 | #include <asm-generic/4level-fixup.h> | ||
5 | |||
6 | /* | ||
7 | * (C) Copyright 2000-2002, Greg Ungerer <gerg@snapgear.com> | ||
8 | */ | ||
9 | |||
10 | #include <linux/config.h> | ||
11 | #include <linux/slab.h> | ||
12 | #include <asm/processor.h> | ||
13 | #include <asm/page.h> | ||
14 | #include <asm/io.h> | ||
15 | |||
16 | /* | ||
17 | * Trivial page table functions. | ||
18 | */ | ||
19 | #define pgd_present(pgd) (1) | ||
20 | #define pgd_none(pgd) (0) | ||
21 | #define pgd_bad(pgd) (0) | ||
22 | #define pgd_clear(pgdp) | ||
23 | #define kern_addr_valid(addr) (1) | ||
24 | #define pmd_offset(a, b) ((void *)0) | ||
25 | |||
26 | #define PAGE_NONE __pgprot(0) | ||
27 | #define PAGE_SHARED __pgprot(0) | ||
28 | #define PAGE_COPY __pgprot(0) | ||
29 | #define PAGE_READONLY __pgprot(0) | ||
30 | #define PAGE_KERNEL __pgprot(0) | ||
31 | |||
32 | extern void paging_init(void); | ||
33 | #define swapper_pg_dir ((pgd_t *) 0) | ||
34 | |||
35 | #define __swp_type(x) (0) | ||
36 | #define __swp_offset(x) (0) | ||
37 | #define __swp_entry(typ,off) ((swp_entry_t) { ((typ) | ((off) << 7)) }) | ||
38 | #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) | ||
39 | #define __swp_entry_to_pte(x) ((pte_t) { (x).val }) | ||
40 | |||
41 | static inline int pte_file(pte_t pte) { return 0; } | ||
42 | |||
43 | /* | ||
44 | * ZERO_PAGE is a global shared page that is always zero: used | ||
45 | * for zero-mapped memory areas etc.. | ||
46 | */ | ||
47 | #define ZERO_PAGE(vaddr) (virt_to_page(0)) | ||
48 | |||
49 | /* | ||
50 | * These would be in other places but having them here reduces the diffs. | ||
51 | */ | ||
52 | extern unsigned int kobjsize(const void *objp); | ||
53 | extern int is_in_rom(unsigned long); | ||
54 | |||
55 | /* | ||
56 | * No page table caches to initialise. | ||
57 | */ | ||
58 | #define pgtable_cache_init() do { } while (0) | ||
59 | #define io_remap_page_range(vma, vaddr, paddr, size, prot) \ | ||
60 | remap_pfn_range(vma, vaddr, (paddr) >> PAGE_SHIFT, size, prot) | ||
61 | |||
62 | #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ | ||
63 | remap_pfn_range(vma, vaddr, pfn, size, prot) | ||
64 | |||
65 | #define MK_IOSPACE_PFN(space, pfn) (pfn) | ||
66 | #define GET_IOSPACE(pfn) 0 | ||
67 | #define GET_PFN(pfn) (pfn) | ||
68 | |||
69 | /* | ||
70 | * All 32bit addresses are effectively valid for vmalloc... | ||
71 | * Sort of meaningless for non-VM targets. | ||
72 | */ | ||
73 | #define VMALLOC_START 0 | ||
74 | #define VMALLOC_END 0xffffffff | ||
75 | |||
76 | #endif /* _M68KNOMMU_PGTABLE_H */ | ||