Changeset 64409 in vbox for trunk/src/VBox
- Timestamp:
- Oct 25, 2016 11:54:49 AM (8 years ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevBusLogic.cpp
r64387 r64409 453 453 /** Partner of ILeds. */ 454 454 R3PTRTYPE(PPDMILEDCONNECTORS) pLedsConnector; 455 /** Status LUN: Media Notifys. */ 456 R3PTRTYPE(PPDMIMEDIANOTIFY) pMediaNotify; 455 457 456 458 #if HC_ARCH_BITS == 64 … … 1456 1458 * Copy from guest to host memory worker. 1457 1459 * 1458 * @copydoc {BUSLOGICR3MEMCOPYCALLBACK}1460 * @copydoc BUSLOGICR3MEMCOPYCALLBACK 1459 1461 */ 1460 1462 static DECLCALLBACK(void) buslogicR3CopyBufferFromGuestWorker(PBUSLOGIC pThis, RTGCPHYS GCPhys, PRTSGBUF pSgBuf, … … 1481 1483 * Copy from host to guest memory worker. 1482 1484 * 1483 * @copydoc {BUSLOGICR3MEMCOPYCALLBACK}1485 * @copydoc BUSLOGICR3MEMCOPYCALLBACK 1484 1486 */ 1485 1487 static DECLCALLBACK(void) buslogicR3CopyBufferToGuestWorker(PBUSLOGIC pThis, RTGCPHYS GCPhys, PRTSGBUF pSgBuf, … … 2995 2997 PBUSLOGIC pThis = pTgtDev->CTX_SUFF(pBusLogic); 2996 2998 2997 RT_NOREF(pThis); /** @todo */ 2999 if (pThis->pMediaNotify) 3000 { 3001 int rc = VMR3ReqCallNoWait(PDMDevHlpGetVM(pThis->CTX_SUFF(pDevIns)), VMCPUID_ANY, 3002 (PFNRT)pThis->pMediaNotify->pfnEjected, 2, 3003 pThis->pMediaNotify, pTgtDev->iLUN); 3004 AssertRC(rc); 3005 } 2998 3006 } 2999 3007 … … 4184 4192 rc = PDMDevHlpDriverAttach(pDevIns, PDM_STATUS_LUN, &pThis->IBase, &pBase, "Status Port"); 4185 4193 if (RT_SUCCESS(rc)) 4194 { 4186 4195 pThis->pLedsConnector = PDMIBASE_QUERY_INTERFACE(pBase, PDMILEDCONNECTORS); 4196 pThis->pMediaNotify = PDMIBASE_QUERY_INTERFACE(pBase, PDMIMEDIANOTIFY); 4197 } 4187 4198 else if (rc != VERR_PDM_NO_ATTACHED_DRIVER) 4188 4199 { -
trunk/src/VBox/Devices/Storage/DevLsiLogicSCSI.cpp
r64391 r64409 343 343 /** Status LUN: Partner of ILeds. */ 344 344 R3PTRTYPE(PPDMILEDCONNECTORS) pLedsConnector; 345 /** Status LUN: Media Notifys. */ 346 R3PTRTYPE(PPDMIMEDIANOTIFY) pMediaNotify; 345 347 /** Pointer to the configuration page area. */ 346 348 R3PTRTYPE(PMptConfigurationPagesSupported) pConfigurationPages; … … 1861 1863 * Copy from guest to host memory worker. 1862 1864 * 1863 * @copydoc {LSILOGICR3MEMCOPYCALLBACK}1865 * @copydoc LSILOGICR3MEMCOPYCALLBACK 1864 1866 */ 1865 1867 static DECLCALLBACK(void) lsilogicR3CopyBufferFromGuestWorker(PLSILOGICSCSI pThis, RTGCPHYS GCPhys, PRTSGBUF pSgBuf, … … 1886 1888 * Copy from host to guest memory worker. 1887 1889 * 1888 * @copydoc {LSILOGICR3MEMCOPYCALLBACK}1890 * @copydoc LSILOGICR3MEMCOPYCALLBACK 1889 1891 */ 1890 1892 static DECLCALLBACK(void) lsilogicR3CopyBufferToGuestWorker(PLSILOGICSCSI pThis, RTGCPHYS GCPhys, PRTSGBUF pSgBuf, … … 2417 2419 PLSILOGICSCSI pThis = pTgtDev->CTX_SUFF(pLsiLogic); 2418 2420 2419 RT_NOREF(pThis); /** @todo */ 2421 if (pThis->pMediaNotify) 2422 { 2423 int rc = VMR3ReqCallNoWait(PDMDevHlpGetVM(pThis->CTX_SUFF(pDevIns)), VMCPUID_ANY, 2424 (PFNRT)pThis->pMediaNotify->pfnEjected, 2, 2425 pThis->pMediaNotify, pTgtDev->iLUN); 2426 AssertRC(rc); 2427 } 2420 2428 } 2421 2429 … … 5619 5627 rc = PDMDevHlpDriverAttach(pDevIns, PDM_STATUS_LUN, &pThis->IBase, &pBase, "Status Port"); 5620 5628 if (RT_SUCCESS(rc)) 5629 { 5621 5630 pThis->pLedsConnector = PDMIBASE_QUERY_INTERFACE(pBase, PDMILEDCONNECTORS); 5631 pThis->pMediaNotify = PDMIBASE_QUERY_INTERFACE(pBase, PDMIMEDIANOTIFY); 5632 } 5622 5633 else if (rc != VERR_PDM_NO_ATTACHED_DRIVER) 5623 5634 { -
trunk/src/VBox/Devices/testcase/tstDeviceStructSizeRC.cpp
r64395 r64409 1781 1781 GEN_CHECK_OFF(BUSLOGIC, ILeds); 1782 1782 GEN_CHECK_OFF(BUSLOGIC, pLedsConnector); 1783 GEN_CHECK_OFF(BUSLOGIC, pMediaNotify); 1783 1784 GEN_CHECK_OFF(BUSLOGIC, fSignalIdle); 1784 1785 GEN_CHECK_OFF(BUSLOGIC, fWrkThreadSleeping); … … 1856 1857 GEN_CHECK_OFF(LSILOGICSCSI, ILeds); 1857 1858 GEN_CHECK_OFF(LSILOGICSCSI, pLedsConnector); 1859 GEN_CHECK_OFF(LSILOGICSCSI, pMediaNotify); 1858 1860 GEN_CHECK_OFF(LSILOGICSCSI, pConfigurationPages); 1859 1861 GEN_CHECK_OFF(LSILOGICSCSI, fSignalIdle);
Note:
See TracChangeset
for help on using the changeset viewer.