From: "Steven A. Falco" <sfalco@harris.com>
To: "linuxppc-dev@ozlabs.org" <linuxppc-dev@ozlabs.org>
Subject: How to partition a PCI device within OF?
Date: Mon, 24 Nov 2008 14:08:02 -0500 [thread overview]
Message-ID: <492AFB92.8090100@harris.com> (raw)
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
reply other threads:[~2008-11-24 19:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=492AFB92.8090100@harris.com \
--to=sfalco@harris.com \
--cc=linuxppc-dev@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).