/* * Copyright (c) 2021-2023, Andrew Kaster * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include namespace DeviceTree { enum class Verbose { No, Yes }; bool validate_flattened_device_tree(FlattenedDeviceTreeHeader const& header, ReadonlyBytes raw_device_tree, Verbose = Verbose::No); ErrorOr dump(FlattenedDeviceTreeHeader const& header, ReadonlyBytes raw_device_tree); ErrorOr dump_flattened_device_tree_structure(FlattenedDeviceTreeHeader const& header, ReadonlyBytes raw_device_tree); }