PCI – PCI Bus Memory Access
Block SymbolLicensing group: ADVANCED
Function Description
The PCI block provides access to PCI device resources defined by the path:
/sys/bus/pci/devices/<device>/resource<resource>
The data is presented at the output y of the block as a reference to a byte array. The device is specified using the pci_device parameter, which accepts two formats:
- The device slot, as displayed in lspci command output, formatted as:
<domain>:<bus>:<slot>.<func>.
- A combination of the vendor and device IDs with an optional index, formatted as:
[vendor]:[device][#index].
Both vendor and device IDs are hexadecimal numbers that can be retrieved from the lspci -nn command output, without the leading "0x". You can omit either the vendor or device ID. If the index is not specified, the first device matching the provided vendor and device IDs is selected.
The default setting for the size parameter is 0, which uses the entire resource. However, this can lead to the allocation of a large virtual memory area.
Note: Block is supported only on Linux platforms.
This block does not propagate the signal quality. More information can be found in the 1.4 section.
Parameter
pci_device | PCI device: <domain>:<bus>:<slot>.<func> or id [<vendor>]:[<device>][#<index>] | String |
resource | PCI resource number | Long (I32) |
offset | Offset in pci resource | Large (I64) |
size | Size of data to open (0 for whole resource) | Large (I64) |
Output
y | Reference to byte array | Reference |
[Previous] [Back to top] [Up] [Next]
2024 © REX Controls s.r.o., www.rexygen.com