]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add altera_avgen(4), a generic device driver to be used by hard and soft
authorrwatson <rwatson@FreeBSD.org>
Sat, 25 Aug 2012 11:07:43 +0000 (11:07 +0000)
committerrwatson <rwatson@FreeBSD.org>
Sat, 25 Aug 2012 11:07:43 +0000 (11:07 +0000)
commit57bdf1f3160c3bad78968872120cea0e37a94bf1
treee0ce5c060681a6450bf378f148e6dc9425f67f7b
parentd5129fde3c8f2b0e1d85049892dbcc47bd1be041
Add altera_avgen(4), a generic device driver to be used by hard and soft
CPU cores on Altera FPGAs.  The device driver allows memory-mapped devices
on Altera's Avalon SoC bus to be exported to userspace via device nodes.
device.hints directories dictate device name, permissible access methods,
physical address and length, and I/O alignment.  Devices can be accessed
using read(2)/write(2), but also memory mapped in userspace using mmap(2).

Devices attach directly to the Nexus, as is common for embedded device
drivers; in the future something more mature might be desirable.  There is
currently no facility to support directing device-originated interrupts to
userspace.

In the future, this device driver may be renamed to socgen(4), as it can
in principle also be used with other system-on-chip (SoC) busses, such as
Axi on ASICs and FPGAs.  However, we have only tested it on Avalon busses
with memory-mapped ROMs, frame buffers, etc.

Sponsored by: DARPA, AFRL
share/man/man4/Makefile
share/man/man4/altera_avgen.4 [new file with mode: 0644]
sys/conf/files
sys/dev/altera/avgen/altera_avgen.c [new file with mode: 0644]
sys/dev/altera/avgen/altera_avgen.h [new file with mode: 0644]