aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Dykes <mark.dykes@arm.com>2021-04-28 21:07:28 +0200
committerTrustedFirmware Code Review <review@review.trustedfirmware.org>2021-04-28 21:07:28 +0200
commitb29dec5c21367e2bf574a68382172fbfd4981a12 (patch)
treef06f0ec8b42547a9080890fb8ded347534c2adb2 /include
parent2ba56793d1982cda3d4a5a762a51a6589977088e (diff)
parentd13dbb6f1d5e28737a3319af035a6cb991bc6f8f (diff)
downloadtrusted-firmware-a-b29dec5c21367e2bf574a68382172fbfd4981a12.tar.gz
Merge "feat(fdt): introduce wrapper function to read DT UUIDs" into integration
Diffstat (limited to 'include')
-rw-r--r--include/common/fdt_wrappers.h4
-rw-r--r--include/common/uuid.h15
2 files changed, 18 insertions, 1 deletions
diff --git a/include/common/fdt_wrappers.h b/include/common/fdt_wrappers.h
index a571092e36..e8b39335d4 100644
--- a/include/common/fdt_wrappers.h
+++ b/include/common/fdt_wrappers.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018-2020, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2018-2021, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
@@ -24,6 +24,8 @@ int fdt_read_uint32_array(const void *dtb, int node, const char *prop_name,
unsigned int cells, uint32_t *value);
int fdtw_read_string(const void *dtb, int node, const char *prop,
char *str, size_t size);
+int fdtw_read_uuid(const void *dtb, int node, const char *prop,
+ unsigned int length, uint8_t *uuid);
int fdtw_write_inplace_cells(void *dtb, int node, const char *prop,
unsigned int cells, void *value);
int fdtw_read_bytes(const void *dtb, int node, const char *prop,
diff --git a/include/common/uuid.h b/include/common/uuid.h
new file mode 100644
index 0000000000..5651d0d583
--- /dev/null
+++ b/include/common/uuid.h
@@ -0,0 +1,15 @@
+/*
+ * Copyright (c) 2021, Arm Limited and Contributors. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#ifndef UUID_H
+#define UUID_H
+
+#define UUID_BYTES_LENGTH 16
+#define UUID_STRING_LENGTH 36
+
+int read_uuid(uint8_t *dest, char *uuid);
+
+#endif /* UUID_H */