2 This file is part of Valgrind, a dynamic binary instrumentation
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
{
46 vki_xen_domid_t dom
, remote_dom
;
48 vki_xen_evtchn_port_t port
;
51 struct vki_xen_evtchn_op
{
52 vki_uint32_t cmd
; /* enum event_channel_op */
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;
67 #endif // __VKI_XEN_EVTCHN_H
69 /*--------------------------------------------------------------------*/
71 /*--------------------------------------------------------------------*/