iPXE
Data Structures | Macros | Typedefs | Functions
arch-arm.h File Reference

Go to the source code of this file.

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_t __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)   uint64_t n64
 
#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_t xen_pfn_t
 
typedef uint64_t xen_ulong_t
 
typedef struct arch_vcpu_info arch_vcpu_info_t
 
typedef struct arch_shared_info arch_shared_info_t
 
typedef uint64_t xen_callback_t
 

Functions

 FILE_LICENCE (MIT)
 
 DEFINE_XEN_GUEST_HANDLE (vcpu_guest_core_regs_t)
 

Macro Definition Documentation

◆ XEN_HYPERCALL_TAG

#define XEN_HYPERCALL_TAG   0XEA1

Definition at line 173 of file arch-arm.h.

◆ uint64_aligned_t

#define uint64_aligned_t   uint64_t __attribute__((aligned(8)))

Definition at line 175 of file arch-arm.h.

◆ ___DEFINE_XEN_GUEST_HANDLE

#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;
const char * name
Definition: ath9k_hw.c:1984
uint8_t type
Type.
Definition: ena.h:16
#define uint64_aligned_t
Definition: arch-arm.h:175

Definition at line 178 of file arch-arm.h.

◆ __DEFINE_XEN_GUEST_HANDLE

#define __DEFINE_XEN_GUEST_HANDLE (   name,
  type 
)
Value:
___DEFINE_XEN_GUEST_HANDLE(const_##name, const type)
const char * name
Definition: ath9k_hw.c:1984
uint8_t type
Type.
Definition: ena.h:16
#define ___DEFINE_XEN_GUEST_HANDLE(name, type)
Definition: arch-arm.h:178

Definition at line 191 of file arch-arm.h.

◆ DEFINE_XEN_GUEST_HANDLE

#define DEFINE_XEN_GUEST_HANDLE (   name)    __DEFINE_XEN_GUEST_HANDLE(name, name)

Definition at line 194 of file arch-arm.h.

◆ __XEN_GUEST_HANDLE

#define __XEN_GUEST_HANDLE (   name)    __guest_handle_64_ ## name

Definition at line 195 of file arch-arm.h.

◆ XEN_GUEST_HANDLE

#define XEN_GUEST_HANDLE (   name)    __XEN_GUEST_HANDLE(name)

Definition at line 196 of file arch-arm.h.

◆ XEN_GUEST_HANDLE_PARAM

#define XEN_GUEST_HANDLE_PARAM (   name)    __guest_handle_ ## name

Definition at line 198 of file arch-arm.h.

◆ set_xen_guest_handle_raw

#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 )
void __asmcall int val
Definition: setjmp.h:28

Definition at line 199 of file arch-arm.h.

◆ set_xen_guest_handle

#define set_xen_guest_handle (   hnd,
  val 
)    set_xen_guest_handle_raw(hnd, val)

Definition at line 208 of file arch-arm.h.

◆ __DECL_REG

#define __DECL_REG (   n64,
  n32 
)    uint64_t n64

Definition at line 218 of file arch-arm.h.

◆ PRI_xen_pfn

#define PRI_xen_pfn   PRIx64

Definition at line 286 of file arch-arm.h.

◆ XEN_LEGACY_MAX_VCPUS

#define XEN_LEGACY_MAX_VCPUS   1

Definition at line 290 of file arch-arm.h.

◆ PRI_xen_ulong

#define PRI_xen_ulong   PRIx64

Definition at line 293 of file arch-arm.h.

Typedef Documentation

◆ vcpu_guest_core_regs_t

Definition at line 280 of file arch-arm.h.

◆ xen_pfn_t

Definition at line 285 of file arch-arm.h.

◆ xen_ulong_t

Definition at line 292 of file arch-arm.h.

◆ arch_vcpu_info_t

Definition at line 312 of file arch-arm.h.

◆ arch_shared_info_t

Definition at line 316 of file arch-arm.h.

◆ xen_callback_t

Definition at line 317 of file arch-arm.h.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( MIT  )

◆ DEFINE_XEN_GUEST_HANDLE()

DEFINE_XEN_GUEST_HANDLE ( vcpu_guest_core_regs_t  )