diff options
Diffstat (limited to 'core/arch/arm/include/mm/core_memprot.h')
-rw-r--r-- | core/arch/arm/include/mm/core_memprot.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/core/arch/arm/include/mm/core_memprot.h b/core/arch/arm/include/mm/core_memprot.h index b7ccd21..99514fd 100644 --- a/core/arch/arm/include/mm/core_memprot.h +++ b/core/arch/arm/include/mm/core_memprot.h @@ -45,14 +45,14 @@ /* memory atttributes */ enum buf_is_attr { - CORE_MEM_SEC, + CORE_MEM_CACHED, + CORE_MEM_EXTRAM, + CORE_MEM_NSEC_SHM, CORE_MEM_NON_SEC, + CORE_MEM_SEC, CORE_MEM_TEE_RAM, CORE_MEM_TA_RAM, - CORE_MEM_NSEC_SHM, - CORE_MEM_EXTRAM, - CORE_MEM_INTRAM, - CORE_MEM_CACHED, + CORE_MEM_SDP_MEM, }; /* redirect legacy tee_vbuf_is() and tee_pbuf_is() to our routines */ @@ -95,6 +95,13 @@ bool core_vbuf_is(uint32_t flags, const void *vbuf, size_t len); void *phys_to_virt(paddr_t pa, enum teecore_memtypes m); /* + * Translate physical address to virtual address trying MEM_AREA_IO_SEC + * first then MEM_AREA_IO_NSEC if not found. + * Returns NULL on failure or a valid virtual address on success. + */ +void *phys_to_virt_io(paddr_t pa); + +/* * Translate virtual address to physical address * Returns 0 on failure or a valid physical address on success. */ |