Re: FPGA registers userspace interface?

2011-01-03 Thread Greg KH
On Mon, Jan 03, 2011 at 10:52:34PM +0200, Daniel Baluta wrote: > > I thought about using 3 files in sysfs. > > 1. address of the register > > 2. data to write to the register > > 3. trigger that do the write > > The most effective solution would be to > have one file per register. > > Writing reg

Re: FPGA registers userspace interface?

2011-01-03 Thread Daniel Baluta
> I thought about using 3 files in sysfs. > 1. address of the register > 2. data to write to the register > 3. trigger that do the write The most effective solution would be to have one file per register. Writing register: # echo value > /sys/path/to/file Reading register: # cat /sys/path/to/fil

Re: FPGA registers userspace interface?

2011-01-03 Thread Kfir Lavi
On Mon, Jan 3, 2011 at 5:09 PM, Kfir Lavi wrote: > > > On Mon, Jan 3, 2011 at 3:00 PM, Philip Downer wrote: > >> On 03/01/11 12:47, Kfir Lavi wrote: >> >> I have a FPGA that is constantly changing (its on development phase). >>> I want to let userspace app to update those registers, but don't w

Re: FPGA registers userspace interface?

2011-01-03 Thread Kfir Lavi
On Mon, Jan 3, 2011 at 3:00 PM, Philip Downer wrote: > On 03/01/11 12:47, Kfir Lavi wrote: > > I have a FPGA that is constantly changing (its on development phase). >> I want to let userspace app to update those registers, but don't want to >> create an API yet. >> What is the best way to open a

Re: FPGA registers userspace interface?

2011-01-03 Thread Philip Downer
On 03/01/11 12:47, Kfir Lavi wrote: > I have a FPGA that is constantly changing (its on development phase). > I want to let userspace app to update those registers, but don't want to > create an API yet. > What is the best way to open a range of registers to userspace, so no > driver update is req

Re: FPGA registers userspace interface?

2011-01-03 Thread Daniel Baluta
On Mon, Jan 3, 2011 at 2:47 PM, Kfir Lavi wrote: > Hi, > I have a FPGA that is constantly changing (its on development phase). > I want to let userspace app to update those registers, but don't want to > create an API yet. > What is the best way to open a range of registers to userspace, so no dri

FPGA registers userspace interface?

2011-01-03 Thread Kfir Lavi
Hi, I have a FPGA that is constantly changing (its on development phase). I want to let userspace app to update those registers, but don't want to create an API yet. What is the best way to open a range of registers to userspace, so no driver update is required? Thanks, Kfir __