Hi,
I have to deal with a similar task.
I wonder if it's really the responsibility of the developer to write all the code for the DMA HPS2FPGA transfer himself, or if Altera is going to provide some kind of Linux driver lib that makes it easy for the "user space" developer to access this hardware component (and all the others, too) without the knowlegde of every control register bit of the architecture and the additional knowledge about AMBA, AXI, AHB, NIC-301, etc. stuff.
If the answer to that question is "yes", it would at least bring a little bit of light into the intended (Linux) software support by Altera for their SoC chips.
I'm asking because there are fragments for supporting the device in the linux kernel source tree by having the "socfpga_defconfig", several device driver moduls I can chose with menuconfig and a (not fully?) implemented device tree source (dts) file available.
I wonder if it is Alteras intention to push those things further or if it is fully left to the "community" to implement (or not implement) those things for the socfpga, fully.
I, too, am looking for some examples that show me all the might of the HPS2FPGA interface which is advertised as "high bandwidth interconnect backbone". All I can find so far is really just useful for switching some LEDs on a Dev Board which really does not need such sophisticated hardware, right?!?
Regards,
Maik