vki-xen-gnttab.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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_GNTTAB_H
  22. #define __VKI_XEN_GNTTAB_H
  23. typedef vki_uint32_t vki_xen_grant_ref_t;
  24. #define VKI_XEN_GNTTABOP_map_grant_ref 0
  25. #define VKI_XEN_GNTTABOP_unmap_grant_ref 1
  26. #define VKI_XEN_GNTTABOP_setup_table 2
  27. #define VKI_XEN_GNTTABOP_dump_table 3
  28. #define VKI_XEN_GNTTABOP_transfer 4
  29. #define VKI_XEN_GNTTABOP_copy 5
  30. #define VKI_XEN_GNTTABOP_query_size 6
  31. #define VKI_XEN_GNTTABOP_unmap_and_replace 7
  32. #define VKI_XEN_GNTTABOP_set_version 8
  33. #define VKI_XEN_GNTTABOP_get_status_frames 9
  34. #define VKI_XEN_GNTTABOP_get_version 10
  35. #define VKI_XEN_GNTTABOP_swap_grant_ref 11
  36. struct vki_xen_gnttab_setup_table {
  37. /* IN parameters. */
  38. vki_xen_domid_t dom;
  39. vki_uint32_t nr_frames;
  40. /* OUT parameters. */
  41. vki_int16_t status; /* => enum grant_status */
  42. VKI_XEN_GUEST_HANDLE(vki_ulong) frame_list;
  43. };
  44. #endif // __VKI_XEN_GNTTAB_H
  45. /*--------------------------------------------------------------------*/
  46. /*--- end ---*/
  47. /*--------------------------------------------------------------------*/