diff options
author | Mitchel Humpherys <mitchelh@codeaurora.org> | 2015-07-30 19:24:15 -0700 |
---|---|---|
committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-22 11:04:49 -0700 |
commit | 8a9d07bc986c6b562e56a0b28395574bb52e4846 (patch) | |
tree | d758bf2047017fd8ac868bbd01d0d16ce88bd809 /include/soc | |
parent | a04defd9b7e777351bb4b36c5eec4a5749d8229e (diff) |
msm: secure_buffer: Add helper function to convert VMIDs into strings
It can be useful to convert secure VMID values into strings. Provide a
helper function to do so.
Change-Id: If907a0bac92c5d164154c0e5dfe67933115163c8
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
Diffstat (limited to 'include/soc')
-rw-r--r-- | include/soc/qcom/secure_buffer.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/soc/qcom/secure_buffer.h b/include/soc/qcom/secure_buffer.h index 893c139c8c04..a9386d71e3d5 100644 --- a/include/soc/qcom/secure_buffer.h +++ b/include/soc/qcom/secure_buffer.h @@ -27,6 +27,10 @@ #define VMID_CP_SEC_DISPLAY 0x11 #define VMID_CP_APP 0x12 #define VMID_INVAL -1 +/* + * if you add a secure VMID here make sure you update + * msm_secure_vmid_to_string + */ #define PERM_READ 0x4 #define PERM_WRITE 0x2 @@ -43,6 +47,7 @@ int hyp_assign_phys(phys_addr_t addr, u64 size, u32 *source_vmlist, int source_nelems, int *dest_vmids, int *dest_perms, int dest_nelems); bool msm_secure_v2_is_supported(void); +const char *msm_secure_vmid_to_string(int secure_vmid); #else static inline int msm_secure_table(struct sg_table *table) { @@ -71,5 +76,9 @@ static inline bool msm_secure_v2_is_supported(void) { return false; } +const char *msm_secure_vmid_to_string(int secure_vmid) +{ + return "N/A"; +} #endif #endif |