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

Go to the source code of this file.

Macros

#define io_remap_pfn_range(vma, vaddr, pfn, size, prot)   remap_pfn_range(vma, vaddr, pfn, size, prot)
 
#define pgd_present(pgd)   (1) /* pages are always present on non MMU */
 
#define pgd_none(pgd)   (0)
 
#define pgd_bad(pgd)   (0)
 
#define pgd_clear(pgdp)
 
#define kern_addr_valid(addr)   (1)
 
#define pmd_offset(a, b)   ((void *) 0)
 
#define PAGE_NONE   __pgprot(0) /* these mean nothing to non MMU */
 
#define PAGE_SHARED   __pgprot(0) /* these mean nothing to non MMU */
 
#define PAGE_COPY   __pgprot(0) /* these mean nothing to non MMU */
 
#define PAGE_READONLY   __pgprot(0) /* these mean nothing to non MMU */
 
#define PAGE_KERNEL   __pgprot(0) /* these mean nothing to non MMU */
 
#define pgprot_noncached(x)   (x)
 
#define __swp_type(x)   (0)
 
#define __swp_offset(x)   (0)
 
#define __swp_entry(typ, off)   ((swp_entry_t) { ((typ) | ((off) << 7)) })
 
#define __pte_to_swp_entry(pte)   ((swp_entry_t) { pte_val(pte) })
 
#define __swp_entry_to_pte(x)   ((pte_t) { (x).val })
 
#define ZERO_PAGE(vaddr)   ({ BUG(); NULL; })
 
#define swapper_pg_dir   ((pgd_t *) NULL)
 
#define pgtable_cache_init()   do {} while (0)
 
#define arch_enter_lazy_cpu_mode()   do {} while (0)
 
#define pgprot_noncached_wc(prot)   prot
 
#define VMALLOC_START   0
 
#define VMALLOC_END   0xffffffff
 

Functions

voidconsistent_alloc (gfp_t gfp, size_t size, dma_addr_t *dma_handle)
 
void consistent_free (size_t size, void *vaddr)
 
void consistent_sync (void *vaddr, size_t size, int direction)
 
void consistent_sync_page (struct page *page, unsigned long offset, size_t size, int direction)
 
void setup_memory (void)
 

Variables

int mem_init_done
 
unsigned long ioremap_bot
 
unsigned long ioremap_base
 

Macro Definition Documentation

#define __pte_to_swp_entry (   pte)    ((swp_entry_t) { pte_val(pte) })

Definition at line 43 of file pgtable.h.

#define __swp_entry (   typ,
  off 
)    ((swp_entry_t) { ((typ) | ((off) << 7)) })

Definition at line 42 of file pgtable.h.

#define __swp_entry_to_pte (   x)    ((pte_t) { (x).val })

Definition at line 44 of file pgtable.h.

#define __swp_offset (   x)    (0)

Definition at line 41 of file pgtable.h.

#define __swp_type (   x)    (0)

Definition at line 40 of file pgtable.h.

#define arch_enter_lazy_cpu_mode ( )    do {} while (0)

Definition at line 56 of file pgtable.h.

#define io_remap_pfn_range (   vma,
  vaddr,
  pfn,
  size,
  prot 
)    remap_pfn_range(vma, vaddr, pfn, size, prot)

Definition at line 16 of file pgtable.h.

#define kern_addr_valid (   addr)    (1)

Definition at line 29 of file pgtable.h.

#define PAGE_COPY   __pgprot(0) /* these mean nothing to non MMU */

Definition at line 34 of file pgtable.h.

#define PAGE_KERNEL   __pgprot(0) /* these mean nothing to non MMU */

Definition at line 36 of file pgtable.h.

#define PAGE_NONE   __pgprot(0) /* these mean nothing to non MMU */

Definition at line 32 of file pgtable.h.

#define PAGE_READONLY   __pgprot(0) /* these mean nothing to non MMU */

Definition at line 35 of file pgtable.h.

#define PAGE_SHARED   __pgprot(0) /* these mean nothing to non MMU */

Definition at line 33 of file pgtable.h.

#define pgd_bad (   pgd)    (0)

Definition at line 27 of file pgtable.h.

#define pgd_clear (   pgdp)

Definition at line 28 of file pgtable.h.

#define pgd_none (   pgd)    (0)

Definition at line 26 of file pgtable.h.

#define pgd_present (   pgd)    (1) /* pages are always present on non MMU */

Definition at line 25 of file pgtable.h.

#define pgprot_noncached (   x)    (x)

Definition at line 38 of file pgtable.h.

#define pgprot_noncached_wc (   prot)    prot

Definition at line 58 of file pgtable.h.

#define pgtable_cache_init (   void)    do {} while (0)

Definition at line 54 of file pgtable.h.

#define pmd_offset (   a,
  b 
)    ((void *) 0)

Definition at line 30 of file pgtable.h.

#define swapper_pg_dir   ((pgd_t *) NULL)

Definition at line 52 of file pgtable.h.

#define VMALLOC_END   0xffffffff

Definition at line 65 of file pgtable.h.

#define VMALLOC_START   0

Definition at line 64 of file pgtable.h.

#define ZERO_PAGE (   vaddr)    ({ BUG(); NULL; })

Definition at line 50 of file pgtable.h.

Function Documentation

void* consistent_alloc ( gfp_t  gfp,
size_t  size,
dma_addr_t dma_handle 
)

Definition at line 81 of file dma-alloc.c.

void consistent_free ( size_t  size,
void vaddr 
)

Definition at line 163 of file consistent.c.

void consistent_sync ( void vaddr,
size_t  size,
int  direction 
)

Definition at line 151 of file dma-alloc.c.

void consistent_sync_page ( struct page page,
unsigned long  offset,
size_t  size,
int  direction 
)

Definition at line 176 of file dma-alloc.c.

void setup_memory ( void  )

Definition at line 71 of file discontig.c.

Variable Documentation

unsigned long ioremap_base

Definition at line 44 of file pgtable.c.

unsigned long ioremap_bot

Definition at line 45 of file pgtable.c.

int mem_init_done

Definition at line 30 of file init.c.