Hello, I have a problem with the Jungo drivers that I`m trying to develope. I downloaded an example from Alterawiki, in the specific, the link is:
http://www.alterawiki.com/wiki/reference_design_-_gen3_x8_avalon-st_256-bit_-_stratix_v And it works great. I have substituted the Jungo driver of this examples with the driver that I have created with Jungo WinDriver. When I launch the .exe that I have generate using my compiler I can see the device, read and write the BAR registers but I cannot read and write using DMA.
My program return an exception when initialize the DMA device in DMADevicePrepare function. The function that return an exception is:
/* Try to check the address translation path through */
/* (0x1000 is the offset for the translation register) */
WDC_WriteAddr32(hDev, AD_PCI_BAR2, 0x1000, 0xFFFFFFFC);
/* Read the path through mask */
u32A2PMask = ALT_ReadReg32(hDev, AD_PCI_BAR2, 0x1000);
I have solved my problem on Windows using the Riffa interface. Now I`m working on Linux I have found this example:
http://www.alterawiki.com/wiki/reference_design:_gen3_x8_avmm_256-bit_dma_for_external_ddr3_-_stratix_v I have downloaded the Linux Driver and I would like use these drivers to write a linux application. I'm looking for a framework for communicating data from a host CPU to a STRATIX V via a PCI Express bus with bindings for C/C++ that supports Linux. Someone knows if are there some documentation or the API for these driver? Or are there some equivalent example for the StratixV with the working linux drivers (with documentation and API)?