mirror of
https://github.com/RGBCube/serenity
synced 2025-07-19 13:17:39 +00:00
Kernel: Use nested namespace declarations in ACPI code
This commit is contained in:
parent
b1c68dd235
commit
84ae2b6f00
7 changed files with 8 additions and 23 deletions
|
@ -11,9 +11,7 @@
|
||||||
#include <AK/Vector.h>
|
#include <AK/Vector.h>
|
||||||
#include <Kernel/PhysicalAddress.h>
|
#include <Kernel/PhysicalAddress.h>
|
||||||
|
|
||||||
namespace Kernel {
|
namespace Kernel::ACPI {
|
||||||
|
|
||||||
namespace ACPI {
|
|
||||||
|
|
||||||
namespace FADTFlags {
|
namespace FADTFlags {
|
||||||
|
|
||||||
|
@ -327,5 +325,3 @@ PhysicalAddress find_table(PhysicalAddress rsdp, const StringView& signature);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -8,8 +8,7 @@
|
||||||
#include <Kernel/ACPI/Parser.h>
|
#include <Kernel/ACPI/Parser.h>
|
||||||
#include <Kernel/Sections.h>
|
#include <Kernel/Sections.h>
|
||||||
|
|
||||||
namespace Kernel {
|
namespace Kernel::ACPI {
|
||||||
namespace ACPI {
|
|
||||||
|
|
||||||
UNMAP_AFTER_INIT DynamicParser::DynamicParser(PhysicalAddress rsdp)
|
UNMAP_AFTER_INIT DynamicParser::DynamicParser(PhysicalAddress rsdp)
|
||||||
: IRQHandler(9)
|
: IRQHandler(9)
|
||||||
|
@ -57,4 +56,3 @@ void DynamicParser::build_namespace()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
#include <Kernel/PhysicalAddress.h>
|
#include <Kernel/PhysicalAddress.h>
|
||||||
#include <Kernel/VM/PhysicalPage.h>
|
#include <Kernel/VM/PhysicalPage.h>
|
||||||
|
|
||||||
namespace Kernel {
|
namespace Kernel::ACPI {
|
||||||
namespace ACPI {
|
|
||||||
|
|
||||||
class DynamicParser final
|
class DynamicParser final
|
||||||
: public IRQHandler
|
: public IRQHandler
|
||||||
|
@ -40,5 +39,5 @@ private:
|
||||||
|
|
||||||
OwnPtr<Region> m_acpi_namespace;
|
OwnPtr<Region> m_acpi_namespace;
|
||||||
};
|
};
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,8 +9,7 @@
|
||||||
#include <Kernel/CommandLine.h>
|
#include <Kernel/CommandLine.h>
|
||||||
#include <Kernel/Sections.h>
|
#include <Kernel/Sections.h>
|
||||||
|
|
||||||
namespace Kernel {
|
namespace Kernel::ACPI {
|
||||||
namespace ACPI {
|
|
||||||
|
|
||||||
UNMAP_AFTER_INIT void initialize()
|
UNMAP_AFTER_INIT void initialize()
|
||||||
{
|
{
|
||||||
|
@ -34,4 +33,3 @@ bool is_enabled()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
|
@ -6,11 +6,9 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
namespace Kernel {
|
namespace Kernel::ACPI {
|
||||||
namespace ACPI {
|
|
||||||
|
|
||||||
bool is_enabled();
|
bool is_enabled();
|
||||||
void initialize();
|
void initialize();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
|
@ -17,8 +17,7 @@
|
||||||
#include <Kernel/StdLib.h>
|
#include <Kernel/StdLib.h>
|
||||||
#include <Kernel/VM/TypedMapping.h>
|
#include <Kernel/VM/TypedMapping.h>
|
||||||
|
|
||||||
namespace Kernel {
|
namespace Kernel::ACPI {
|
||||||
namespace ACPI {
|
|
||||||
|
|
||||||
static Parser* s_acpi_parser;
|
static Parser* s_acpi_parser;
|
||||||
|
|
||||||
|
@ -459,4 +458,3 @@ void Parser::disable_aml_interpretation()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
|
@ -14,8 +14,7 @@
|
||||||
#include <Kernel/VM/Region.h>
|
#include <Kernel/VM/Region.h>
|
||||||
#include <Kernel/VirtualAddress.h>
|
#include <Kernel/VirtualAddress.h>
|
||||||
|
|
||||||
namespace Kernel {
|
namespace Kernel::ACPI {
|
||||||
namespace ACPI {
|
|
||||||
|
|
||||||
class ACPISysFSDirectory : public SysFSDirectory {
|
class ACPISysFSDirectory : public SysFSDirectory {
|
||||||
public:
|
public:
|
||||||
|
@ -106,4 +105,3 @@ private:
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue