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

Data Structures

struct  vcpu_time_info
 
struct  vcpu_info
 
struct  shared_info
 

Macros

#define __XEN_INTERFACE_VERSION__   0x00040400
 
#define __HYPERVISOR_set_trap_table   0
 
#define __HYPERVISOR_mmu_update   1
 
#define __HYPERVISOR_set_gdt   2
 
#define __HYPERVISOR_stack_switch   3
 
#define __HYPERVISOR_set_callbacks   4
 
#define __HYPERVISOR_fpu_taskswitch   5
 
#define __HYPERVISOR_sched_op_compat   6 /* compat since 0x00030101 */
 
#define __HYPERVISOR_platform_op   7
 
#define __HYPERVISOR_set_debugreg   8
 
#define __HYPERVISOR_get_debugreg   9
 
#define __HYPERVISOR_update_descriptor   10
 
#define __HYPERVISOR_memory_op   12
 
#define __HYPERVISOR_multicall   13
 
#define __HYPERVISOR_update_va_mapping   14
 
#define __HYPERVISOR_set_timer_op   15
 
#define __HYPERVISOR_event_channel_op_compat   16 /* compat since 0x00030202 */
 
#define __HYPERVISOR_xen_version   17
 
#define __HYPERVISOR_console_io   18
 
#define __HYPERVISOR_physdev_op_compat   19 /* compat since 0x00030202 */
 
#define __HYPERVISOR_grant_table_op   20
 
#define __HYPERVISOR_vm_assist   21
 
#define __HYPERVISOR_update_va_mapping_otherdomain   22
 
#define __HYPERVISOR_iret   23 /* x86 only */
 
#define __HYPERVISOR_vcpu_op   24
 
#define __HYPERVISOR_set_segment_base   25 /* x86/64 only */
 
#define __HYPERVISOR_mmuext_op   26
 
#define __HYPERVISOR_xsm_op   27
 
#define __HYPERVISOR_nmi_op   28
 
#define __HYPERVISOR_sched_op   29
 
#define __HYPERVISOR_callback_op   30
 
#define __HYPERVISOR_xenoprof_op   31
 
#define __HYPERVISOR_event_channel_op   32
 
#define __HYPERVISOR_physdev_op   33
 
#define __HYPERVISOR_hvm_op   34
 
#define __HYPERVISOR_sysctl   35
 
#define __HYPERVISOR_domctl   36
 
#define __HYPERVISOR_kexec_op   37
 
#define __HYPERVISOR_tmem_op   38
 
#define __HYPERVISOR_xc_reserved_op   39 /* reserved for XenClient */
 
#define __HYPERVISOR_arch_0   48
 
#define __HYPERVISOR_arch_1   49
 
#define __HYPERVISOR_arch_2   50
 
#define __HYPERVISOR_arch_3   51
 
#define __HYPERVISOR_arch_4   52
 
#define __HYPERVISOR_arch_5   53
 
#define __HYPERVISOR_arch_6   54
 
#define __HYPERVISOR_arch_7   55
 
#define DOMID_FIRST_RESERVED   (0x7FF0U)
 
#define DOMID_SELF   (0x7FF0U)
 
#define DOMID_IO   (0x7FF1U)
 
#define DOMID_XEN   (0x7FF2U)
 
#define DOMID_COW   (0x7FF3U)
 
#define DOMID_INVALID   (0x7FF4U)
 
#define DOMID_IDLE   (0x7FFFU)
 
#define __mk_unsigned_long(x)   x ## UL
 
#define mk_unsigned_long(x)   __mk_unsigned_long(x)
 

Typedefs

typedef UINT16 domid_t
 
typedef struct vcpu_time_info XEN_VCPU_TIME_INFO
 
typedef struct vcpu_info vcpu_info_t
 
typedef struct shared_info shared_info_t
 
typedef struct shared_info XEN_SHARED_INFO
 

Functions

 DEFINE_XEN_GUEST_HANDLE (CHAR8)
 
 __DEFINE_XEN_GUEST_HANDLE (uchar, UINT8)
 
 DEFINE_XEN_GUEST_HANDLE (INT32)
 
 __DEFINE_XEN_GUEST_HANDLE (uint, UINT32)
 
 DEFINE_XEN_GUEST_HANDLE (VOID)
 
 DEFINE_XEN_GUEST_HANDLE (UINT64)
 
 DEFINE_XEN_GUEST_HANDLE (xen_pfn_t)
 
 __DEFINE_XEN_GUEST_HANDLE (uint8, UINT8)
 
 __DEFINE_XEN_GUEST_HANDLE (uint16, UINT16)
 
 __DEFINE_XEN_GUEST_HANDLE (uint32, UINT32)
 
 __DEFINE_XEN_GUEST_HANDLE (uint64, UINT64)
 

Macro Definition Documentation

#define __HYPERVISOR_arch_0   48
#define __HYPERVISOR_arch_1   49
#define __HYPERVISOR_arch_2   50
#define __HYPERVISOR_arch_3   51
#define __HYPERVISOR_arch_4   52
#define __HYPERVISOR_arch_5   53
#define __HYPERVISOR_arch_6   54
#define __HYPERVISOR_arch_7   55
#define __HYPERVISOR_callback_op   30
#define __HYPERVISOR_console_io   18
#define __HYPERVISOR_domctl   36
#define __HYPERVISOR_event_channel_op   32
#define __HYPERVISOR_event_channel_op_compat   16 /* compat since 0x00030202 */
#define __HYPERVISOR_fpu_taskswitch   5
#define __HYPERVISOR_get_debugreg   9
#define __HYPERVISOR_grant_table_op   20
#define __HYPERVISOR_hvm_op   34
#define __HYPERVISOR_iret   23 /* x86 only */
#define __HYPERVISOR_kexec_op   37
#define __HYPERVISOR_memory_op   12
#define __HYPERVISOR_mmu_update   1
#define __HYPERVISOR_mmuext_op   26
#define __HYPERVISOR_multicall   13
#define __HYPERVISOR_nmi_op   28
#define __HYPERVISOR_physdev_op   33
#define __HYPERVISOR_physdev_op_compat   19 /* compat since 0x00030202 */
#define __HYPERVISOR_platform_op   7
#define __HYPERVISOR_sched_op   29
#define __HYPERVISOR_sched_op_compat   6 /* compat since 0x00030101 */
#define __HYPERVISOR_set_callbacks   4
#define __HYPERVISOR_set_debugreg   8
#define __HYPERVISOR_set_gdt   2
#define __HYPERVISOR_set_segment_base   25 /* x86/64 only */
#define __HYPERVISOR_set_timer_op   15
#define __HYPERVISOR_set_trap_table   0
#define __HYPERVISOR_stack_switch   3
#define __HYPERVISOR_sysctl   35
#define __HYPERVISOR_tmem_op   38
#define __HYPERVISOR_update_descriptor   10
#define __HYPERVISOR_update_va_mapping   14
#define __HYPERVISOR_update_va_mapping_otherdomain   22
#define __HYPERVISOR_vcpu_op   24
#define __HYPERVISOR_vm_assist   21
#define __HYPERVISOR_xc_reserved_op   39 /* reserved for XenClient */
#define __HYPERVISOR_xen_version   17
#define __HYPERVISOR_xenoprof_op   31
#define __HYPERVISOR_xsm_op   27
#define __mk_unsigned_long (   x)    x ## UL
#define __XEN_INTERFACE_VERSION__   0x00040400
#define DOMID_COW   (0x7FF3U)
#define DOMID_FIRST_RESERVED   (0x7FF0U)
#define DOMID_IDLE   (0x7FFFU)
#define DOMID_INVALID   (0x7FF4U)
#define DOMID_IO   (0x7FF1U)
#define DOMID_SELF   (0x7FF0U)
#define DOMID_XEN   (0x7FF2U)
#define mk_unsigned_long (   x)    __mk_unsigned_long(x)

Typedef Documentation

typedef UINT16 domid_t
typedef struct shared_info shared_info_t
typedef struct vcpu_info vcpu_info_t
typedef struct shared_info XEN_SHARED_INFO

Function Documentation

__DEFINE_XEN_GUEST_HANDLE ( uchar  ,
UINT8   
)
__DEFINE_XEN_GUEST_HANDLE ( uint  ,
UINT32   
)
__DEFINE_XEN_GUEST_HANDLE ( uint8  ,
UINT8   
)
__DEFINE_XEN_GUEST_HANDLE ( uint16  ,
UINT16   
)
__DEFINE_XEN_GUEST_HANDLE ( uint32  ,
UINT32   
)
__DEFINE_XEN_GUEST_HANDLE ( uint64  ,
UINT64   
)
DEFINE_XEN_GUEST_HANDLE ( CHAR8  )
DEFINE_XEN_GUEST_HANDLE ( INT32  )
DEFINE_XEN_GUEST_HANDLE ( VOID  )
DEFINE_XEN_GUEST_HANDLE ( UINT64  )
DEFINE_XEN_GUEST_HANDLE ( xen_pfn_t  )