Linux Kernel
3.7.1
|
#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.
#define __pfn_to_phys | ( | pfn | ) | ((pfn) << PAGE_SHIFT) |
#define __phys_to_pfn | ( | paddr | ) | ((paddr) >> PAGE_SHIFT) |
#define __phys_to_virt | ( | x | ) | ((x) - PHYS_OFFSET + PAGE_OFFSET) |
#define __va | ( | x | ) | ((void *)__phys_to_virt((unsigned long)(x))) |
#define __virt_to_phys | ( | x | ) | ((x) - PAGE_OFFSET + PHYS_OFFSET) |
#define ARCH_PFN_OFFSET PHYS_PFN_OFFSET |
#define MODULES_END (PAGE_OFFSET) |
#define MODULES_VADDR (PAGE_OFFSET - 16*1024*1024) |
#define page_to_phys | ( | page | ) | (__pfn_to_phys(page_to_pfn(page))) |
#define pfn_to_kaddr | ( | pfn | ) | __va((pfn) << PAGE_SHIFT) |
#define PHYS_PFN_OFFSET (PHYS_OFFSET >> PAGE_SHIFT) |
#define phys_to_page | ( | phys | ) | (pfn_to_page(__phys_to_pfn(phys))) |
#define TASK_SIZE (PAGE_OFFSET - UL(0x41000000)) |
#define TASK_UNMAPPED_BASE (PAGE_OFFSET / 3) |
#define virt_addr_valid | ( | kaddr | ) |
#define virt_to_page | ( | kaddr | ) | pfn_to_page(__pa(kaddr) >> PAGE_SHIFT) |