xref: /haiku/src/system/boot/platform/efi/dtb.h (revision 4a55cc230cf7566cadcbb23b1928eefff8aea9a2)
1 /*
2  * Copyright 2019-2020, Haiku, Inc. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef DTB_H
6 #define DTB_H
7 
8 #ifndef _ASSEMBLER
9 
10 #include "efi_platform.h"
11 
12 #include <util/FixedWidthPointer.h>
13 
14 
15 extern void dtb_init();
16 extern void dtb_set_kernel_args();
17 
18 bool dtb_get_reg(const void* fdt, int node, size_t idx, addr_range& range);
19 uint32 dtb_get_interrupt(const void* fdt, int node);
20 bool dtb_has_fdt_string(const char* prop, int size, const char* pattern);
21 
22 
23 #endif /* !_ASSEMBLER */
24 
25 #endif /* DTB_H */
26