1 | /** @file
|
---|
2 | * Virtual Device for Guest <-> VMM/Host communication
|
---|
3 | */
|
---|
4 |
|
---|
5 | /*
|
---|
6 | * Copyright (C) 2006-2007 innotek GmbH
|
---|
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 |
|
---|
26 | #ifndef ___VBox_VBoxDev_h
|
---|
27 | #define ___VBox_VBoxDev_h
|
---|
28 |
|
---|
29 | #include <VBox/cdefs.h>
|
---|
30 |
|
---|
31 | __BEGIN_DECLS
|
---|
32 |
|
---|
33 | /** Mouse capability bits
|
---|
34 | * @{ */
|
---|
35 | /** the guest requests absolute mouse coordinates (guest additions installed) */
|
---|
36 | #define VMMDEV_MOUSEGUESTWANTSABS RT_BIT(0)
|
---|
37 | /** the host wants to send absolute mouse coordinates (input not captured) */
|
---|
38 | #define VMMDEV_MOUSEHOSTWANTSABS RT_BIT(1)
|
---|
39 | /** the guest needs a hardware cursor on host. When guest additions are installed
|
---|
40 | * and the host has promised to display the cursor itself, the guest installs a
|
---|
41 | * hardware mouse driver. Don't ask the guest to switch to a software cursor then. */
|
---|
42 | #define VMMDEV_MOUSEGUESTNEEDSHOSTCUR RT_BIT(2)
|
---|
43 | /** the host is NOT able to draw the cursor itself (e.g. L4 console) */
|
---|
44 | #define VMMDEV_MOUSEHOSTCANNOTHWPOINTER RT_BIT(3)
|
---|
45 | /** @} */
|
---|
46 |
|
---|
47 | /** Flags for pfnSetCredentials
|
---|
48 | * @{ */
|
---|
49 | /** the guest should perform a logon with the credentials */
|
---|
50 | #define VMMDEV_SETCREDENTIALS_GUESTLOGON RT_BIT(0)
|
---|
51 | /** the guest should prevent local logons */
|
---|
52 | #define VMMDEV_SETCREDENTIALS_NOLOCALLOGON RT_BIT(1)
|
---|
53 | /** the guest should verify the credentials */
|
---|
54 | #define VMMDEV_SETCREDENTIALS_JUDGE RT_BIT(15)
|
---|
55 | /** @} */
|
---|
56 |
|
---|
57 | /** Guest capability bits
|
---|
58 | * @{ */
|
---|
59 | /** the guest supports seamless display rendering */
|
---|
60 | #define VMMDEV_GUEST_SUPPORTS_SEAMLESS RT_BIT(0)
|
---|
61 | /** the guest supports mapping guest to host windows */
|
---|
62 | #define VMMDEV_GUEST_SUPPORTS_GUEST_HOST_WINDOW_MAPPING RT_BIT(1)
|
---|
63 | /** @} */
|
---|
64 |
|
---|
65 | /** Size of VMMDev RAM region accessible by guest.
|
---|
66 | * Must be big enough to contain VMMDevMemory structure (see VBoxGuest.h)
|
---|
67 | * For now: 4 megabyte.
|
---|
68 | */
|
---|
69 | #define VMMDEV_RAM_SIZE (4 * 256 * PAGE_SIZE)
|
---|
70 |
|
---|
71 | __END_DECLS
|
---|
72 |
|
---|
73 | #endif
|
---|