VirtualBox

忽略:
時間撮記:
2019-11-1 下午09:07:06 (5 年 以前)
作者:
vboxsync
svn:sync-xref-src-repo-rev:
134384
訊息:

VMMDev: Converted to the new PDM device style. [fixes] bugref:9218

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Devices/VMMDev/VMMDevTesting.cpp

    r81625 r81627  
    685685 * @param   pDevIns             The VMMDev device instance.
    686686 */
    687 void vmmdevTestingTerminate(PPDMDEVINS pDevIns)
     687void vmmdevR3TestingTerminate(PPDMDEVINS pDevIns)
    688688{
    689689    PVMMDEV   pThis   = PDMDEVINS_2_DATA(pDevIns, PVMMDEV);
     
    707707 * @param   pDevIns             The VMMDev device instance.
    708708 */
    709 int vmmdevTestingInitialize(PPDMDEVINS pDevIns)
     709int vmmdevR3TestingInitialize(PPDMDEVINS pDevIns)
    710710{
    711711    PVMMDEV     pThis   = PDMDEVINS_2_DATA(pDevIns, PVMMDEV);
     
    749749}
    750750
    751 #endif /* IN_RING3 */
     751#else  /* !IN_RING3 */
     752
     753/**
     754 * Does the ring-0/raw-mode initialization of the testing part if enabled.
     755 *
     756 * @returns VBox status code.
     757 * @param   pDevIns             The VMMDev device instance.
     758 */
     759int vmmdevRZTestingInitialize(PPDMDEVINS pDevIns)
     760{
     761    PVMMDEV     pThis   = PDMDEVINS_2_DATA(pDevIns, PVMMDEV);
     762    int         rc;
     763
     764    if (!pThis->fTestingEnabled)
     765        return VINF_SUCCESS;
     766
     767    if (pThis->fTestingMMIO)
     768    {
     769        rc = PDMDevHlpMmioSetUpContext(pDevIns, pThis->hMmioTesting, vmmdevTestingMmioWrite, vmmdevTestingMmioRead, NULL);
     770        AssertRCReturn(rc, rc);
     771    }
     772
     773    rc = PDMDevHlpIoPortSetUpContext(pDevIns, pThis->hIoPortTesting, vmmdevTestingIoWrite, vmmdevTestingIoRead, NULL);
     774    AssertRCReturn(rc, rc);
     775
     776    return VINF_SUCCESS;
     777}
     778
     779#endif /* !IN_RING3 */
    752780#endif /* !VBOX_WITHOUT_TESTING_FEATURES */
    753781
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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