mmu_decl.h (2ac5e38ea4203852d6e99edd3cf11f044b0a409f) | mmu_decl.h (d7cceda96badc1bd444cff27ab9c375a1277c1e3) |
---|---|
1/* 2 * Declarations of procedures and variables shared between files 3 * in arch/ppc/mm/. 4 * 5 * Derived from arch/ppc/mm/init.c: 6 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) 7 * 8 * Modifications by Paul Mackerras (PowerMac) (paulus@cs.anu.edu.au) --- 141 unchanged lines hidden (view full) --- 150 u32 MAS0; 151 u32 MAS1; 152 unsigned long MAS2; 153 u32 MAS3; 154 u32 MAS7; 155}; 156#endif 157 | 1/* 2 * Declarations of procedures and variables shared between files 3 * in arch/ppc/mm/. 4 * 5 * Derived from arch/ppc/mm/init.c: 6 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) 7 * 8 * Modifications by Paul Mackerras (PowerMac) (paulus@cs.anu.edu.au) --- 141 unchanged lines hidden (view full) --- 150 u32 MAS0; 151 u32 MAS1; 152 unsigned long MAS2; 153 u32 MAS3; 154 u32 MAS7; 155}; 156#endif 157 |
158#if defined(CONFIG_6xx) || defined(CONFIG_FSL_BOOKE) || defined(CONFIG_PPC_8xx) | 158#if defined(CONFIG_PPC_BOOK3S_32) || defined(CONFIG_FSL_BOOKE) || defined(CONFIG_PPC_8xx) |
159/* 6xx have BATS */ 160/* FSL_BOOKE have TLBCAM */ 161/* 8xx have LTLB */ 162phys_addr_t v_block_mapped(unsigned long va); 163unsigned long p_block_mapped(phys_addr_t pa); 164#else 165static inline phys_addr_t v_block_mapped(unsigned long va) { return 0; } 166static inline unsigned long p_block_mapped(phys_addr_t pa) { return 0; } 167#endif | 159/* 6xx have BATS */ 160/* FSL_BOOKE have TLBCAM */ 161/* 8xx have LTLB */ 162phys_addr_t v_block_mapped(unsigned long va); 163unsigned long p_block_mapped(phys_addr_t pa); 164#else 165static inline phys_addr_t v_block_mapped(unsigned long va) { return 0; } 166static inline unsigned long p_block_mapped(phys_addr_t pa) { return 0; } 167#endif |