VirtualBox

Changeset 88075 in vbox


Ignore:
Timestamp:
Mar 10, 2021 7:22:36 PM (4 years ago)
Author:
vboxsync
Message:

Backing out r143016 (doxygen fix) as it needs to be split up.

Location:
trunk/src/VBox
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DevHDA.cpp

    r88063 r88075  
    24182418
    24192419/**
    2420  * @interface_method_impl{HDACODECR3,pfnCbMixerAddStream}
     2420 * @interface_method_impl{HDACODEC,pfnCbMixerAddStream}
    24212421 */
    24222422static DECLCALLBACK(int) hdaR3MixerAddStream(PPDMDEVINS pDevIns, PDMAUDIOMIXERCTL enmMixerCtl, PPDMAUDIOSTREAMCFG pCfg)
     
    24422442
    24432443/**
    2444  * @interface_method_impl{HDACODECR3,pfnCbMixerRemoveStream}
     2444 * @interface_method_impl{HDACODEC,pfnCbMixerRemoveStream}
    24452445 */
    24462446static DECLCALLBACK(int) hdaR3MixerRemoveStream(PPDMDEVINS pDevIns, PDMAUDIOMIXERCTL enmMixerCtl)
     
    25132513
    25142514/**
    2515  * @interface_method_impl{HDACODECR3,pfnCbMixerControl}
     2515 * @interface_method_impl{HDACODEC,pfnCbMixerControl}
    25162516 *
    25172517 * @note Is also called directly by the DevHDA code.
     
    26162616
    26172617/**
    2618  * @interface_method_impl{HDACODECR3,pfnCbMixerSetVolume}
     2618 * @interface_method_impl{HDACODEC,pfnCbMixerSetVolume}
    26192619 */
    26202620static DECLCALLBACK(int) hdaR3MixerSetVolume(PPDMDEVINS pDevIns, PDMAUDIOMIXERCTL enmMixerCtl, PPDMAUDIOVOLUME pVol)
  • trunk/src/VBox/Devices/Bus/DevIommuAmd.cpp

    r87999 r88075  
    12391239 *
    12401240 * @param   pThis           The shared IOMMU device state.
    1241  * @param   pThisR3         The ring-3 IOMMU device state.
     1241 * @param   pThis           The ring-3 IOMMU device state.
    12421242 * @param   idDomain        The domain ID.
    12431243 * @param   uIova           The I/O virtual address.
  • trunk/src/VBox/VMM/VMMAll/PDMAllIommu.cpp

    r87926 r88075  
    6868
    6969/** @copydoc PDMIOMMUREGR3::pfnMsiRemap */
    70 int pdmIommuMsiRemap(PPDMDEVINS pDevIns, uint16_t idDevice, PCMSIMSG pMsiIn, PMSIMSG pMsiOut)
    71 {
    72     PPDMIOMMU  pIommu       = PDMDEVINS_TO_IOMMU(pDevIns);
    73     PPDMDEVINS pDevInsIommu = pIommu->CTX_SUFF(pDevIns);
    74     if (   pDevInsIommu
    75         && pDevInsIommu != pDevIns)
    76     {
    77         int rc = pIommu->pfnMsiRemap(pDevInsIommu, idDevice, pMsiIn, pMsiOut);
     70int pdmIommuMsiRemap(PPDMDEVINS pDevIns, uint16_t uDeviceId, PCMSIMSG pMsiIn, PMSIMSG pMsiOut)
     71{
     72    PPDMIOMMU  pIommu       = PDMDEVINS_TO_IOMMU(pDevIns);
     73    PPDMDEVINS pDevInsIommu = pIommu->CTX_SUFF(pDevIns);
     74    if (   pDevInsIommu
     75        && pDevInsIommu != pDevIns)
     76    {
     77        int rc = pIommu->pfnMsiRemap(pDevInsIommu, uDeviceId, pMsiIn, pMsiOut);
    7878        if (RT_FAILURE(rc))
    7979        {
    80             LogFunc(("MSI remap failed. idDevice=%#x pMsiIn=(%#RX64, %#RU32) rc=%Rrc\n", idDevice, pMsiIn->Addr.u64,
     80            LogFunc(("MSI remap failed. uDeviceId=%#x pMsiIn=(%#RX64, %#RU32) rc=%Rrc\n", uDeviceId, pMsiIn->Addr.u64,
    8181                     pMsiIn->Data.u32, rc));
    8282        }
     
    110110        && pDevInsIommu != pDevIns)
    111111    {
    112         uint16_t const idDevice = pdmIommuGetPciDeviceId(pDevIns, pPciDev);
     112        uint16_t const uDeviceId = pdmIommuGetPciDeviceId(pDevIns, pPciDev);
    113113        int rc = VINF_SUCCESS;
    114114        while (cbRead > 0)
     
    116116            RTGCPHYS GCPhysOut;
    117117            size_t   cbContig;
    118             rc = pIommu->pfnMemAccess(pDevInsIommu, idDevice, GCPhys, cbRead, PDMIOMMU_MEM_F_READ, &GCPhysOut, &cbContig);
     118            rc = pIommu->pfnMemAccess(pDevInsIommu, uDeviceId, GCPhys, cbRead, PDMIOMMU_MEM_F_READ, &GCPhysOut, &cbContig);
    119119            if (RT_SUCCESS(rc))
    120120            {
     
    133133            else
    134134            {
    135                 LogFunc(("IOMMU memory read failed. idDevice=%#x GCPhys=%#RGp cb=%zu rc=%Rrc\n", idDevice, GCPhys, cbRead, rc));
     135                LogFunc(("IOMMU memory read failed. uDeviceId=%#x GCPhys=%#RGp cb=%zu rc=%Rrc\n", uDeviceId, GCPhys, cbRead, rc));
    136136
    137137                /*
     
    174174        && pDevInsIommu != pDevIns)
    175175    {
    176         uint16_t const idDevice = pdmIommuGetPciDeviceId(pDevIns, pPciDev);
     176        uint16_t const uDeviceId = pdmIommuGetPciDeviceId(pDevIns, pPciDev);
    177177        int rc = VINF_SUCCESS;
    178178        while (cbWrite > 0)
     
    180180            RTGCPHYS GCPhysOut;
    181181            size_t   cbContig;
    182             rc = pIommu->pfnMemAccess(pDevInsIommu, idDevice, GCPhys, cbWrite, PDMIOMMU_MEM_F_WRITE, &GCPhysOut, &cbContig);
     182            rc = pIommu->pfnMemAccess(pDevInsIommu, uDeviceId, GCPhys, cbWrite, PDMIOMMU_MEM_F_WRITE, &GCPhysOut, &cbContig);
    183183            if (RT_SUCCESS(rc))
    184184            {
     
    197197            else
    198198            {
    199                 LogFunc(("IOMMU memory write failed. idDevice=%#x GCPhys=%#RGp cb=%zu rc=%Rrc\n", idDevice, GCPhys, cbWrite,
     199                LogFunc(("IOMMU memory write failed. uDeviceId=%#x GCPhys=%#RGp cb=%zu rc=%Rrc\n", uDeviceId, GCPhys, cbWrite,
    200200                         rc));
    201201                break;
     
    235235        && pDevInsIommu != pDevIns)
    236236    {
    237         uint16_t const idDevice = pdmIommuGetPciDeviceId(pDevIns, pPciDev);
     237        uint16_t const uDeviceId = pdmIommuGetPciDeviceId(pDevIns, pPciDev);
    238238        size_t   cbContig  = 0;
    239239        RTGCPHYS GCPhysOut = NIL_RTGCPHYS;
    240         int rc = pIommu->pfnMemAccess(pDevInsIommu, idDevice, GCPhys & X86_PAGE_BASE_MASK, X86_PAGE_SIZE, PDMIOMMU_MEM_F_READ,
     240        int rc = pIommu->pfnMemAccess(pDevInsIommu, uDeviceId, GCPhys & X86_PAGE_BASE_MASK, X86_PAGE_SIZE, PDMIOMMU_MEM_F_READ,
    241241                                      &GCPhysOut, &cbContig);
    242242        if (RT_SUCCESS(rc))
     
    247247        }
    248248
    249         LogFunc(("IOMMU memory read for pointer access failed. idDevice=%#x GCPhys=%#RGp rc=%Rrc\n", idDevice, GCPhys, rc));
     249        LogFunc(("IOMMU memory read for pointer access failed. uDeviceId=%#x GCPhys=%#RGp rc=%Rrc\n", uDeviceId, GCPhys, rc));
    250250        return rc;
    251251    }
     
    280280        && pDevInsIommu != pDevIns)
    281281    {
    282         uint16_t const idDevice = pdmIommuGetPciDeviceId(pDevIns, pPciDev);
     282        uint16_t const uDeviceId = pdmIommuGetPciDeviceId(pDevIns, pPciDev);
    283283        size_t   cbContig  = 0;
    284284        RTGCPHYS GCPhysOut = NIL_RTGCPHYS;
    285         int rc = pIommu->pfnMemAccess(pDevInsIommu, idDevice, GCPhys & X86_PAGE_BASE_MASK, X86_PAGE_SIZE, PDMIOMMU_MEM_F_WRITE,
     285        int rc = pIommu->pfnMemAccess(pDevInsIommu, uDeviceId, GCPhys & X86_PAGE_BASE_MASK, X86_PAGE_SIZE, PDMIOMMU_MEM_F_WRITE,
    286286                                      &GCPhysOut, &cbContig);
    287287        if (RT_SUCCESS(rc))
     
    292292        }
    293293
    294         LogFunc(("IOMMU memory write for pointer access failed. idDevice=%#x GCPhys=%#RGp rc=%Rrc\n", idDevice, GCPhys, rc));
     294        LogFunc(("IOMMU memory write for pointer access failed. uDeviceId=%#x GCPhys=%#RGp rc=%Rrc\n", uDeviceId, GCPhys, rc));
    295295        return rc;
    296296    }
     
    341341
    342342        /* Ask the IOMMU for corresponding translated physical addresses. */
    343         uint16_t const idDevice = pdmIommuGetPciDeviceId(pDevIns, pPciDev);
     343        uint16_t const uDeviceId = pdmIommuGetPciDeviceId(pDevIns, pPciDev);
    344344        AssertCompile(sizeof(RTGCPHYS) == sizeof(uint64_t));
    345         int rc = pIommu->pfnMemBulkAccess(pDevInsIommu, idDevice, cPages, (uint64_t const *)paGCPhysPages, PDMIOMMU_MEM_F_READ,
     345        int rc = pIommu->pfnMemBulkAccess(pDevInsIommu, uDeviceId, cPages, (uint64_t const *)paGCPhysPages, PDMIOMMU_MEM_F_READ,
    346346                                          paGCPhysOut);
    347347        if (RT_SUCCESS(rc))
     
    353353        }
    354354        else
    355             LogFunc(("Bulk translation for read access failed. idDevice=%#x cPages=%zu rc=%Rrc\n", idDevice, cPages, rc));
     355            LogFunc(("Bulk translation for read access failed. uDeviceId=%#x cPages=%zu rc=%Rrc\n", uDeviceId, cPages, rc));
    356356
    357357        RTMemFree(paGCPhysOut);
     
    404404
    405405        /* Ask the IOMMU for corresponding translated physical addresses. */
    406         uint16_t const idDevice = pdmIommuGetPciDeviceId(pDevIns, pPciDev);
     406        uint16_t const uDeviceId = pdmIommuGetPciDeviceId(pDevIns, pPciDev);
    407407        AssertCompile(sizeof(RTGCPHYS) == sizeof(uint64_t));
    408         int rc = pIommu->pfnMemBulkAccess(pDevInsIommu, idDevice, cPages, (uint64_t const *)paGCPhysPages, PDMIOMMU_MEM_F_WRITE,
     408        int rc = pIommu->pfnMemBulkAccess(pDevInsIommu, uDeviceId, cPages, (uint64_t const *)paGCPhysPages, PDMIOMMU_MEM_F_WRITE,
    409409                                          paGCPhysOut);
    410410        if (RT_SUCCESS(rc))
     
    416416        }
    417417        else
    418             LogFunc(("IOMMU bulk translation failed. idDevice=%#x cPages=%zu rc=%Rrc\n", idDevice, cPages, rc));
     418            LogFunc(("IOMMU bulk translation failed. uDeviceId=%#x cPages=%zu rc=%Rrc\n", uDeviceId, cPages, rc));
    419419
    420420        RTMemFree(paGCPhysOut);
  • trunk/src/VBox/VMM/VMMAll/TMAll.cpp

    r87926 r88075  
    16151615 *                          for ring-3).
    16161616 * @param   pQueue          The shared queue data.
     1617 * @param   idxQueue        The queue index.
    16171618 */
    16181619static int tmTimerSetRelative(PVMCC pVM, PTMTIMER pTimer, uint64_t cTicksToNext, uint64_t *pu64Now,
  • trunk/src/VBox/VMM/VMMR0/PDMR0DevHlp.cpp

    r87926 r88075  
    15241524
    15251525/** @interface_method_impl{PDMIOAPICHLP,pfnIommuMsiRemap} */
    1526 static DECLCALLBACK(int) pdmR0IoApicHlp_IommuMsiRemap(PPDMDEVINS pDevIns, uint16_t idDevice, PCMSIMSG pMsiIn, PMSIMSG pMsiOut)
     1526static DECLCALLBACK(int) pdmR0IoApicHlp_IommuMsiRemap(PPDMDEVINS pDevIns, uint16_t uDeviceId, PCMSIMSG pMsiIn, PMSIMSG pMsiOut)
    15271527{
    15281528    PDMDEV_ASSERT_DEVINS(pDevIns);
     
    15311531
    15321532#ifdef VBOX_WITH_IOMMU_AMD
    1533     int rc = pdmIommuMsiRemap(pDevIns, idDevice, pMsiIn, pMsiOut);
     1533    int rc = pdmIommuMsiRemap(pDevIns, uDeviceId, pMsiIn, pMsiOut);
    15341534    if (RT_SUCCESS(rc) || rc != VERR_IOMMU_NOT_PRESENT)
    15351535        return rc;
    15361536#else
    1537     RT_NOREF(pDevIns, idDevice);
     1537    RT_NOREF(pDevIns, uDeviceId);
    15381538#endif
    15391539
  • trunk/src/VBox/VMM/VMMR3/PDMDevMiscHlp.cpp

    r87926 r88075  
    142142
    143143/** @interface_method_impl{PDMIOAPICHLP,pfnIommuMsiRemap} */
    144 static DECLCALLBACK(int) pdmR3IoApicHlp_IommuMsiRemap(PPDMDEVINS pDevIns, uint16_t idDevice, PCMSIMSG pMsiIn, PMSIMSG pMsiOut)
     144static DECLCALLBACK(int) pdmR3IoApicHlp_IommuMsiRemap(PPDMDEVINS pDevIns, uint16_t uDeviceId, PCMSIMSG pMsiIn, PMSIMSG pMsiOut)
    145145{
    146146    PDMDEV_ASSERT_DEVINS(pDevIns);
     
    149149
    150150#ifdef VBOX_WITH_IOMMU_AMD
    151     int rc = pdmIommuMsiRemap(pDevIns, idDevice, pMsiIn, pMsiOut);
     151    int rc = pdmIommuMsiRemap(pDevIns, uDeviceId, pMsiIn, pMsiOut);
    152152    if (RT_SUCCESS(rc) || rc != VERR_IOMMU_NOT_PRESENT)
    153153        return rc;
    154154#else
    155     RT_NOREF(pDevIns, idDevice);
     155    RT_NOREF(pDevIns, uDeviceId);
    156156#endif
    157157
  • trunk/src/VBox/VMM/VMMR3/TM.cpp

    r87926 r88075  
    22902290 * @param   pVM             The cross context VM structure.
    22912291 * @param   pQueue          The queue to run.
    2292  * @param   pTimer          The head timer.  Caller already check that this is
     2292 * @param   pNext           The head timer.  Caller already check that this is
    22932293 *                          not NULL.
    22942294 */
     
    27912791 *
    27922792 * @param   pVM     The cross context VM structure.
    2793  * @param   pVCpuDst    The destination VCpu.
     2793 * @param   pQueue  The queue.
    27942794 */
    27952795static void tmR3TimerQueueDoVirtualSync(PVM pVM, PVMCPU pVCpuDst)
Note: See TracChangeset for help on using the changeset viewer.

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