HGSMIHost.h revision 33cba804084fe86c32094f622129013b94aaec59
/** @file
*
* VBox Host Guest Shared Memory Interface (HGSMI).
* Host part.
*/
/*
* Copyright (C) 2006-2008 Sun Microsystems, Inc.
*
* Sun Microsystems, Inc. confidential
* All rights reserved
*/
#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);
#if 0
/* Submit this buffer to the guest asynchronously. */
void *pvMem,
#endif
#endif /* __HGSMIHost_h__*/