Changeset 36630 in vbox for trunk/src/VBox/Main
- Timestamp:
- Apr 8, 2011 6:41:51 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 71093
- Location:
- trunk/src/VBox/Main
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/idl/VirtualBox.xidl
r36615 r36630 4704 4704 and most information will be delivered as IHostPciDevicePlugEvent 4705 4705 on IVirtualBox event source. 4706 <note>4707 Not yet implemented.4708 </note>4709 4706 4710 4707 <see>IHostPciDevicePlugEvent</see> … … 4738 4735 will be delivered. As currently we don't support hot device 4739 4736 unplug, IHostPciDevicePlugEvent event is delivered immediately. 4740 4741 <note>4742 Not yet implemented.4743 </note>4744 4737 4745 4738 <see>IHostPciDevicePlugEvent</see> -
trunk/src/VBox/Main/src-client/BusAssignmentManager.cpp
r36107 r36630 376 376 const DeviceAssignmentRule* rule = matchingRules[iRule]; 377 377 378 Address. iBus = rule->iBus;379 Address. iDevice = rule->iDevice;380 Address. iFn = rule->iFn;378 Address.miBus = rule->iBus; 379 Address.miDevice = rule->iDevice; 380 Address.miFn = rule->iFn; 381 381 382 382 if (checkAvailable(Address)) 383 383 return S_OK; 384 384 } 385 AssertMsg (false,("All possible candidate positions for %s exhausted\n", pszName));385 AssertMsgFailed(("All possible candidate positions for %s exhausted\n", pszName)); 386 386 387 387 return E_INVALIDARG; … … 490 490 return rc; 491 491 492 rc = InsertConfigInteger(pCfg, "PCIBusNo", GuestAddress. iBus);492 rc = InsertConfigInteger(pCfg, "PCIBusNo", GuestAddress.miBus); 493 493 if (FAILED(rc)) 494 494 return rc; 495 rc = InsertConfigInteger(pCfg, "PCIDeviceNo", GuestAddress. iDevice);495 rc = InsertConfigInteger(pCfg, "PCIDeviceNo", GuestAddress.miDevice); 496 496 if (FAILED(rc)) 497 497 return rc; 498 rc = InsertConfigInteger(pCfg, "PCIFunctionNo", GuestAddress. iFn);498 rc = InsertConfigInteger(pCfg, "PCIFunctionNo", GuestAddress.miFn); 499 499 if (FAILED(rc)) 500 500 return rc; -
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r36559 r36630 485 485 Assert(GuestPciAddress.valid()); 486 486 487 if (GuestPciAddress. iBus > 0)487 if (GuestPciAddress.miBus > 0) 488 488 { 489 489 int iBridgesMissed = 0; 490 int iBase = GuestPciAddress. iBus - 1;490 int iBase = GuestPciAddress.miBus - 1; 491 491 492 492 while (!BusMgr->hasPciDevice("ich9pcibridge", iBase) && iBase > 0) … … 547 547 548 548 InsertConfigInteger(pCfg, "DetachHostDriver", 1); 549 InsertConfigInteger(pCfg, "HostPCIBusNo", HostPciAddress. iBus);550 InsertConfigInteger(pCfg, "HostPCIDeviceNo", HostPciAddress. iDevice);551 InsertConfigInteger(pCfg, "HostPCIFunctionNo", HostPciAddress. iFn);549 InsertConfigInteger(pCfg, "HostPCIBusNo", HostPciAddress.miBus); 550 InsertConfigInteger(pCfg, "HostPCIDeviceNo", HostPciAddress.miDevice); 551 InsertConfigInteger(pCfg, "HostPCIFunctionNo", HostPciAddress.miFn); 552 552 553 553 GuestPciAddress.fromLong(guest); … … 557 557 return hrc; 558 558 559 InsertConfigInteger(pCfg, "GuestPCIBusNo", GuestPciAddress. iBus);560 InsertConfigInteger(pCfg, "GuestPCIDeviceNo", GuestPciAddress. iDevice);561 InsertConfigInteger(pCfg, "GuestPCIFunctionNo", GuestPciAddress. iFn);559 InsertConfigInteger(pCfg, "GuestPCIBusNo", GuestPciAddress.miBus); 560 InsertConfigInteger(pCfg, "GuestPCIDeviceNo", GuestPciAddress.miDevice); 561 InsertConfigInteger(pCfg, "GuestPCIFunctionNo", GuestPciAddress.miFn); 562 562 563 563 /* the Main driver */ … … 1880 1880 InsertConfigNode(pNetBootCfg, achBootIdx, &pNetBtDevCfg); 1881 1881 InsertConfigInteger(pNetBtDevCfg, "NIC", it->mInstance); 1882 InsertConfigInteger(pNetBtDevCfg, "PCIBusNo", it->mPciAddress. iBus);1883 InsertConfigInteger(pNetBtDevCfg, "PCIDeviceNo", it->mPciAddress. iDevice);1884 InsertConfigInteger(pNetBtDevCfg, "PCIFunctionNo", it->mPciAddress. iFn);1882 InsertConfigInteger(pNetBtDevCfg, "PCIBusNo", it->mPciAddress.miBus); 1883 InsertConfigInteger(pNetBtDevCfg, "PCIDeviceNo", it->mPciAddress.miDevice); 1884 InsertConfigInteger(pNetBtDevCfg, "PCIFunctionNo", it->mPciAddress.miFn); 1885 1885 } 1886 1886 } … … 2509 2509 { 2510 2510 BootNic aNic = llBootNics.front(); 2511 uint32_t u32NicPciAddr = (aNic.mPciAddress. iDevice << 16) | aNic.mPciAddress.iFn;2511 uint32_t u32NicPciAddr = (aNic.mPciAddress.miDevice << 16) | aNic.mPciAddress.miFn; 2512 2512 InsertConfigInteger(pCfg, "NicPciAddress", u32NicPciAddr); 2513 2513 } … … 2517 2517 if (BusMgr->findPciAddress("hda", 0, Address)) 2518 2518 { 2519 uint32_t u32AudioPciAddr = (Address. iDevice << 16) | Address.iFn;2519 uint32_t u32AudioPciAddr = (Address.miDevice << 16) | Address.miFn; 2520 2520 InsertConfigInteger(pCfg, "AudioPciAddress", u32AudioPciAddr); 2521 2521 } -
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r36451 r36630 5933 5933 fireHostPciDevicePlugEvent(es, mid.raw(), false /* unplugged */, true /* success */, pAttach, NULL); 5934 5934 } 5935 5936 return S_OK; 5935 5936 return fRemoved ? S_OK : setError(VBOX_E_OBJECT_NOT_FOUND, 5937 tr("No host PCI device %08x attached"), 5938 hostAddress 5939 ); 5937 5940 } 5938 5941
Note:
See TracChangeset
for help on using the changeset viewer.