Zephyr API Documentation 4.0.0-rc2
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
generic.h File Reference

Go to the source code of this file.

Macros

#define XEN_PAGE_SIZE   4096
 
#define XEN_PAGE_SHIFT   12
 
#define XEN_PFN_UP(x)
 
#define XEN_PFN_DOWN(x)
 
#define XEN_PFN_PHYS(x)
 
#define XEN_PHYS_PFN(x)
 
#define xen_to_phys(x)
 
#define xen_to_virt(x)
 
#define xen_virt_to_gfn(_virt)
 
#define xen_gfn_to_virt(_gfn)
 
#define synch_cmpxchg(ptr, old, new)
 

Macro Definition Documentation

◆ synch_cmpxchg

#define synch_cmpxchg ( ptr,
old,
new )
Value:
({ __typeof__(*ptr) stored = old; \
__atomic_compare_exchange_n(ptr, &stored, new, 0, __ATOMIC_SEQ_CST, \
__ATOMIC_SEQ_CST) ? new : old; \
})

◆ xen_gfn_to_virt

#define xen_gfn_to_virt ( _gfn)
Value:
#define xen_to_virt(x)
Definition generic.h:20
#define XEN_PFN_PHYS(x)
Definition generic.h:16

◆ XEN_PAGE_SHIFT

#define XEN_PAGE_SHIFT   12

◆ XEN_PAGE_SIZE

#define XEN_PAGE_SIZE   4096

◆ XEN_PFN_DOWN

#define XEN_PFN_DOWN ( x)
Value:
(unsigned long)((x) >> XEN_PAGE_SHIFT)
#define XEN_PAGE_SHIFT
Definition generic.h:12

◆ XEN_PFN_PHYS

#define XEN_PFN_PHYS ( x)
Value:
((unsigned long)(x) << XEN_PAGE_SHIFT)

◆ XEN_PFN_UP

#define XEN_PFN_UP ( x)
Value:
(unsigned long)(((x) + XEN_PAGE_SIZE-1) >> XEN_PAGE_SHIFT)
#define XEN_PAGE_SIZE
Definition generic.h:11

◆ XEN_PHYS_PFN

#define XEN_PHYS_PFN ( x)
Value:
(unsigned long)((x) >> XEN_PAGE_SHIFT)

◆ xen_to_phys

#define xen_to_phys ( x)
Value:
((unsigned long) (x))

◆ xen_to_virt

#define xen_to_virt ( x)
Value:
((void *) (x))

◆ xen_virt_to_gfn

#define xen_virt_to_gfn ( _virt)
Value:
#define xen_to_phys(x)
Definition generic.h:19
#define XEN_PFN_DOWN(x)
Definition generic.h:15