Zephyr API Documentation
3.6.99
A Scalable Open Source RTOS
|
#include <zephyr/xen/public/xen.h>
Go to the source code of this file.
Macros | |
#define | XEN_PAGE_SIZE 4096 |
#define | XEN_PAGE_SHIFT 12 |
#define | XEN_PFN_UP(x) (unsigned long)(((x) + XEN_PAGE_SIZE-1) >> XEN_PAGE_SHIFT) |
#define | XEN_PFN_DOWN(x) (unsigned long)((x) >> XEN_PAGE_SHIFT) |
#define | XEN_PFN_PHYS(x) ((unsigned long)(x) << XEN_PAGE_SHIFT) |
#define | XEN_PHYS_PFN(x) (unsigned long)((x) >> XEN_PAGE_SHIFT) |
#define | xen_to_phys(x) ((unsigned long) (x)) |
#define | xen_to_virt(x) ((void *) (x)) |
#define | xen_virt_to_gfn(_virt) (XEN_PFN_DOWN(xen_to_phys(_virt))) |
#define | xen_gfn_to_virt(_gfn) (xen_to_virt(XEN_PFN_PHYS(_gfn))) |
#define | synch_cmpxchg(ptr, old, new) |
#define synch_cmpxchg | ( | ptr, | |
old, | |||
new | |||
) |
#define xen_gfn_to_virt | ( | _gfn | ) | (xen_to_virt(XEN_PFN_PHYS(_gfn))) |
#define XEN_PAGE_SHIFT 12 |
#define XEN_PAGE_SIZE 4096 |
#define XEN_PFN_DOWN | ( | x | ) | (unsigned long)((x) >> XEN_PAGE_SHIFT) |
#define XEN_PFN_PHYS | ( | x | ) | ((unsigned long)(x) << XEN_PAGE_SHIFT) |
#define XEN_PFN_UP | ( | x | ) | (unsigned long)(((x) + XEN_PAGE_SIZE-1) >> XEN_PAGE_SHIFT) |
#define XEN_PHYS_PFN | ( | x | ) | (unsigned long)((x) >> XEN_PAGE_SHIFT) |
#define xen_to_phys | ( | x | ) | ((unsigned long) (x)) |
#define xen_to_virt | ( | x | ) | ((void *) (x)) |
#define xen_virt_to_gfn | ( | _virt | ) | (XEN_PFN_DOWN(xen_to_phys(_virt))) |