[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c384c5ea0901081447i5ad807b3yb0ec3adebeaa46a0@mail.gmail.com>
Date: Thu, 8 Jan 2009 23:47:58 +0100
From: "Leon Woestenberg" <leon.woestenberg@...il.com>
To: "Thiago Galesi" <thiagogalesi@...il.com>
Cc: "Hugo Villeneuve" <hugo@...ovil.com>,
"Florian Fainelli" <florian@...nwrt.org>,
linux-kernel@...r.kernel.org, linux-embedded@...r.kernel.org
Subject: Re: FPGA programming driver architecture
Hello,
On Thu, Jan 8, 2009 at 11:14 PM, Thiago Galesi <thiagogalesi@...il.com> wrote:
>> > > Hi,
>> > > I have written some code to program a FPGA in Linux, for two
>> > > different types of boards: one uses a serial interface (SPI) and
>> > > the second a parallel interface. I have been able to sucessfully
>> > > program both boards. I'm now trying to clean my code and make it
>> > > more generic, as well as better in line with the Linux driver
>> > > model.
>
> Considering the several FPGA models available and ways to program it,
> I guess the important thing to consider is what can be made generic.
Indeed.
The programming back end should be generic enough so that it can use
other subsystems.
The FPGA configuration interface could be on the memory bus (and in
many cases the DMA helpers can be used) or behind a PCI bus, or can
even have SPI etc front-ends.
In general the programming API should accept a blob of data,
preferably in one chunk (pointer plus length) or at least 4kB chunks
or so, so that configuration is not severy overheaded by a callback
per byte (or even bit).
Regards,
--
Leon
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists