Samsung Internal API reference  2.0
scma.h File Reference

Secure Contiguous memory allocator API. More...

Go to the source code of this file.

Typedefs

typedef struct __TEES_ContiguousMemoryHandle * TEES_ContiguousMemoryHandle
 

Enumerations

enum  TEES_ContiguousAllocateFlags { TEES_CONTIGUOUS_FLAG_ZERO_ON_FREE = (1U << 0), TEES_CONTIGUOUS_FLAG_ZERO_ON_ALLOC = (1U << 1) }
 Determines the desired allocated memory handle properties. More...
 
enum  TEES_ContiguousMapFlags {
  TEES_CONTIGUOUS_MAP_READ = (1U << 0), TEES_CONTIGUOUS_MAP_WRITE = (1U << 1), TEES_CONTIGUOUS_MAP_NON_CACHEABLE = (1U << 2), TEES_CONTIGUOUS_MAP_FIXED = (1U << 3),
  TEES_CONTIGUOUS_MAP_POPULATE = (1U << 4)
}
 Determines the desired mapping properties. More...
 

Functions

TEE_Result TEES_AllocateContiguousMemory (const char *region, size_t size, size_t align, uint32_t flags, TEES_ContiguousMemoryHandle *memory)
 Allocates physically contiguous memory buffer handle of the specified region type. More...
 
void TEES_ReleaseContiguousMemory (TEES_ContiguousMemoryHandle memory)
 Releases physically contiguous memory buffer that was previously allocated by TEES_AllocateContiguousMemory. More...
 
TEE_Result TEES_MapContiguousMemory (TEES_ContiguousMemoryHandle memory, void **addr, uint32_t flags)
 Maps physically contiguous memory buffer previously allocated by TEES_AllocateContiguousMemory into the address space of current process. More...
 
void TEES_UnmapContiguousMemory (void *addr)
 Unmaps physically contiguous memory buffer that was previously mapped by TEES_MapContiguousMemory. More...
 
TEE_Result TEES_GetContiguousMemoryPhysaddr (TEES_ContiguousMemoryHandle memory, uint64_t *physaddr)
 Retrieves physical address of physically contiguous memory buffer that was previously allocated by TEES_AllocateContiguousMemory. More...
 

Detailed Description

Secure Contiguous memory allocator API.