summaryrefslogtreecommitdiff
path: root/src/VBox/Main/include/BusAssignmentManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/VBox/Main/include/BusAssignmentManager.h')
-rw-r--r--src/VBox/Main/include/BusAssignmentManager.h21
1 files changed, 17 insertions, 4 deletions
diff --git a/src/VBox/Main/include/BusAssignmentManager.h b/src/VBox/Main/include/BusAssignmentManager.h
index c83df4f7d..a0531a554 100644
--- a/src/VBox/Main/include/BusAssignmentManager.h
+++ b/src/VBox/Main/include/BusAssignmentManager.h
@@ -1,4 +1,4 @@
-/* $Id: BusAssignmentManager.h $ */
+/* $Id: BusAssignmentManager.h 36107 2011-02-28 18:24:32Z vboxsync $ */
/** @file
*
@@ -32,16 +32,29 @@ private:
BusAssignmentManager();
virtual ~BusAssignmentManager();
+ HRESULT assignPciDeviceImpl(const char* pszDevName, PCFGMNODE pCfg, PciBusAddress& GuestAddress, PciBusAddress HostAddress, bool fGuestAddressRequired = false);
+
public:
static BusAssignmentManager* createInstance(ChipsetType_T chipsetType);
virtual void AddRef();
virtual void Release();
- virtual HRESULT assignPciDevice(const char* pszDevName, PCFGMNODE pCfg, PciBusAddress& Address, bool fAddressRequired = false);
+ virtual HRESULT assignHostPciDevice(const char* pszDevName, PCFGMNODE pCfg, PciBusAddress HostAddress, PciBusAddress& GuestAddress, bool fAddressRequired = false)
+ {
+ return assignPciDeviceImpl(pszDevName, pCfg, GuestAddress, HostAddress, fAddressRequired);
+ }
+
+ virtual HRESULT assignPciDevice(const char* pszDevName, PCFGMNODE pCfg, PciBusAddress& Address, bool fAddressRequired = false)
+ {
+ PciBusAddress HostAddress;
+ return assignPciDeviceImpl(pszDevName, pCfg, Address, HostAddress, fAddressRequired);
+ }
+
virtual HRESULT assignPciDevice(const char* pszDevName, PCFGMNODE pCfg)
{
- PciBusAddress Address;
- return assignPciDevice(pszDevName, pCfg, Address, false);
+ PciBusAddress GuestAddress;
+ PciBusAddress HostAddress;
+ return assignPciDeviceImpl(pszDevName, pCfg, GuestAddress, HostAddress, false);
}
virtual bool findPciAddress(const char* pszDevName, int iInstance, PciBusAddress& Address);
virtual bool hasPciDevice(const char* pszDevName, int iInstance)