From 47a47654e8d3997b059d11bb8845ed0037e88c8e Mon Sep 17 00:00:00 2001 From: Bin Meng <bmeng.cn@gmail.com> Date: Thu, 5 Aug 2021 15:41:13 +0800 Subject: 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> --- include/sbi_utils/fdt/fdt_helper.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') 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__ */ -- cgit v1.2.3