diff options
author | Antonio Niño Díaz <antonio.ninodiaz@arm.com> | 2018-11-06 12:45:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-06 12:45:09 +0100 |
commit | 9c10e3485b10ece95f9af8a6af79558397ee1d78 (patch) | |
tree | affcfce48a2f598b9caeb31a61aee959757868d6 /include | |
parent | 4eb835f827cb43cb68473ad4e27f74164dc14c89 (diff) | |
parent | 73f1ac6c8ee4a688ed8e1fddc040b882171d3453 (diff) | |
download | platform_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.h | 5 | ||||
-rw-r--r-- | include/lib/libc/string.h | 1 |
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 */ |