1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3 
4 struct devicetree_state {
5         EFI_PHYSICAL_ADDRESS addr;
6         UINTN pages;
7         void *orig;
8 };
9 
10 EFI_STATUS devicetree_install(struct devicetree_state *state, EFI_FILE *root_dir, CHAR16 *name);
11 EFI_STATUS devicetree_install_from_memory(
12                 struct devicetree_state *state, const VOID *dtb_buffer, UINTN dtb_length);
13 void devicetree_cleanup(struct devicetree_state *state);
14