mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:17:46 +00:00
Kernel: Move all code into the Kernel namespace
This commit is contained in:
parent
d42f0f4661
commit
a356e48150
201 changed files with 907 additions and 111 deletions
|
@ -27,6 +27,8 @@
|
|||
#include <Kernel/ACPI/ACPIDynamicParser.h>
|
||||
#include <Kernel/ACPI/ACPIParser.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
void ACPIDynamicParser::initialize(ACPI_RAW::RSDPDescriptor20& rsdp)
|
||||
{
|
||||
if (!ACPIStaticParser::is_initialized()) {
|
||||
|
@ -90,4 +92,6 @@ void ACPIDynamicParser::build_namespace()
|
|||
{
|
||||
// FIXME: Implement AML Interpretation to build the ACPI namespace
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -33,6 +33,8 @@
|
|||
#include <Kernel/VM/PhysicalPage.h>
|
||||
#include <LibBareMetal/Memory/PhysicalAddress.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
class ACPIDynamicParser final : public IRQHandler
|
||||
, ACPIStaticParser {
|
||||
public:
|
||||
|
@ -56,3 +58,5 @@ private:
|
|||
|
||||
OwnPtr<Region> m_acpi_namespace;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -26,6 +26,8 @@
|
|||
|
||||
#include <Kernel/ACPI/ACPIParser.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
static ACPIParser* s_acpi_parser;
|
||||
|
||||
ACPIParser& ACPIParser::the()
|
||||
|
@ -97,4 +99,6 @@ void ACPIParser::disable_aml_interpretation()
|
|||
bool ACPIParser::is_operable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -33,6 +33,8 @@
|
|||
#include <LibBareMetal/Memory/PhysicalAddress.h>
|
||||
#include <LibBareMetal/Memory/VirtualAddress.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
class ACPIParser {
|
||||
public:
|
||||
static ACPIParser& the();
|
||||
|
@ -54,3 +56,5 @@ protected:
|
|||
explicit ACPIParser(bool usable);
|
||||
bool m_operable;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -31,6 +31,8 @@
|
|||
|
||||
//#define ACPI_DEBUG
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
void ACPIStaticParser::initialize(ACPI_RAW::RSDPDescriptor20& rsdp)
|
||||
{
|
||||
if (!ACPIParser::is_initialized()) {
|
||||
|
@ -413,3 +415,5 @@ ACPI_RAW::SDTHeader* ACPI::FixedACPIData::get_dsdt()
|
|||
return (ACPI_RAW::SDTHeader*)m_dsdt_ptr;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -29,6 +29,8 @@
|
|||
#include <ACPI/ACPIParser.h>
|
||||
#include <AK/OwnPtr.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
class ACPIStaticParser : ACPIParser {
|
||||
public:
|
||||
static void initialize(ACPI_RAW::RSDPDescriptor20& rsdp);
|
||||
|
@ -65,4 +67,6 @@ private:
|
|||
|
||||
Vector<ACPI_RAW::SDTHeader*> m_aml_tables_ptrs;
|
||||
bool m_xsdt_supported;
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -28,6 +28,8 @@
|
|||
#include <Kernel/VM/MemoryManager.h>
|
||||
#include <LibBareMetal/StdLib.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
static DMIDecoder* s_dmi_decoder;
|
||||
|
||||
//#define SMBIOS_DEBUG
|
||||
|
@ -274,3 +276,5 @@ char* DMIDecoder::get_smbios_string(SMBIOS::TableHeader&, u8)
|
|||
ASSERT_NOT_REACHED();
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -32,6 +32,8 @@
|
|||
#include <LibBareMetal/Memory/PhysicalAddress.h>
|
||||
#include <LibBareMetal/Memory/VirtualAddress.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
namespace SMBIOS {
|
||||
struct [[gnu::packed]] LegacyEntryPoint32bit
|
||||
{
|
||||
|
@ -1418,3 +1420,5 @@ private:
|
|||
|
||||
SinglyLinkedList<SMBIOS::TableHeader*> m_smbios_tables;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -30,6 +30,8 @@
|
|||
#include <AK/Types.h>
|
||||
#include <AK/Vector.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
namespace ACPI_RAW {
|
||||
|
||||
struct [[gnu::packed]] RSDPDescriptor
|
||||
|
@ -309,3 +311,5 @@ private:
|
|||
class MADT : public SDT {
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue