VirtualBox

source: vbox/trunk/src/VBox/Main/include/VMMDev.h@ 27143

Last change on this file since 27143 was 26173, checked in by vboxsync, 15 years ago

PDM: s/pCfgHandle/pCfg/g - part 2.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.3 KB
Line 
1/** @file
2 * VirtualBox Driver interface to VMM device
3 */
4
5/*
6 * Copyright (C) 2006-2007 Sun Microsystems, Inc.
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 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
17 * Clara, CA 95054 USA or visit http://www.sun.com if you need
18 * additional information or have any questions.
19 */
20
21#ifndef ____H_VMMDEV
22#define ____H_VMMDEV
23
24#include "VirtualBoxBase.h"
25#include <VBox/pdmdrv.h>
26
27class Console;
28
29class VMMDev
30{
31public:
32 VMMDev(Console *console);
33 virtual ~VMMDev();
34 static const PDMDRVREG DrvReg;
35 /** Pointer to the associated VMMDev driver. */
36 struct DRVMAINVMMDEV *mpDrv;
37
38 bool fSharedFolderActive;
39 bool isShFlActive()
40 {
41 return fSharedFolderActive;
42 }
43
44 Console *getParent()
45 {
46 return mParent;
47 }
48
49 int WaitCredentialsJudgement (uint32_t u32Timeout, uint32_t *pu32GuestFlags);
50 int SetCredentialsJudgementResult (uint32_t u32Flags);
51
52 PPDMIVMMDEVPORT getVMMDevPort();
53
54 int hgcmLoadService (const char *pszServiceLibrary, const char *pszServiceName);
55 int hgcmHostCall (const char *pszServiceName, uint32_t u32Function, uint32_t cParms, PVBOXHGCMSVCPARM paParms);
56 void hgcmShutdown (void);
57
58 bool hgcmIsActive (void) { return ASMAtomicReadBool(&m_fHGCMActive); }
59
60private:
61 static DECLCALLBACK(void *) drvQueryInterface(PPDMIBASE pInterface, const char *pszIID);
62 static DECLCALLBACK(int) drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags);
63 static DECLCALLBACK(void) drvDestruct(PPDMDRVINS pDrvIns);
64 static DECLCALLBACK(void) drvReset(PPDMDRVINS pDrvIns);
65
66 ComObjPtr<Console, ComWeakRef> mParent;
67
68 RTSEMEVENT mCredentialsEvent;
69 uint32_t mu32CredentialsFlags;
70
71#ifdef VBOX_WITH_HGCM
72 bool m_fHGCMActive;
73#endif /* VBOX_WITH_HGCM */
74};
75
76#endif // ____H_VMMDEV
77/* vi: set tabstop=4 shiftwidth=4 expandtab: */
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