|
Linux Kernel
3.7.1
|
#include <asm/page.h>#include <asm/pgtable.h>#include <linux/pfn.h>#include <linux/types.h>#include <xen/interface/grant_table.h>Go to the source code of this file.
Data Structures | |
| struct | xmaddr |
| struct | xpaddr |
Macros | |
| #define | pfn_to_mfn(pfn) (pfn) |
| #define | phys_to_machine_mapping_valid(pfn) (1) |
| #define | mfn_to_pfn(mfn) (mfn) |
| #define | mfn_to_virt(m) (__va(mfn_to_pfn(m) << PAGE_SHIFT)) |
| #define | pte_mfn pte_pfn |
| #define | mfn_pte pfn_pte |
| #define | XMADDR(x) ((xmaddr_t) { .maddr = (x) }) |
| #define | XPADDR(x) ((xpaddr_t) { .paddr = (x) }) |
| #define | INVALID_P2M_ENTRY (~0UL) |
| #define | virt_to_machine(v) (phys_to_machine(XPADDR(__pa(v)))) |
| #define | virt_to_pfn(v) (PFN_DOWN(__pa(v))) |
| #define | virt_to_mfn(v) (pfn_to_mfn(virt_to_pfn(v))) |
| #define | mfn_to_virt(m) (__va(mfn_to_pfn(m) << PAGE_SHIFT)) |
Typedefs | |
| typedef struct xmaddr | xmaddr_t |
| typedef struct xpaddr | xpaddr_t |
| #define mfn_to_virt | ( | m | ) | (__va(mfn_to_pfn(m) << PAGE_SHIFT)) |
| #define mfn_to_virt | ( | m | ) | (__va(mfn_to_pfn(m) << PAGE_SHIFT)) |
| #define virt_to_mfn | ( | v | ) | (pfn_to_mfn(virt_to_pfn(v))) |
1.8.2