diff options
Diffstat (limited to 'include/asm-powerpc/pgtable-ppc32.h')
-rw-r--r-- | include/asm-powerpc/pgtable-ppc32.h | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/include/asm-powerpc/pgtable-ppc32.h b/include/asm-powerpc/pgtable-ppc32.h index 973c1c13bdc0..6c236d4d6262 100644 --- a/include/asm-powerpc/pgtable-ppc32.h +++ b/include/asm-powerpc/pgtable-ppc32.h | |||
@@ -6,11 +6,7 @@ | |||
6 | #ifndef __ASSEMBLY__ | 6 | #ifndef __ASSEMBLY__ |
7 | #include <linux/sched.h> | 7 | #include <linux/sched.h> |
8 | #include <linux/threads.h> | 8 | #include <linux/threads.h> |
9 | #include <asm/processor.h> /* For TASK_SIZE */ | ||
10 | #include <asm/mmu.h> | ||
11 | #include <asm/page.h> | ||
12 | #include <asm/io.h> /* For sub-arch specific PPC_PIN_SIZE */ | 9 | #include <asm/io.h> /* For sub-arch specific PPC_PIN_SIZE */ |
13 | struct mm_struct; | ||
14 | 10 | ||
15 | extern unsigned long va_to_phys(unsigned long address); | 11 | extern unsigned long va_to_phys(unsigned long address); |
16 | extern pte_t *va_to_pte(unsigned long address); | 12 | extern pte_t *va_to_pte(unsigned long address); |
@@ -488,14 +484,6 @@ extern unsigned long bad_call_to_PMD_PAGE_SIZE(void); | |||
488 | #define pfn_pte(pfn, prot) __pte(((pte_basic_t)(pfn) << PFN_SHIFT_OFFSET) |\ | 484 | #define pfn_pte(pfn, prot) __pte(((pte_basic_t)(pfn) << PFN_SHIFT_OFFSET) |\ |
489 | pgprot_val(prot)) | 485 | pgprot_val(prot)) |
490 | #define mk_pte(page, prot) pfn_pte(page_to_pfn(page), prot) | 486 | #define mk_pte(page, prot) pfn_pte(page_to_pfn(page), prot) |
491 | |||
492 | /* | ||
493 | * ZERO_PAGE is a global shared page that is always zero: used | ||
494 | * for zero-mapped memory areas etc.. | ||
495 | */ | ||
496 | extern unsigned long empty_zero_page[1024]; | ||
497 | #define ZERO_PAGE(vaddr) (virt_to_page(empty_zero_page)) | ||
498 | |||
499 | #endif /* __ASSEMBLY__ */ | 487 | #endif /* __ASSEMBLY__ */ |
500 | 488 | ||
501 | #define pte_none(pte) ((pte_val(pte) & ~_PTE_NONE_MASK) == 0) | 489 | #define pte_none(pte) ((pte_val(pte) & ~_PTE_NONE_MASK) == 0) |
@@ -724,10 +712,6 @@ extern pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn, | |||
724 | #define pte_unmap(pte) kunmap_atomic(pte, KM_PTE0) | 712 | #define pte_unmap(pte) kunmap_atomic(pte, KM_PTE0) |
725 | #define pte_unmap_nested(pte) kunmap_atomic(pte, KM_PTE1) | 713 | #define pte_unmap_nested(pte) kunmap_atomic(pte, KM_PTE1) |
726 | 714 | ||
727 | extern pgd_t swapper_pg_dir[PTRS_PER_PGD]; | ||
728 | |||
729 | extern void paging_init(void); | ||
730 | |||
731 | /* | 715 | /* |
732 | * Encode and decode a swap entry. | 716 | * Encode and decode a swap entry. |
733 | * Note that the bits we use in a PTE for representing a swap entry | 717 | * Note that the bits we use in a PTE for representing a swap entry |
@@ -745,40 +729,6 @@ extern void paging_init(void); | |||
745 | #define pte_to_pgoff(pte) (pte_val(pte) >> 3) | 729 | #define pte_to_pgoff(pte) (pte_val(pte) >> 3) |
746 | #define pgoff_to_pte(off) ((pte_t) { ((off) << 3) | _PAGE_FILE }) | 730 | #define pgoff_to_pte(off) ((pte_t) { ((off) << 3) | _PAGE_FILE }) |
747 | 731 | ||
748 | /* CONFIG_APUS */ | ||
749 | /* For virtual address to physical address conversion */ | ||
750 | extern void cache_clear(__u32 addr, int length); | ||
751 | extern void cache_push(__u32 addr, int length); | ||
752 | extern int mm_end_of_chunk (unsigned long addr, int len); | ||
753 | extern unsigned long iopa(unsigned long addr); | ||
754 | extern unsigned long mm_ptov(unsigned long addr) __attribute_const__; | ||
755 | |||
756 | /* Values for nocacheflag and cmode */ | ||
757 | /* These are not used by the APUS kernel_map, but prevents | ||
758 | compilation errors. */ | ||
759 | #define KERNELMAP_FULL_CACHING 0 | ||
760 | #define KERNELMAP_NOCACHE_SER 1 | ||
761 | #define KERNELMAP_NOCACHE_NONSER 2 | ||
762 | #define KERNELMAP_NO_COPYBACK 3 | ||
763 | |||
764 | /* | ||
765 | * Map some physical address range into the kernel address space. | ||
766 | */ | ||
767 | extern unsigned long kernel_map(unsigned long paddr, unsigned long size, | ||
768 | int nocacheflag, unsigned long *memavailp ); | ||
769 | |||
770 | /* | ||
771 | * Set cache mode of (kernel space) address range. | ||
772 | */ | ||
773 | extern void kernel_set_cachemode (unsigned long address, unsigned long size, | ||
774 | unsigned int cmode); | ||
775 | |||
776 | /* Needs to be defined here and not in linux/mm.h, as it is arch dependent */ | ||
777 | #define kern_addr_valid(addr) (1) | ||
778 | |||
779 | #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ | ||
780 | remap_pfn_range(vma, vaddr, pfn, size, prot) | ||
781 | |||
782 | /* | 732 | /* |
783 | * No page table caches to initialise | 733 | * No page table caches to initialise |
784 | */ | 734 | */ |