|
Linux Kernel
3.7.1
|
#include <linux/compiler.h>#include <linux/const.h>#include <linux/types.h>#include <asm/sizes.h>#include <asm-generic/memory_model.h>Go to the source code of this file.
Variables | |
| phys_addr_t | memstart_addr |
| #define __pfn_to_phys | ( | pfn | ) | ((phys_addr_t)(pfn) << PAGE_SHIFT) |
| #define __phys_to_pfn | ( | paddr | ) | ((unsigned long)((paddr) >> PAGE_SHIFT)) |
| #define __phys_to_virt | ( | x | ) | ((unsigned long)((x) - PHYS_OFFSET + PAGE_OFFSET)) |
| #define __va | ( | x | ) | ((void *)__phys_to_virt((phys_addr_t)(x))) |
| #define __virt_to_phys | ( | x | ) | (((phys_addr_t)(x) - PAGE_OFFSET + PHYS_OFFSET)) |
| #define ARCH_PFN_OFFSET PHYS_PFN_OFFSET |
| #define MODULES_END (PAGE_OFFSET) |
| #define MODULES_VADDR (MODULES_END - SZ_64M) |
| #define page_to_phys | ( | page | ) | (__pfn_to_phys(page_to_pfn(page))) |
| #define pfn_to_kaddr | ( | pfn | ) | __va((pfn) << PAGE_SHIFT) |
| #define PHYS_OFFSET ({ memstart_addr; }) |
| #define PHYS_PFN_OFFSET (PHYS_OFFSET >> PAGE_SHIFT) |
| #define phys_to_page | ( | phys | ) | (pfn_to_page(__phys_to_pfn(phys))) |
| #define TASK_SIZE TASK_SIZE_64 |
| #define TASK_UNMAPPED_BASE (PAGE_ALIGN(TASK_SIZE / 4)) |
| #define virt_addr_valid | ( | kaddr | ) |
| #define virt_to_page | ( | kaddr | ) | pfn_to_page(__pa(kaddr) >> PAGE_SHIFT) |
| phys_addr_t memstart_addr |
1.8.2