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 15extern void dtb_init(); 16extern void dtb_set_kernel_args(); 17 18bool dtb_get_reg(const void* fdt, int node, size_t idx, addr_range& range); 19uint32 dtb_get_interrupt(const void* fdt, int node); 20bool dtb_has_fdt_string(const char* prop, int size, const char* pattern); 21 22 23#endif /* !_ASSEMBLER */ 24 25#endif /* DTB_H */ 26