示例#1
0
static void *setupAlloc(xil_dma* const me, int length, int byte_num)
{
    void *array = &me->map[me->alloc_offset];

    me->alloc_offset += xdma_calc_size(length, byte_num);
    
    return array;
}
示例#2
0
// Static allocator
void *xdma_alloc(int length, int byte_num)
{
	void *array = &map[alloc_offset];

	alloc_offset += xdma_calc_size(length, byte_num);

	return array;
}
示例#3
0
static void *setupAlloc(xil_dma* const me, int length, int size_of_type)
{
    void *array = &me->map[me->alloc_offset];

    me->alloc_offset += xdma_calc_size(length, size_of_type);
    
    return array;
}