Linux Kernel
3.7.1
|
#include <linux/const.h>
#include <hv/hypervisor.h>
#include <arch/chip.h>
#include <linux/types.h>
#include <linux/string.h>
#include <asm-generic/memory_model.h>
Go to the source code of this file.
Typedefs | |
typedef HV_PTE | pte_t |
typedef HV_PTE | pgd_t |
typedef HV_PTE | pgprot_t |
typedef struct page * | pgtable_t |
Functions | |
int | devmem_is_allowed (unsigned long pagenr) |
pte_t * | virt_to_pte (struct mm_struct *mm, unsigned long addr) |
#define __pa | ( | kaddr | ) | virt_to_phys((void *)(unsigned long)(kaddr)) |
#define __pa_to_highbits | ( | pa | ) | ((phys_addr_t)(pa) >> NR_PA_HIGHBIT_SHIFT) |
#define __pfn_to_highbits | ( | pfn | ) | ((pfn) >> (NR_PA_HIGHBIT_SHIFT - PAGE_SHIFT)) |
#define __va | ( | paddr | ) | phys_to_virt((phys_addr_t)(paddr)) |
#define CONFIG_FORCE_MAX_ZONEORDER (HPAGE_SHIFT - PAGE_SHIFT + 1) |
#define FIXADDR_TOP (KERNEL_HIGH_VADDR - PAGE_SIZE) |
#define HPAGE_MASK (~(HPAGE_SIZE - 1)) |
#define HPAGE_SHIFT HV_LOG2_DEFAULT_PAGE_SIZE_LARGE |
#define HPAGE_SIZE (_AC(1, UL) << HPAGE_SHIFT) |
#define HUGETLB_PAGE_ORDER (HPAGE_SHIFT - PAGE_SHIFT) |
#define KERNEL_HIGH_VADDR MEM_USER_INTRPT |
#define MEM_MODULE_END VMALLOC_END |
#define MEM_MODULE_START VMALLOC_START |
#define NR_PA_HIGHBIT_SHIFT (CHIP_PA_WIDTH() - CHIP_LOG_NUM_MSHIMS()) |
#define NR_PA_HIGHBIT_VALUES (1 << CHIP_LOG_NUM_MSHIMS()) |
#define PAGE_SHIFT HV_LOG2_DEFAULT_PAGE_SIZE_SMALL |
#define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT) |
#define page_to_pa | ( | page | ) | ((phys_addr_t)(page_to_pfn(page)) << PAGE_SHIFT) |
#define page_to_virt | ( | page | ) | pfn_to_kaddr(page_to_pfn(page)) |
#define virt_addr_valid | ( | kaddr | ) | pfn_valid(kaddr_to_pfn(kaddr)) |
#define virt_to_page | ( | kaddr | ) | pfn_to_page(kaddr_to_pfn((void *)(kaddr))) |
#define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) |