Library of Bus-Adapters
|
The DeviceIdentifier for the PCILinuxBusAdapter. More...
#include <PCILinuxDeviceIdentifier.hh>
Public Member Functions | |
PCILinuxDeviceIdentifier (xpci::Address deviceConfigAddress, bool swapFlag=false) | |
virtual | ~PCILinuxDeviceIdentifier () |
Destruction of the Identifier and the maps. | |
xpci::Address | getConfigAddress () |
uint32_t | getPCIBusAddress (uint32_t iBar) const throw (BusAdapterException) |
Sets the internal data array "maps[]". | |
bool | doSwap () const |
Returns an internal state variable, set in the constructor. | |
std::string | printString () const |
Private Attributes | |
xpci::Address | deviceConfigAddress |
bool | swapFlag |
The DeviceIdentifier for the PCILinuxBusAdapter.
The class contains data which is needed by the PCILinuxBusAdapter to perform configuration space accesses. In addition it keeps pointers to the address maps which the PCIBusAdapter created for memory mapped hardware accesss (used in memory accesses). They are used when unregistering the device in order to destroy the mapping.
Definition at line 33 of file PCILinuxDeviceIdentifier.hh.
HAL::PCILinuxDeviceIdentifier::PCILinuxDeviceIdentifier | ( | xpci::Address | deviceConfigAddress, |
bool | swapFlag = false |
||
) |
Definition at line 4 of file PCILinuxDeviceIdentifier.cc.
HAL::PCILinuxDeviceIdentifier::~PCILinuxDeviceIdentifier | ( | ) | [virtual] |
Destruction of the Identifier and the maps.
The memory maps which are related to the hardware device identified by this identifier are destroyed by this desructor.
Definition at line 10 of file PCILinuxDeviceIdentifier.cc.
bool HAL::PCILinuxDeviceIdentifier::doSwap | ( | ) | const |
Returns an internal state variable, set in the constructor.
Definition at line 13 of file PCILinuxDeviceIdentifier.cc.
xpci::Address HAL::PCILinuxDeviceIdentifier::getConfigAddress | ( | ) |
Definition at line 23 of file PCILinuxDeviceIdentifier.cc.
uint32_t HAL::PCILinuxDeviceIdentifier::getPCIBusAddress | ( | uint32_t | iBar | ) | const throw (BusAdapterException) |
Sets the internal data array "maps[]".
HardwareAccessException | is thrown if the index ix is out of range. Returns the bus-addresses for a given BAR. This function is useful if the busAddress must be given to a DMA engine. |
Definition at line 17 of file PCILinuxDeviceIdentifier.cc.
std::string HAL::PCILinuxDeviceIdentifier::printString | ( | ) | const |
Definition at line 27 of file PCILinuxDeviceIdentifier.cc.
xpci::Address HAL::PCILinuxDeviceIdentifier::deviceConfigAddress [private] |
Definition at line 75 of file PCILinuxDeviceIdentifier.hh.
bool HAL::PCILinuxDeviceIdentifier::swapFlag [private] |
Definition at line 76 of file PCILinuxDeviceIdentifier.hh.