1
0
mirror of https://github.com/bmartini/zynq-axis.git synced 2024-09-05 19:19:27 +08:00

10 Commits

Author SHA1 Message Date
Berin Martini
a53998a69d Replace axis_memory_offset function with mem_alloc_state
The functionality of the axis_memory_offset function can be replicated by using
mem_alloc_state while at the same times provides a more powerful interface to
the memory allocation system.

The 1st argument passed to the new mem_alloc_state functions is a pointer to a
void pointer (start) whose value will be overwritten to be the start pointer of
the CMA memory area. The 2nd argument is a pointer to a unsigned int whose
values will be overwritten to be the current 'offset' from that start pointer
and thus represents how many bytes has been allocated.
2015-10-29 14:42:25 +00:00
Berin Martini
dafc85637a New function in library 'axis_memory_offset'
This function takes as argument an offset indexed from zero and returns a usage
pointer corresponding to the offset from the start of the CMA region. Thus an
argument offset of zero would give the pointer to the start of the CMA region.
2015-10-29 02:12:29 +00:00
Berin Martini
a0c2bde576 Increase the CMA region to 126MB from 63MB
This gives more room to play with in the FPGA project.
2015-10-29 00:58:33 +00:00
Berin Martini
66f4315fdd Add some more configuration bus functions
Similar functions could be constructed using calls to the already existing
functions, however, it seems more efficient to add them to the library in case
the application cannot optimizes external library calls.
2015-01-09 17:17:34 -05:00
Berin Martini
76e102294b Add function to help configure the axis ports
This frees the application writer from having to know low level details like
the physical memory address of arrays etc.
2015-01-09 17:15:12 -05:00
Berin Martini
00541db077 Add function to library to allocate CMA memory
Arrays that will be used to pass data between the host and fpga need to be page
aligned and be slices of the DMA array the driver has reserved. These new
functions allocate slices from the DMA array and ensures that the starting
address is page aligned.
2015-01-09 13:44:46 -05:00
Berin Martini
2f10fb29d2 Memory map CMA array from driver
The driver sets ups a DMA contiguous array that will be used as a memory area
to share data between the PS and PL. The library memory maps this DMA array to
make it available to the host applications. The array is cache coherent and
thus data written or read from it bypass the CPU cache and read/write directly
from main memory. This ensures that the data is always the same between the
host and fpga but at a cost of long data accesses from the host CPU.
2015-01-09 13:07:51 -05:00
Berin Martini
c943552e52 Add cfg bus read/write function to interface lib
Test new functions in test-cfg application.
2014-12-31 13:30:36 -05:00
Berin Martini
f553747076 Add exit function to interface library
Include usage of new exit function in the test-cfg application.
2014-12-31 13:16:19 -05:00
Berin Martini
11ec4ddca7 Stub of an axis interface library
Attempts to mmap the axis AXI4Lite memory region.
2014-12-31 11:49:12 -05:00