aboutsummaryrefslogtreecommitdiff
path: root/aarch64/el0_common/tztest.h
diff options
context:
space:
mode:
Diffstat (limited to 'aarch64/el0_common/tztest.h')
-rw-r--r--aarch64/el0_common/tztest.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/aarch64/el0_common/tztest.h b/aarch64/el0_common/tztest.h
new file mode 100644
index 0000000..f2e2af7
--- /dev/null
+++ b/aarch64/el0_common/tztest.h
@@ -0,0 +1,19 @@
+#ifndef _TZTEST_H
+#define _TZTEST_H
+
+typedef uint32_t (*tztest_t)();
+extern tztest_t tztest[];
+
+extern void tztest_init();
+extern uint32_t P0_check_smc();
+extern uint32_t P0_check_register_access();
+extern uint32_t P0_check_trap_to_EL3();
+
+typedef enum {
+ TZTEST_P0_SMC = 0,
+ TZTEST_REG_ACCESS,
+ TZTEST_TRAP_TO_EL3,
+ TZTEST_COUNT
+} tztest_func_id_t;
+
+#endif