vki-xen-evtchn.h 2.7 KB

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