1 | /* $Id: VMMDevHGCM.h 75990 2018-12-05 19:51:01Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBoxDev - HGCM - Host-Guest Communication Manager, internal header.
|
---|
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.virtualbox.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 ___VMMDev_VMMDevHGCM_h
|
---|
19 | #define ___VMMDev_VMMDevHGCM_h
|
---|
20 |
|
---|
21 | #include "VMMDevState.h"
|
---|
22 |
|
---|
23 | RT_C_DECLS_BEGIN
|
---|
24 | int vmmdevHGCMConnect(VMMDevState *pVMMDevState, const VMMDevHGCMConnect *pHGCMConnect, RTGCPHYS GCPtr);
|
---|
25 | int vmmdevHGCMDisconnect(VMMDevState *pVMMDevState, const VMMDevHGCMDisconnect *pHGCMDisconnect, RTGCPHYS GCPtr);
|
---|
26 | int vmmdevHGCMCall(VMMDevState *pVMMDevState, const VMMDevHGCMCall *pHGCMCall, uint32_t cbHGCMCall, RTGCPHYS GCPtr,
|
---|
27 | VMMDevRequestType enmRequestType, uint64_t tsArrival, PVMMDEVREQLOCK *ppLock);
|
---|
28 | int vmmdevHGCMCancel(VMMDevState *pVMMDevState, const VMMDevHGCMCancel *pHGCMCancel, RTGCPHYS GCPtr);
|
---|
29 | int vmmdevHGCMCancel2(VMMDevState *pVMMDevState, RTGCPHYS GCPtr);
|
---|
30 |
|
---|
31 | DECLCALLBACK(int) hgcmCompleted(PPDMIHGCMPORT pInterface, int32_t result, PVBOXHGCMCMD pCmdPtr);
|
---|
32 | DECLCALLBACK(bool) hgcmIsCmdRestored(PPDMIHGCMPORT pInterface, PVBOXHGCMCMD pCmd);
|
---|
33 | DECLCALLBACK(bool) hgcmIsCmdCancelled(PPDMIHGCMPORT pInterface, PVBOXHGCMCMD pCmd);
|
---|
34 | DECLCALLBACK(uint32_t) hgcmGetRequestor(PPDMIHGCMPORT pInterface, PVBOXHGCMCMD pCmd);
|
---|
35 | DECLCALLBACK(uint64_t) hgcmGetVMMDevSessionId(PPDMIHGCMPORT pInterface);
|
---|
36 |
|
---|
37 | int vmmdevHGCMSaveState(VMMDevState *pVMMDevState, PSSMHANDLE pSSM);
|
---|
38 | int vmmdevHGCMLoadState(VMMDevState *pVMMDevState, PSSMHANDLE pSSM, uint32_t u32Version);
|
---|
39 | int vmmdevHGCMLoadStateDone(VMMDevState *pVMMDevState);
|
---|
40 |
|
---|
41 | void vmmdevHGCMDestroy(PVMMDEV pThis);
|
---|
42 | int vmmdevHGCMInit(PVMMDEV pThis);
|
---|
43 | RT_C_DECLS_END
|
---|
44 |
|
---|
45 | #endif /* !___VMMDev_VMMDevHGCM_h */
|
---|
46 |
|
---|