Questions regarding Linux driver in $QUARTUS_ROOT/ip/altera/altera_pcie/altera_pcie_software
In Quartus there is source code for a pcie device driver in $QUARTUS_ROOT/ip/altera/altera_pcie/altera_pcie_software.
1) Which example design is compatible with this device driver?
Since the driver appears to set up DMA descriptors they should match the ones in the RTL. But which sample design or IP is compatible with this device driver?
2) How should the file intel_fpga_pcie_ip_params.h.terp be pre-processed?
In $QUARTUS_ROOT/ip/altera/altera_pcie/altera_pcie_software/kernel there is a file named intel_fpga_pcie_ip_params.h.terp which appears to be pre-processed by some Tcl based tool which defines the list $bar_types, dma_interrupt_enabled and dma_interrupt_type. The pre-processed file is included by intel_fpga_pcie_setup.h, which is included by the C source files.
How is this supposed to be done?
3) It does not compile under Linux 5.x kernel, but it should be possible to port by updating some function arguments etc.
Did anybody already port $QUARTUS_ROOT/ip/altera/altera_pcie/altera_pcie_software/kernel/linux to the 5.x kernel?