2 * Copyright 2012-2015, Haiku, Inc.
3 * Distributed under the terms of the MIT License.
6 * Alexander von Gluck IV, kallisti5@unixzen.com
8 #ifndef __FDT_SUPPORT_H
9 #define __FDT_SUPPORT_H
12 #include <KernelExport.h>
15 void dump_fdt(const void *fdt
);
16 status_t
fdt_get_cell_count(const void* fdt
, int node
,
17 int32
&addressCells
, int32
&sizeCells
);
19 phys_addr_t
fdt_get_device_reg(const void* fdt
, int node
, bool physical
=true);
20 phys_addr_t
fdt_get_device_reg_byname(const void* fdt
, const char* name
);
21 phys_addr_t
fdt_get_device_reg_byalias(const void* fdt
, const char* alias
);
24 #endif /*__FDT_SUPPORT_H*/