|  | 
| 
 Defines | 
| #define | mars_alloca_align(boundary, size) | 
|  | [host] Allocates memory on the stack 
 | 
| 
 Functions | 
| void * | mars_malloc (size_t size) | 
|  | [host] Allocates memory in host storage. 
 | 
| void * | mars_realloc (void *ptr, size_t size) | 
|  | [host] Re-allocates memory in host storage. 
 | 
| void | mars_free (void *ptr) | 
|  | [host] Frees memory allocated in host storage. 
 | 
| uint64_t | mars_ea_memalign (size_t boundary, size_t size) | 
|  | [host] Allocates memory in shared storage accessible from MPU. 
 | 
| void | mars_ea_free (uint64_t ea) | 
|  | [host] Frees memory allocated in shared storage. 
 | 
| void | mars_ea_get (uint64_t ea, void *ptr, size_t size) | 
|  | [host] Copy memory block from shared memory to host memory. 
 | 
| uint8_t | mars_ea_get_uint8 (uint64_t ea) | 
|  | [host] Get 8-bit integer value from shared memory 
 | 
| uint16_t | mars_ea_get_uint16 (uint64_t ea) | 
|  | [host] Get 16-bit integer value from shared memory 
 | 
| uint32_t | mars_ea_get_uint32 (uint64_t ea) | 
|  | [host] Get 32-bit integer value from shared memory atomically 
 | 
| uint64_t | mars_ea_get_uint64 (uint64_t ea) | 
|  | [host] Get 64-bit integer value from shared memory 
 | 
| void | mars_ea_put (uint64_t ea, const void *ptr, size_t size) | 
|  | [host] Copy memory block from host memory to shared memory. 
 | 
| void | mars_ea_put_uint8 (uint64_t ea, uint8_t value) | 
|  | [host] Put 8-bit integer value to shared memory atomically 
 | 
| void | mars_ea_put_uint16 (uint64_t ea, uint16_t value) | 
|  | [host] Put 16-bit integer value to shared memory atomically 
 | 
| void | mars_ea_put_uint32 (uint64_t ea, uint32_t value) | 
|  | [host] Put 32-bit integer value to shared memory atomically 
 | 
| void | mars_ea_put_uint64 (uint64_t ea, uint64_t value) | 
|  | [host] Put 64-bit integer value to shared memory atomically 
 | 
| uint64_t | mars_ea_map (void *ptr, size_t size) | 
|  | [host] Enable read access to data in specified memory block from MPU 
 | 
| void | mars_ea_unmap (uint64_t ea, size_t size) | 
|  | [host] Disable data access enabled by mars_ea_map 
 | 
| void | mars_ea_sync (void) | 
|  | [host] Memory barrier 
 | 
| static void * | mars_ea_to_ptr (uint64_t ea) | 
|  | [host] Converts a 64-bit address to pointer. 
 | 
| static uint64_t | mars_ptr_to_ea (const void *ptr) | 
|  | [host] Converts a pointer to 64-bit address. 
 | 
| uint32_t | mars_get_ticks (void) | 
|  | [host/MPU] Returns tick counter value. 
 |