Changeset 26169 in vbox for trunk/src/VBox/Devices/Bus/DevPCI.cpp
- Timestamp:
- Feb 2, 2010 8:19:15 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 57183
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevPCI.cpp
r26165 r26169 307 307 devclass = d->config[0x0a] | (d->config[0x0b] << 8); 308 308 if (devclass == 0x0101 && r->size == 4) { 309 int rc = d->pDevIns->pDevHlpR3->pfnIOPortDeregister(d->pDevIns, r->addr + 2, 1);309 int rc = PDMDevHlpIOPortDeregister(d->pDevIns, r->addr + 2, 1); 310 310 AssertRC(rc); 311 311 } else { 312 int rc = d->pDevIns->pDevHlpR3->pfnIOPortDeregister(d->pDevIns, r->addr, r->size);312 int rc = PDMDevHlpIOPortDeregister(d->pDevIns, r->addr, r->size); 313 313 AssertRC(rc); 314 314 } … … 324 324 } 325 325 else 326 rc = d->pDevIns->pDevHlpR3->pfnMMIODeregister(d->pDevIns, GCPhysBase, r->size);326 rc = PDMDevHlpMMIODeregister(d->pDevIns, GCPhysBase, r->size); 327 327 AssertMsgRC(rc, ("rc=%Rrc d=%s i=%d GCPhysBase=%RGp size=%#x\n", rc, d->name, i, GCPhysBase, r->size)); 328 328 } … … 2043 2043 PciBusReg.pszSetIrqRC = fGCEnabled ? "pciSetIrq" : NULL; 2044 2044 PciBusReg.pszSetIrqR0 = fR0Enabled ? "pciSetIrq" : NULL; 2045 rc = pDevIns->pDevHlpR3->pfnPCIBusRegister(pDevIns, &PciBusReg, &pBus->pPciHlpR3);2045 rc = PDMDevHlpPCIBusRegister(pDevIns, &PciBusReg, &pBus->pPciHlpR3); 2046 2046 if (RT_FAILURE(rc)) 2047 2047 return PDMDEV_SET_ERROR(pDevIns, rc, … … 2414 2414 PciBusReg.pszSetIrqRC = fGCEnabled ? "pcibridgeSetIrq" : NULL; 2415 2415 PciBusReg.pszSetIrqR0 = fR0Enabled ? "pcibridgeSetIrq" : NULL; 2416 rc = pDevIns->pDevHlpR3->pfnPCIBusRegister(pDevIns, &PciBusReg, &pBus->pPciHlpR3);2416 rc = PDMDevHlpPCIBusRegister(pDevIns, &PciBusReg, &pBus->pPciHlpR3); 2417 2417 if (RT_FAILURE(rc)) 2418 2418 return PDMDEV_SET_ERROR(pDevIns, rc,
Note:
See TracChangeset
for help on using the changeset viewer.