1
/*********************************************************
2
* Copyright (C) 2006 VMware, Inc. All rights reserved.
4
* This program is free software; you can redistribute it and/or modify it
5
* under the terms of the GNU General Public License as published by the
6
* Free Software Foundation version 2 and no later version.
8
* This program is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13
* You should have received a copy of the GNU General Public License along
14
* with this program; if not, write to the Free Software Foundation, Inc.,
15
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17
*********************************************************/
22
* Internal functions in the VMCI Simple Datagram API.
25
#ifndef _VMCI_DATAGRAM_H_
26
#define _VMCI_DATAGRAM_H_
28
#define INCLUDE_ALLOW_MODULE
29
#define INCLUDE_ALLOW_VMMON
30
#define INCLUDE_ALLOW_VMCORE
31
#define INCLUDE_ALLOW_VMKERNEL
32
#include "includeCheck.h"
34
#include "vmciContext.h"
35
#include "vmci_call_defs.h"
37
#include "vmci_iocontrols.h"
38
#endif // !VMX86_SERVER
40
#define VMCI_MAX_DELAYED_DG_HOST_QUEUE_SIZE 256
43
int VMCIDatagram_Init(void);
44
void VMCIDatagram_Exit(void);
46
/* Datagram API for non-public use. */
47
int VMCIDatagram_Dispatch(VMCIId contextID, VMCIDatagram *dg, Bool fromGuest);
48
int VMCIDatagram_InvokeGuestHandler(VMCIDatagram *dg);
49
int VMCIDatagram_GetPrivFlags(VMCIHandle handle, VMCIPrivilegeFlags *privFlags);
52
void VMCIDatagram_Sync(void);
53
Bool VMCIDatagram_CheckHostCapabilities(void);
55
/* Non public datagram API. */
56
int VMCIDatagramRequestWellKnownMap(VMCIId wellKnownID, VMCIId contextID,
57
VMCIPrivilegeFlags privFlags);
58
int VMCIDatagramRemoveWellKnownMap(VMCIId wellKnownID, VMCIId contextID);
60
#endif // _VMCI_DATAGRAM_H_