summaryrefslogtreecommitdiff
path: root/include/sbi_utils
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2021-08-05 10:41:13 +0300
committerAnup Patel <anup@brainfault.org>2021-08-07 14:56:51 +0300
commit47a47654e8d3997b059d11bb8845ed0037e88c8e (patch)
tree39b7eaadcadaa19e40f59f58fd1704dcad366395 /include/sbi_utils
parentd244f3dbd6cfd241dc1db611c0325daedfcab9c6 (diff)
downloadopensbi-47a47654e8d3997b059d11bb8845ed0037e88c8e.tar.xz
lib: utils/fdt: Change addr and size to uint64_t
The maximum address and size encoded in DT are 64-bit numbers, so we should use uint64_t for 'addr' and 'size' in fdt_get_node_addr_size(). Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'include/sbi_utils')
-rw-r--r--include/sbi_utils/fdt/fdt_helper.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/sbi_utils/fdt/fdt_helper.h b/include/sbi_utils/fdt/fdt_helper.h
index 55b9382..32aebb4 100644
--- a/include/sbi_utils/fdt/fdt_helper.h
+++ b/include/sbi_utils/fdt/fdt_helper.h
@@ -43,8 +43,8 @@ int fdt_parse_phandle_with_args(void *fdt, int nodeoff,
const char *prop, const char *cells_prop,
int index, struct fdt_phandle_args *out_args);
-int fdt_get_node_addr_size(void *fdt, int node, unsigned long *addr,
- unsigned long *size);
+int fdt_get_node_addr_size(void *fdt, int node, uint64_t *addr,
+ uint64_t *size);
int fdt_parse_hart_id(void *fdt, int cpu_offset, u32 *hartid);
@@ -75,7 +75,7 @@ int fdt_parse_aclint_node(void *fdt, int nodeoffset, bool for_timer,
unsigned long *out_addr, unsigned long *out_size,
u32 *out_first_hartid, u32 *out_hart_count);
-int fdt_parse_compat_addr(void *fdt, unsigned long *addr,
+int fdt_parse_compat_addr(void *fdt, uint64_t *addr,
const char *compatible);
#endif /* __FDT_HELPER_H__ */