1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:28:11 +00:00

Kernel/SysFS: Split the bulky BIOS.h file into multiple files

This commit is contained in:
Liav A 2022-04-22 10:59:32 +03:00 committed by Andreas Kling
parent 9c6834698f
commit 4d05a41b30
12 changed files with 297 additions and 180 deletions

View file

@ -0,0 +1,27 @@
/*
* Copyright (c) 2022, Liav A. <liavalb@hotmail.co.il>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/RefPtr.h>
#include <AK/Types.h>
#include <AK/Vector.h>
#include <Kernel/FileSystem/SysFS/Subsystems/Firmware/Directory.h>
#include <Kernel/KBuffer.h>
#include <Kernel/PhysicalAddress.h>
namespace Kernel {
class BIOSSysFSComponent : public SysFSComponent {
public:
virtual ErrorOr<size_t> read_bytes(off_t, size_t, UserOrKernelBuffer&, OpenFileDescription*) const override;
protected:
virtual ErrorOr<NonnullOwnPtr<KBuffer>> try_to_generate_buffer() const = 0;
BIOSSysFSComponent();
};
}