VirtualBox

Changeset 64392 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 24, 2016 2:27:35 PM (8 years ago)
Author:
vboxsync
Message:

PDMPCIDEV: s/name/pszName/ everywhere, removing the legacy alias.

Location:
trunk/src/VBox/Devices
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Bus/DevPCI.cpp

    r64391 r64392  
    333333                        else
    334334                            rc = PDMDevHlpMMIODeregister(d->Int.s.CTX_SUFF(pDevIns), GCPhysBase, r->size);
    335                         AssertMsgRC(rc, ("rc=%Rrc d=%s i=%d GCPhysBase=%RGp size=%#x\n", rc, d->name, i, GCPhysBase, r->size));
     335                        AssertMsgRC(rc, ("rc=%Rrc d=%s i=%d GCPhysBase=%RGp size=%#x\n", rc, d->pszNameR3, i, GCPhysBase, r->size));
    336336                    }
    337337                }
     
    533533        {
    534534#ifdef IN_RING3
    535             Log(("pci_config_write: %s: addr=%02x val=%08x len=%d\n", pci_dev->name, config_addr, val, len));
     535            Log(("pci_config_write: %s: addr=%02x val=%08x len=%d\n", pci_dev->pszNameR3, config_addr, val, len));
    536536            pci_dev->Int.s.pfnConfigWrite(pci_dev->Int.s.CTX_SUFF(pDevIns), pci_dev, config_addr, val, len);
    537537#else
     
    581581#ifdef IN_RING3
    582582            *pu32 = pci_dev->Int.s.pfnConfigRead(pci_dev->Int.s.CTX_SUFF(pDevIns), pci_dev, config_addr, len);
    583             Log(("pci_config_read: %s: addr=%02x val=%08x len=%d\n", pci_dev->name, config_addr, *pu32, len));
     583            Log(("pci_config_read: %s: addr=%02x val=%08x len=%d\n", pci_dev->pszNameR3, config_addr, *pu32, len));
    584584#else
    585585            NOREF(len);
     
    633633        apic_level = get_pci_irq_apic_level(pGlobals, irq_num);
    634634        Log3(("apic_set_irq: %s: irq_num1=%d level=%d apic_irq=%d apic_level=%d irq_num1=%d\n",
    635               R3STRING(pPciDev->name), irq_num1, iLevel, apic_irq, apic_level, irq_num));
     635              R3STRING(pPciDev->pszNameR3), irq_num1, iLevel, apic_irq, apic_level, irq_num));
    636636        pBus->CTX_SUFF(pPciHlp)->pfnIoApicSetIrq(pBus->CTX_SUFF(pDevIns), apic_irq, apic_level, uTagSrc);
    637637
     
    641641            apic_level = get_pci_irq_apic_level(pGlobals, irq_num);
    642642            Log3(("apic_set_irq: %s: irq_num1=%d level=%d apic_irq=%d apic_level=%d irq_num1=%d (flop)\n",
    643                   R3STRING(pPciDev->name), irq_num1, iLevel, apic_irq, apic_level, irq_num));
     643                  R3STRING(pPciDev->pszNameR3), irq_num1, iLevel, apic_irq, apic_level, irq_num));
    644644            pBus->CTX_SUFF(pPciHlp)->pfnIoApicSetIrq(pBus->CTX_SUFF(pDevIns), apic_irq, apic_level, uTagSrc);
    645645        }
    646646    } else {
    647647        Log3(("apic_set_irq: %s: irq_num1=%d level=%d acpi_irq=%d\n",
    648               R3STRING(pPciDev->name), irq_num1, iLevel, acpi_irq));
     648              R3STRING(pPciDev->pszNameR3), irq_num1, iLevel, acpi_irq));
    649649        pBus->CTX_SUFF(pPciHlp)->pfnIoApicSetIrq(pBus->CTX_SUFF(pDevIns), acpi_irq, iLevel, uTagSrc);
    650650    }
     
    748748
    749749        Log3(("pciSetIrq: %s: iLevel=%d iIrq=%d pic_irq=%d pic_level=%d uTagSrc=%#x\n",
    750               R3STRING(pPciDev->name), iLevel, iIrq, pic_irq, pic_level, uTagSrc));
     750              R3STRING(pPciDev->pszNameR3), iLevel, iIrq, pic_irq, pic_level, uTagSrc));
    751751        pBus->CTX_SUFF(pPciHlp)->pfnIsaSetIrq(pBus->CTX_SUFF(pDevIns), pic_irq, pic_level, uTagSrc);
    752752
     
    14581458                    if (!s_aFields[i].fWritable)
    14591459                        LogRel(("PCI: %8s/%u: %2u-bit field %s: %x -> %x - !READ ONLY!\n",
    1460                                 pDev->name, pDev->Int.s.CTX_SUFF(pDevIns)->iInstance, cb*8, s_aFields[i].pszName, u32Dst, u32Src));
     1460                                pDev->pszNameR3, pDev->Int.s.CTX_SUFF(pDevIns)->iInstance, cb*8, s_aFields[i].pszName, u32Dst, u32Src));
    14611461                    else
    14621462                        LogRel(("PCI: %8s/%u: %2u-bit field %s: %x -> %x\n",
    1463                                 pDev->name, pDev->Int.s.CTX_SUFF(pDevIns)->iInstance, cb*8, s_aFields[i].pszName, u32Dst, u32Src));
     1463                                pDev->pszNameR3, pDev->Int.s.CTX_SUFF(pDevIns)->iInstance, cb*8, s_aFields[i].pszName, u32Dst, u32Src));
    14641464                }
    14651465                if (off == VBOX_PCI_COMMAND)
     
    14801480        {
    14811481            LogRel(("PCI: %8s/%u: register %02x: %02x -> %02x\n",
    1482                     pDev->name, pDev->Int.s.CTX_SUFF(pDevIns)->iInstance, off, pbDstConfig[off], pbSrcConfig[off])); /** @todo make this Log() later. */
     1482                    pDev->pszNameR3, pDev->Int.s.CTX_SUFF(pDevIns)->iInstance, off, pbDstConfig[off], pbSrcConfig[off])); /** @todo make this Log() later. */
    14831483            pbDstConfig[off] = pbSrcConfig[off];
    14841484        }
     
    15491549            if (pBus->devices[i])
    15501550            {
    1551                 LogRel(("PCI: New device in slot %#x, %s (vendor=%#06x device=%#06x)\n", i, pBus->devices[i]->name,
     1551                LogRel(("PCI: New device in slot %#x, %s (vendor=%#06x device=%#06x)\n", i, pBus->devices[i]->pszNameR3,
    15521552                        PCIDevGetVendorId(pBus->devices[i]), PCIDevGetDeviceId(pBus->devices[i])));
    15531553                if (SSMR3HandleGetAfter(pSSM) != SSMAFTER_DEBUG_IT)
    15541554                    return SSMR3SetCfgError(pSSM, RT_SRC_POS, N_("New device in slot %#x, %s (vendor=%#06x device=%#06x)"),
    1555                                             i, pBus->devices[i]->name, PCIDevGetVendorId(pBus->devices[i]), PCIDevGetDeviceId(pBus->devices[i]));
     1555                                            i, pBus->devices[i]->pszNameR3, PCIDevGetVendorId(pBus->devices[i]), PCIDevGetDeviceId(pBus->devices[i]));
    15561556            }
    15571557        }
     
    15911591            ||  DevTmp.config[1] != pDev->config[1])
    15921592            return SSMR3SetCfgError(pSSM, RT_SRC_POS, N_("Device in slot %#x (%s) vendor id mismatch! saved=%.4Rhxs current=%.4Rhxs"),
    1593                                      i, pDev->name, DevTmp.config, pDev->config);
     1593                                     i, pDev->pszNameR3, DevTmp.config, pDev->config);
    15941594
    15951595        /* commit the loaded device config. */
     
    18541854            pHlp->pfnPrintf(pHlp, "%02x:%02x:%02x %s%s: %04x-%04x%s%s",
    18551855                            pBus->iBus, (iDev >> 3) & 0xff, iDev & 0x7,
    1856                             pPciDev->name,
     1856                            pPciDev->pszNameR3,
    18571857                            pciDevIsPassthrough(pPciDev) ? " (PASSTHROUGH)" : "",
    18581858                            PCIDevGetWord(pPciDev, VBOX_PCI_VENDOR_ID), PCIDevGetWord(pPciDev, VBOX_PCI_DEVICE_ID),
     
    22712271        if (pPciDev)
    22722272        {
    2273             Log(("%s: %s: addr=%02x val=%08x len=%d\n", __FUNCTION__, pPciDev->name, u32Address, u32Value, cb));
     2273            Log(("%s: %s: addr=%02x val=%08x len=%d\n", __FUNCTION__, pPciDev->pszNameR3, u32Address, u32Value, cb));
    22742274            pPciDev->Int.s.pfnConfigWrite(pPciDev->Int.s.CTX_SUFF(pDevIns), pPciDev, u32Address, u32Value, cb);
    22752275        }
     
    23052305        {
    23062306            u32Value = pPciDev->Int.s.pfnConfigRead(pPciDev->Int.s.CTX_SUFF(pDevIns), pPciDev, u32Address, cb);
    2307             Log(("%s: %s: u32Address=%02x u32Value=%08x cb=%d\n", __FUNCTION__, pPciDev->name, u32Address, u32Value, cb));
     2307            Log(("%s: %s: u32Address=%02x u32Value=%08x cb=%d\n", __FUNCTION__, pPciDev->pszNameR3, u32Address, u32Value, cb));
    23082308        }
    23092309    }
  • trunk/src/VBox/Devices/Bus/DevPciIch9.cpp

    r64391 r64392  
    596596        apic_level = pGlobals->uaPciApicIrqLevels[irq_num] != 0;
    597597        Log3(("ich9pciApicSetIrq: %s: irq_num1=%d level=%d apic_irq=%d apic_level=%d irq_num1=%d uTagSrc=%#x\n",
    598               R3STRING(pPciDev->name), irq_num1, iLevel, apic_irq, apic_level, irq_num, uTagSrc));
     598              R3STRING(pPciDev->pszNameR3), irq_num1, iLevel, apic_irq, apic_level, irq_num, uTagSrc));
    599599        pBus->CTX_SUFF(pPciHlp)->pfnIoApicSetIrq(pBus->CTX_SUFF(pDevIns), apic_irq, apic_level, uTagSrc);
    600600
     
    609609            apic_level = pGlobals->uaPciApicIrqLevels[irq_num] != 0;
    610610            Log3(("ich9pciApicSetIrq: %s: irq_num1=%d level=%d apic_irq=%d apic_level=%d irq_num1=%d uTagSrc=%#x (flop)\n",
    611                   R3STRING(pPciDev->name), irq_num1, iLevel, apic_irq, apic_level, irq_num, uTagSrc));
     611                  R3STRING(pPciDev->pszNameR3), irq_num1, iLevel, apic_irq, apic_level, irq_num, uTagSrc));
    612612            pBus->CTX_SUFF(pPciHlp)->pfnIoApicSetIrq(pBus->CTX_SUFF(pDevIns), apic_irq, apic_level, uTagSrc);
    613613        }
    614614    } else {
    615615        Log3(("ich9pciApicSetIrq: (forced) %s: irq_num1=%d level=%d acpi_irq=%d uTagSrc=%#x\n",
    616               R3STRING(pPciDev->name), irq_num1, iLevel, iForcedIrq, uTagSrc));
     616              R3STRING(pPciDev->pszNameR3), irq_num1, iLevel, iForcedIrq, uTagSrc));
    617617        pBus->CTX_SUFF(pPciHlp)->pfnIoApicSetIrq(pBus->CTX_SUFF(pDevIns), iForcedIrq, iLevel, uTagSrc);
    618618    }
     
    10061006
    10071007    Log(("ich9pciIORegionRegister: %s region %d size %RGp type %x\n",
    1008          pPciDev->name, iRegion, cbRegion, enmType));
     1008         pPciDev->pszNameR3, iRegion, cbRegion, enmType));
    10091009
    10101010    /* Make sure that we haven't marked this region as continuation of 64-bit region. */
     
    11551155        if (pPciDev)
    11561156        {
    1157             Log(("%s: %s: addr=%02x val=%08x len=%d\n", __FUNCTION__, pPciDev->name, u32Address, u32Value, cb));
     1157            Log(("%s: %s: addr=%02x val=%08x len=%d\n", __FUNCTION__, pPciDev->pszNameR3, u32Address, u32Value, cb));
    11581158            pPciDev->Int.s.pfnConfigWrite(pPciDev->Int.s.CTX_SUFF(pDevIns), pPciDev, u32Address, u32Value, cb);
    11591159        }
     
    11881188        {
    11891189            u32Value = pPciDev->Int.s.pfnConfigRead(pPciDev->Int.s.CTX_SUFF(pDevIns), pPciDev, u32Address, cb);
    1190             Log(("%s: %s: u32Address=%02x u32Value=%08x cb=%d\n", __FUNCTION__, pPciDev->name, u32Address, u32Value, cb));
     1190            Log(("%s: %s: u32Address=%02x u32Value=%08x cb=%d\n", __FUNCTION__, pPciDev->pszNameR3, u32Address, u32Value, cb));
    11911191        }
    11921192        else
     
    13381338                    if (!s_aFields[i].fWritable)
    13391339                        LogRel(("PCI: %8s/%u: %2u-bit field %s: %x -> %x - !READ ONLY!\n",
    1340                                 pDev->name, pDev->Int.s.CTX_SUFF(pDevIns)->iInstance, cb*8, s_aFields[i].pszName, u32Dst, u32Src));
     1340                                pDev->pszNameR3, pDev->Int.s.CTX_SUFF(pDevIns)->iInstance, cb*8, s_aFields[i].pszName, u32Dst, u32Src));
    13411341                    else
    13421342                        LogRel(("PCI: %8s/%u: %2u-bit field %s: %x -> %x\n",
    1343                                 pDev->name, pDev->Int.s.CTX_SUFF(pDevIns)->iInstance, cb*8, s_aFields[i].pszName, u32Dst, u32Src));
     1343                                pDev->pszNameR3, pDev->Int.s.CTX_SUFF(pDevIns)->iInstance, cb*8, s_aFields[i].pszName, u32Dst, u32Src));
    13441344                }
    13451345                if (off == VBOX_PCI_COMMAND)
     
    13601360        {
    13611361            LogRel(("PCI: %8s/%u: register %02x: %02x -> %02x\n",
    1362                     pDev->name, pDev->Int.s.CTX_SUFF(pDevIns)->iInstance, off, pbDstConfig[off], pbSrcConfig[off])); /** @todo make this Log() later. */
     1362                    pDev->pszNameR3, pDev->Int.s.CTX_SUFF(pDevIns)->iInstance, off, pbDstConfig[off], pbSrcConfig[off])); /** @todo make this Log() later. */
    13631363            pbDstConfig[off] = pbSrcConfig[off];
    13641364        }
     
    14291429            if (pDev)
    14301430            {
    1431                 LogRel(("PCI: New device in slot %#x, %s (vendor=%#06x device=%#06x)\n", i, pDev->name,
     1431                LogRel(("PCI: New device in slot %#x, %s (vendor=%#06x device=%#06x)\n", i, pDev->pszNameR3,
    14321432                        PCIDevGetVendorId(pDev), PCIDevGetDeviceId(pDev)));
    14331433                if (SSMR3HandleGetAfter(pSSM) != SSMAFTER_DEBUG_IT)
    14341434                {
    14351435                    rc = SSMR3SetCfgError(pSSM, RT_SRC_POS, N_("New device in slot %#x, %s (vendor=%#06x device=%#06x)"),
    1436                                           i, pDev->name, PCIDevGetVendorId(pDev), PCIDevGetDeviceId(pDev));
     1436                                          i, pDev->pszNameR3, PCIDevGetVendorId(pDev), PCIDevGetDeviceId(pDev));
    14371437                    break;
    14381438                }
     
    14881488        {
    14891489            rc = SSMR3SetCfgError(pSSM, RT_SRC_POS, N_("Device in slot %#x (%s) vendor id mismatch! saved=%.4Rhxs current=%.4Rhxs"),
    1490                                   i, pDev->name, PCIDevGetVendorId(&DevTmp), PCIDevGetVendorId(pDev));
     1490                                  i, pDev->pszNameR3, PCIDevGetVendorId(&DevTmp), PCIDevGetVendorId(pDev));
    14911491            break;
    14921492        }
     
    19791979    {
    19801980        LogRel(("PCI: %8s/%u: Read from extended register %d fallen back to generic code\n",
    1981                 pPciDev->name, pPciDev->Int.s.CTX_SUFF(pDevIns)->iInstance, u32Address));
     1981                pPciDev->pszNameR3, pPciDev->Int.s.CTX_SUFF(pDevIns)->iInstance, u32Address));
    19821982        return 0;
    19831983    }
     
    20782078    {
    20792079        LogRel(("PCI: %8s/%u: Write to extended register %d fallen back to generic code\n",
    2080                 pPciDev->name, pPciDev->Int.s.CTX_SUFF(pDevIns)->iInstance, u32Address));
     2080                pPciDev->pszNameR3, pPciDev->Int.s.CTX_SUFF(pDevIns)->iInstance, u32Address));
    20812081        return;
    20822082    }
     
    22522252            pHlp->pfnPrintf(pHlp, "%02x:%02x:%02x %s%s: %04x-%04x",
    22532253                            pBus->iBus, (iDev >> 3) & 0xff, iDev & 0x7,
    2254                             pPciDev->name,
     2254                            pPciDev->pszNameR3,
    22552255                            pciDevIsPassthrough(pPciDev) ? " (PASSTHROUGH)" : "",
    22562256                            ich9pciGetWord(pPciDev, VBOX_PCI_VENDOR_ID), ich9pciGetWord(pPciDev, VBOX_PCI_DEVICE_ID)
  • trunk/src/VBox/Devices/USB/DevOHCI.cpp

    r64387 r64392  
    41544154    pThis->dqic = 0x7;
    41554155
    4156     Log(("ohci: %s: Bus started\n", pThis->PciDev.name));
     4156    Log(("ohci: %s: Bus started\n", pThis->PciDev.pszNameR3));
    41574157
    41584158    pThis->SofTime = PDMDevHlpTMTimeVirtGet(pThis->CTX_SUFF(pDevIns));
     
    48934893    {
    48944894        Log(("ohci: %s: invalid write to NDP or DT in roothub descriptor A!!! val=0x%.8x\n",
    4895                 pThis->PciDev.name, val));
     4895             pThis->PciDev.pszNameR3, val));
    48964896        val &= ~(OHCI_RHA_NDP | OHCI_RHA_DT);
    48974897        val |= OHCI_NDP_CFG(pThis);
     
    49294929    if ( pThis->RootHub.desc_b != val )
    49304930        Log(("ohci: %s: unsupported write to root descriptor B!!! 0x%.8x -> 0x%.8x\n",
    4931                 pThis->PciDev.name,
    4932                 pThis->RootHub.desc_b, val));
     4931             pThis->PciDev.pszNameR3, pThis->RootHub.desc_b, val));
    49334932    pThis->RootHub.desc_b = val;
    49344933    return VINF_SUCCESS;
     
    49744973    {
    49754974        unsigned i;
    4976         Log2(("ohci: %s: global power up\n", pThis->PciDev.name));
     4975        Log2(("ohci: %s: global power up\n", pThis->PciDev.pszNameR3));
    49774976        for (i = 0; i < OHCI_NDP_CFG(pThis); i++)
    49784977            rhport_power(&pThis->RootHub, i, true /* power up */);
     
    49834982    {
    49844983        unsigned i;
    4985         Log2(("ohci: %s: global power down\n", pThis->PciDev.name));
     4984        Log2(("ohci: %s: global power down\n", pThis->PciDev.pszNameR3));
    49864985        for (i = 0; i < OHCI_NDP_CFG(pThis); i++)
    49874986            rhport_power(&pThis->RootHub, i, false /* power down */);
     
    56365635        static SSMFIELD const s_aOhciFields22[] =
    56375636        {
    5638             SSMFIELD_ENTRY_OLD(           PciDev.config,                256),   /* DevPCI restores this. */
     5637            SSMFIELD_ENTRY_OLD(           PciDev.abConfig,              256),   /* DevPCI restores this. */
    56395638            SSMFIELD_ENTRY_OLD(           PciDev.Int,                   224),
    5640             SSMFIELD_ENTRY_OLD(           PciDev.devfn,                 4),
     5639            SSMFIELD_ENTRY_OLD(           PciDev.uDevFn,                4),
    56415640            SSMFIELD_ENTRY_OLD(           PciDev.Alignment0,            4),
    5642             SSMFIELD_ENTRY_OLD_HCPTR(     PciDev.name),
    5643             SSMFIELD_ENTRY_OLD_HCPTR(     PciDev.pDevIns),
     5641            SSMFIELD_ENTRY_OLD_HCPTR(     PciDev.pszNameR3),
     5642            SSMFIELD_ENTRY_OLD_HCPTR(     PciDev.pvReserved),
    56445643            SSMFIELD_ENTRY_OLD_HCPTR(     pDevInsR3),
    56455644            SSMFIELD_ENTRY_OLD_HCPTR(     pEndOfFrameTimerR3),
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