Linux Kernel
3.7.1
|
#include <linux/const.h>
#include <asm/types.h>
#include <asm/cache.h>
#include <asm-generic/memory_model.h>
#include <asm-generic/getorder.h>
#include <asm/pdc.h>
Go to the source code of this file.
Data Structures | |
struct | pte_t |
struct | pmd_t |
struct | pgd_t |
struct | pgprot_t |
struct | __physmem_range |
Macros | |
#define | PAGE_SIZE (_AC(1,UL) << PAGE_SHIFT) |
#define | PAGE_MASK (~(PAGE_SIZE-1)) |
#define | clear_page(page) memset((void *)(page), 0, PAGE_SIZE) |
#define | copy_page(to, from) copy_user_page_asm((void *)(to), (void *)(from)) |
#define | STRICT_MM_TYPECHECKS |
#define | pte_val(x) ((x).pte) |
#define | pmd_val(x) ((x).pmd + 0) |
#define | pgd_val(x) ((x).pgd + 0) |
#define | pgprot_val(x) ((x).pgprot) |
#define | __pte(x) ((pte_t) { (x) } ) |
#define | __pmd(x) ((pmd_t) { (x) } ) |
#define | __pgd(x) ((pgd_t) { (x) } ) |
#define | __pgprot(x) ((pgprot_t) { (x) } ) |
#define | __pmd_val_set(x, n) (x).pmd = (n) |
#define | __pgd_val_set(x, n) (x).pgd = (n) |
#define | BITS_PER_PTE_ENTRY 2 |
#define | BITS_PER_PMD_ENTRY 2 |
#define | BITS_PER_PGD_ENTRY BITS_PER_PMD_ENTRY |
#define | PGD_ENTRY_SIZE (1UL << BITS_PER_PGD_ENTRY) |
#define | PMD_ENTRY_SIZE (1UL << BITS_PER_PMD_ENTRY) |
#define | PTE_ENTRY_SIZE (1UL << BITS_PER_PTE_ENTRY) |
#define | LINUX_GATEWAY_SPACE 0 |
#define | __PAGE_OFFSET (0x10000000) /* 256MB */ |
#define | PAGE_OFFSET ((unsigned long)__PAGE_OFFSET) |
#define | GATEWAY_PAGE_SIZE 0x4000 |
#define | KERNEL_BINARY_TEXT_START (__PAGE_OFFSET + 0x100000) |
#define | __pa(x) ((unsigned long)(x)-PAGE_OFFSET) |
#define | __va(x) ((void *)((unsigned long)(x)+PAGE_OFFSET)) |
#define | pfn_valid(pfn) ((pfn) < max_mapnr) |
#define | virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT) |
#define | page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT) |
#define | virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT) |
#define | VM_DATA_DEFAULT_FLAGS |
#define | PAGE0 ((struct zeropage *)__PAGE_OFFSET) |
Typedefs | |
typedef struct page * | pgtable_t |
typedef struct __physmem_range | physmem_range_t |
Functions | |
void | copy_user_page_asm (void *to, void *from) |
void | copy_user_page (void *vto, void *vfrom, unsigned long vaddr, struct page *pg) |
void | clear_user_page (void *page, unsigned long vaddr, struct page *pg) |
Variables | |
physmem_range_t | pmem_ranges [] |
int | npmem_ranges |
#define BITS_PER_PGD_ENTRY BITS_PER_PMD_ENTRY |
#define copy_page | ( | to, | |
from | |||
) | copy_user_page_asm((void *)(to), (void *)(from)) |
#define KERNEL_BINARY_TEXT_START (__PAGE_OFFSET + 0x100000) |
#define PAGE0 ((struct zeropage *)__PAGE_OFFSET) |
#define PAGE_OFFSET ((unsigned long)__PAGE_OFFSET) |
#define PAGE_SIZE (_AC(1,UL) << PAGE_SHIFT) |
#define page_to_phys | ( | page | ) | (page_to_pfn(page) << PAGE_SHIFT) |
#define virt_addr_valid | ( | kaddr | ) | pfn_valid(__pa(kaddr) >> PAGE_SHIFT) |
#define virt_to_page | ( | kaddr | ) | pfn_to_page(__pa(kaddr) >> PAGE_SHIFT) |
#define VM_DATA_DEFAULT_FLAGS |
typedef struct __physmem_range physmem_range_t |
int npmem_ranges |
physmem_range_t pmem_ranges |