- Timestamp:
- Aug 4, 2016 9:57:20 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VMMDev.h
r62476 r62965 2111 2111 #define VBVA_MAX_RECORDS (64) 2112 2112 2113 #define VBVA_F_MODE_ENABLED (0x00000001)2114 #define VBVA_F_MODE_VRDP (0x00000002)2115 #define VBVA_F_MODE_VRDP_RESET (0x00000004)2116 #define VBVA_F_MODE_VRDP_ORDER_MASK (0x00000008)2117 2118 #define VBVA_F_STATE_PROCESSING (0x00010000)2119 2120 #define VBVA_F_RECORD_PARTIAL (0x80000000)2113 #define VBVA_F_MODE_ENABLED UINT32_C(0x00000001) 2114 #define VBVA_F_MODE_VRDP UINT32_C(0x00000002) 2115 #define VBVA_F_MODE_VRDP_RESET UINT32_C(0x00000004) 2116 #define VBVA_F_MODE_VRDP_ORDER_MASK UINT32_C(0x00000008) 2117 2118 #define VBVA_F_STATE_PROCESSING UINT32_C(0x00010000) 2119 2120 #define VBVA_F_RECORD_PARTIAL UINT32_C(0x80000000) 2121 2121 /** @} */ 2122 2122 -
trunk/include/VBox/vmm/pdmaudioifs.h
r62833 r62965 776 776 * Adds a reference to the specified audio stream. 777 777 * 778 * @returns New reference count. 778 * @returns New reference count. UINT32_MAX on error. 779 779 * @param pInterface Pointer to the interface structure containing the called function pointer. 780 780 * @param pStream Pointer to audio stream adding the reference to. 781 781 */ 782 DECLR3CALLBACKMEMBER(uint32_t, pfnStream AddRef, (PPDMIAUDIOCONNECTOR pInterface, PPDMAUDIOSTREAM pStream));782 DECLR3CALLBACKMEMBER(uint32_t, pfnStreamRetain, (PPDMIAUDIOCONNECTOR pInterface, PPDMAUDIOSTREAM pStream)); 783 783 784 784 /** 785 785 * Releases a reference from the specified stream. 786 786 * 787 * @returns New reference count. 787 * @returns New reference count. UINT32_MAX on error. 788 788 * @param pInterface Pointer to the interface structure containing the called function pointer. 789 789 * @param pStream Pointer to audio stream releasing a reference from. -
trunk/src/VBox/Devices/Audio/AudioMixBuffer.cpp
r62909 r62965 583 583 584 584 /** Dummy conversion used when the source is muted. */ 585 static DECLCALLBACK(uint32_t) audioMixBufConvFromSilence(PPDMAUDIOSAMPLE paDst, const void *pvSrc, 586 uint32_t cbSrc, PCPDMAUDMIXBUFCONVOPTS pOpts) 587 { 585 static DECLCALLBACK(uint32_t) 586 audioMixBufConvFromSilence(PPDMAUDIOSAMPLE paDst, const void *pvSrc, uint32_t cbSrc, PCPDMAUDMIXBUFCONVOPTS pOpts) 587 { 588 RT_NOREF(cbSrc, pvSrc); 589 588 590 /* Internally zero always corresponds to silence. */ 589 591 RT_BZERO(paDst, pOpts->cSamples * sizeof(paDst[0])); … … 648 650 } 649 651 } 650 651 return NULL; 652 /* not reached */ 652 653 } 653 654 … … 709 710 } 710 711 } 711 712 return NULL; 712 /* not reached */ 713 713 } 714 714 … … 1019 1019 #endif 1020 1020 1021 uint32_t cSrcToRead ;1021 uint32_t cSrcToRead = 0; 1022 1022 uint32_t cSrcRead; 1023 1023 -
trunk/src/VBox/Devices/Audio/AudioMixer.cpp
r62605 r62965 129 129 int AudioMixerCreate(const char *pszName, uint32_t fFlags, PAUDIOMIXER *ppMixer) 130 130 { 131 RT_NOREF(fFlags); 131 132 AssertPtrReturn(pszName, VERR_INVALID_POINTER); 132 133 /** @todo Add fFlags validation. */ … … 176 177 void AudioMixerDebug(PAUDIOMIXER pMixer, PCDBGFINFOHLP pHlp, const char *pszArgs) 177 178 { 179 RT_NOREF(pszArgs); 178 180 PAUDMIXSINK pSink; 179 181 unsigned iSink = 0; … … 491 493 /* Increase the stream's reference count to let others know 492 494 * we're reyling on it to be around now. */ 493 pConn->pfnStream AddRef(pConn, pStream);495 pConn->pfnStreamRetain(pConn, pStream); 494 496 } 495 497 … … 763 765 int AudioMixerSinkRead(PAUDMIXSINK pSink, AUDMIXOP enmOp, void *pvBuf, uint32_t cbBuf, uint32_t *pcbRead) 764 766 { 767 RT_NOREF(enmOp); 765 768 AssertPtrReturn(pSink, VERR_INVALID_POINTER); 766 769 AssertPtrReturn(pvBuf, VERR_INVALID_POINTER); … … 1080 1083 AssertPtr(pConn); 1081 1084 1082 uint32_t cPlayed = 0;1083 1085 uint32_t cCaptured = 0; 1084 1086 … … 1257 1259 int AudioMixerSinkWrite(PAUDMIXSINK pSink, AUDMIXOP enmOp, const void *pvBuf, uint32_t cbBuf, uint32_t *pcbWritten) 1258 1260 { 1261 RT_NOREF(enmOp); 1259 1262 AssertPtrReturn(pSink, VERR_INVALID_POINTER); 1260 1263 /* pcbWritten is optional. */ … … 1320 1323 int AudioMixerStreamCtl(PAUDMIXSTREAM pMixStream, PDMAUDIOSTREAMCMD enmCmd, uint32_t fCtl) 1321 1324 { 1325 RT_NOREF(fCtl); 1322 1326 AssertPtrReturn(pMixStream, VERR_INVALID_POINTER); 1323 1327 /** @todo Validate fCtl. */ -
trunk/src/VBox/Devices/Audio/DevSB16.cpp
r62605 r62965 2153 2153 rc2 = pDrv->pConnector->pfnStreamCreate(pDrv->pConnector, &CfgHost, pCfg, &pDrv->Out.pStream); 2154 2154 if (RT_SUCCESS(rc2)) 2155 pDrv->pConnector->pfnStream AddRef(pDrv->pConnector, pDrv->Out.pStream);2155 pDrv->pConnector->pfnStreamRetain(pDrv->pConnector, pDrv->Out.pStream); 2156 2156 } 2157 2157 -
trunk/src/VBox/Devices/Audio/DrvAudio.cpp
r62607 r62965 785 785 786 786 /** 787 * @interface_method_impl{PDMIAUDIOCONNECTOR,pfnStream AddRef}788 */ 789 static DECLCALLBACK(uint32_t) drvAudioStream AddRef(PPDMIAUDIOCONNECTOR pInterface, PPDMAUDIOSTREAM pStream)790 { 791 AssertPtrReturn(pInterface, VERR_INVALID_POINTER);792 AssertPtrReturn(pStream, VERR_INVALID_POINTER);787 * @interface_method_impl{PDMIAUDIOCONNECTOR,pfnStreamRetain} 788 */ 789 static DECLCALLBACK(uint32_t) drvAudioStreamRetain(PPDMIAUDIOCONNECTOR pInterface, PPDMAUDIOSTREAM pStream) 790 { 791 AssertPtrReturn(pInterface, UINT32_MAX); 792 AssertPtrReturn(pStream, UINT32_MAX); 793 793 794 794 NOREF(pInterface); … … 802 802 static DECLCALLBACK(uint32_t) drvAudioStreamRelease(PPDMIAUDIOCONNECTOR pInterface, PPDMAUDIOSTREAM pStream) 803 803 { 804 AssertPtrReturn(pInterface, VERR_INVALID_POINTER);805 AssertPtrReturn(pStream, VERR_INVALID_POINTER);804 AssertPtrReturn(pInterface, UINT32_MAX); 805 AssertPtrReturn(pStream, UINT32_MAX); 806 806 807 807 NOREF(pInterface); … … 1868 1868 AssertPtrReturn(pVol, VERR_INVALID_POINTER); 1869 1869 1870 PDRVAUDIO pThis = PDMIAUDIOCONNECTOR_2_DRVAUDIO(pInterface);1871 1872 1870 LogFlowFunc(("%s: volL=%RU32, volR=%RU32, fMute=%RTbool\n", pStream->szName, pVol->uLeft, pVol->uRight, pVol->fMuted)); 1873 1871 … … 2150 2148 pThis->IAudioConnector.pfnStreamCreate = drvAudioStreamCreate; 2151 2149 pThis->IAudioConnector.pfnStreamDestroy = drvAudioStreamDestroy; 2152 pThis->IAudioConnector.pfnStream AddRef = drvAudioStreamAddRef;2150 pThis->IAudioConnector.pfnStreamRetain = drvAudioStreamRetain; 2153 2151 pThis->IAudioConnector.pfnStreamRelease = drvAudioStreamRelease; 2154 2152 pThis->IAudioConnector.pfnStreamControl = drvAudioStreamControl; -
trunk/src/VBox/Devices/EFI/DevEFI.cpp
r61621 r62965 54 54 55 55 /* EFI includes */ 56 #ifdef _MSC_VER 57 # pragma warning(push) 58 # pragma warning(disable:4668) 59 #endif 56 60 #include <ProcessorBind.h> 61 #ifdef _MSC_VER 62 # pragma warning(pop) 63 #endif 57 64 #include <Common/UefiBaseTypes.h> 58 65 #include <Common/PiFirmwareVolume.h> … … 1050 1057 static DECLCALLBACK(void) efiInfoNvram(PPDMDEVINS pDevIns, PCDBGFINFOHLP pHlp, const char *pszArgs) 1051 1058 { 1059 RT_NOREF(pszArgs); 1052 1060 PDEVEFI pThis = PDMINS_2_DATA(pDevIns, PDEVEFI); 1053 1061 PDMCritSectEnter(pDevIns->pCritSectRoR3, VERR_IGNORED); … … 1213 1221 RTStrmClose(pStrm); 1214 1222 } 1223 # else 1224 RT_NOREF(pThis, pszFormat); 1215 1225 # endif 1216 1226 } … … 1229 1239 static int efiPortImageEventWrite(PDEVEFI pThis, uint32_t u32, unsigned cb) 1230 1240 { 1241 RT_NOREF(cb); 1231 1242 switch (u32 & EFI_IMAGE_EVT_CMD_MASK) 1232 1243 { … … 1342 1353 static DECLCALLBACK(int) efiIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb) 1343 1354 { 1355 RT_NOREF(pvUser); 1344 1356 PDEVEFI pThis = PDMINS_2_DATA(pDevIns, PDEVEFI); 1345 1357 Log4(("EFI in: %x %x\n", Port, cb)); … … 1427 1439 static DECLCALLBACK(int) efiIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb) 1428 1440 { 1441 RT_NOREF(pvUser); 1429 1442 PDEVEFI pThis = PDMINS_2_DATA(pDevIns, PDEVEFI); 1430 1443 int rc = VINF_SUCCESS; … … 1769 1782 static DECLCALLBACK(void) efiMemSetup(PPDMDEVINS pDevIns, PDMDEVMEMSETUPCTX enmCtx) 1770 1783 { 1784 RT_NOREF(enmCtx); 1771 1785 PDEVEFI pThis = PDMINS_2_DATA(pDevIns, PDEVEFI); 1772 1786 … … 1954 1968 AssertLogRelMsgReturn(!(pThis->cbEfiRom & PAGE_OFFSET_MASK), ("%RX64\n", pThis->cbEfiRom), VERR_INVALID_PARAMETER); 1955 1969 1956 uint8_t const * const pbFwVolEnd = pThis->pu8EfiRom + pFwVolHdr->FvLength;1957 1970 pThis->GCLoadAddress = UINT32_C(0xfffff000) - pThis->cbEfiRom + PAGE_SIZE; 1958 1971 … … 1969 1982 static int efiLoadRom(PDEVEFI pThis, PCFGMNODE pCfg) 1970 1983 { 1984 RT_NOREF(pCfg); 1985 1971 1986 /* 1972 1987 * Read the entire firmware volume into memory. … … 2104 2119 static DECLCALLBACK(int) efiConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 2105 2120 { 2121 RT_NOREF(iInstance); 2122 PDMDEV_CHECK_VERSIONS_RETURN(pDevIns); 2106 2123 PDEVEFI pThis = PDMINS_2_DATA(pDevIns, PDEVEFI); 2107 2124 int rc; 2108 PDMDEV_CHECK_VERSIONS_RETURN(pDevIns);2109 2125 2110 2126 Assert(iInstance == 0); -
trunk/src/VBox/Devices/Storage/DrvSCSI.cpp
r62506 r62965 240 240 static DECLCALLBACK(int) drvscsiGetSize(VSCSILUN hVScsiLun, void *pvScsiLunUser, uint64_t *pcbSize) 241 241 { 242 RT_NOREF(hVScsiLun); 242 243 PDRVSCSI pThis = (PDRVSCSI)pvScsiLunUser; 243 244 … … 250 251 static DECLCALLBACK(int) drvscsiGetSectorSize(VSCSILUN hVScsiLun, void *pvScsiLunUser, uint32_t *pcbSectorSize) 251 252 { 253 RT_NOREF(hVScsiLun); 252 254 PDRVSCSI pThis = (PDRVSCSI)pvScsiLunUser; 253 255 … … 258 260 static DECLCALLBACK(int) drvscsiSetLock(VSCSILUN hVScsiLun, void *pvScsiLunUser, bool fLocked) 259 261 { 262 RT_NOREF(hVScsiLun); 260 263 PDRVSCSI pThis = (PDRVSCSI)pvScsiLunUser; 261 264 … … 324 327 } 325 328 326 static DECLCALLBACK(int) drvscsiReqTransferEnqueue(VSCSILUN hVScsiLun, 327 void *pvScsiLunUser, 328 VSCSIIOREQ hVScsiIoReq) 329 { 329 static DECLCALLBACK(int) drvscsiReqTransferEnqueue(VSCSILUN hVScsiLun, void *pvScsiLunUser, VSCSIIOREQ hVScsiIoReq) 330 { 331 RT_NOREF(hVScsiLun); 330 332 int rc = VINF_SUCCESS; 331 333 PDRVSCSI pThis = (PDRVSCSI)pvScsiLunUser; … … 454 456 } 455 457 456 static DECLCALLBACK(int) drvscsiGetFeatureFlags(VSCSILUN hVScsiLun, 457 void *pvScsiLunUser, 458 uint64_t *pfFeatures) 459 { 460 int rc = VINF_SUCCESS; 458 static DECLCALLBACK(int) drvscsiGetFeatureFlags(VSCSILUN hVScsiLun, void *pvScsiLunUser, uint64_t *pfFeatures) 459 { 460 RT_NOREF(hVScsiLun); 461 461 PDRVSCSI pThis = (PDRVSCSI)pvScsiLunUser; 462 462 … … 478 478 479 479 static DECLCALLBACK(void) drvscsiVScsiReqCompleted(VSCSIDEVICE hVScsiDevice, void *pVScsiDeviceUser, 480 void *pVScsiReqUser, int rcScsiCode, bool fRedoPossible, 481 int rcReq) 482 { 480 void *pVScsiReqUser, int rcScsiCode, bool fRedoPossible, int rcReq) 481 { 482 RT_NOREF(hVScsiDevice); 483 483 PDRVSCSI pThis = (PDRVSCSI)pVScsiDeviceUser; 484 484 … … 567 567 static DECLCALLBACK(int) drvscsiAsyncIOLoopWakeup(PPDMDRVINS pDrvIns, PPDMTHREAD pThread) 568 568 { 569 RT_NOREF(pThread); 569 570 PDRVSCSI pThis = PDMINS_2_DATA(pDrvIns, PDRVSCSI); 570 571 PRTREQ pReq;
Note:
See TracChangeset
for help on using the changeset viewer.