VIRTUTECH CONFIDENTIAL    Previous - Up - Next

pcie-switch

Provided by
pcie-switch
Class Hierarchy
conf-objectlog-objectpcie-switch
Interfaces Implemented
log_object, snoop_memory, timing_model, pci_bus, pci_express, io_memory
Description
The pcie-switch device models a logical PCI Express switch that PCI Express devices can be connected to. The switch needs memory-space objects connected, representing the three PCI Express address spaces 'configuration', 'I/O' and 'memory'. The switch itself should be connected to a PCI Express bridge device.

Attributes

Attributes inherited from class conf-object
attributes, classname, component, iface, name, object_id, queue
Attributes inherited from class log-object
access_count, log_buffer, log_buffer_last, log_buffer_size, log_group_mask, log_groups, log_level, log_type_mask
Attribute List
bridge
Required attribute; read/write access; type: Object.

Upstream PCI bridge object, which must implement the pci-bridge interface.

bus_number
Optional attribute; read/write access; type: Integer.

PCI bus number of this bus. In most cases this is 0, but some exceptions exist.

conf_space
Required attribute; read/write access; type: Object.

Memory-space object representing the PCI configuration space.

interrupt
Optional attribute; read/write access; type: o|n|[o*].

One or more interrupt device objects that implements the pci-interrupt interface. This attribute only has to be set if the bridge does not handle PCI interrupts.

io_space
Required attribute; read/write access; type: Object.

Memory-space object representing the PCI I/O space.

memory_space
Required attribute; read/write access; type: Object.

Memory-space object representing the PCI memory space.

pci_devices
Optional attribute; read/write access; type: [[iio]|[iioi]*].

((id, function, object)*) id is pci device id. function is the pci device logical function. object is the pci device itself, which must implement the 'pci-device' interface.

send_interrupt_to_bridge
Optional attribute; read/write access; type: Integer.

If non-zero (default), interrupt will be routed to the PCI bridge as well as the interrupt devices.

sub_bus_number
Optional attribute; read/write access; type: Integer.

Subordinate PCI bus number for this bus.

Command List

Commands defined by interface log_object
log, log-group, log-level, log-size, log-type
Commands
infoprint information about the device

Command Descriptions

<pcie-switch>.info
Synopsis
<pcie-switch>.info
Description
Print detailed information about the configuration of the device.

VIRTUTECH CONFIDENTIAL    Previous - Up - Next