SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
simics::systemc::iface::BaseAddressRegisterQueryInterface::BaseAddressRegister Struct Reference

Base Address Register (BAR) configuration. More...

#include <pci_device_query_interface.h>

Public Attributes

int function
 PCI function that this BAR belongs to.
 
int offset
 BAR offset (0x10-0x24)
 
bool is_memory
 Memory or IO BAR?
 
bool is_64bit
 64-bit or 32-bit (memory) BAR?
 
int size_bits
 Size of BAR, in number of bits.
 
int mapping_id
 Mapping ID, used to identify incoming transactions.
 

Detailed Description

Base Address Register (BAR) configuration.

Provided by the device, used by the Simics glue to allow snooping and simplify mapping of the device.

Note
Though not enforced by the glue, there must be as many sockets returned by getBarTargetSockets() as there are unique mapping IDs - or accesses will not be routed correctly.
The way the mapping_id is used by the Simics glue is implementation specific.

Member Data Documentation

◆ function

int simics::systemc::iface::BaseAddressRegisterQueryInterface::BaseAddressRegister::function

PCI function that this BAR belongs to.

◆ is_64bit

bool simics::systemc::iface::BaseAddressRegisterQueryInterface::BaseAddressRegister::is_64bit

64-bit or 32-bit (memory) BAR?

◆ is_memory

bool simics::systemc::iface::BaseAddressRegisterQueryInterface::BaseAddressRegister::is_memory

Memory or IO BAR?

◆ mapping_id

int simics::systemc::iface::BaseAddressRegisterQueryInterface::BaseAddressRegister::mapping_id

Mapping ID, used to identify incoming transactions.

◆ offset

int simics::systemc::iface::BaseAddressRegisterQueryInterface::BaseAddressRegister::offset

BAR offset (0x10-0x24)

◆ size_bits

int simics::systemc::iface::BaseAddressRegisterQueryInterface::BaseAddressRegister::size_bits

Size of BAR, in number of bits.


The documentation for this struct was generated from the following file: