2 * Virtual Device for Guest <-> VMM/Host communication, Mixed Up Mess. (ADD,DEV)
6 * Copyright (C) 2006-2016 Oracle Corporation
8 * This file is part of VirtualBox Open Source Edition (OSE), as
9 * available from http://www.virtualbox.org. This file is free software;
10 * you can redistribute it and/or modify it under the terms of the GNU
11 * General Public License (GPL) as published by the Free Software
12 * Foundation, in version 2 as it comes in the "COPYING" file of the
13 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
14 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 * The contents of this file may alternatively be used under the terms
17 * of the Common Development and Distribution License Version 1.0
18 * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
19 * VirtualBox OSE distribution, in which case the provisions of the
20 * CDDL are applicable instead of those of the GPL.
22 * You may elect to license modified versions of this file under the
23 * terms and conditions of either the GPL or the CDDL or both.
26 #ifndef ___VBox_VMMDev2_h
27 #define ___VBox_VMMDev2_h
29 #include <iprt/assert.h>
32 /** @addtogroup grp_vmmdev
40 * Used by VbglR3SeamlessWaitEvent
42 * @ingroup grp_vmmdev_req
44 * @todo DARN! DARN! DARN! Who forgot to do the 32-bit hack here???
47 * We will now have to carefully check how our compilers have treated this
48 * flag. If any are compressing it into a byte type, we'll have to check
49 * how the request memory is initialized. If we are 104% sure it's ok to
50 * expand it, we'll expand it. If not, we must redefine the field to a
51 * uint8_t and a 3 byte padding.
55 VMMDev_Seamless_Disabled
= 0, /**< normal mode; entire guest desktop displayed. */
56 VMMDev_Seamless_Visible_Region
= 1, /**< visible region mode; only top-level guest windows displayed. */
57 VMMDev_Seamless_Host_Window
= 2 /**< windowed mode; each top-level guest window is represented in a host window. */
63 * Used by VbglR3CpuHotplugWaitForEvent
65 * @ingroup grp_vmmdev_req
69 VMMDevCpuEventType_Invalid
= 0,
70 VMMDevCpuEventType_None
= 1,
71 VMMDevCpuEventType_Plug
= 2,
72 VMMDevCpuEventType_Unplug
= 3,
73 VMMDevCpuEventType_SizeHack
= 0x7fffffff
77 * HGCM service location types.
78 * @ingroup grp_vmmdev_req
82 VMMDevHGCMLoc_Invalid
= 0,
83 VMMDevHGCMLoc_LocalHost
= 1,
84 VMMDevHGCMLoc_LocalHost_Existing
= 2,
85 VMMDevHGCMLoc_SizeHack
= 0x7fffffff
86 } HGCMServiceLocationType
;
87 AssertCompileSize(HGCMServiceLocationType
, 4);
90 * HGCM host service location.
91 * @ingroup grp_vmmdev_req
95 char achName
[128]; /**< This is really szName. */
96 } HGCMServiceLocationHost
;
97 AssertCompileSize(HGCMServiceLocationHost
, 128);
100 * HGCM service location.
101 * @ingroup grp_vmmdev_req
103 typedef struct HGCMSERVICELOCATION
105 /** Type of the location. */
106 HGCMServiceLocationType type
;
110 HGCMServiceLocationHost host
;
112 } HGCMServiceLocation
;
113 AssertCompileSize(HGCMServiceLocation
, 128+4);
115 /* forward declarations: */
116 struct VMMDevReqMousePointer
;