aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTomas Pilar <tomas@nuviainc.com>2020-11-02 13:49:56 +0000
committerMadhukar Pappireddy <madhukar.pappireddy@arm.com>2021-03-18 14:14:22 +0100
commite831923f95df13310af3c4cf0bbdb4d9e683a559 (patch)
tree1f5232e758698bf02161f1883f17a7da989819a0 /include
parent706058c2551b5f629102267e823f9a7ee10c02c5 (diff)
downloadtrusted-firmware-a-e831923f95df13310af3c4cf0bbdb4d9e683a559.tar.gz
tools_share/uuid: Add EFI_GUID representation
The UEFI specification details the represenatation for the EFI_GUID type. Add this representation to the uuid_helper_t union type so that GUID definitions can be shared verbatim between UEFI and TF-A header files. Change-Id: Ie44ac141f70dd0025e186581d26dce1c1c29fce6 Signed-off-by: Tomas Pilar <tomas@nuviainc.com>
Diffstat (limited to 'include')
-rw-r--r--include/tools_share/uuid.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/tools_share/uuid.h b/include/tools_share/uuid.h
index 36be9ed378..a6891d1c07 100644
--- a/include/tools_share/uuid.h
+++ b/include/tools_share/uuid.h
@@ -56,8 +56,16 @@ struct uuid {
uint8_t node[_UUID_NODE_LEN];
};
+struct efi_guid {
+ uint32_t time_low;
+ uint16_t time_mid;
+ uint16_t time_hi_and_version;
+ uint8_t clock_seq_and_node[8];
+};
+
union uuid_helper_t {
struct uuid uuid_struct;
+ struct efi_guid efi_guid;
uint32_t word[4];
};