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 as published by the Free Software Foundation,
|
---|
12 | * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
|
---|
13 | * distribution. VirtualBox OSE is distributed in the hope that it will
|
---|
14 | * be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
15 | */
|
---|
16 |
|
---|
17 | #ifndef ___VBox_VBoxDev_h
|
---|
18 | #define ___VBox_VBoxDev_h
|
---|
19 |
|
---|
20 | #include <VBox/cdefs.h>
|
---|
21 |
|
---|
22 | __BEGIN_DECLS
|
---|
23 |
|
---|
24 | /** Mouse capability bits
|
---|
25 | * @{ */
|
---|
26 | /** the guest requests absolute mouse coordinates (guest additions installed) */
|
---|
27 | #define VMMDEV_MOUSEGUESTWANTSABS RT_BIT(0)
|
---|
28 | /** the host wants to send absolute mouse coordinates (input not captured) */
|
---|
29 | #define VMMDEV_MOUSEHOSTWANTSABS RT_BIT(1)
|
---|
30 | /** the guest needs a hardware cursor on host. When guest additions are installed
|
---|
31 | * and the host has promised to display the cursor itself, the guest installs a
|
---|
32 | * hardware mouse driver. Don't ask the guest to switch to a software cursor then. */
|
---|
33 | #define VMMDEV_MOUSEGUESTNEEDSHOSTCUR RT_BIT(2)
|
---|
34 | /** the host is NOT able to draw the cursor itself (e.g. L4 console) */
|
---|
35 | #define VMMDEV_MOUSEHOSTCANNOTHWPOINTER RT_BIT(3)
|
---|
36 | /** @} */
|
---|
37 |
|
---|
38 | /** Flags for pfnSetCredentials
|
---|
39 | * @{ */
|
---|
40 | /** the guest should perform a logon with the credentials */
|
---|
41 | #define VMMDEV_SETCREDENTIALS_GUESTLOGON RT_BIT(0)
|
---|
42 | /** the guest should prevent local logons */
|
---|
43 | #define VMMDEV_SETCREDENTIALS_NOLOCALLOGON RT_BIT(1)
|
---|
44 | /** the guest should verify the credentials */
|
---|
45 | #define VMMDEV_SETCREDENTIALS_JUDGE RT_BIT(15)
|
---|
46 | /** @} */
|
---|
47 |
|
---|
48 | /** Guest capability bits
|
---|
49 | * @{ */
|
---|
50 | /** the guest supports seamless display rendering */
|
---|
51 | #define VMMDEV_GUEST_SUPPORTS_SEAMLESS RT_BIT(0)
|
---|
52 | /** the guest supports mapping guest to host windows */
|
---|
53 | #define VMMDEV_GUEST_SUPPORTS_GUEST_HOST_WINDOW_MAPPING RT_BIT(1)
|
---|
54 | /** @} */
|
---|
55 |
|
---|
56 | /** Size of VMMDev RAM region accessible by guest.
|
---|
57 | * Must be big enough to contain VMMDevMemory structure (see VBoxGuest.h)
|
---|
58 | * For now: 4 megabyte.
|
---|
59 | */
|
---|
60 | #define VMMDEV_RAM_SIZE (4 * 256 * PAGE_SIZE)
|
---|
61 |
|
---|
62 | __END_DECLS
|
---|
63 |
|
---|
64 | #endif
|
---|