Handle gcc __builtin_strcmp using 128/256 bit vectors with sse4.1, avx/avx2
[valgrind.git] / include / vki / vki-xen-gnttab.h
blob33e9ba31e9f57d62dba6581387bd1e6ee32a3928
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_GNTTAB_H
27 #define __VKI_XEN_GNTTAB_H
29 typedef vki_uint32_t vki_xen_grant_ref_t;
31 #define VKI_XEN_GNTTABOP_map_grant_ref 0
32 #define VKI_XEN_GNTTABOP_unmap_grant_ref 1
33 #define VKI_XEN_GNTTABOP_setup_table 2
34 #define VKI_XEN_GNTTABOP_dump_table 3
35 #define VKI_XEN_GNTTABOP_transfer 4
36 #define VKI_XEN_GNTTABOP_copy 5
37 #define VKI_XEN_GNTTABOP_query_size 6
38 #define VKI_XEN_GNTTABOP_unmap_and_replace 7
39 #define VKI_XEN_GNTTABOP_set_version 8
40 #define VKI_XEN_GNTTABOP_get_status_frames 9
41 #define VKI_XEN_GNTTABOP_get_version 10
42 #define VKI_XEN_GNTTABOP_swap_grant_ref 11
44 struct vki_xen_gnttab_setup_table {
45 /* IN parameters. */
46 vki_xen_domid_t dom;
47 vki_uint32_t nr_frames;
48 /* OUT parameters. */
49 vki_int16_t status; /* => enum grant_status */
50 VKI_XEN_GUEST_HANDLE(vki_ulong) frame_list;
53 #endif // __VKI_XEN_GNTTAB_H
55 /*--------------------------------------------------------------------*/
56 /*--- end ---*/
57 /*--------------------------------------------------------------------*/