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

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

#include <pcie_device_query_interface.h>

Public Attributes

int function
 Function number of the device.
 
int offset
 BAR offset in Configuration Space Header.
 
bool is_memory
 If it is a Memory BAR?
 
bool is_64bit
 For memory BAR, is it 64-bit or 32-bit?
 
int size_bits
 Size of BAR, in number of bits.
 
sc_core::sc_object * target_socket
 Where to direct the access.
 

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.

There are three main types of BARs:

  • Memory BARs. It can be 32-bit or 64-bit
  • I/O BARs. Only 32-bit
  • Expansion ROM BAR. Only 32-bit

The type of BARs is determined by offset and is_memory:

  • Memory BARs. Offset in the range [0x10 - 0x24], is_memory is true
  • I/O BARs. Offset in the range [0x10 - 0x24], is_memory is false
  • Expansion ROM BAR. Offset 0x30

Member Data Documentation

◆ function

int simics::systemc::iface::PcieBaseAddressRegisterQueryInterface::PCIeBar::function

Function number of the device.

◆ is_64bit

bool simics::systemc::iface::PcieBaseAddressRegisterQueryInterface::PCIeBar::is_64bit

For memory BAR, is it 64-bit or 32-bit?

◆ is_memory

bool simics::systemc::iface::PcieBaseAddressRegisterQueryInterface::PCIeBar::is_memory

If it is a Memory BAR?

◆ offset

int simics::systemc::iface::PcieBaseAddressRegisterQueryInterface::PCIeBar::offset

BAR offset in Configuration Space Header.

◆ size_bits

int simics::systemc::iface::PcieBaseAddressRegisterQueryInterface::PCIeBar::size_bits

Size of BAR, in number of bits.

◆ target_socket

sc_core::sc_object* simics::systemc::iface::PcieBaseAddressRegisterQueryInterface::PCIeBar::target_socket

Where to direct the access.


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