VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/vmsvga/backdoor_def.h@ 76520

Last change on this file since 76520 was 76520, checked in by vboxsync, 6 years ago

Devices: scm --fix-header-guards. bugref:9344

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.9 KB
Line 
1/**********************************************************
2 * Copyright 1998-2009 VMware, Inc. All rights reserved.
3 *
4 * Permission is hereby granted, free of charge, to any person
5 * obtaining a copy of this software and associated documentation
6 * files (the "Software"), to deal in the Software without
7 * restriction, including without limitation the rights to use, copy,
8 * modify, merge, publish, distribute, sublicense, and/or sell copies
9 * of the Software, and to permit persons to whom the Software is
10 * furnished to do so, subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be
13 * included in all copies or substantial portions of the Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
19 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
20 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 * SOFTWARE.
23 *
24 **********************************************************/
25
26/*
27 * backdoor_def.h --
28 *
29 * This contains constants that define the backdoor I/O port, a
30 * simple hypercall mechanism that is used by VMware Tools.
31 */
32
33#ifndef _BACKDOOR_DEF_H_
34#define _BACKDOOR_DEF_H_
35#ifndef RT_WITHOUT_PRAGMA_ONCE
36# pragma once
37#endif
38
39#define BDOOR_MAGIC 0x564D5868
40
41#define BDOOR_PORT 0x5658
42
43#define BDOOR_CMD_GETMHZ 1
44#define BDOOR_CMD_APMFUNCTION 2
45#define BDOOR_CMD_GETDISKGEO 3
46#define BDOOR_CMD_GETPTRLOCATION 4
47#define BDOOR_CMD_SETPTRLOCATION 5
48#define BDOOR_CMD_GETSELLENGTH 6
49#define BDOOR_CMD_GETNEXTPIECE 7
50#define BDOOR_CMD_SETSELLENGTH 8
51#define BDOOR_CMD_SETNEXTPIECE 9
52#define BDOOR_CMD_GETVERSION 10
53#define BDOOR_CMD_GETDEVICELISTELEMENT 11
54#define BDOOR_CMD_TOGGLEDEVICE 12
55#define BDOOR_CMD_GETGUIOPTIONS 13
56#define BDOOR_CMD_SETGUIOPTIONS 14
57#define BDOOR_CMD_GETSCREENSIZE 15
58#define BDOOR_CMD_MONITOR_CONTROL 16
59#define BDOOR_CMD_GETHWVERSION 17
60#define BDOOR_CMD_OSNOTFOUND 18
61#define BDOOR_CMD_GETUUID 19
62#define BDOOR_CMD_GETMEMSIZE 20
63#define BDOOR_CMD_HOSTCOPY 21 /* Devel only */
64#define BDOOR_CMD_SERVICE_VM 22 /* prototype only */
65#define BDOOR_CMD_GETTIME 23 /* Deprecated. Use GETTIMEFULL. */
66#define BDOOR_CMD_STOPCATCHUP 24
67#define BDOOR_CMD_PUTCHR 25 /* Devel only */
68#define BDOOR_CMD_ENABLE_MSG 26 /* Devel only */
69#define BDOOR_CMD_GOTO_TCL 27 /* Devel only */
70#define BDOOR_CMD_INITPCIOPROM 28
71#define BDOOR_CMD_INT13 29
72#define BDOOR_CMD_MESSAGE 30
73#define BDOOR_CMD_RSVD0 31
74#define BDOOR_CMD_RSVD1 32
75#define BDOOR_CMD_RSVD2 33
76#define BDOOR_CMD_ISACPIDISABLED 34
77#define BDOOR_CMD_TOE 35 /* Not in use */
78#define BDOOR_CMD_ISMOUSEABSOLUTE 36
79#define BDOOR_CMD_PATCH_SMBIOS_STRUCTS 37
80#define BDOOR_CMD_MAPMEM 38 /* Devel only */
81#define BDOOR_CMD_ABSPOINTER_DATA 39
82#define BDOOR_CMD_ABSPOINTER_STATUS 40
83#define BDOOR_CMD_ABSPOINTER_COMMAND 41
84#define BDOOR_CMD_TIMER_SPONGE 42
85#define BDOOR_CMD_PATCH_ACPI_TABLES 43
86#define BDOOR_CMD_DEVEL_FAKEHARDWARE 44 /* Debug only - needed in beta */
87#define BDOOR_CMD_GETHZ 45
88#define BDOOR_CMD_GETTIMEFULL 46
89#define BDOOR_CMD_STATELOGGER 47
90#define BDOOR_CMD_CHECKFORCEBIOSSETUP 48
91#define BDOOR_CMD_LAZYTIMEREMULATION 49
92#define BDOOR_CMD_BIOSBBS 50
93#define BDOOR_CMD_VASSERT 51
94#define BDOOR_CMD_ISGOSDARWIN 52
95#define BDOOR_CMD_DEBUGEVENT 53
96#define BDOOR_CMD_OSNOTMACOSXSERVER 54
97#define BDOOR_CMD_GETTIMEFULL_WITH_LAG 55
98#define BDOOR_CMD_ACPI_HOTPLUG_DEVICE 56
99#define BDOOR_CMD_ACPI_HOTPLUG_MEMORY 57
100#define BDOOR_CMD_ACPI_HOTPLUG_CBRET 58
101#define BDOOR_CMD_GET_HOST_VIDEO_MODES 59
102#define BDOOR_CMD_ACPI_HOTPLUG_CPU 60
103#define BDOOR_CMD_MAX 61
104
105/*
106 * High-bandwidth backdoor port.
107 */
108
109#define BDOORHB_PORT 0x5659
110
111#define BDOORHB_CMD_MESSAGE 0
112#define BDOORHB_CMD_VASSERT 1
113#define BDOORHB_CMD_MAX 2
114
115/*
116 * There is another backdoor which allows access to certain TSC-related
117 * values using otherwise illegal PMC indices when the pseudo_perfctr
118 * control flag is set.
119 */
120
121#define BDOOR_PMC_HW_TSC 0x10000
122#define BDOOR_PMC_REAL_NS 0x10001
123#define BDOOR_PMC_APPARENT_NS 0x10002
124
125#define IS_BDOOR_PMC(index) (((index) | 3) == 0x10003)
126#define BDOOR_CMD(ecx) ((ecx) & 0xffff)
127
128#endif /* _BACKDOOR_DEF_H_ */
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