OvmfPkg[all]  0.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
xen.h File Reference

Data Structures

struct  vcpu_guest_core_regs
 
struct  arch_vcpu_info
 
struct  arch_shared_info
 

Macros

#define XEN_HYPERCALL_TAG   0xEA1
 
#define uint64_aligned_t   UINT64 __attribute__((aligned(8)))
 
#define ___DEFINE_XEN_GUEST_HANDLE(name, type)
 
#define __DEFINE_XEN_GUEST_HANDLE(name, type)
 
#define DEFINE_XEN_GUEST_HANDLE(name)   __DEFINE_XEN_GUEST_HANDLE(name, name)
 
#define __XEN_GUEST_HANDLE(name)   __guest_handle_64_ ## name
 
#define XEN_GUEST_HANDLE(name)   __XEN_GUEST_HANDLE(name)
 
#define XEN_GUEST_HANDLE_PARAM(name)   __guest_handle_ ## name
 
#define set_xen_guest_handle_raw(hnd, val)
 
#define set_xen_guest_handle(hnd, val)   set_xen_guest_handle_raw(hnd, val)
 
#define __DECL_REG(n64, n32)
 
#define PRI_xen_pfn   PRIx64
 
#define XEN_LEGACY_MAX_VCPUS   1
 
#define PRI_xen_ulong   PRIx64
 

Typedefs

typedef struct vcpu_guest_core_regs vcpu_guest_core_regs_t
 
typedef UINT64 xen_pfn_t
 
typedef UINT64 xen_ulong_t
 
typedef struct arch_vcpu_info arch_vcpu_info_t
 
typedef struct arch_shared_info arch_shared_info_t
 
typedef UINT64 xen_callback_t
 

Functions

 DEFINE_XEN_GUEST_HANDLE (vcpu_guest_core_regs_t)
 

Macro Definition Documentation

#define ___DEFINE_XEN_GUEST_HANDLE (   name,
  type 
)
Value:
typedef union { type *p; unsigned long q; } \
__guest_handle_ ## name; \
typedef union { type *p; uint64_aligned_t q; } \
__guest_handle_64_ ## name;
#define uint64_aligned_t
Definition: xen.h:157
#define __DECL_REG (   n64,
  n32 
)
Value:
union { \
UINT64 n64; \
UINT32 n32; \
}
typedef UINT32(EFIAPI *XENBUS_EVENT_CHANNEL_ALLOCATE)(IN XENBUS_PROTOCOL *This
#define __DEFINE_XEN_GUEST_HANDLE (   name,
  type 
)
Value:
___DEFINE_XEN_GUEST_HANDLE(const_##name, const type)
#define ___DEFINE_XEN_GUEST_HANDLE(name, type)
Definition: xen.h:160
#define __XEN_GUEST_HANDLE (   name)    __guest_handle_64_ ## name
#define DEFINE_XEN_GUEST_HANDLE (   name)    __DEFINE_XEN_GUEST_HANDLE(name, name)
#define PRI_xen_pfn   PRIx64
#define PRI_xen_ulong   PRIx64
#define set_xen_guest_handle (   hnd,
  val 
)    set_xen_guest_handle_raw(hnd, val)
#define set_xen_guest_handle_raw (   hnd,
  val 
)
Value:
do { \
typeof(&(hnd)) _sxghr_tmp = &(hnd); \
_sxghr_tmp->q = 0; \
_sxghr_tmp->p = val; \
} while ( 0 )
#define uint64_aligned_t   UINT64 __attribute__((aligned(8)))
#define XEN_GUEST_HANDLE (   name)    __XEN_GUEST_HANDLE(name)
#define XEN_GUEST_HANDLE_PARAM (   name)    __guest_handle_ ## name
#define XEN_HYPERCALL_TAG   0xEA1
#define XEN_LEGACY_MAX_VCPUS   1

Typedef Documentation

typedef UINT64 xen_callback_t
typedef UINT64 xen_pfn_t
typedef UINT64 xen_ulong_t

Function Documentation

DEFINE_XEN_GUEST_HANDLE ( vcpu_guest_core_regs_t  )