mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
644928314a
Starting with header validation and a dump() method that can be used to debug future parsing work.
22 lines
478 B
C++
22 lines
478 B
C++
/*
|
|
* Copyright (c) 2021, 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, u8 const* blob_start, size_t blob_size, Verbose = Verbose::No);
|
|
|
|
bool dump(FlattenedDeviceTreeHeader const& header, u8 const* blob_start, size_t blob_size);
|
|
|
|
}
|