hwaccm.h revision 164f92fdbca397ccd3daeda3707a00e6343cba8c
/** @file
*/
/*
* Copyright (C) 2006-2007 Sun Microsystems, Inc.
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*
* The contents of this file may alternatively be used under the terms
* of the Common Development and Distribution License Version 1.0
* (CDDL) only, as it comes in the "COPYING.CDDL" file of the
* VirtualBox OSE distribution, in which case the provisions of the
* CDDL are applicable instead of those of the GPL.
*
* You may elect to license modified versions of this file under the
* terms and conditions of either the GPL or the CDDL or both.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 USA or visit http://www.sun.com if you need
* additional information or have any questions.
*/
#ifndef ___VBox_hwaccm_h
#define ___VBox_hwaccm_h
/** @defgroup grp_hwaccm The VM Hardware Manager API
* @{
*/
/**
* HWACCM state
*/
typedef enum HWACCMSTATE
{
/* Not yet set */
/* Enabled */
/* Disabled */
/** The usual 32-bit hack. */
HWACCMSTATE_32BIT_HACK = 0x7fffffff
} HWACCMSTATE;
/**
*
* @returns 0 - disabled, 1 - enabled
* @param pVM The VM to operate on.
*/
#ifndef IN_RC
#else
/* Nop in GC */
# define HWACCMFlushTLB(pVM) do { } while (0)
# define HWACCMIsNestedPagingActive(pVM) false
#endif
#ifdef IN_RING0
/** @defgroup grp_hwaccm_r0 The VM Hardware Manager API
* @ingroup grp_hwaccm
* @{
*/
VMMR0DECL(int) HWACCMR0Init(void);
VMMR0DECL(int) HWACCMR0Term(void);
/** @} */
#endif /* IN_RING0 */
#ifdef IN_RING3
/** @defgroup grp_hwaccm_r3 The VM Hardware Manager API
* @ingroup grp_hwaccm
* @{
*/
/** @} */
#endif /* IN_RING3 */
#ifdef IN_RING0
/** @addtogroup grp_hwaccm_r0
* @{
*/
VMMR0DECL(bool) HWACCMR0SuspendPending();
# endif
/** @} */
#endif /* IN_RING0 */
/** @} */
#endif