mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
e9e279bb77
We can use this simple parser and its callbacks to implement more complex parsing in later commits.
23 lines
598 B
C++
23 lines
598 B
C++
/*
|
|
* Copyright (c) 2021-2023, Andrew Kaster <akaster@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibDeviceTree/FlattenedDeviceTree.h>
|
|
|
|
namespace DeviceTree {
|
|
|
|
enum class Verbose {
|
|
No,
|
|
Yes
|
|
};
|
|
|
|
bool validate_flattened_device_tree(FlattenedDeviceTreeHeader const& header, ReadonlyBytes raw_device_tree, Verbose = Verbose::No);
|
|
|
|
ErrorOr<void> dump(FlattenedDeviceTreeHeader const& header, ReadonlyBytes raw_device_tree);
|
|
ErrorOr<void> dump_flattened_device_tree_structure(FlattenedDeviceTreeHeader const& header, ReadonlyBytes raw_device_tree);
|
|
|
|
}
|