Re: FPGA registers userspace interface?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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/file

Also, since your FPGA is in development phase I assume that
the registers base address is changing (or am I wrong?). You can
solve this with an additional writable sysfs entry  which will
hold the current base address.

thanks,
Daniel.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux