iPXE
Data Structures | Macros | Typedefs | Functions
event_channel.h File Reference
#include "xen.h"

Go to the source code of this file.

Data Structures

struct  evtchn_alloc_unbound
 
struct  evtchn_bind_interdomain
 
struct  evtchn_bind_virq
 
struct  evtchn_bind_pirq
 
struct  evtchn_bind_ipi
 
struct  evtchn_close
 
struct  evtchn_send
 
struct  evtchn_status
 
struct  evtchn_bind_vcpu
 
struct  evtchn_unmask
 
struct  evtchn_reset
 
struct  evtchn_init_control
 
struct  evtchn_expand_array
 
struct  evtchn_set_priority
 
struct  evtchn_op
 
struct  evtchn_fifo_control_block
 

Macros

#define EVTCHNOP_bind_interdomain   0
 
#define EVTCHNOP_bind_virq   1
 
#define EVTCHNOP_bind_pirq   2
 
#define EVTCHNOP_close   3
 
#define EVTCHNOP_send   4
 
#define EVTCHNOP_status   5
 
#define EVTCHNOP_alloc_unbound   6
 
#define EVTCHNOP_bind_ipi   7
 
#define EVTCHNOP_bind_vcpu   8
 
#define EVTCHNOP_unmask   9
 
#define EVTCHNOP_reset   10
 
#define EVTCHNOP_init_control   11
 
#define EVTCHNOP_expand_array   12
 
#define EVTCHNOP_set_priority   13
 
#define BIND_PIRQ__WILL_SHARE   1
 
#define EVTCHNSTAT_closed   0 /* Channel is not in use. */
 
#define EVTCHNSTAT_unbound   1 /* Channel is waiting interdom connection.*/
 
#define EVTCHNSTAT_interdomain   2 /* Channel is connected to remote domain. */
 
#define EVTCHNSTAT_pirq   3 /* Channel is bound to a phys IRQ line. */
 
#define EVTCHNSTAT_virq   4 /* Channel is bound to a virtual IRQ line */
 
#define EVTCHNSTAT_ipi   5 /* Channel is bound to a virtual IPI line */
 
#define EVTCHN_2L_NR_CHANNELS   (sizeof(xen_ulong_t) * sizeof(xen_ulong_t) * 64)
 
#define EVTCHN_FIFO_PRIORITY_MAX   0
 
#define EVTCHN_FIFO_PRIORITY_DEFAULT   7
 
#define EVTCHN_FIFO_PRIORITY_MIN   15
 
#define EVTCHN_FIFO_MAX_QUEUES   (EVTCHN_FIFO_PRIORITY_MIN + 1)
 
#define EVTCHN_FIFO_PENDING   31
 
#define EVTCHN_FIFO_MASKED   30
 
#define EVTCHN_FIFO_LINKED   29
 
#define EVTCHN_FIFO_BUSY   28
 
#define EVTCHN_FIFO_LINK_BITS   17
 
#define EVTCHN_FIFO_LINK_MASK   ((1 << EVTCHN_FIFO_LINK_BITS) - 1)
 
#define EVTCHN_FIFO_NR_CHANNELS   (1 << EVTCHN_FIFO_LINK_BITS)
 

Typedefs

typedef uint32_t evtchn_port_t
 
typedef struct evtchn_alloc_unbound evtchn_alloc_unbound_t
 
typedef struct evtchn_bind_interdomain evtchn_bind_interdomain_t
 
typedef struct evtchn_bind_virq evtchn_bind_virq_t
 
typedef struct evtchn_bind_pirq evtchn_bind_pirq_t
 
typedef struct evtchn_bind_ipi evtchn_bind_ipi_t
 
typedef struct evtchn_close evtchn_close_t
 
typedef struct evtchn_send evtchn_send_t
 
typedef struct evtchn_status evtchn_status_t
 
typedef struct evtchn_bind_vcpu evtchn_bind_vcpu_t
 
typedef struct evtchn_unmask evtchn_unmask_t
 
typedef struct evtchn_reset evtchn_reset_t
 
typedef struct evtchn_init_control evtchn_init_control_t
 
typedef struct evtchn_expand_array evtchn_expand_array_t
 
typedef struct evtchn_set_priority evtchn_set_priority_t
 
typedef struct evtchn_op evtchn_op_t
 
typedef uint32_t event_word_t
 
typedef struct evtchn_fifo_control_block evtchn_fifo_control_block_t
 

Functions

 FILE_LICENCE (MIT)
 
 DEFINE_XEN_GUEST_HANDLE (evtchn_port_t)
 
 DEFINE_XEN_GUEST_HANDLE (evtchn_op_t)
 

Macro Definition Documentation

◆ EVTCHNOP_bind_interdomain

#define EVTCHNOP_bind_interdomain   0

Definition at line 65 of file event_channel.h.

◆ EVTCHNOP_bind_virq

#define EVTCHNOP_bind_virq   1

Definition at line 66 of file event_channel.h.

◆ EVTCHNOP_bind_pirq

#define EVTCHNOP_bind_pirq   2

Definition at line 67 of file event_channel.h.

◆ EVTCHNOP_close

#define EVTCHNOP_close   3

Definition at line 68 of file event_channel.h.

◆ EVTCHNOP_send

#define EVTCHNOP_send   4

Definition at line 69 of file event_channel.h.

◆ EVTCHNOP_status

#define EVTCHNOP_status   5

Definition at line 70 of file event_channel.h.

◆ EVTCHNOP_alloc_unbound

#define EVTCHNOP_alloc_unbound   6

Definition at line 71 of file event_channel.h.

◆ EVTCHNOP_bind_ipi

#define EVTCHNOP_bind_ipi   7

Definition at line 72 of file event_channel.h.

◆ EVTCHNOP_bind_vcpu

#define EVTCHNOP_bind_vcpu   8

Definition at line 73 of file event_channel.h.

◆ EVTCHNOP_unmask

#define EVTCHNOP_unmask   9

Definition at line 74 of file event_channel.h.

◆ EVTCHNOP_reset

#define EVTCHNOP_reset   10

Definition at line 75 of file event_channel.h.

◆ EVTCHNOP_init_control

#define EVTCHNOP_init_control   11

Definition at line 76 of file event_channel.h.

◆ EVTCHNOP_expand_array

#define EVTCHNOP_expand_array   12

Definition at line 77 of file event_channel.h.

◆ EVTCHNOP_set_priority

#define EVTCHNOP_set_priority   13

Definition at line 78 of file event_channel.h.

◆ BIND_PIRQ__WILL_SHARE

#define BIND_PIRQ__WILL_SHARE   1

Definition at line 159 of file event_channel.h.

◆ EVTCHNSTAT_closed

#define EVTCHNSTAT_closed   0 /* Channel is not in use. */

Definition at line 213 of file event_channel.h.

◆ EVTCHNSTAT_unbound

#define EVTCHNSTAT_unbound   1 /* Channel is waiting interdom connection.*/

Definition at line 214 of file event_channel.h.

◆ EVTCHNSTAT_interdomain

#define EVTCHNSTAT_interdomain   2 /* Channel is connected to remote domain. */

Definition at line 215 of file event_channel.h.

◆ EVTCHNSTAT_pirq

#define EVTCHNSTAT_pirq   3 /* Channel is bound to a phys IRQ line. */

Definition at line 216 of file event_channel.h.

◆ EVTCHNSTAT_virq

#define EVTCHNSTAT_virq   4 /* Channel is bound to a virtual IRQ line */

Definition at line 217 of file event_channel.h.

◆ EVTCHNSTAT_ipi

#define EVTCHNSTAT_ipi   5 /* Channel is bound to a virtual IPI line */

Definition at line 218 of file event_channel.h.

◆ EVTCHN_2L_NR_CHANNELS

#define EVTCHN_2L_NR_CHANNELS   (sizeof(xen_ulong_t) * sizeof(xen_ulong_t) * 64)

Definition at line 341 of file event_channel.h.

◆ EVTCHN_FIFO_PRIORITY_MAX

#define EVTCHN_FIFO_PRIORITY_MAX   0

Definition at line 348 of file event_channel.h.

◆ EVTCHN_FIFO_PRIORITY_DEFAULT

#define EVTCHN_FIFO_PRIORITY_DEFAULT   7

Definition at line 349 of file event_channel.h.

◆ EVTCHN_FIFO_PRIORITY_MIN

#define EVTCHN_FIFO_PRIORITY_MIN   15

Definition at line 350 of file event_channel.h.

◆ EVTCHN_FIFO_MAX_QUEUES

#define EVTCHN_FIFO_MAX_QUEUES   (EVTCHN_FIFO_PRIORITY_MIN + 1)

Definition at line 352 of file event_channel.h.

◆ EVTCHN_FIFO_PENDING

#define EVTCHN_FIFO_PENDING   31

Definition at line 356 of file event_channel.h.

◆ EVTCHN_FIFO_MASKED

#define EVTCHN_FIFO_MASKED   30

Definition at line 357 of file event_channel.h.

◆ EVTCHN_FIFO_LINKED

#define EVTCHN_FIFO_LINKED   29

Definition at line 358 of file event_channel.h.

◆ EVTCHN_FIFO_BUSY

#define EVTCHN_FIFO_BUSY   28

Definition at line 359 of file event_channel.h.

◆ EVTCHN_FIFO_LINK_BITS

#define EVTCHN_FIFO_LINK_BITS   17

Definition at line 361 of file event_channel.h.

◆ EVTCHN_FIFO_LINK_MASK

#define EVTCHN_FIFO_LINK_MASK   ((1 << EVTCHN_FIFO_LINK_BITS) - 1)

Definition at line 362 of file event_channel.h.

◆ EVTCHN_FIFO_NR_CHANNELS

#define EVTCHN_FIFO_NR_CHANNELS   (1 << EVTCHN_FIFO_LINK_BITS)

Definition at line 364 of file event_channel.h.

Typedef Documentation

◆ evtchn_port_t

Definition at line 81 of file event_channel.h.

◆ evtchn_alloc_unbound_t

Definition at line 98 of file event_channel.h.

◆ evtchn_bind_interdomain_t

Definition at line 127 of file event_channel.h.

◆ evtchn_bind_virq_t

Definition at line 148 of file event_channel.h.

◆ evtchn_bind_pirq_t

Definition at line 164 of file event_channel.h.

◆ evtchn_bind_ipi_t

Definition at line 177 of file event_channel.h.

◆ evtchn_close_t

typedef struct evtchn_close evtchn_close_t

Definition at line 188 of file event_channel.h.

◆ evtchn_send_t

typedef struct evtchn_send evtchn_send_t

Definition at line 198 of file event_channel.h.

◆ evtchn_status_t

Definition at line 233 of file event_channel.h.

◆ evtchn_bind_vcpu_t

Definition at line 252 of file event_channel.h.

◆ evtchn_unmask_t

Definition at line 262 of file event_channel.h.

◆ evtchn_reset_t

typedef struct evtchn_reset evtchn_reset_t

Definition at line 274 of file event_channel.h.

◆ evtchn_init_control_t

Definition at line 292 of file event_channel.h.

◆ evtchn_expand_array_t

Definition at line 301 of file event_channel.h.

◆ evtchn_set_priority_t

Definition at line 311 of file event_channel.h.

◆ evtchn_op_t

typedef struct evtchn_op evtchn_op_t

Definition at line 334 of file event_channel.h.

◆ event_word_t

Definition at line 354 of file event_channel.h.

◆ evtchn_fifo_control_block_t

Definition at line 371 of file event_channel.h.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( MIT  )

◆ DEFINE_XEN_GUEST_HANDLE() [1/2]

DEFINE_XEN_GUEST_HANDLE ( evtchn_port_t  )

◆ DEFINE_XEN_GUEST_HANDLE() [2/2]

DEFINE_XEN_GUEST_HANDLE ( evtchn_op_t  )