VirtualBox

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

Last change on this file since 28837 was 28800, checked in by vboxsync, 15 years ago

Automated rebranding to Oracle copyright/license strings via filemuncher

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