aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAntonio Niño Díaz <antonio.ninodiaz@arm.com>2018-11-06 12:45:09 +0100
committerGitHub <noreply@github.com>2018-11-06 12:45:09 +0100
commit9c10e3485b10ece95f9af8a6af79558397ee1d78 (patch)
treeaffcfce48a2f598b9caeb31a61aee959757868d6 /include
parent4eb835f827cb43cb68473ad4e27f74164dc14c89 (diff)
parent73f1ac6c8ee4a688ed8e1fddc040b882171d3453 (diff)
downloadplatform_external_arm-trusted-firmware-9c10e3485b10ece95f9af8a6af79558397ee1d78.tar.gz
platform_external_arm-trusted-firmware-9c10e3485b10ece95f9af8a6af79558397ee1d78.tar.bz2
platform_external_arm-trusted-firmware-9c10e3485b10ece95f9af8a6af79558397ee1d78.zip
Merge pull request #1665 from antonio-nino-diaz-arm/an/fdt-helpers
Introduce new fdt helpers
Diffstat (limited to 'include')
-rw-r--r--include/common/fdt_wrappers.h5
-rw-r--r--include/lib/libc/string.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/include/common/fdt_wrappers.h b/include/common/fdt_wrappers.h
index 3eae944e5..c8d753f9a 100644
--- a/include/common/fdt_wrappers.h
+++ b/include/common/fdt_wrappers.h
@@ -14,6 +14,11 @@
int fdtw_read_cells(const void *dtb, int node, const char *prop,
unsigned int cells, void *value);
+int fdtw_read_array(const void *dtb, int node, const char *prop,
+ unsigned int cells, void *value);
+int fdtw_read_string(const void *dtb, int node, const char *prop,
+ char *str, size_t size);
int fdtw_write_inplace_cells(void *dtb, int node, const char *prop,
unsigned int cells, void *value);
+
#endif /* __FDT_WRAPPERS__ */
diff --git a/include/lib/libc/string.h b/include/lib/libc/string.h
index 3c8e3b65e..ee6eeacef 100644
--- a/include/lib/libc/string.h
+++ b/include/lib/libc/string.h
@@ -28,5 +28,6 @@ void *memset(void *dst, int val, size_t count);
size_t strlen(const char *s);
size_t strnlen(const char *s, size_t maxlen);
char *strrchr(const char *p, int ch);
+size_t strlcpy(char * dst, const char * src, size_t dsize);
#endif /* STRING_H */