- Timestamp:
- Apr 11, 2017 9:59:29 AM (8 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp
r65381 r66506 19 19 #include <VBoxVideoGuest.h> 20 20 #include <VBoxVideoVBE.h> 21 22 #include <iprt/asm.h> 23 #include <iprt/string.h> 21 #include <VBoxVideoIPRT.h> 24 22 25 23 /** Send completion notification to the host for the command located at offset … … 43 41 HGSMIBUFFERHEADER *pHdr = HGSMIBufferHeaderFromData(pvMem); 44 42 HGSMIOFFSET offMem = HGSMIPointerToOffset(&pCtx->areaCtx, pHdr); 45 VBVOAssert(offMem != HGSMIOFFSET_VOID);43 Assert(offMem != HGSMIOFFSET_VOID); 46 44 if(offMem != HGSMIOFFSET_VOID) 47 45 { … … 56 54 { 57 55 int rc = HGSMIBufferProcess(&pCtx->areaCtx, &pCtx->channels, offBuffer); 58 VBVOAssert(!RT_FAILURE(rc));56 Assert(!RT_FAILURE(rc)); 59 57 if(RT_FAILURE(rc)) 60 58 { … … 77 75 { 78 76 HGSMIOFFSET offset = hgsmiGetHostBuffer(pCtx); 79 VBVOAssertReturnVoid(offset != HGSMIOFFSET_VOID);77 AssertReturnVoid(offset != HGSMIOFFSET_VOID); 80 78 hgsmiHostCmdProcess(pCtx, offset); 81 79 } … … 161 159 HGSMIOFFSET offBuffer = HGSMIHeapBufferOffset (HGSMIGUESTCMDHEAP_GET(&pCtx->heapCtx), pvBuffer); 162 160 163 VBVOAssert(offBuffer != HGSMIOFFSET_VOID);161 Assert(offBuffer != HGSMIOFFSET_VOID); 164 162 if (offBuffer != HGSMIOFFSET_VOID) 165 163 { … … 241 239 if (RT_SUCCESS(rc)) 242 240 { 243 VBVOAssertRC(pCaps->rc);241 AssertRC(pCaps->rc); 244 242 rc = pCaps->rc; 245 243 } … … 317 315 uint32_t *poffHostFlags) 318 316 { 319 VBVOAssertPtrNullReturnVoid(poffVRAMBaseMapping);320 VBVOAssertPtrNullReturnVoid(pcbMapping);321 VBVOAssertPtrNullReturnVoid(poffGuestHeapMemory);322 VBVOAssertPtrNullReturnVoid(pcbGuestHeapMemory);323 VBVOAssertPtrNullReturnVoid(poffHostFlags);317 AssertPtrNullReturnVoid(poffVRAMBaseMapping); 318 AssertPtrNullReturnVoid(pcbMapping); 319 AssertPtrNullReturnVoid(poffGuestHeapMemory); 320 AssertPtrNullReturnVoid(pcbGuestHeapMemory); 321 AssertPtrNullReturnVoid(poffHostFlags); 324 322 if (poffVRAMBaseMapping) 325 323 *poffVRAMBaseMapping = cbVRAM - VBVA_ADAPTER_INFORMATION_SIZE; … … 386 384 uint32_t offVRAMHostArea = offVRAMBaseMapping, cbHostArea = 0; 387 385 388 VBVOAssertPtrReturnVoid(poffVRAMHostArea);389 VBVOAssertPtrReturnVoid(pcbHostArea);386 AssertPtrReturnVoid(poffVRAMHostArea); 387 AssertPtrReturnVoid(pcbHostArea); 390 388 VBoxQueryConfHGSMI(pCtx, VBOX_VBVA_CONF32_HOST_HEAP_SIZE, &cbHostArea); 391 389 if (cbHostArea != 0) … … 464 462 * host heap is ready */ 465 463 int rc = vboxHGSMIReportFlagsLocation(pCtx, offVRAMFlagsLocation); 466 VBVOAssertRC(rc);464 AssertRC(rc); 467 465 if (RT_SUCCESS(rc) && fCaps) 468 466 { 469 467 /* Inform about caps */ 470 468 rc = vboxHGSMISendCapsInfo(pCtx, fCaps); 471 VBVOAssertRC(rc);469 AssertRC(rc); 472 470 } 473 471 if (RT_SUCCESS (rc)) … … 475 473 /* Report the host heap location. */ 476 474 rc = vboxHGSMIReportHostArea(pCtx, offVRAMHostArea, cbHostArea); 477 VBVOAssertRC(rc);475 AssertRC(rc); 478 476 } 479 477 // Log(("VBoxVideo::vboxSetupAdapterInfo finished rc = %d\n", rc)); -
trunk/src/VBox/Additions/common/VBoxVideo/Modesetting.cpp
r65381 r66506 21 21 22 22 #ifndef VBOX_GUESTR3XF86MOD 23 # include < iprt/string.h>23 # include <VBoxVideoIPRT.h> 24 24 #endif 25 25 … … 331 331 { 332 332 int rc; 333 VBVOAssertPtr(paHints);333 AssertPtr(paHints); 334 334 if (!VALID_PTR(paHints)) 335 335 return VERR_INVALID_POINTER; -
trunk/src/VBox/Additions/common/VBoxVideo/VBVABase.cpp
r65381 r66506 18 18 19 19 #include <VBoxVideoGuest.h> 20 #include <VBox/err.h> 21 // #include <VBox/log.h> 22 #include <iprt/string.h> 20 #include <VBoxVideoIPRT.h> 23 21 24 22 /* … … 162 160 uint32_t indexRecordNext; 163 161 164 VBVOAssert(!pCtx->fHwBufferOverflow);165 VBVOAssert(pCtx->pRecord == NULL);162 Assert(!pCtx->fHwBufferOverflow); 163 Assert(pCtx->pRecord == NULL); 166 164 167 165 indexRecordNext = (pCtx->pVBVA->indexRecordFree + 1) % VBVA_MAX_RECORDS; … … 206 204 // LogFunc(("\n")); 207 205 208 VBVOAssert(pCtx->pVBVA);206 Assert(pCtx->pVBVA); 209 207 210 208 pRecord = pCtx->pRecord; 211 VBVOAssert(pRecord && (pRecord->cbRecord & VBVA_F_RECORD_PARTIAL));209 Assert(pRecord && (pRecord->cbRecord & VBVA_F_RECORD_PARTIAL)); 212 210 213 211 /* Mark the record completed. */ … … 288 286 289 287 VBVABUFFER *pVBVA = pCtx->pVBVA; 290 VBVOAssert(pVBVA);288 Assert(pVBVA); 291 289 292 290 if (!pVBVA || pCtx->fHwBufferOverflow) … … 295 293 } 296 294 297 VBVOAssert(pVBVA->indexRecordFirst != pVBVA->indexRecordFree);295 Assert(pVBVA->indexRecordFirst != pVBVA->indexRecordFree); 298 296 299 297 pRecord = pCtx->pRecord; 300 VBVOAssert(pRecord && (pRecord->cbRecord & VBVA_F_RECORD_PARTIAL));298 Assert(pRecord && (pRecord->cbRecord & VBVA_F_RECORD_PARTIAL)); 301 299 302 300 // LogFunc(("%d\n", cb)); … … 328 326 // LogFunc(("Buffer overflow!!!\n")); 329 327 pCtx->fHwBufferOverflow = true; 330 VBVOAssert(false);328 Assert(false); 331 329 return false; 332 330 } … … 336 334 } 337 335 338 VBVOAssert(cbChunk <= cb);339 VBVOAssert(cbChunk <= vboxHwBufferAvail (pVBVA));336 Assert(cbChunk <= cb); 337 Assert(cbChunk <= vboxHwBufferAvail (pVBVA)); 340 338 341 339 vboxHwBufferPlaceDataAt (pCtx, (uint8_t *)p + cbWritten, cbChunk, pVBVA->off32Free); -
trunk/src/VBox/Additions/linux/drm/files_vboxvideo_drv
r66189 r66506 21 21 ${PATH_OUT}/revision-generated.h=>revision-generated.h \ 22 22 ${PATH_OUT}/product-generated.h=>product-generated.h \ 23 ${PATH_ROOT}/include/iprt/asm.h=>include/iprt/asm.h \24 ${PATH_ROOT}/include/iprt/asm-amd64-x86.h=>include/iprt/asm-amd64-x86.h \25 ${PATH_ROOT}/include/iprt/assert.h=>include/iprt/assert.h \26 23 ${PATH_ROOT}/include/iprt/cdefs.h=>include/iprt/cdefs.h \ 27 ${PATH_ROOT}/include/iprt/err.h=>include/iprt/err.h \28 ${PATH_ROOT}/include/iprt/latin1.h=>include/iprt/latin1.h \29 24 ${PATH_ROOT}/include/iprt/list.h=>include/iprt/list.h \ 30 25 ${PATH_ROOT}/include/iprt/stdarg.h=>include/iprt/stdarg.h \ 31 26 ${PATH_ROOT}/include/iprt/stdint.h=>include/iprt/stdint.h \ 32 ${PATH_ROOT}/include/iprt/string.h=>include/iprt/string.h \33 27 ${PATH_ROOT}/include/iprt/types.h=>include/iprt/types.h \ 34 ${PATH_ROOT}/include/iprt/utf16.h=>include/iprt/utf16.h \35 ${PATH_ROOT}/include/VBox/cdefs.h=>include/VBox/cdefs.h \36 ${PATH_ROOT}/include/VBox/err.h=>include/VBox/err.h \37 ${PATH_ROOT}/include/VBox/types.h=>include/VBox/types.h \38 28 ${PATH_ROOT}/include/VBox/Graphics/VBoxVideo.h=>include/VBoxVideo.h \ 39 29 ${PATH_ROOT}/include/VBox/Graphics/VBoxVideoGuest.h=>include/VBoxVideoGuest.h \ … … 47 37 ${PATH_ROOT}/src/VBox/Additions/common/VBoxVideo/Modesetting.cpp=>Modesetting.c \ 48 38 ${PATH_ROOT}/src/VBox/Additions/common/VBoxVideo/VBVABase.cpp=>VBVABase.c \ 39 ${PATH_ROOT}/src/VBox/Additions/linux/drm/VBoxVideoIPRT.h=>include/VBoxVideoIPRT.h \ 49 40 ${PATH_ROOT}/src/VBox/Additions/linux/drm/vbox_drv.c=>vbox_drv.c \ 50 41 ${PATH_ROOT}/src/VBox/Additions/linux/drm/vbox_drv.h=>vbox_drv.h \ -
trunk/src/VBox/GuestHost/HGSMI/HGSMICommon.cpp
r65381 r66506 23 23 #define LOG_GROUP LOG_GROUP_HGSMI 24 24 25 #include < iprt/string.h>25 #include <VBoxVideoIPRT.h> 26 26 27 27 #include <HGSMI.h> -
trunk/src/VBox/GuestHost/HGSMI/HGSMIMemAlloc.cpp
r65381 r66506 56 56 #include <HGSMI.h> 57 57 58 #include <iprt/err.h> 59 #include <iprt/string.h> 58 #include <VBoxVideoIPRT.h> 60 59 61 60 /*
Note:
See TracChangeset
for help on using the changeset viewer.