VBoxMPTypes.h revision 441b60f8b0601cc1718368c9c3ef082223ad12a2
/* $Id$ */
/** @file
* VBox WDDM Miniport driver
*/
/*
* Copyright (C) 2011 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 ___VBoxMPTypes_h___
#define ___VBoxMPTypes_h___
typedef struct _VBOXMP_DEVEXT *PVBOXMP_DEVEXT;
typedef struct VBOXWDDM_SWAPCHAIN *PVBOXWDDM_SWAPCHAIN;
typedef struct VBOXWDDM_CONTEXT *PVBOXWDDM_CONTEXT;
typedef struct VBOXWDDM_ALLOCATION *PVBOXWDDM_ALLOCATION;
#include "common/wddm/VBoxMPIf.h"
#include "VBoxMPMisc.h"
#include "VBoxMPCm.h"
#include "VBoxMPVdma.h"
#include "VBoxMPShgsmi.h"
#include "VBoxMPVbva.h"
/* one page size */
#define VBOXWDDM_C_DMA_BUFFER_SIZE 0x1000
#define VBOXWDDM_C_DMA_PRIVATEDATA_SIZE 0x4000
#define VBOXWDDM_C_ALLOC_LIST_SIZE 0xc00
#define VBOXWDDM_C_PATH_LOCATION_LIST_SIZE 0xc00
#define VBOXWDDM_C_POINTER_MAX_WIDTH 64
#define VBOXWDDM_C_POINTER_MAX_HEIGHT 64
#ifdef VBOX_WITH_VDMA
#endif
#ifndef VBOXWDDM_RENDER_FROM_SHADOW
# ifndef VBOX_WITH_VDMA
# error "VBOX_WITH_VDMA must be defined!!!"
# endif
#endif
, 8)
typedef struct _VBOXWDDM_POINTER_INFO
{
union
{
} Attributes;
typedef struct _VBOXWDDM_GLOBAL_POINTER_INFO
{
#ifdef VBOX_WITH_VIDEOHWACCEL
typedef struct VBOXWDDM_VHWA
{
volatile uint32_t cOverlaysCreated;
#endif
typedef struct VBOXWDDM_SOURCE
{
struct VBOXWDDM_ALLOCATION * pPrimaryAllocation;
#ifdef VBOXWDDM_RENDER_FROM_SHADOW
struct VBOXWDDM_ALLOCATION * pShadowAllocation;
#endif
#ifdef VBOX_WITH_VIDEOHWACCEL
/* @todo: in our case this seems more like a target property,
* but keep it here for now */
#endif
typedef struct VBOXWDDM_TARGET
{
/* allocation */
//#define VBOXWDDM_ALLOCATIONINDEX_VOID (~0U)
typedef struct VBOXWDDM_ALLOCATION
{
struct VBOXWDDM_SWAPCHAIN *pSwapchain;
// VBOXWDDM_ALLOCUSAGE_TYPE enmCurrentUsage;
#ifdef VBOX_WITH_VIDEOHWACCEL
#endif
struct VBOXWDDM_RESOURCE *pResource;
/* to return to the Runtime on DxgkDdiCreateAllocation */
union
{
};
typedef struct VBOXWDDM_RESOURCE
{
typedef struct VBOXWDDM_OVERLAY
{
typedef enum
{
typedef struct VBOXWDDM_DEVICE
{
VBOXWDDM_DEVICE_TYPE enmType; /* device creation flags passed to DxgkDdiCreateDevice, not sure we need it */
typedef enum
{
typedef struct VBOXWDDM_SWAPCHAIN
{
struct VBOXWDDM_CONTEXT *pContext;
typedef struct VBOXWDDM_CONTEXT
{
// LIST_ENTRY ListEntry;
struct VBOXWDDM_DEVICE * pDevice;
// UINT uLastCompletedCmdFenceId;
typedef struct VBOXWDDM_DMA_PRIVATEDATA_PRESENTHDR
{
#ifdef VBOXWDDM_RENDER_FROM_SHADOW
typedef struct VBOXWDDM_DMA_PRIVATEDATA_SHADOW2PRIMARY
{
#endif
typedef struct VBOXWDDM_DMA_PRIVATEDATA_BLT
{
typedef struct VBOXWDDM_DMA_PRIVATEDATA_FLIP
{
typedef struct VBOXWDDM_DMA_PRIVATEDATA_CLRFILL
{
typedef struct VBOXWDDM_UHGSMI_BUFFER_SUBMIT_INFO
{
typedef struct VBOXWDDM_DMA_PRIVATEDATA_CHROMIUM_CMD
{
typedef struct VBOXWDDM_OPENALLOCATION
{
#define VBOXWDDM_MAX_VIDEOMODES 128
typedef struct VBOXWDDM_VIDEOMODES_INFO
{
#endif /* #ifndef ___VBoxMPTypes_h___ */