summaryrefslogtreecommitdiff
path: root/platform-intel.c
diff options
context:
space:
mode:
authorLabun, Marcin <Marcin.Labun@intel.com>2011-03-10 11:45:15 +1100
committerNeilBrown <neilb@suse.de>2011-03-10 11:45:15 +1100
commit1a90147116b680f9d5b93c82c4b96f28a7bf5645 (patch)
tree20fea1333060983dd40f063e9099307d10015431 /platform-intel.c
parent2a7e6de25060230a48470197a372e6001d1236bd (diff)
downloadmdadm-1a90147116b680f9d5b93c82c4b96f28a7bf5645.tar.gz
Some guid manipulation utilities has been added.
It will be used for reading efi variables with capabilities. Signed-off-by: Przemyslaw Czarnowski <przemyslaw.hawrylewicz.czarnowski@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'platform-intel.c')
-rw-r--r--platform-intel.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/platform-intel.c b/platform-intel.c
index 08cf4ed..f5f57b7 100644
--- a/platform-intel.c
+++ b/platform-intel.c
@@ -294,6 +294,15 @@ static const struct imsm_orom *find_imsm_hba_orom(enum sys_dev_type hba_id)
return NULL;
}
+#define GUID_STR_MAX 37 /* according to GUID format:
+ * xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" */
+
+#define EFI_GUID(a, b, c, d0, d1, d2, d3, d4, d5, d6, d7) \
+((struct efi_guid) \
+{{ (a) & 0xff, ((a) >> 8) & 0xff, ((a) >> 16) & 0xff, ((a) >> 24) & 0xff, \
+ (b) & 0xff, ((b) >> 8) & 0xff, \
+ (c) & 0xff, ((c) >> 8) & 0xff, \
+ (d0), (d1), (d2), (d3), (d4), (d5), (d6), (d7) }})
/*
* backward interface compatibility