Xen Test Framework
event_channel.h
Go to the documentation of this file.
1#ifndef XEN_PUBLIC_EVENT_CHANNEL_H
2#define XEN_PUBLIC_EVENT_CHANNEL_H
3
4#include <xen/xen.h>
5
6#define EVTCHNOP_close 3
7#define EVTCHNOP_send 4
8#define EVTCHNOP_status 5
9#define EVTCHNOP_alloc_unbound 6
10#define EVTCHNOP_init_control 11
11#define EVTCHNOP_expand_array 12
12
14
16 /* IN parameters */
20 /* OUT parameters */
21#define EVTCHN_STATUS_closed 0 /* Not in use */
22#define EVTCHN_STATUS_unbound 1 /* Waiting for connection */
23#define EVTCHN_STATUS_interdomain 2 /* Connected to remote domain */
24#define EVTCHN_STATUS_pirq 3 /* Connected to a physical IRQ */
25#define EVTCHN_STATUS_virq 4 /* Connected to a virtual IRQ */
26#define EVTCHN_STATUS_ipi 5 /* Connected to a virtual IPI */
29 union {
30 struct {
32 } unbound; /* EVTCHN_STATUS_unbound */
33 struct {
36 } interdomain; /* EVTCHN_STATUS_interdomain */
37 uint32_t pirq; /* EVTCHN_STATUS_pirq */
38 uint32_t virq; /* EVTCHN_STATUS_virq */
39 };
40};
41
43 /* IN parameters. */
45 /* OUT parameters. */
47};
48
50 /* IN parameters. */
54 /* OUT parameters. */
57};
58
60 /* IN parameters. */
62};
63
64#endif /* XEN_PUBLIC_EVENT_CHANNEL_H */
65
66/*
67 * Local variables:
68 * mode: C
69 * c-file-style: "BSD"
70 * c-basic-offset: 4
71 * tab-width: 4
72 * indent-tabs-mode: nil
73 * End:
74 */
uint32_t evtchn_port_t
Definition: event_channel.h:13
__UINT32_TYPE__ uint32_t
Definition: stdint.h:16
__UINT64_TYPE__ uint64_t
Definition: stdint.h:17
__UINT8_TYPE__ uint8_t
Definition: stdint.h:14
__UINT16_TYPE__ uint16_t
Definition: stdint.h:15
evtchn_port_t port
Definition: event_channel.h:46
uint32_t pirq
Definition: event_channel.h:37
evtchn_port_t port
Definition: event_channel.h:19
struct evtchn_status::@41::@44 interdomain
uint32_t vcpu
Definition: event_channel.h:28
uint32_t virq
Definition: event_channel.h:38
uint16_t _pad0
Definition: event_channel.h:18
uint32_t status
Definition: event_channel.h:27
struct evtchn_status::@41::@43 unbound
uint16_t domid_t
Definition: xen.h:66