summaryrefslogtreecommitdiffhomepage
path: root/dev/modules/ACPI/ACPIFactoryInterface.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-11-24 03:02:43 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-11-24 03:02:43 +0100
commit83d870e58457a1d335a1d9b9966a6a1887cc297b (patch)
tree72888f88c7728c82f3f6df1f4f70591de15eab36 /dev/modules/ACPI/ACPIFactoryInterface.h
parentab37adbacf0f33845804c788b39680cd754752a8 (diff)
feat! breaking changes on kernel sources.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/modules/ACPI/ACPIFactoryInterface.h')
-rw-r--r--dev/modules/ACPI/ACPIFactoryInterface.h57
1 files changed, 0 insertions, 57 deletions
diff --git a/dev/modules/ACPI/ACPIFactoryInterface.h b/dev/modules/ACPI/ACPIFactoryInterface.h
deleted file mode 100644
index da91a62e..00000000
--- a/dev/modules/ACPI/ACPIFactoryInterface.h
+++ /dev/null
@@ -1,57 +0,0 @@
-/* ========================================
-
- Copyright (C) 2024-2025, Amlal El Mahrouss, licensed under the Apache 2.0 license.
-
-======================================== */
-
-#ifndef __MOD_ACPI_H__
-#define __MOD_ACPI_H__
-
-#include <KernelKit/DebugOutput.h>
-#include <NeKit/Defines.h>
-#include <NeKit/ErrorOr.h>
-#include <NeKit/Ref.h>
-#include <modules/ACPI/ACPI.h>
-#include <modules/Power/PowerFactory.h>
-
-namespace Kernel {
-class PowerFactory;
-class ACPIFactoryInterface;
-
-typedef ACPIFactoryInterface PowerFactoryInterface;
-
-class ACPIFactoryInterface final NE_POWER_FACTORY {
- public:
- explicit ACPIFactoryInterface(voidPtr rsp_ptr);
- ~ACPIFactoryInterface() = default;
-
- ACPIFactoryInterface& operator=(const ACPIFactoryInterface&) = default;
- ACPIFactoryInterface(const ACPIFactoryInterface&) = default;
-
- public:
- Bool Shutdown(); // shutdown
- Void Reboot(); // soft-reboot
-
- public:
- /// @brief Descriptor find factory.
- /// @param signature The signature of the descriptor table (MADT, ACPI...)
- /// @return the blob inside an ErrorOr object.
- ErrorOr<voidPtr> Find(const Char* signature);
-
- /// @brief Checksum factory.
- /// @param checksum the data to checksum
- /// @param len it's size
- /// @return if it succeed
- bool Checksum(const Char* checksum, SSizeT len); // watch for collides!
-
- public:
- ErrorOr<voidPtr> operator[](const Char* signature);
-
- private:
- VoidPtr fRsdp{nullptr}; // pointer to root descriptor.
- SizeT fEntries{0UL}; // number of entries, -1 tells that no invalid entries were
- // found.
-};
-} // namespace Kernel
-
-#endif // !__MOD_ACPI_H__