xref: /haiku/src/system/boot/platform/efi/dtb.h (revision 9e25244c5e9051f6cd333820d6332397361abd6c)
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, uint32 addressCells, uint32 sizeCells, size_t idx, addr_range& range);
19 bool dtb_has_fdt_string(const char* prop, int size, const char* pattern);
20 
21 
22 #endif /* !_ASSEMBLER */
23 
24 #endif /* DTB_H */
25