backdoor_def.h revision 332aaa1da374e694e37fdfe0a00bbe040e670453
332aaa1da374e694e37fdfe0a00bbe040e670453vboxsync/**********************************************************
332aaa1da374e694e37fdfe0a00bbe040e670453vboxsync * Copyright 1998-2009 VMware, Inc. All rights reserved.
332aaa1da374e694e37fdfe0a00bbe040e670453vboxsync * Permission is hereby granted, free of charge, to any person
332aaa1da374e694e37fdfe0a00bbe040e670453vboxsync * obtaining a copy of this software and associated documentation
332aaa1da374e694e37fdfe0a00bbe040e670453vboxsync * files (the "Software"), to deal in the Software without
332aaa1da374e694e37fdfe0a00bbe040e670453vboxsync * restriction, including without limitation the rights to use, copy,
332aaa1da374e694e37fdfe0a00bbe040e670453vboxsync * modify, merge, publish, distribute, sublicense, and/or sell copies
332aaa1da374e694e37fdfe0a00bbe040e670453vboxsync * of the Software, and to permit persons to whom the Software is
332aaa1da374e694e37fdfe0a00bbe040e670453vboxsync * furnished to do so, subject to the following conditions:
332aaa1da374e694e37fdfe0a00bbe040e670453vboxsync * The above copyright notice and this permission notice shall be
332aaa1da374e694e37fdfe0a00bbe040e670453vboxsync * included in all copies or substantial portions of the Software.
332aaa1da374e694e37fdfe0a00bbe040e670453vboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
332aaa1da374e694e37fdfe0a00bbe040e670453vboxsync * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
332aaa1da374e694e37fdfe0a00bbe040e670453vboxsync * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
332aaa1da374e694e37fdfe0a00bbe040e670453vboxsync * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
332aaa1da374e694e37fdfe0a00bbe040e670453vboxsync * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
332aaa1da374e694e37fdfe0a00bbe040e670453vboxsync * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
332aaa1da374e694e37fdfe0a00bbe040e670453vboxsync * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
332aaa1da374e694e37fdfe0a00bbe040e670453vboxsync * SOFTWARE.
332aaa1da374e694e37fdfe0a00bbe040e670453vboxsync **********************************************************/
332aaa1da374e694e37fdfe0a00bbe040e670453vboxsync * This contains constants that define the backdoor I/O port, a
332aaa1da374e694e37fdfe0a00bbe040e670453vboxsync * simple hypercall mechanism that is used by VMware Tools.
332aaa1da374e694e37fdfe0a00bbe040e670453vboxsync#define BDOOR_CMD_SERVICE_VM 22 /* prototype only */
332aaa1da374e694e37fdfe0a00bbe040e670453vboxsync#define BDOOR_CMD_GETTIME 23 /* Deprecated. Use GETTIMEFULL. */
332aaa1da374e694e37fdfe0a00bbe040e670453vboxsync#define BDOOR_CMD_DEVEL_FAKEHARDWARE 44 /* Debug only - needed in beta */
332aaa1da374e694e37fdfe0a00bbe040e670453vboxsync * High-bandwidth backdoor port.
332aaa1da374e694e37fdfe0a00bbe040e670453vboxsync * There is another backdoor which allows access to certain TSC-related
332aaa1da374e694e37fdfe0a00bbe040e670453vboxsync * values using otherwise illegal PMC indices when the pseudo_perfctr
332aaa1da374e694e37fdfe0a00bbe040e670453vboxsync * control flag is set.
332aaa1da374e694e37fdfe0a00bbe040e670453vboxsync#define IS_BDOOR_PMC(index) (((index) | 3) == 0x10003)
332aaa1da374e694e37fdfe0a00bbe040e670453vboxsync#endif /* _BACKDOOR_DEF_H_ */