VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoCm.h@ 33890

Last change on this file since 33890 was 33530, checked in by vboxsync, 14 years ago

wddm/3d: chromium hgsmi: better alloc/submit engine

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.3 KB
Line 
1/*
2 * Copyright (C) 2010 Oracle Corporation
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#ifndef ___VBoxVideoCm_h___
13#define ___VBoxVideoCm_h___
14
15typedef struct VBOXVIDEOCM_MGR
16{
17 KEVENT SynchEvent;
18 /* session list */
19 LIST_ENTRY SessionList;
20} VBOXVIDEOCM_MGR, *PVBOXVIDEOCM_MGR;
21
22typedef struct VBOXVIDEOCM_CTX
23{
24 LIST_ENTRY SessionEntry;
25 struct VBOXVIDEOCM_SESSION *pSession;
26 uint64_t u64UmData;
27 VBOXWDDM_HTABLE AllocTable;
28} VBOXVIDEOCM_CTX, *PVBOXVIDEOCM_CTX;
29
30void vboxVideoCmCtxInitEmpty(PVBOXVIDEOCM_CTX pContext);
31
32NTSTATUS vboxVideoCmCtxAdd(PVBOXVIDEOCM_MGR pMgr, PVBOXVIDEOCM_CTX pContext, HANDLE hUmEvent, uint64_t u64UmData);
33NTSTATUS vboxVideoCmCtxRemove(PVBOXVIDEOCM_MGR pMgr, PVBOXVIDEOCM_CTX pContext);
34NTSTATUS vboxVideoCmInit(PVBOXVIDEOCM_MGR pMgr);
35NTSTATUS vboxVideoCmTerm(PVBOXVIDEOCM_MGR pMgr);
36
37void* vboxVideoCmCmdCreate(PVBOXVIDEOCM_CTX pContext, uint32_t cbSize);
38void* vboxVideoCmCmdReinitForContext(void *pvCmd, PVBOXVIDEOCM_CTX pContext);
39void vboxVideoCmCmdRetain(void *pvCmd);
40void vboxVideoCmCmdRelease(void *pvCmd);
41#define VBOXVIDEOCM_SUBMITSIZE_DEFAULT (~0UL)
42void vboxVideoCmCmdSubmit(void *pvCmd, uint32_t cbSize);
43
44#define VBOXVIDEOCMCMDVISITOR_RETURN_CONTINUE 0x00000001
45#define VBOXVIDEOCMCMDVISITOR_RETURN_RMCMD 0x00000002
46typedef DECLCALLBACK(UINT) FNVBOXVIDEOCMCMDVISITOR(PVBOXVIDEOCM_CTX pContext, PVOID pvCmd, uint32_t cbCmd, PVOID pvVisitor);
47typedef FNVBOXVIDEOCMCMDVISITOR *PFNVBOXVIDEOCMCMDVISITOR;
48NTSTATUS vboxVideoCmCmdVisit(PVBOXVIDEOCM_CTX pContext, BOOL bEntireSession, PFNVBOXVIDEOCMCMDVISITOR pfnVisitor, PVOID pvVisitor);
49
50NTSTATUS vboxVideoCmEscape(PVBOXVIDEOCM_CTX pContext, PVBOXDISPIFESCAPE_GETVBOXVIDEOCMCMD pCmd, uint32_t cbCmd);
51VOID vboxVideoCmLock(PVBOXVIDEOCM_CTX pContext);
52VOID vboxVideoCmUnlock(PVBOXVIDEOCM_CTX pContext);
53
54#endif /* #ifndef ___VBoxVideoCm_h___ */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette