On Tue, May 13, 2003 at 02:29:33AM +0100, Dave Airlie wrote:
>
> hi,
> I've got a PCI card that has an FPGA on it which I want to program
> at run time, and then load a device driver for depending on what I've
> loaded in to the FPGA,
>
> The FPGA is downloaded via JTAG so that is all fine, but if I boot Linux,
> download over the JTAG, how can I get Linux to see the device? can I use
> the hotplugging support or do I still need to do more work? I know the
> hotplug allows for PCMCIA and CompactPCI to add devices after boot, but
> this is plain PCI but the device won't be there until the system is
> running,
I've posted a driver to the linux-hotplug-devel mailing list a year or
so ago that might help you out with this. On module load it rescans the
PCI address space, adding or removind devices that are new or now gone.
This will probably do what you want.
I didn't write the driver, and it's probably very out of date by now,
but it's something for you to start with if you are interested.
Good luck,
greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Thu May 15 2003 - 22:00:43 EST