VBoxVideoVdma.h revision 0614bee07b5f88aa8803df43fde6d7185a9a7fff
/*
* Copyright (C) 2010 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 ___VBoxVideoVdma_h___
#define ___VBoxVideoVdma_h___
#include <VBox/VBoxVideo.h>
#include "../VBoxVideo.h"
#if 0
typedef DECLCALLBACK(int) FNVBOXVDMASUBMIT(struct _DEVICE_EXTENSION* pDevExt, struct VBOXVDMAINFO * pInfo, HGSMIOFFSET offDr, PVOID pvContext);
typedef FNVBOXVDMASUBMIT *PFNVBOXVDMASUBMIT;
typedef struct VBOXVDMASUBMIT
{
#endif
/* start */
typedef enum
{
typedef struct VBOXVDMAPIPE
{
/* true iff the other end needs Event notification */
bool bNeedNotify;
typedef struct VBOXVDMAPIPE_CMD_HDR
{
#define VBOXVDMAPIPE_CMD_HDR_FROM_ENTRY(_pE) ( (PVBOXVDMAPIPE_CMD_HDR)((uint8_t *)(_pE) - RT_OFFSETOF(VBOXVDMAPIPE_CMD_HDR, ListEntry)) )
typedef enum
{
typedef struct VBOXVDMAPIPE_CMD_DR
{
#define VBOXVDMAPIPE_CMD_DR_FROM_ENTRY(_pE) ( (PVBOXVDMAPIPE_CMD_DR)VBOXVDMAPIPE_CMD_HDR_FROM_ENTRY(_pE) )
typedef struct VBOXVDMAPIPE_RECTS
{
typedef struct VBOXVDMAPIPE_CMD_RECTSINFO
{
struct VBOXWDDM_CONTEXT *pContext;
typedef struct VBOXVDMAPIPE_CMD_DMACMD_CLRFILL
{
struct VBOXWDDM_CONTEXT *pContext;
struct VBOXWDDM_ALLOCATION *pAllocation;
typedef struct VBOXVDMAGG
{
} VBOXVDMAGG, *PVBOXVDMAGG;
/* DMA commands are currently submitted over HGSMI */
typedef struct VBOXVDMAINFO
{
#ifdef VBOXVDMA
#endif
#if 0
#endif
/* dma-related commands list processed on the guest w/o host part involvement (guest-guest commands) */
#ifdef VBOXVDMA
#endif
#if 0
#endif
);
#ifdef VBOXVDMA
int vboxVdmaCBufDrSubmit (struct _DEVICE_EXTENSION* pDevExt, PVBOXVDMAINFO pInfo, PVBOXVDMACBUF_DR pDr);
#define VBOXVDMACBUF_DR_DATA_OFFSET() (sizeof (VBOXVDMACBUF_DR))
#endif
PVBOXVDMAPIPE_CMD_DR vboxVdmaGgCmdCreate(PVBOXVDMAGG pVdma, VBOXVDMAPIPE_CMD_TYPE enmType, uint32_t cbCmd);
#endif /* #ifndef ___VBoxVideoVdma_h___ */