Linux Kernel
3.7.1
|
#include <linux/compiler.h>
#include <linux/const.h>
#include <linux/types.h>
#include <linux/sizes.h>
#include <asm-generic/memory_model.h>
Go to the source code of this file.
#define __bus_to_pfn | ( | x | ) | __phys_to_pfn(x) |
#define __bus_to_virt __phys_to_virt |
#define __pfn_to_bus | ( | x | ) | __pfn_to_phys(x) |
#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 | ) | ((x) - PHYS_OFFSET + PAGE_OFFSET) |
#define __va | ( | x | ) | ((void *)__phys_to_virt((unsigned long)(x))) |
#define __virt_to_bus __virt_to_phys |
#define __virt_to_phys | ( | x | ) | ((x) - PAGE_OFFSET + PHYS_OFFSET) |
#define ARCH_PFN_OFFSET PHYS_PFN_OFFSET |
#define MODULES_VADDR (PHYS_OFFSET) |
#define PAGE_OFFSET (PHYS_OFFSET) |
#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 virt_addr_valid | ( | kaddr | ) | ((unsigned long)(kaddr) >= PAGE_OFFSET && (unsigned long)(kaddr) < (unsigned long)high_memory) |
#define virt_to_page | ( | kaddr | ) | pfn_to_page(__pa(kaddr) >> PAGE_SHIFT) |