1 | /*
|
---|
2 | * Copyright (C) 2010 Sun Microsystems, Inc.
|
---|
3 | *
|
---|
4 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
5 | * available from http://www.virtualbox.org. This file is free software;
|
---|
6 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
7 | * General Public License (GPL) as published by the Free Software
|
---|
8 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
9 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
10 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
11 | *
|
---|
12 | * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
13 | * Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
14 | * additional information or have any questions.
|
---|
15 | */
|
---|
16 | #ifndef ___VBoxVideoVdma_h___
|
---|
17 | #define ___VBoxVideoVdma_h___
|
---|
18 |
|
---|
19 | #include <iprt/cdefs.h>
|
---|
20 | #include <VBox/VBoxVideo.h>
|
---|
21 | #include "../VBoxVideo.h"
|
---|
22 |
|
---|
23 | /* DMA commands are currently submitted over HGSMI */
|
---|
24 | typedef struct VBOXVDMAINFO
|
---|
25 | {
|
---|
26 | HGSMIHEAP CmdHeap;
|
---|
27 | UINT uLastCompletedPagingBufferCmdFenceId;
|
---|
28 | BOOL fEnabled;
|
---|
29 | } VBOXVDMAINFO, *PVBOXVDMAINFO;
|
---|
30 |
|
---|
31 | int vboxVdmaCreate (struct _DEVICE_EXTENSION* pDevExt, VBOXVDMAINFO *pInfo, ULONG offBuffer, ULONG cbBuffer);
|
---|
32 | int vboxVdmaDisable (struct _DEVICE_EXTENSION* pDevExt, PVBOXVDMAINFO pInfo);
|
---|
33 | int vboxVdmaEnable (struct _DEVICE_EXTENSION* pDevExt, PVBOXVDMAINFO pInfo);
|
---|
34 | int vboxVdmaFlush (struct _DEVICE_EXTENSION* pDevExt, PVBOXVDMAINFO pInfo);
|
---|
35 | int vboxVdmaDestroy (struct _DEVICE_EXTENSION* pDevExt, PVBOXVDMAINFO pInfo);
|
---|
36 | void vboxVdmaCBufDrSubmit (struct _DEVICE_EXTENSION* pDevExt, PVBOXVDMAINFO pInfo, PVBOXVDMACBUF_DR pDr);
|
---|
37 | struct VBOXVDMACBUF_DR* vboxVdmaCBufDrCreate (PVBOXVDMAINFO pInfo, uint32_t cbTrailingData);
|
---|
38 | void vboxVdmaCBufDrFree (PVBOXVDMAINFO pInfo, struct VBOXVDMACBUF_DR* pDr);
|
---|
39 |
|
---|
40 | #endif /* #ifndef ___VBoxVideoVdma_h___ */
|
---|