summaryrefslogtreecommitdiffstats
path: root/cpukit/include
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2022-11-25 12:18:07 +1100
committerChris Johns <chrisj@rtems.org>2022-11-25 12:43:29 +1100
commit408dbeb9225e1969113b81ad3ef484f351b9b4e3 (patch)
tree9cd6b2df924fa11d53c15e912a69b4c1e8dc1187 /cpukit/include
parentlibmisc/shell: Fix edit Coverity error (diff)
downloadrtems-408dbeb9225e1969113b81ad3ef484f351b9b4e3.tar.bz2
libmisc/rtems-fdt: Support prop map items up to the size of uintptr_t
Updates #4729
Diffstat (limited to 'cpukit/include')
-rw-r--r--cpukit/include/rtems/rtems-fdt.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpukit/include/rtems/rtems-fdt.h b/cpukit/include/rtems/rtems-fdt.h
index 18e04352aa..e3ebfe3ba4 100644
--- a/cpukit/include/rtems/rtems-fdt.h
+++ b/cpukit/include/rtems/rtems-fdt.h
@@ -695,6 +695,12 @@ const char *rtems_fdt_entry_name(rtems_fdt_handle* handle, int id);
int rtems_fdt_entry_offset(rtems_fdt_handle* handle, int id);
/*
+ * Helper function to convert the void* property result of unknown
+ * length to an unsigned int pointer value.
+ */
+uintptr_t rtems_fdt_get_offset_len_uintptr(const void* prop, int offset, int len);
+
+/*
* Helper function to convert the void* property result to a 32bit unsigned int.
*/
uint32_t rtems_fdt_get_uint32(const void* prop);