0

I have to develop a Linux Serial RapidIo Device Driver that runs on the ARM of Zynq7000 that uses as HW SRIO the FW loaded in the FPGA section of Zynq7000. I was inspired by the source ..../linux-xilinx-v2020.1/drivers/rapidio/devices/tsi721.c which however provides a probe-based pci interface.

static struct pci_driver tsi721_driver = {
    .name       = "tsi721",
    .id_table   = tsi721_pci_tbl,
    .probe      = tsi721_probe,
    .remove     = tsi721_remove,
    .shutdown   = tsi721_shutdown,
};

module_pci_driver(tsi721_driver)

In my case I don't have a PCI interface and therefore I don't have the probe function where I can setup the mport which records the rio_ops callbacks.

How can I do?

Thanks!

Pax to You
  • 71
  • 7
  • A no PCI RapidIO Device driver may be found in arch/powerpc/sysdev/fsl_rio.c where the module init simply invokes platform_driver_register API. – Pax to You Oct 10 '22 at 15:20

0 Answers0