summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMichael Ryleev <gmar@google.com>2015-03-30 15:43:59 -0400
committerStephen Wolfe <swolfe@nvidia.com>2018-07-27 17:12:44 -0400
commit1db3530ea6781b888f98f5dd7724ba042a02954b (patch)
treeb78c66de39246196d9bd8b9ab8dd3ca852275d04 /include
parentcb7f0c33bd6733dab9f76adaaa1eeea77065054c (diff)
trusty: add trusty virtio driver
Trusty virtio driver is responsible for management an interaction with virtio devices exposed by Trusty. During initialization, this driver makes an smc call to retrieve Trusty virtio device descriptor from secure side, parses it then instantiates and configures the specified set of virtio devices. Change-Id: I20a23518d5c19bedd9282f7f1d4b16957ba75408 Signed-off-by: Michael Ryleev <gmar@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/trusty/smcall.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/trusty/smcall.h b/include/linux/trusty/smcall.h
index aaad5cee6..a2be2e357 100644
--- a/include/linux/trusty/smcall.h
+++ b/include/linux/trusty/smcall.h
@@ -78,4 +78,12 @@
78#define SMC_FC_AARCH_SWITCH SMC_FASTCALL_NR (SMC_ENTITY_SECURE_MONITOR, 9) 78#define SMC_FC_AARCH_SWITCH SMC_FASTCALL_NR (SMC_ENTITY_SECURE_MONITOR, 9)
79#define SMC_FC_GET_VERSION_STR SMC_FASTCALL_NR (SMC_ENTITY_SECURE_MONITOR, 10) 79#define SMC_FC_GET_VERSION_STR SMC_FASTCALL_NR (SMC_ENTITY_SECURE_MONITOR, 10)
80 80
81/* TRUSTED_OS entity calls */
82#define SMC_SC_VIRTIO_GET_DESCR SMC_STDCALL_NR(SMC_ENTITY_TRUSTED_OS, 20)
83#define SMC_SC_VIRTIO_START SMC_STDCALL_NR(SMC_ENTITY_TRUSTED_OS, 21)
84#define SMC_SC_VIRTIO_STOP SMC_STDCALL_NR(SMC_ENTITY_TRUSTED_OS, 22)
85
86#define SMC_SC_VDEV_RESET SMC_STDCALL_NR(SMC_ENTITY_TRUSTED_OS, 23)
87#define SMC_SC_VDEV_KICK_VQ SMC_STDCALL_NR(SMC_ENTITY_TRUSTED_OS, 24)
88
81#endif /* __LINUX_TRUSTY_SMCALL_H */ 89#endif /* __LINUX_TRUSTY_SMCALL_H */