1 | /** @file
|
---|
2 | * VBoxGuest - VirtualBox Guest Additions Driver Interface, Mixed Up Mess.
|
---|
3 | * (ADD,DEV)
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2006-2009 Sun Microsystems, Inc.
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | * available from http://www.virtualbox.org. This file is free software;
|
---|
11 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | * General Public License (GPL) as published by the Free Software
|
---|
13 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | *
|
---|
17 | * The contents of this file may alternatively be used under the terms
|
---|
18 | * of the Common Development and Distribution License Version 1.0
|
---|
19 | * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
|
---|
20 | * VirtualBox OSE distribution, in which case the provisions of the
|
---|
21 | * CDDL are applicable instead of those of the GPL.
|
---|
22 | *
|
---|
23 | * You may elect to license modified versions of this file under the
|
---|
24 | * terms and conditions of either the GPL or the CDDL or both.
|
---|
25 | *
|
---|
26 | * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
27 | * Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
28 | * additional information or have any questions.
|
---|
29 | */
|
---|
30 |
|
---|
31 | #ifndef ___VBox_VBoxGuest2_h
|
---|
32 | #define ___VBox_VBoxGuest2_h
|
---|
33 |
|
---|
34 | #include <iprt/assert.h>
|
---|
35 |
|
---|
36 | #ifdef VBOX_WITH_HGCM
|
---|
37 | # include <VBox/VMMDev2.h>
|
---|
38 |
|
---|
39 |
|
---|
40 | /**
|
---|
41 | * HGCM connect info structure.
|
---|
42 | *
|
---|
43 | * This is used by VBOXGUEST_IOCTL_HGCM_CONNECT and in VbglR0.
|
---|
44 | *
|
---|
45 | * @ingroup grp_vboxguest
|
---|
46 | */
|
---|
47 | # pragma pack(1) /* explicit packing for good measure. */
|
---|
48 | typedef struct VBoxGuestHGCMConnectInfo
|
---|
49 | {
|
---|
50 | int32_t result; /**< OUT */
|
---|
51 | HGCMServiceLocation Loc; /**< IN */
|
---|
52 | uint32_t u32ClientID; /**< OUT */
|
---|
53 | } VBoxGuestHGCMConnectInfo;
|
---|
54 | AssertCompileSize(VBoxGuestHGCMConnectInfo, 4+4+128+4);
|
---|
55 | # pragma pack()
|
---|
56 |
|
---|
57 |
|
---|
58 | /**
|
---|
59 | * HGCM connect info structure.
|
---|
60 | *
|
---|
61 | * This is used by VBOXGUEST_IOCTL_HGCM_DISCONNECT and in VbglR0.
|
---|
62 | *
|
---|
63 | * @ingroup grp_vboxguest
|
---|
64 | */
|
---|
65 | typedef struct VBoxGuestHGCMDisconnectInfo
|
---|
66 | {
|
---|
67 | int32_t result; /**< OUT */
|
---|
68 | uint32_t u32ClientID; /**< IN */
|
---|
69 | } VBoxGuestHGCMDisconnectInfo;
|
---|
70 | AssertCompileSize(VBoxGuestHGCMDisconnectInfo, 8);
|
---|
71 |
|
---|
72 | /**
|
---|
73 | * HGCM call info structure.
|
---|
74 | *
|
---|
75 | * This is used by VBOXGUEST_IOCTL_HGCM_CALL.
|
---|
76 | *
|
---|
77 | * @ingroup grp_vboxguest
|
---|
78 | */
|
---|
79 | typedef struct VBoxGuestHGCMCallInfo
|
---|
80 | {
|
---|
81 | int32_t result; /**< OUT Host HGCM return code.*/
|
---|
82 | uint32_t u32ClientID; /**< IN The id of the caller. */
|
---|
83 | uint32_t u32Function; /**< IN Function number. */
|
---|
84 | uint32_t cParms; /**< IN How many parms. */
|
---|
85 | /* Parameters follow in form HGCMFunctionParameter aParms[cParms] */
|
---|
86 | } VBoxGuestHGCMCallInfo;
|
---|
87 | AssertCompileSize(VBoxGuestHGCMCallInfo, 16);
|
---|
88 |
|
---|
89 |
|
---|
90 | /**
|
---|
91 | * HGCM call info structure.
|
---|
92 | *
|
---|
93 | * This is used by VBOXGUEST_IOCTL_HGCM_CALL_TIMED.
|
---|
94 | *
|
---|
95 | * @ingroup grp_vboxguest
|
---|
96 | */
|
---|
97 | # pragma pack(1) /* explicit packing for good measure. */
|
---|
98 | typedef struct VBoxGuestHGCMCallInfoTimed
|
---|
99 | {
|
---|
100 | uint32_t u32Timeout; /**< IN How long to wait for completion before cancelling the call. */
|
---|
101 | uint32_t fInterruptible; /**< IN Is this request interruptible? */
|
---|
102 | VBoxGuestHGCMCallInfo info; /**< IN/OUT The rest of the call information. Placed after the timeout
|
---|
103 | * so that the parameters follow as they would for a normal call. */
|
---|
104 | /* Parameters follow in form HGCMFunctionParameter aParms[cParms] */
|
---|
105 | } VBoxGuestHGCMCallInfoTimed;
|
---|
106 | AssertCompileSize(VBoxGuestHGCMCallInfoTimed, 8+16);
|
---|
107 | # pragma pack()
|
---|
108 |
|
---|
109 | #endif /* VBOX_WITH_HGCM */
|
---|
110 |
|
---|
111 | #endif
|
---|
112 |
|
---|