OPAE Intel FPGA Linux Device Driver Architecture Guide
Visible to Intel only — GUID: bry1503626345713
Ixiasoft
Visible to Intel only — GUID: bry1503626345713
Ixiasoft
1.1.7. Application FPGA Device Enumeration
This section introduces how applications enumerate the FPGA device from the sysfs hierarchy under /sys/class/fpga.
In the example below, two Intel® FPGA devices are installed in the host. Each FPGA device has one FME and two Ports (AFUs).
/sys/class/fpga/intel-fpga-dev.0 /sys/class/fpga/intel-fpga-dev.1
/sys/class/fpga/intel-fpga-dev.0/intel-fpga-fme.0 /sys/class/fpga/intel-fpga-dev.0/intel-fpga-port.0 /sys/class/fpga/intel-fpga-dev.0/intel-fpga-port.1 /sys/class/fpga/intel-fpga-dev.1/intel-fpga-fme.1 /sys/class/fpga/intel-fpga-dev.1/intel-fpga-port.2 /sys/class/fpga/intel-fpga-dev.1/intel-fpga-port.3
/sys/class/fpga/intel-fpga-dev.i/intel-fpga-fme.j/ /sys/class/fpga/intel-fpga-dev.i/intel-fpga-port.k/
with i consecutively numbering all the container devices, j consecutively numbering the FME’s and k consecutively numbering all Ports.
/dev/intel-fpga-fme.j /dev/intel-fpga-port.k