index d61ddc6acb06f6a8778842dd778f2ce43a7ce16d..cba24bedce4f271f9b0b50edf4317fcd007f2bb0 100755 (executable)
static int temp_fd;
#endif
+//inialize the allocate area.
nwal_Bool_t netapi_VM_memAllocInit
(
uint8_t *addr, /* Physical address */
return nwal_TRUE;
}
+//utility to return free amount in buffer/descriptor area
+int netapi_getBufMemRemainder(void)
+{
+ return (int) ((unsigned int) netapi_VM_mem_end) - ((unsigned int) netapi_VM_mem_alloc_ptr);
+}
+
+
+//------------------------------------------------------------------------
+//allocator function for our Buffer/Descriptor/SAcontext area (either MSMC
+//or kernel module provided CMA area in DDR
+//-----------------------------------------------------------------------
void* netapi_VM_memAlloc
(
uint32_t size,