1
/*********************************************************
2
* Copyright (C) 2007 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
*********************************************************/
20
* vmciGuestKernelIf.h --
22
* This file defines OS encapsulation helper functions that are
23
* needed only in VMCI guest kernel code. It must work for
24
* windows, solaris and linux kernel, ie. using defines
28
#ifndef _VMCI_GUEST_KERNEL_IF_H_
29
#define _VMCI_GUEST_KERNEL_IF_H_
37
# include <sys/sunddi.h>
38
# include <sys/types.h>
41
#include "vm_basic_types.h"
42
#include "vmci_defs.h"
45
typedef unsigned short int VMCIIoPort;
46
typedef int VMCIIoHandle;
48
typedef PUCHAR VMCIIoPort;
49
typedef int VMCIIoHandle;
50
#elif defined(SOLARIS)
51
typedef uint8_t * VMCIIoPort;
52
typedef ddi_acc_handle_t VMCIIoHandle;
53
#elif defined(__APPLE__)
54
typedef unsigned short int VMCIIoPort;
55
typedef void *VMCIIoHandle;
58
void VMCI_ReadPortBytes(VMCIIoHandle handle, VMCIIoPort port, uint8 *buffer,
61
#endif // _VMCI_GUEST_KERNEL_IF_H_