VirtualBox

source: vbox/trunk/include/VBox/VMMDev2.h@ 27149

Last change on this file since 27149 was 25848, checked in by vboxsync, 15 years ago

CPU hotplug: Merge the third patch. Guest additions interface for the CPU hot-plug monitor

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.4 KB
Line 
1/** @file
2 * Virtual Device for Guest <-> VMM/Host communication, Mixed Up Mess. (ADD,DEV)
3 */
4
5/*
6 * Copyright (C) 2006-2009 Sun Microsystems, Inc.
7 *
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.
15 *
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.
21 *
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.
24 *
25 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
26 * Clara, CA 95054 USA or visit http://www.sun.com if you need
27 * additional information or have any questions.
28 */
29
30#ifndef ___VBox_VMMDev2_h
31#define ___VBox_VMMDev2_h
32
33#include <iprt/assert.h>
34
35/**
36 * Seamless mode.
37 *
38 * Used by VbglR3SeamlessWaitEvent
39 *
40 * @ingroup grp_vmmdev_req
41 *
42 * @todo DARN! DARN! DARN! Who forgot to do the 32-bit hack here???
43 * FIXME! XXX!
44 *
45 * We will now have to carefully check how our compilers have treated this
46 * flag. If any are compressing it into a byte type, we'll have to check
47 * how the request memory is initialized. If we are 104% sure it's ok to
48 * expand it, we'll expand it. If not, we must redefine the field to a
49 * uint8_t and a 3 byte padding.
50 */
51typedef enum
52{
53 VMMDev_Seamless_Disabled = 0, /**< normal mode; entire guest desktop displayed. */
54 VMMDev_Seamless_Visible_Region = 1, /**< visible region mode; only top-level guest windows displayed. */
55 VMMDev_Seamless_Host_Window = 2 /**< windowed mode; each top-level guest window is represented in a host window. */
56} VMMDevSeamlessMode;
57
58/**
59 * CPU event types.
60 *
61 * Used by VbglR3CpuHotplugWaitForEvent
62 *
63 * @ingroup grp_vmmdev_req
64 */
65typedef enum
66{
67 VMMDevCpuEventType_Invalid = 0,
68 VMMDevCpuEventType_None = 1,
69 VMMDevCpuEventType_Plug = 2,
70 VMMDevCpuEventType_Unplug = 3,
71 VMMDevCpuEventType_SizeHack = 0x7fffffff
72} VMMDevCpuEventType;
73
74/**
75 * HGCM service location types.
76 * @ingroup grp_vmmdev_req
77 */
78typedef enum
79{
80 VMMDevHGCMLoc_Invalid = 0,
81 VMMDevHGCMLoc_LocalHost = 1,
82 VMMDevHGCMLoc_LocalHost_Existing = 2,
83 VMMDevHGCMLoc_SizeHack = 0x7fffffff
84} HGCMServiceLocationType;
85AssertCompileSize(HGCMServiceLocationType, 4);
86
87/**
88 * HGCM host service location.
89 * @ingroup grp_vmmdev_req
90 */
91typedef struct
92{
93 char achName[128]; /**< This is really szName. */
94} HGCMServiceLocationHost;
95AssertCompileSize(HGCMServiceLocationHost, 128);
96
97/**
98 * HGCM service location.
99 * @ingroup grp_vmmdev_req
100 */
101typedef struct HGCMSERVICELOCATION
102{
103 /** Type of the location. */
104 HGCMServiceLocationType type;
105
106 union
107 {
108 HGCMServiceLocationHost host;
109 } u;
110} HGCMServiceLocation;
111AssertCompileSize(HGCMServiceLocation, 128+4);
112
113/* forward declarations: */
114struct VMMDevReqMousePointer;
115struct VMMDevMemory;
116
117#endif
118
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette