Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
ppc_mmu_32.c File Reference
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/init.h>
#include <linux/highmem.h>
#include <linux/memblock.h>
#include <asm/prom.h>
#include <asm/mmu.h>
#include <asm/machdep.h>
#include "mmu_decl.h"

Go to the source code of this file.

Data Structures

struct  batrange


#define LG_HPTEG_SIZE   6 /* 64 bytes per HPTEG */
#define SDR1_LOW_BITS   ((n_hpteg - 1) >> 10)
#define MIN_N_HPTEG   1024 /* min 64kB hash table */


phys_addr_t v_mapped_by_bats (unsigned long va)
unsigned long p_mapped_by_bats (phys_addr_t pa)
unsigned long __init mmu_mapin_ram (unsigned long top)
void __init setbat (int index, unsigned long virt, phys_addr_t phys, unsigned int size, int flags)
void hash_preload (struct mm_struct *mm, unsigned long ea, unsigned long access, unsigned long trap)
void __init MMU_init_hw (void)
void setup_initial_memory_limit (phys_addr_t first_memblock_base, phys_addr_t first_memblock_size)


struct hash_pteHash
struct hash_pteHash_end
unsigned long Hash_size
unsigned long Hash_mask
unsigned long _SDR1
struct ppc_bat BATS [8][2]
struct batrange bat_addrs [8]

Macro Definition Documentation

#define LG_HPTEG_SIZE   6 /* 64 bytes per HPTEG */
#define MIN_N_HPTEG   1024 /* min 64kB hash table */
#define SDR1_LOW_BITS   ((n_hpteg - 1) >> 10)

Function Documentation

void hash_preload ( struct mm_struct mm,
unsigned long  ea,
unsigned long  access,
unsigned long  trap 

Definition at line 164 of file ppc_mmu_32.c.

void __init MMU_init_hw ( void  )

Definition at line 179 of file ppc_mmu_32.c.

unsigned long __init mmu_mapin_ram ( unsigned long  top)

Definition at line 75 of file ppc_mmu_32.c.

unsigned long p_mapped_by_bats ( phys_addr_t  pa)

Definition at line 64 of file ppc_mmu_32.c.

void __init setbat ( int  index,
unsigned long  virt,
phys_addr_t  phys,
unsigned int  size,
int  flags 

Definition at line 115 of file ppc_mmu_32.c.

void setup_initial_memory_limit ( phys_addr_t  first_memblock_base,
phys_addr_t  first_memblock_size 

Definition at line 275 of file ppc_mmu_32.c.

phys_addr_t v_mapped_by_bats ( unsigned long  va)

Definition at line 52 of file ppc_mmu_32.c.

Variable Documentation

unsigned long _SDR1

Definition at line 39 of file ppc_mmu_32.c.

struct batrange bat_addrs[8]
struct ppc_bat BATS[8][2]

Definition at line 41 of file ppc_mmu_32.c.

Definition at line 37 of file ppc_mmu_32.c.

struct hash_pte * Hash_end

Definition at line 37 of file ppc_mmu_32.c.

unsigned long Hash_mask

Definition at line 38 of file ppc_mmu_32.c.

unsigned long Hash_size

Definition at line 38 of file ppc_mmu_32.c.