]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/Include/IndustryStandard/Xen/hvm/hvm_op.h
OvmfPkg/License.txt: refresh the MIT license text and include the SPDX ID
[mirror_edk2.git] / OvmfPkg / Include / IndustryStandard / Xen / hvm / hvm_op.h
CommitLineData
6b621f95
AP
1/*\r
2 * Permission is hereby granted, free of charge, to any person obtaining a copy\r
3 * of this software and associated documentation files (the "Software"), to\r
4 * deal in the Software without restriction, including without limitation the\r
5 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\r
6 * sell copies of the Software, and to permit persons to whom the Software is\r
7 * furnished to do so, subject to the following conditions:\r
8 *\r
9 * The above copyright notice and this permission notice shall be included in\r
10 * all copies or substantial portions of the Software.\r
11 *\r
12 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
13 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
14 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r
15 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r
16 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\r
17 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\r
18 * DEALINGS IN THE SOFTWARE.\r
19 */\r
20\r
21#ifndef __XEN_PUBLIC_HVM_HVM_OP_H__\r
22#define __XEN_PUBLIC_HVM_HVM_OP_H__\r
23\r
24#include "../xen.h"\r
25\r
26/* Get/set subcommands: extra argument == pointer to xen_hvm_param struct. */\r
27#define HVMOP_set_param 0\r
28#define HVMOP_get_param 1\r
29struct xen_hvm_param {\r
30 domid_t domid; /* IN */\r
31 UINT32 index; /* IN */\r
32 UINT64 value; /* IN/OUT */\r
33};\r
34typedef struct xen_hvm_param xen_hvm_param_t;\r
35DEFINE_XEN_GUEST_HANDLE(xen_hvm_param_t);\r
36\r
37#endif /* __XEN_PUBLIC_HVM_HVM_OP_H__ */\r