mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 16:38:10 +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 <Kernel/PhysicalAddress.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
namespace ACPI {
|
||||
namespace Kernel::ACPI {
|
||||
|
||||
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/Sections.h>
|
||||
|
||||
namespace Kernel {
|
||||
namespace ACPI {
|
||||
namespace Kernel::ACPI {
|
||||
|
||||
UNMAP_AFTER_INIT DynamicParser::DynamicParser(PhysicalAddress rsdp)
|
||||
: IRQHandler(9)
|
||||
|
@ -57,4 +56,3 @@ void DynamicParser::build_namespace()
|
|||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,8 +13,7 @@
|
|||
#include <Kernel/PhysicalAddress.h>
|
||||
#include <Kernel/VM/PhysicalPage.h>
|
||||
|
||||
namespace Kernel {
|
||||
namespace ACPI {
|
||||
namespace Kernel::ACPI {
|
||||
|
||||
class DynamicParser final
|
||||
: public IRQHandler
|
||||
|
@ -40,5 +39,5 @@ private:
|
|||
|
||||
OwnPtr<Region> m_acpi_namespace;
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -9,8 +9,7 @@
|
|||
#include <Kernel/CommandLine.h>
|
||||
#include <Kernel/Sections.h>
|
||||
|
||||
namespace Kernel {
|
||||
namespace ACPI {
|
||||
namespace Kernel::ACPI {
|
||||
|
||||
UNMAP_AFTER_INIT void initialize()
|
||||
{
|
||||
|
@ -34,4 +33,3 @@ bool is_enabled()
|
|||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,11 +6,9 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
namespace Kernel {
|
||||
namespace ACPI {
|
||||
namespace Kernel::ACPI {
|
||||
|
||||
bool is_enabled();
|
||||
void initialize();
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,8 +17,7 @@
|
|||
#include <Kernel/StdLib.h>
|
||||
#include <Kernel/VM/TypedMapping.h>
|
||||
|
||||
namespace Kernel {
|
||||
namespace ACPI {
|
||||
namespace Kernel::ACPI {
|
||||
|
||||
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/VirtualAddress.h>
|
||||
|
||||
namespace Kernel {
|
||||
namespace ACPI {
|
||||
namespace Kernel::ACPI {
|
||||
|
||||
class ACPISysFSDirectory : public SysFSDirectory {
|
||||
public:
|
||||
|
@ -106,4 +105,3 @@ private:
|
|||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue