VirtualBox

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

最後變更 在這個檔案從76394是 76382,由 vboxsync 提交於 6 年 前

include/VBox/vmm/pdmifs.h: Don't include hgcmsvc.h just for VBOXHGCMSVCPARM as it drags in all kinds of stuff. bugref:9344

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 3.3 KB
 
1/* $Id: VMMDev.h 76382 2018-12-23 00:47:17Z vboxsync $ */
2/** @file
3 * VirtualBox Driver interface to VMM device
4 */
5
6/*
7 * Copyright (C) 2006-2017 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.alldomusa.eu.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 */
17
18#ifndef ____H_VMMDEV
19#define ____H_VMMDEV
20
21#include "VirtualBoxBase.h"
22#include <VBox/vmm/pdmdrv.h>
23#include <VBox/hgcmsvc.h>
24#include <iprt/asm.h>
25
26class Console;
27
28class VMMDevMouseInterface
29{
30public:
31 virtual PPDMIVMMDEVPORT getVMMDevPort() = 0;
32};
33
34class VMMDev : public VMMDevMouseInterface
35{
36public:
37 VMMDev(Console *console);
38 virtual ~VMMDev();
39 static const PDMDRVREG DrvReg;
40 /** Pointer to the associated VMMDev driver. */
41 struct DRVMAINVMMDEV *mpDrv;
42
43 bool fSharedFolderActive;
44 bool isShFlActive()
45 {
46 return fSharedFolderActive;
47 }
48
49 Console *getParent()
50 {
51 return mParent;
52 }
53
54 int WaitCredentialsJudgement (uint32_t u32Timeout, uint32_t *pu32GuestFlags);
55 int SetCredentialsJudgementResult (uint32_t u32Flags);
56
57 PPDMIVMMDEVPORT getVMMDevPort();
58
59#ifdef VBOX_WITH_HGCM
60 int hgcmLoadService (const char *pszServiceLibrary, const char *pszServiceName);
61 int hgcmHostCall (const char *pszServiceName, uint32_t u32Function, uint32_t cParms, PVBOXHGCMSVCPARM paParms);
62# ifdef VBOX_WITH_CRHGSMI
63 int hgcmHostSvcHandleCreate (const char *pszServiceName, HGCMCVSHANDLE * phSvc);
64 int hgcmHostSvcHandleDestroy (HGCMCVSHANDLE hSvc);
65 int hgcmHostFastCallAsync (HGCMCVSHANDLE hSvc, uint32_t function, PVBOXHGCMSVCPARM pParm, PHGCMHOSTFASTCALLCB pfnCompletion, void *pvCompletion);
66# endif
67 void hgcmShutdown(bool fUvmIsInvalid = false);
68
69 bool hgcmIsActive (void) { return ASMAtomicReadBool(&m_fHGCMActive); }
70#endif /* VBOX_WITH_HGCM */
71
72private:
73#ifdef VBOX_WITH_HGCM
74# ifdef VBOX_WITH_GUEST_PROPS
75 void i_guestPropSetMultiple(void *names, void *values, void *timestamps, void *flags);
76 void i_guestPropSet(const char *pszName, const char *pszValue, const char *pszFlags);
77 int i_guestPropSetGlobalPropertyFlags(uint32_t fFlags);
78 int i_guestPropLoadAndConfigure();
79# endif
80#endif
81 static DECLCALLBACK(void *) drvQueryInterface(PPDMIBASE pInterface, const char *pszIID);
82 static DECLCALLBACK(int) drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags);
83 static DECLCALLBACK(void) drvDestruct(PPDMDRVINS pDrvIns);
84 static DECLCALLBACK(void) drvReset(PPDMDRVINS pDrvIns);
85 static DECLCALLBACK(void) drvPowerOn(PPDMDRVINS pDrvIns);
86 static DECLCALLBACK(void) drvPowerOff(PPDMDRVINS pDrvIns);
87 static DECLCALLBACK(void) drvSuspend(PPDMDRVINS pDrvIns);
88 static DECLCALLBACK(void) drvResume(PPDMDRVINS pDrvIns);
89
90 Console * const mParent;
91
92 RTSEMEVENT mCredentialsEvent;
93 uint32_t mu32CredentialsFlags;
94
95#ifdef VBOX_WITH_HGCM
96 bool volatile m_fHGCMActive;
97#endif /* VBOX_WITH_HGCM */
98};
99
100#endif // !____H_VMMDEV
101/* vi: set tabstop=4 shiftwidth=4 expandtab: */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette