aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/pgtable-ppc32.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-16 20:58:08 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-16 20:58:08 -0400
commit489de30259e667d7bc47da9da44a0270b050cd97 (patch)
tree6807814f443fe2c5d041c3bc3fe3ca8d22a955ca /include/asm-powerpc/pgtable-ppc32.h
parent1f1c2881f673671539b25686df463518d69c4649 (diff)
parentbf22f6fe2d72b4d7e9035be8ceb340414cf490e3 (diff)
Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc
* 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc: (209 commits) [POWERPC] Create add_rtc() function to enable the RTC CMOS driver [POWERPC] Add H_ILLAN_ATTRIBUTES hcall number [POWERPC] xilinxfb: Parameterize xilinxfb platform device registration [POWERPC] Oprofile support for Power 5++ [POWERPC] Enable arbitary speed tty ioctls and split input/output speed [POWERPC] Make drivers/char/hvc_console.c:khvcd() static [POWERPC] Remove dead code for preventing pread() and pwrite() calls [POWERPC] Remove unnecessary #undef printk from prom.c [POWERPC] Fix typo in Ebony default DTS [POWERPC] Check for NULL ppc_md.init_IRQ() before calling [POWERPC] Remove extra return statement [POWERPC] pasemi: Don't auto-select CONFIG_EMBEDDED [POWERPC] pasemi: Rename platform [POWERPC] arch/powerpc/kernel/sysfs.c: Move NUMA exports [POWERPC] Add __read_mostly support for powerpc [POWERPC] Modify sched_clock() to make CONFIG_PRINTK_TIME more sane [POWERPC] Create a dummy zImage if no valid platform has been selected [POWERPC] PS3: Bootwrapper support. [POWERPC] powermac i2c: Use mutex [POWERPC] Schedule removal of arch/ppc ... Fixed up conflicts manually in: Documentation/feature-removal-schedule.txt arch/powerpc/kernel/pci_32.c arch/powerpc/kernel/pci_64.c include/asm-powerpc/pci.h and asked the powerpc people to double-check the result..
Diffstat (limited to 'include/asm-powerpc/pgtable-ppc32.h')
-rw-r--r--include/asm-powerpc/pgtable-ppc32.h50
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 */
13struct mm_struct;
14 10
15extern unsigned long va_to_phys(unsigned long address); 11extern unsigned long va_to_phys(unsigned long address);
16extern pte_t *va_to_pte(unsigned long address); 12extern 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 */
496extern 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
727extern pgd_t swapper_pg_dir[PTRS_PER_PGD];
728
729extern 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 */
750extern void cache_clear(__u32 addr, int length);
751extern void cache_push(__u32 addr, int length);
752extern int mm_end_of_chunk (unsigned long addr, int len);
753extern unsigned long iopa(unsigned long addr);
754extern 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 */
767extern 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 */
773extern 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 */