From e831923f95df13310af3c4cf0bbdb4d9e683a559 Mon Sep 17 00:00:00 2001 From: Tomas Pilar Date: Mon, 2 Nov 2020 13:49:56 +0000 Subject: [PATCH] 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 --- include/tools_share/uuid.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/tools_share/uuid.h b/include/tools_share/uuid.h index 36be9ed37..a6891d1c0 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]; };