Library of Bus-Adapters
HAL::PCILinuxDeviceIdentifier Class Reference

The DeviceIdentifier for the PCILinuxBusAdapter. More...

#include <PCILinuxDeviceIdentifier.hh>

List of all members.

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

Detailed Description

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.

See also:
Christoph Schwick
2007/03/05 17:54:12

Definition at line 33 of file PCILinuxDeviceIdentifier.hh.

Constructor & Destructor Documentation

HAL::PCILinuxDeviceIdentifier::PCILinuxDeviceIdentifier ( xpci::Address  deviceConfigAddress,
bool  swapFlag = false 

Definition at line 4 of file

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

Member Function Documentation

Returns an internal state variable, set in the constructor.

Definition at line 13 of file

uint32_t HAL::PCILinuxDeviceIdentifier::getPCIBusAddress ( uint32_t  iBar) const throw (BusAdapterException)

Sets the internal data array "maps[]".

HardwareAccessExceptionis 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

Definition at line 27 of file

Member Data Documentation

Definition at line 75 of file PCILinuxDeviceIdentifier.hh.

Definition at line 76 of file PCILinuxDeviceIdentifier.hh.

The documentation for this class was generated from the following files: