mirror of
https://github.com/bmartini/zynq-axis.git
synced 2024-09-05 19:19:27 +08:00
a53998a69d
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.