Changeset 45645 in vbox
- Timestamp:
- Apr 19, 2013 1:46:48 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/pdmdev.h
r45024 r45645 40 40 #include <VBox/err.h> 41 41 #include <VBox/pci.h> 42 #include <VBox/sup.h> 42 43 #include <iprt/stdarg.h> 43 44 … … 3602 3603 DECLR3CALLBACKMEMBER(uint64_t, pfnTMTimeVirtGetNano,(PPDMDEVINS pDevIns)); 3603 3604 3605 /** 3606 * Gets the support driver session. 3607 * 3608 * This is intended for working with the semaphore API. 3609 * 3610 * @returns Support driver session handle. 3611 * @param pDrvIns The driver instance. 3612 */ 3613 DECLR3CALLBACKMEMBER(PSUPDRVSESSION, pfnGetSupDrvSession,(PPDMDEVINS pDevIns)); 3614 3604 3615 /** @} */ 3605 3616 … … 3614 3625 3615 3626 /** Current PDMDEVHLPR3 version number. */ 3616 #define PDM_DEVHLPR3_VERSION PDM_VERSION_MAKE(0xffe7, 1 1, 0)3627 #define PDM_DEVHLPR3_VERSION PDM_VERSION_MAKE(0xffe7, 12, 0) 3617 3628 3618 3629 … … 5190 5201 } 5191 5202 5203 /* 5204 * @copydoc PDMDEVHLPR3::pfnGetSupDrvSession 5205 */ 5206 DECLINLINE(PSUPDRVSESSION) PDMDevHlpGetSupDrvSession(PPDMDEVINS pDevIns) 5207 { 5208 return pDevIns->pHlpR3->pfnGetSupDrvSession(pDevIns); 5209 } 5192 5210 #endif /* IN_RING3 */ 5193 5211 #ifdef IN_RING0 -
trunk/src/VBox/VMM/VMMR3/PDMDevHlp.cpp
r44902 r45645 670 670 LogFlow(("pdmR3DevHlp_TMTimeVirtGetNano: caller='%s'/%d: returns %RU64\n", pDevIns->pReg->szName, pDevIns->iInstance, u64Nano)); 671 671 return u64Nano; 672 } 673 674 675 /** @interface_method_impl{PDMDEVHLPR3,pfnGetSupDrvSession} */ 676 static DECLCALLBACK(PSUPDRVSESSION) pdmR3DevHlp_GetSupDrvSession(PPDMDEVINS pDevIns) 677 { 678 PDMDEV_ASSERT_DEVINS(pDevIns); 679 LogFlow(("pdmR3DevHlp_GetSupDrvSession: caller='%s'\n", 680 pDevIns->pReg->szName, pDevIns->iInstance)); 681 682 PSUPDRVSESSION pSession = pDevIns->Internal.s.pVMR3->pSession; 683 684 LogFlow(("pdmR3DevHlp_GetSupDrvSession: caller='%s'/%d: returns %#p\n", pDevIns->pReg->szName, pDevIns->iInstance, pSession)); 685 return pSession; 672 686 } 673 687 … … 3493 3507 pdmR3DevHlp_TMTimeVirtGetFreq, 3494 3508 pdmR3DevHlp_TMTimeVirtGetNano, 3509 pdmR3DevHlp_GetSupDrvSession, 3495 3510 PDM_DEVHLPR3_VERSION /* the end */ 3496 3511 }; … … 3607 3622 NOREF(iLeaf); NOREF(pEax); NOREF(pEbx); NOREF(pEcx); NOREF(pEdx); 3608 3623 AssertReleaseMsgFailed(("Untrusted device called trusted helper! '%s'/%d\n", pDevIns->pReg->szName, pDevIns->iInstance)); 3624 } 3625 3626 3627 /** @interface_method_impl{PDMDEVHLPR3,pfnGetSupDrvSession} */ 3628 static DECLCALLBACK(PSUPDRVSESSION) pdmR3DevHlp_Untrusted_GetSupDrvSession(PPDMDEVINS pDevIns) 3629 { 3630 PDMDEV_ASSERT_DEVINS(pDevIns); 3631 AssertReleaseMsgFailed(("Untrusted device called trusted helper! '%s'/%d\n", pDevIns->pReg->szName, pDevIns->iInstance)); 3632 return (PSUPDRVSESSION)0; 3609 3633 } 3610 3634 … … 3724 3748 pdmR3DevHlp_TMTimeVirtGetFreq, 3725 3749 pdmR3DevHlp_TMTimeVirtGetNano, 3750 pdmR3DevHlp_Untrusted_GetSupDrvSession, 3726 3751 PDM_DEVHLPR3_VERSION /* the end */ 3727 3752 };
Note:
See TracChangeset
for help on using the changeset viewer.