Functions | |
int | tsi_malloc_init_pool (int pool, void *base_virt, uintptr_t base_phys, int size, int reset) |
Initial memory pool, command list memory malloc base on pool. More... | |
void * | tsi_malloc_pool (int pool, int size) |
Malloc memory from pool. More... | |
void | tsi_free (void *ptr) |
Free memory. More... | |
uintptr_t | tsi_virt2phys (void *addr) |
Free memory. More... | |
void tsi_free | ( | void * | ptr | ) |
Free memory.
[in] | ptr | Memory addr |
int tsi_malloc_init_pool | ( | int | pool, |
void * | base_virt, | ||
uintptr_t | base_phys, | ||
int | size, | ||
int | reset | ||
) |
Initial memory pool, command list memory malloc base on pool.
[in] | pool | Pool id, the value is fixed – 0 |
[in] | base_virt | Virtual addr, equel physical address |
[in] | base_phys | Physical address |
[in] | size | Pool memory size |
[in] | reset | If 0, reset the memory |
void* tsi_malloc_pool | ( | int | pool, |
int | size | ||
) |
Malloc memory from pool.
[in] | pool | Pool id, the value is fixed – 0 |
[in] | size | Malloc size |
uintptr_t tsi_virt2phys | ( | void * | addr | ) |
Free memory.
[in] | addr | Memory virtual addr, equel physical address |