BusAssignmentManager.h revision 8af676a2588a2b1eb143f1a47abd295c1499cd2f
/* $Id$ */
/** @file
*
* VirtualBox bus slots assignment manager
*/
/*
* Copyright (C) 2010 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
#ifndef __BusAssignmentManager_h
#define __BusAssignmentManager_h
#include "VirtualBoxBase.h"
struct PciBusAddress
{
int iBus;
int iDevice;
int iFn;
{
clear();
}
{
}
{
return *this;
}
bool operator<(const PciBusAddress &a) const
{
return true;
return false;
return true;
return false;
return true;
return false;
return false;
}
bool operator==(const PciBusAddress &a) const
{
}
bool operator!=(const PciBusAddress &a) const
{
}
bool valid() const
{
}
};
{
struct State;
static BusAssignmentManager* pInstance;
virtual HRESULT assignPciDevice(const char* pszDevName, PCFGMNODE pCfg, PciBusAddress& Address, bool fAddressRequired = false);
{
}
};
#endif // __BusAssignmentManager_h