HGSMIHost.h revision e068057c82b010bc7cc663e8f57ac3ef1890a33c
/** @file
*
* VBox Host Guest Shared Memory Interface (HGSMI).
* Host part.
*/
/*
* Copyright (C) 2006-2008 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
#ifndef ___HGSMIHost_h
#define ___HGSMIHost_h
struct _HGSMIINSTANCE;
typedef struct _HGSMIINSTANCE *PHGSMIINSTANCE;
/* Callback for the guest notifiation about a new host buffer. */
typedef FNHGSMINOTIFYGUEST *PFNHGSMINOTIFYGUEST;
/*
* Public Host API for virtual devices.
*/
const char *pszName,
void *pvNotifyGuest,
const void *pv);
void *pvChannelHandler,
const char *pszChannel,
void *pvChannelHandler,
const HGSMICHANNELHANDLER *pHandler,
const HGSMIBUFFERHEADER *pHeader);
/*
* Virtual hardware IO handlers.
*/
/* Guests passes a new command buffer to the host. */
/* Guest reads information about guest buffers. */
/* Guest reads the host FIFO to get a command. */
/* Guest reports that the command at this offset has been processed. */
/*
* Low level interface for submitting buffers to the guest.
*
* These functions are not directly available for anyone but the
* virtual hardware device.
*/
/* Allocate a buffer in the host heap. */
void **ppvMem,
void *pvMem);
void *pvMem,
bool bDoIrq);
void *pvMem);
#ifdef VBOX_WITH_WDDM
#endif
#endif /* !___HGSMIHost_h*/