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

Go to the source code of this file.

Macros

#define UL(x)   _AC(x, UL)
 
#define PAGE_OFFSET   UL(0xC0000000)
 
#define TASK_SIZE   (PAGE_OFFSET - UL(0x41000000))
 
#define TASK_UNMAPPED_BASE   (PAGE_OFFSET / 3)
 
#define MODULES_VADDR   (PAGE_OFFSET - 16*1024*1024)
 
#define MODULES_END   (PAGE_OFFSET)
 
#define IOREMAP_MAX_ORDER   24
 
#define __virt_to_phys(x)   ((x) - PAGE_OFFSET + PHYS_OFFSET)
 
#define __phys_to_virt(x)   ((x) - PHYS_OFFSET + PAGE_OFFSET)
 
#define __phys_to_pfn(paddr)   ((paddr) >> PAGE_SHIFT)
 
#define __pfn_to_phys(pfn)   ((pfn) << PAGE_SHIFT)
 
#define page_to_phys(page)   (__pfn_to_phys(page_to_pfn(page)))
 
#define phys_to_page(phys)   (pfn_to_page(__phys_to_pfn(phys)))
 
#define arch_adjust_zones(size, holes)   do { } while (0)
 
#define PHYS_PFN_OFFSET   (PHYS_OFFSET >> PAGE_SHIFT)
 
#define __pa(x)   __virt_to_phys((unsigned long)(x))
 
#define __va(x)   ((void *)__phys_to_virt((unsigned long)(x)))
 
#define pfn_to_kaddr(pfn)   __va((pfn) << PAGE_SHIFT)
 
#define ARCH_PFN_OFFSET   PHYS_PFN_OFFSET
 
#define virt_to_page(kaddr)   pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
 
#define virt_addr_valid(kaddr)
 

Macro Definition Documentation

#define __pa (   x)    __virt_to_phys((unsigned long)(x))

Definition at line 94 of file memory.h.

#define __pfn_to_phys (   pfn)    ((pfn) << PAGE_SHIFT)

Definition at line 67 of file memory.h.

#define __phys_to_pfn (   paddr)    ((paddr) >> PAGE_SHIFT)

Definition at line 66 of file memory.h.

#define __phys_to_virt (   x)    ((x) - PHYS_OFFSET + PAGE_OFFSET)

Definition at line 60 of file memory.h.

#define __va (   x)    ((void *)__phys_to_virt((unsigned long)(x)))

Definition at line 95 of file memory.h.

#define __virt_to_phys (   x)    ((x) - PAGE_OFFSET + PHYS_OFFSET)

Definition at line 59 of file memory.h.

#define arch_adjust_zones (   size,
  holes 
)    do { } while (0)

Definition at line 78 of file memory.h.

#define ARCH_PFN_OFFSET   PHYS_PFN_OFFSET

Definition at line 113 of file memory.h.

#define IOREMAP_MAX_ORDER   24

Definition at line 51 of file memory.h.

#define MODULES_END   (PAGE_OFFSET)

Definition at line 46 of file memory.h.

#define MODULES_VADDR   (PAGE_OFFSET - 16*1024*1024)

Definition at line 41 of file memory.h.

#define PAGE_OFFSET   UL(0xC0000000)

Definition at line 33 of file memory.h.

#define page_to_phys (   page)    (__pfn_to_phys(page_to_pfn(page)))

Definition at line 72 of file memory.h.

#define pfn_to_kaddr (   pfn)    __va((pfn) << PAGE_SHIFT)

Definition at line 96 of file memory.h.

#define PHYS_PFN_OFFSET   (PHYS_OFFSET >> PAGE_SHIFT)

Definition at line 89 of file memory.h.

#define phys_to_page (   phys)    (pfn_to_page(__phys_to_pfn(phys)))

Definition at line 73 of file memory.h.

#define TASK_SIZE   (PAGE_OFFSET - UL(0x41000000))

Definition at line 34 of file memory.h.

#define TASK_UNMAPPED_BASE   (PAGE_OFFSET / 3)

Definition at line 35 of file memory.h.

#define UL (   x)    _AC(x, UL)

Definition at line 26 of file memory.h.

#define virt_addr_valid (   kaddr)
Value:
((unsigned long)(kaddr) >= PAGE_OFFSET && \
(unsigned long)(kaddr) < (unsigned long)high_memory)

Definition at line 116 of file memory.h.

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

Definition at line 115 of file memory.h.