Changeset 64392 in vbox for trunk/src/VBox
- Timestamp:
- Oct 24, 2016 2:27:35 PM (8 years ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevPCI.cpp
r64391 r64392 333 333 else 334 334 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)); 336 336 } 337 337 } … … 533 533 { 534 534 #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)); 536 536 pci_dev->Int.s.pfnConfigWrite(pci_dev->Int.s.CTX_SUFF(pDevIns), pci_dev, config_addr, val, len); 537 537 #else … … 581 581 #ifdef IN_RING3 582 582 *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)); 584 584 #else 585 585 NOREF(len); … … 633 633 apic_level = get_pci_irq_apic_level(pGlobals, irq_num); 634 634 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)); 636 636 pBus->CTX_SUFF(pPciHlp)->pfnIoApicSetIrq(pBus->CTX_SUFF(pDevIns), apic_irq, apic_level, uTagSrc); 637 637 … … 641 641 apic_level = get_pci_irq_apic_level(pGlobals, irq_num); 642 642 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)); 644 644 pBus->CTX_SUFF(pPciHlp)->pfnIoApicSetIrq(pBus->CTX_SUFF(pDevIns), apic_irq, apic_level, uTagSrc); 645 645 } 646 646 } else { 647 647 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)); 649 649 pBus->CTX_SUFF(pPciHlp)->pfnIoApicSetIrq(pBus->CTX_SUFF(pDevIns), acpi_irq, iLevel, uTagSrc); 650 650 } … … 748 748 749 749 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)); 751 751 pBus->CTX_SUFF(pPciHlp)->pfnIsaSetIrq(pBus->CTX_SUFF(pDevIns), pic_irq, pic_level, uTagSrc); 752 752 … … 1458 1458 if (!s_aFields[i].fWritable) 1459 1459 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)); 1461 1461 else 1462 1462 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)); 1464 1464 } 1465 1465 if (off == VBOX_PCI_COMMAND) … … 1480 1480 { 1481 1481 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. */ 1483 1483 pbDstConfig[off] = pbSrcConfig[off]; 1484 1484 } … … 1549 1549 if (pBus->devices[i]) 1550 1550 { 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, 1552 1552 PCIDevGetVendorId(pBus->devices[i]), PCIDevGetDeviceId(pBus->devices[i]))); 1553 1553 if (SSMR3HandleGetAfter(pSSM) != SSMAFTER_DEBUG_IT) 1554 1554 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])); 1556 1556 } 1557 1557 } … … 1591 1591 || DevTmp.config[1] != pDev->config[1]) 1592 1592 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); 1594 1594 1595 1595 /* commit the loaded device config. */ … … 1854 1854 pHlp->pfnPrintf(pHlp, "%02x:%02x:%02x %s%s: %04x-%04x%s%s", 1855 1855 pBus->iBus, (iDev >> 3) & 0xff, iDev & 0x7, 1856 pPciDev-> name,1856 pPciDev->pszNameR3, 1857 1857 pciDevIsPassthrough(pPciDev) ? " (PASSTHROUGH)" : "", 1858 1858 PCIDevGetWord(pPciDev, VBOX_PCI_VENDOR_ID), PCIDevGetWord(pPciDev, VBOX_PCI_DEVICE_ID), … … 2271 2271 if (pPciDev) 2272 2272 { 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)); 2274 2274 pPciDev->Int.s.pfnConfigWrite(pPciDev->Int.s.CTX_SUFF(pDevIns), pPciDev, u32Address, u32Value, cb); 2275 2275 } … … 2305 2305 { 2306 2306 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)); 2308 2308 } 2309 2309 } -
trunk/src/VBox/Devices/Bus/DevPciIch9.cpp
r64391 r64392 596 596 apic_level = pGlobals->uaPciApicIrqLevels[irq_num] != 0; 597 597 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)); 599 599 pBus->CTX_SUFF(pPciHlp)->pfnIoApicSetIrq(pBus->CTX_SUFF(pDevIns), apic_irq, apic_level, uTagSrc); 600 600 … … 609 609 apic_level = pGlobals->uaPciApicIrqLevels[irq_num] != 0; 610 610 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)); 612 612 pBus->CTX_SUFF(pPciHlp)->pfnIoApicSetIrq(pBus->CTX_SUFF(pDevIns), apic_irq, apic_level, uTagSrc); 613 613 } 614 614 } else { 615 615 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)); 617 617 pBus->CTX_SUFF(pPciHlp)->pfnIoApicSetIrq(pBus->CTX_SUFF(pDevIns), iForcedIrq, iLevel, uTagSrc); 618 618 } … … 1006 1006 1007 1007 Log(("ich9pciIORegionRegister: %s region %d size %RGp type %x\n", 1008 pPciDev-> name, iRegion, cbRegion, enmType));1008 pPciDev->pszNameR3, iRegion, cbRegion, enmType)); 1009 1009 1010 1010 /* Make sure that we haven't marked this region as continuation of 64-bit region. */ … … 1155 1155 if (pPciDev) 1156 1156 { 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)); 1158 1158 pPciDev->Int.s.pfnConfigWrite(pPciDev->Int.s.CTX_SUFF(pDevIns), pPciDev, u32Address, u32Value, cb); 1159 1159 } … … 1188 1188 { 1189 1189 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)); 1191 1191 } 1192 1192 else … … 1338 1338 if (!s_aFields[i].fWritable) 1339 1339 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)); 1341 1341 else 1342 1342 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)); 1344 1344 } 1345 1345 if (off == VBOX_PCI_COMMAND) … … 1360 1360 { 1361 1361 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. */ 1363 1363 pbDstConfig[off] = pbSrcConfig[off]; 1364 1364 } … … 1429 1429 if (pDev) 1430 1430 { 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, 1432 1432 PCIDevGetVendorId(pDev), PCIDevGetDeviceId(pDev))); 1433 1433 if (SSMR3HandleGetAfter(pSSM) != SSMAFTER_DEBUG_IT) 1434 1434 { 1435 1435 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)); 1437 1437 break; 1438 1438 } … … 1488 1488 { 1489 1489 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)); 1491 1491 break; 1492 1492 } … … 1979 1979 { 1980 1980 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)); 1982 1982 return 0; 1983 1983 } … … 2078 2078 { 2079 2079 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)); 2081 2081 return; 2082 2082 } … … 2252 2252 pHlp->pfnPrintf(pHlp, "%02x:%02x:%02x %s%s: %04x-%04x", 2253 2253 pBus->iBus, (iDev >> 3) & 0xff, iDev & 0x7, 2254 pPciDev-> name,2254 pPciDev->pszNameR3, 2255 2255 pciDevIsPassthrough(pPciDev) ? " (PASSTHROUGH)" : "", 2256 2256 ich9pciGetWord(pPciDev, VBOX_PCI_VENDOR_ID), ich9pciGetWord(pPciDev, VBOX_PCI_DEVICE_ID) -
trunk/src/VBox/Devices/USB/DevOHCI.cpp
r64387 r64392 4154 4154 pThis->dqic = 0x7; 4155 4155 4156 Log(("ohci: %s: Bus started\n", pThis->PciDev. name));4156 Log(("ohci: %s: Bus started\n", pThis->PciDev.pszNameR3)); 4157 4157 4158 4158 pThis->SofTime = PDMDevHlpTMTimeVirtGet(pThis->CTX_SUFF(pDevIns)); … … 4893 4893 { 4894 4894 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)); 4896 4896 val &= ~(OHCI_RHA_NDP | OHCI_RHA_DT); 4897 4897 val |= OHCI_NDP_CFG(pThis); … … 4929 4929 if ( pThis->RootHub.desc_b != val ) 4930 4930 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)); 4933 4932 pThis->RootHub.desc_b = val; 4934 4933 return VINF_SUCCESS; … … 4974 4973 { 4975 4974 unsigned i; 4976 Log2(("ohci: %s: global power up\n", pThis->PciDev. name));4975 Log2(("ohci: %s: global power up\n", pThis->PciDev.pszNameR3)); 4977 4976 for (i = 0; i < OHCI_NDP_CFG(pThis); i++) 4978 4977 rhport_power(&pThis->RootHub, i, true /* power up */); … … 4983 4982 { 4984 4983 unsigned i; 4985 Log2(("ohci: %s: global power down\n", pThis->PciDev. name));4984 Log2(("ohci: %s: global power down\n", pThis->PciDev.pszNameR3)); 4986 4985 for (i = 0; i < OHCI_NDP_CFG(pThis); i++) 4987 4986 rhport_power(&pThis->RootHub, i, false /* power down */); … … 5636 5635 static SSMFIELD const s_aOhciFields22[] = 5637 5636 { 5638 SSMFIELD_ENTRY_OLD( PciDev. config,256), /* DevPCI restores this. */5637 SSMFIELD_ENTRY_OLD( PciDev.abConfig, 256), /* DevPCI restores this. */ 5639 5638 SSMFIELD_ENTRY_OLD( PciDev.Int, 224), 5640 SSMFIELD_ENTRY_OLD( PciDev. devfn,4),5639 SSMFIELD_ENTRY_OLD( PciDev.uDevFn, 4), 5641 5640 SSMFIELD_ENTRY_OLD( PciDev.Alignment0, 4), 5642 SSMFIELD_ENTRY_OLD_HCPTR( PciDev. name),5643 SSMFIELD_ENTRY_OLD_HCPTR( PciDev.p DevIns),5641 SSMFIELD_ENTRY_OLD_HCPTR( PciDev.pszNameR3), 5642 SSMFIELD_ENTRY_OLD_HCPTR( PciDev.pvReserved), 5644 5643 SSMFIELD_ENTRY_OLD_HCPTR( pDevInsR3), 5645 5644 SSMFIELD_ENTRY_OLD_HCPTR( pEndOfFrameTimerR3),
Note:
See TracChangeset
for help on using the changeset viewer.