• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2    This file is part of Valgrind, a dynamic binary instrumentation
3    framework.
4 
5    Copyright (C) 2012-2017 Citrix
6 
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.
11 
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.
16 
17    You should have received a copy of the GNU General Public License
18    along with this program; if not, write to the Free Software
19    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
20    02111-1307, USA.
21 
22    The GNU General Public License is contained in the file COPYING.
23 */
24 
25 /* Contributed by Andrew Cooper <andrew.cooper3@citrix.com>
26    and Ian Campbell <ian.campbell@citrix.com> */
27 
28 #ifndef __VKI_XEN_GNTTAB_H
29 #define __VKI_XEN_GNTTAB_H
30 
31 typedef vki_uint32_t vki_xen_grant_ref_t;
32 
33 #define VKI_XEN_GNTTABOP_map_grant_ref        0
34 #define VKI_XEN_GNTTABOP_unmap_grant_ref      1
35 #define VKI_XEN_GNTTABOP_setup_table          2
36 #define VKI_XEN_GNTTABOP_dump_table           3
37 #define VKI_XEN_GNTTABOP_transfer             4
38 #define VKI_XEN_GNTTABOP_copy                 5
39 #define VKI_XEN_GNTTABOP_query_size           6
40 #define VKI_XEN_GNTTABOP_unmap_and_replace    7
41 #define VKI_XEN_GNTTABOP_set_version          8
42 #define VKI_XEN_GNTTABOP_get_status_frames    9
43 #define VKI_XEN_GNTTABOP_get_version          10
44 #define VKI_XEN_GNTTABOP_swap_grant_ref	      11
45 
46 struct vki_xen_gnttab_setup_table {
47     /* IN parameters. */
48     vki_xen_domid_t  dom;
49     vki_uint32_t nr_frames;
50     /* OUT parameters. */
51     vki_int16_t  status;              /* => enum grant_status */
52     VKI_XEN_GUEST_HANDLE(vki_ulong) frame_list;
53 };
54 
55 #endif // __VKI_XEN_GNTTAB_H
56 
57 /*--------------------------------------------------------------------*/
58 /*--- end                                                          ---*/
59 /*--------------------------------------------------------------------*/
60