- Timestamp:
- Oct 21, 2021 12:59:54 PM (3 years ago)
- Location:
- trunk/src/VBox/Devices/Graphics
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA_VBVA.cpp
r90447 r91942 2828 2828 int VBVAInit(PPDMDEVINS pDevIns, PVGASTATE pThis, PVGASTATECC pThisCC) 2829 2829 { 2830 PVM pVM = PDMDevHlpGetVM(pDevIns);2831 2832 2830 int rc = HGSMICreate(&pThisCC->pHGSMI, 2833 p VM,2831 pDevIns, 2834 2832 "VBVA", 2835 2833 0, -
trunk/src/VBox/Devices/Graphics/HGSMI/HGSMIHost.cpp
r90791 r91942 162 162 typedef struct HGSMIINSTANCE 163 163 { 164 P VM pVM; /**< The VM. */164 PPDMDEVINS pDevIns; /**< The device instance. */ 165 165 166 166 const char *pszName; /**< A name for the instance. Mostyl used in the log. */ … … 328 328 AssertPtr(pIns); 329 329 330 Assert( VMMGetCpu(pIns->pVM) != NULL);330 Assert(PDMDevHlpGetVMCPU(pIns->pDevIns) != NULL); 331 331 332 332 #ifndef VBOX_WITH_WDDM … … 345 345 static bool hgsmiProcessHostCmdCompletion(HGSMIINSTANCE *pIns, HGSMIOFFSET offBuffer, bool fCompleteFirst) 346 346 { 347 Assert( VMMGetCpu(pIns->pVM) != NULL);347 Assert(PDMDevHlpGetVMCPU(pIns->pDevIns) != NULL); 348 348 349 349 int rc = hgsmiFIFOLock(pIns); … … 415 415 LogFlowFunc(("pIns %p\n", pIns)); 416 416 417 Assert( VMMGetCpu(pIns->pVM) != NULL);417 Assert(PDMDevHlpGetVMCPU(pIns->pDevIns) != NULL); 418 418 419 419 AssertPtrReturn(pIns->pHGFlags, HGSMIOFFSET_VOID); … … 1514 1514 1515 1515 int HGSMICreate(PHGSMIINSTANCE *ppIns, 1516 P VM pVM,1516 PPDMDEVINS pDevIns, 1517 1517 const char *pszName, 1518 1518 HGSMIOFFSET offBase, … … 1523 1523 size_t cbContext) 1524 1524 { 1525 LogFlowFunc(("ppIns = %p, p VM= %p, pszName = [%s], offBase = 0x%08X, pu8MemBase = %p, cbMem = 0x%08X, "1525 LogFlowFunc(("ppIns = %p, pDevIns = %p, pszName = [%s], offBase = 0x%08X, pu8MemBase = %p, cbMem = 0x%08X, " 1526 1526 "pfnNotifyGuest = %p, pvNotifyGuest = %p, cbContext = %d\n", 1527 1527 ppIns, 1528 p VM,1528 pDevIns, 1529 1529 pszName, 1530 1530 offBase, … … 1537 1537 1538 1538 AssertPtrReturn(ppIns, VERR_INVALID_PARAMETER); 1539 AssertPtrReturn(p VM, VERR_INVALID_PARAMETER);1539 AssertPtrReturn(pDevIns, VERR_INVALID_PARAMETER); 1540 1540 AssertPtrReturn(pu8MemBase, VERR_INVALID_PARAMETER); 1541 1541 … … 1553 1553 if (RT_SUCCESS (rc)) 1554 1554 { 1555 pIns->p VM = pVM;1555 pIns->pDevIns = pDevIns; 1556 1556 pIns->pszName = RT_VALID_PTR(pszName) ? pszName : ""; 1557 1557 -
trunk/src/VBox/Devices/Graphics/HGSMI/HGSMIHost.h
r85121 r91942 38 38 39 39 int HGSMICreate(PHGSMIINSTANCE *ppIns, 40 P VM pVM,40 PPDMDEVINS pDevIns, 41 41 const char *pszName, 42 42 HGSMIOFFSET offBase,
Note:
See TracChangeset
for help on using the changeset viewer.