Changeset 67145 in vbox for trunk/src/VBox
- Timestamp:
- May 30, 2017 3:11:29 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 115821
- Location:
- trunk/src/VBox/Additions
- Files:
-
- 6 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/Makefile.kmk
r67066 r67145 56 56 xpdm/VBoxDisp.rc \ 57 57 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp \ 58 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBuffer Alloc.cpp \58 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBuffers.cpp \ 59 59 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIHostCmd.cpp \ 60 60 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/VBVABase.cpp \ -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/Makefile.kmk
r67066 r67145 49 49 common/VBoxMPVidModes.cpp \ 50 50 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp \ 51 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBuffer Alloc.cpp \51 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBuffers.cpp \ 52 52 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIHostCmd.cpp \ 53 53 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/Modesetting.cpp … … 122 122 common/VBoxMPHGSMI.cpp \ 123 123 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp \ 124 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBuffer Alloc.cpp \124 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBuffers.cpp \ 125 125 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIHostCmd.cpp \ 126 126 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/VBVABase.cpp \ -
trunk/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp
r67066 r67145 29 29 #include <VBoxVideoVBE.h> 30 30 #include <VBoxVideoIPRT.h> 31 32 /**33 * Submit a command descriptor allocated by @a VBoxHGSMIBufferAlloc.34 *35 * @param pCtx the context containing the heap used36 * @param pvBuffer the pointer returned by @a VBoxHGSMIBufferAlloc37 */38 DECLHIDDEN(int) VBoxHGSMIBufferSubmit(PHGSMIGUESTCOMMANDCONTEXT pCtx,39 void *pvBuffer)40 {41 /* Initialize the buffer and get the offset for port IO. */42 HGSMIOFFSET offBuffer = HGSMIHeapBufferOffset (HGSMIGUESTCMDHEAP_GET(&pCtx->heapCtx), pvBuffer);43 44 Assert(offBuffer != HGSMIOFFSET_VOID);45 if (offBuffer != HGSMIOFFSET_VOID)46 {47 /* Submit the buffer to the host. */48 VBVO_PORT_WRITE_U32(pCtx->port, offBuffer);49 /* Make the compiler aware that the host has changed memory. */50 ASMCompilerBarrier();51 return VINF_SUCCESS;52 }53 54 return VERR_INVALID_PARAMETER;55 }56 57 31 58 32 /** Detect whether HGSMI is supported by the host. */ -
trunk/src/VBox/Additions/common/VBoxVideo/HGSMIBuffers.cpp
r67144 r67145 97 97 #endif 98 98 } 99 100 /** 101 * Submit a command descriptor allocated by @a VBoxHGSMIBufferAlloc. 102 * 103 * @param pCtx the context containing the heap used 104 * @param pvBuffer the pointer returned by @a VBoxHGSMIBufferAlloc 105 */ 106 DECLHIDDEN(int) VBoxHGSMIBufferSubmit(PHGSMIGUESTCOMMANDCONTEXT pCtx, 107 void *pvBuffer) 108 { 109 /* Initialize the buffer and get the offset for port IO. */ 110 HGSMIOFFSET offBuffer = HGSMIHeapBufferOffset (HGSMIGUESTCMDHEAP_GET(&pCtx->heapCtx), pvBuffer); 111 112 Assert(offBuffer != HGSMIOFFSET_VOID); 113 if (offBuffer != HGSMIOFFSET_VOID) 114 { 115 /* Submit the buffer to the host. */ 116 VBVO_PORT_WRITE_U32(pCtx->port, offBuffer); 117 /* Make the compiler aware that the host has changed memory. */ 118 ASMCompilerBarrier(); 119 return VINF_SUCCESS; 120 } 121 122 return VERR_INVALID_PARAMETER; 123 } -
trunk/src/VBox/Additions/haiku/VBoxVideo/driver/Makefile.kmk
r67066 r67145 74 74 driver.cpp \ 75 75 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp \ 76 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBuffer Alloc.cpp \76 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBuffers.cpp \ 77 77 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/Modesetting.cpp \ 78 78 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/VBVABase.cpp \ -
trunk/src/VBox/Additions/linux/drm/files_vboxvideo_drv
r67066 r67145 37 37 ${PATH_ROOT}/include/VBox/Graphics/VBoxVideoVBE.h=>include/VBoxVideoVBE.h \ 38 38 ${PATH_ROOT}/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp=>HGSMIBase.c \ 39 ${PATH_ROOT}/src/VBox/Additions/common/VBoxVideo/HGSMIBuffer Alloc.cpp=>HGSMIBufferAlloc.c \39 ${PATH_ROOT}/src/VBox/Additions/common/VBoxVideo/HGSMIBuffers.cpp=>HGSMIBuffers.c \ 40 40 ${PATH_ROOT}/src/VBox/Additions/common/VBoxVideo/Modesetting.cpp=>Modesetting.c \ 41 41 ${PATH_ROOT}/src/VBox/Additions/common/VBoxVideo/VBVABase.cpp=>VBVABase.c \ -
trunk/src/VBox/Additions/x11/vboxvideo/Makefile.kmk
r67066 r67145 105 105 vbva.c \ 106 106 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp \ 107 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBuffer Alloc.cpp \107 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBuffers.cpp \ 108 108 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/Modesetting.cpp \ 109 109 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/VBVABase.cpp \
Note:
See TracChangeset
for help on using the changeset viewer.