summaryrefslogtreecommitdiff
path: root/include/runtime_services/secure_el0_payloads/secure_partition.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/runtime_services/secure_el0_payloads/secure_partition.h')
-rw-r--r--include/runtime_services/secure_el0_payloads/secure_partition.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/runtime_services/secure_el0_payloads/secure_partition.h b/include/runtime_services/secure_el0_payloads/secure_partition.h
index 7eea507..f5c2004 100644
--- a/include/runtime_services/secure_el0_payloads/secure_partition.h
+++ b/include/runtime_services/secure_el0_payloads/secure_partition.h
@@ -60,6 +60,20 @@ typedef struct secure_partition_boot_info {
} secure_partition_boot_info_t;
/*
+ * This structure is used to pass data associated to secure service requests.
+ */
+#define SPS_MAX_PAYLOAD_SIZE 32
+typedef struct secure_partition_request_info {
+ uint32_t id;
+ uint64_t data_size;
+ uint8_t data[SPS_MAX_PAYLOAD_SIZE];
+} secure_partition_request_info_t;
+
+secure_partition_request_info_t *create_sps_request(uint32_t id,
+ const void *data,
+ uint64_t data_size);
+
+/*
* Compile time assertions related to the 'secure_partition_boot_info' structure
* to ensure that the assembler and the compiler view of the offsets of the
* structure members is the same.