Add close_range(2) support
[valgrind.git] / include / vki / vki-xen-evtchn.h
bloba68292f5554b425ae374a054dbd7636ba47e40ed
1 /*
2 This file is part of Valgrind, a dynamic binary instrumentation
3 framework.
5 Copyright (C) 2012-2017 Citrix
7 This program is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License as
9 published by the Free Software Foundation; either version 2 of the
10 License, or (at your option) any later version.
12 This program is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, see <http://www.gnu.org/licenses/>.
20 The GNU General Public License is contained in the file COPYING.
23 /* Contributed by Andrew Cooper <andrew.cooper3@citrix.com>
24 and Ian Campbell <ian.campbell@citrix.com> */
26 #ifndef __VKI_XEN_EVTCHN_H
27 #define __VKI_XEN_EVTCHN_H
29 #define VKI_XEN_EVTCHNOP_bind_interdomain 0
30 #define VKI_XEN_EVTCHNOP_bind_virq 1
31 #define VKI_XEN_EVTCHNOP_bind_pirq 2
32 #define VKI_XEN_EVTCHNOP_close 3
33 #define VKI_XEN_EVTCHNOP_send 4
34 #define VKI_XEN_EVTCHNOP_status 5
35 #define VKI_XEN_EVTCHNOP_alloc_unbound 6
36 #define VKI_XEN_EVTCHNOP_bind_ipi 7
37 #define VKI_XEN_EVTCHNOP_bind_vcpu 8
38 #define VKI_XEN_EVTCHNOP_unmask 9
39 #define VKI_XEN_EVTCHNOP_reset 10
41 typedef vki_uint32_t vki_xen_evtchn_port_t;
42 DEFINE_VKI_XEN_GUEST_HANDLE(vki_xen_evtchn_port_t);
44 struct vki_xen_evtchn_alloc_unbound {
45 /* IN parameters */
46 vki_xen_domid_t dom, remote_dom;
47 /* OUT parameters */
48 vki_xen_evtchn_port_t port;
51 struct vki_xen_evtchn_op {
52 vki_uint32_t cmd; /* enum event_channel_op */
53 union {
54 struct vki_xen_evtchn_alloc_unbound alloc_unbound;
55 //struct vki_xen_evtchn_bind_interdomain bind_interdomain;
56 //struct vki_xen_evtchn_bind_virq bind_virq;
57 //struct vki_xen_evtchn_bind_pirq bind_pirq;
58 //struct vki_xen_evtchn_bind_ipi bind_ipi;
59 //struct vki_xen_evtchn_close close;
60 //struct vki_xen_evtchn_send send;
61 //struct vki_xen_evtchn_status status;
62 //struct vki_xen_evtchn_bind_vcpu bind_vcpu;
63 //struct vki_xen_evtchn_unmask unmask;
64 } u;
67 #endif // __VKI_XEN_EVTCHN_H
69 /*--------------------------------------------------------------------*/
70 /*--- end ---*/
71 /*--------------------------------------------------------------------*/