Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Variables
page_32.h File Reference
#include <linux/const.h>
#include <asm-generic/memory_model.h>
#include <asm-generic/getorder.h>

Go to the source code of this file.

Data Structures

struct  sparc_phys_banks
 
struct  pmd_t
 

Macros

#define PAGE_SHIFT   12
 
#define PAGE_SIZE   (_AC(1, UL) << PAGE_SHIFT)
 
#define PAGE_MASK   (~(PAGE_SIZE-1))
 
#define clear_page(page)   memset((void *)(page), 0, PAGE_SIZE)
 
#define copy_page(to, from)   memcpy((void *)(to), (void *)(from), PAGE_SIZE)
 
#define clear_user_page(addr, vaddr, page)
 
#define copy_user_page(to, from, vaddr, page)
 
#define SPARC_PHYS_BANKS   32
 
#define pte_val(x)   (x)
 
#define iopte_val(x)   (x)
 
#define pmd_val(x)   ((x).pmdv[0])
 
#define pgd_val(x)   (x)
 
#define ctxd_val(x)   (x)
 
#define pgprot_val(x)   (x)
 
#define iopgprot_val(x)   (x)
 
#define __pte(x)   (x)
 
#define __iopte(x)   (x)
 
#define __pgd(x)   (x)
 
#define __ctxd(x)   (x)
 
#define __pgprot(x)   (x)
 
#define __iopgprot(x)   (x)
 
#define TASK_UNMAPPED_BASE   0x50000000
 
#define PAGE_OFFSET   0xf0000000
 
#define __pa(x)   ((unsigned long)(x) - PAGE_OFFSET + phys_base)
 
#define __va(x)   ((void *)((unsigned long) (x) - phys_base + PAGE_OFFSET))
 
#define virt_to_phys   __pa
 
#define phys_to_virt   __va
 
#define ARCH_PFN_OFFSET   (pfn_base)
 
#define virt_to_page(kaddr)   pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
 
#define pfn_valid(pfn)   (((pfn) >= (pfn_base)) && (((pfn)-(pfn_base)) < max_mapnr))
 
#define virt_addr_valid(kaddr)   ((((unsigned long)(kaddr)-PAGE_OFFSET)>>PAGE_SHIFT) < max_mapnr)
 
#define VM_DATA_DEFAULT_FLAGS
 

Typedefs

typedef unsigned long pte_t
 
typedef unsigned long iopte_t
 
typedef unsigned long pgd_t
 
typedef unsigned long ctxd_t
 
typedef unsigned long pgprot_t
 
typedef unsigned long iopgprot_t
 
typedef struct pagepgtable_t
 

Variables

struct sparc_phys_banks sp_banks [SPARC_PHYS_BANKS+1]
 
unsigned long phys_base
 
unsigned long pfn_base
 

Macro Definition Documentation

#define __ctxd (   x)    (x)

Definition at line 102 of file page_32.h.

#define __iopgprot (   x)    (x)

Definition at line 104 of file page_32.h.

#define __iopte (   x)    (x)

Definition at line 99 of file page_32.h.

#define __pa (   x)    ((unsigned long)(x) - PAGE_OFFSET + phys_base)

Definition at line 123 of file page_32.h.

#define __pgd (   x)    (x)

Definition at line 101 of file page_32.h.

#define __pgprot (   x)    (x)

Definition at line 103 of file page_32.h.

#define __pte (   x)    (x)

Definition at line 98 of file page_32.h.

#define __va (   x)    ((void *)((unsigned long) (x) - phys_base + PAGE_OFFSET))

Definition at line 124 of file page_32.h.

#define ARCH_PFN_OFFSET   (pfn_base)

Definition at line 129 of file page_32.h.

#define clear_page (   page)    memset((void *)(page), 0, PAGE_SIZE)

Definition at line 19 of file page_32.h.

#define clear_user_page (   addr,
  vaddr,
  page 
)
Value:
do { clear_page(addr); \
sparc_flush_page_to_ram(page); \
} while (0)

Definition at line 21 of file page_32.h.

#define copy_page (   to,
  from 
)    memcpy((void *)(to), (void *)(from), PAGE_SIZE)

Definition at line 20 of file page_32.h.

#define copy_user_page (   to,
  from,
  vaddr,
  page 
)
Value:
do { copy_page(to, from); \
sparc_flush_page_to_ram(page); \
} while (0)

Definition at line 25 of file page_32.h.

#define ctxd_val (   x)    (x)

Definition at line 94 of file page_32.h.

#define iopgprot_val (   x)    (x)

Definition at line 96 of file page_32.h.

#define iopte_val (   x)    (x)

Definition at line 91 of file page_32.h.

#define PAGE_MASK   (~(PAGE_SIZE-1))

Definition at line 15 of file page_32.h.

#define PAGE_OFFSET   0xf0000000

Definition at line 118 of file page_32.h.

#define PAGE_SHIFT   12

Definition at line 13 of file page_32.h.

#define PAGE_SIZE   (_AC(1, UL) << PAGE_SHIFT)

Definition at line 14 of file page_32.h.

#define pfn_valid (   pfn)    (((pfn) >= (pfn_base)) && (((pfn)-(pfn_base)) < max_mapnr))

Definition at line 132 of file page_32.h.

#define pgd_val (   x)    (x)

Definition at line 93 of file page_32.h.

#define pgprot_val (   x)    (x)

Definition at line 95 of file page_32.h.

#define phys_to_virt   __va

Definition at line 127 of file page_32.h.

#define pmd_val (   x)    ((x).pmdv[0])

Definition at line 92 of file page_32.h.

#define pte_val (   x)    (x)

Definition at line 90 of file page_32.h.

#define SPARC_PHYS_BANKS   32

Definition at line 42 of file page_32.h.

#define TASK_UNMAPPED_BASE   0x50000000

Definition at line 110 of file page_32.h.

#define virt_addr_valid (   kaddr)    ((((unsigned long)(kaddr)-PAGE_OFFSET)>>PAGE_SHIFT) < max_mapnr)

Definition at line 133 of file page_32.h.

#define virt_to_page (   kaddr)    pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)

Definition at line 130 of file page_32.h.

#define virt_to_phys   __pa

Definition at line 126 of file page_32.h.

#define VM_DATA_DEFAULT_FLAGS
Value:
(VM_READ | VM_WRITE | VM_EXEC | \
VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)

Definition at line 135 of file page_32.h.

Typedef Documentation

typedef unsigned long ctxd_t

Definition at line 86 of file page_32.h.

typedef unsigned long iopgprot_t

Definition at line 88 of file page_32.h.

typedef unsigned long iopte_t

Definition at line 83 of file page_32.h.

typedef unsigned long pgd_t

Definition at line 85 of file page_32.h.

typedef unsigned long pgprot_t

Definition at line 87 of file page_32.h.

typedef struct page* pgtable_t

Definition at line 108 of file page_32.h.

typedef unsigned long pte_t

Definition at line 82 of file page_32.h.

Variable Documentation

unsigned long pfn_base

Definition at line 44 of file init_32.c.

unsigned long phys_base

Definition at line 41 of file init_32.c.

Definition at line 47 of file init_32.c.