How to partition a PCI device within OF?
flat view
From: Steven A. Falco <hidden>
Date: 2008-11-24 19:25:11
From: Steven A. Falco <hidden>
Date: 2008-11-24 19:25:11
I have an FPGA that will be on the PCI bus of a PPC440 processor. The FPGA unfortunately can only have one "PCI function" (thus one vendor/device code). The unfortunate part is that the FPGA has several logical functions, that should have separate drivers. Is there a way that I can break out the single PCI device into several different sub-functions, with separate "sub-function drivers" using the OF infrastructure? What I'd like to do is pci_register_driver() once for the whole device, and when probed by the PCI subsystem, create several OF viewable sub-devices. Then, I could have separate OF drivers bind to the newly created OF sub-devices. If there are any examples of this, I'd appreciate a pointer. Or if I'm completely wedged, and there is a better way to handle the situation, please say so. Steve