summaryrefslogtreecommitdiffhomepage
path: root/dev/modules/Power
diff options
context:
space:
mode:
Diffstat (limited to 'dev/modules/Power')
-rw-r--r--dev/modules/Power/PowerFactory.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/dev/modules/Power/PowerFactory.h b/dev/modules/Power/PowerFactory.h
new file mode 100644
index 00000000..2b47267e
--- /dev/null
+++ b/dev/modules/Power/PowerFactory.h
@@ -0,0 +1,37 @@
+/* -------------------------------------------
+
+ Copyright (C) 2025, Amlal EL Mahrouss, all rights reserved.
+
+------------------------------------------- */
+
+#pragma once
+
+#include <KernelKit/DebugOutput.h>
+#include <modules/ACPI/ACPI.h>
+#include <NewKit/ErrorOr.h>
+#include <NewKit/Defines.h>
+#include <NewKit/Ref.h>
+
+#define NE_POWER_FACTORY : public PowerFactory
+
+namespace Kernel
+{
+ class PowerFactory;
+
+ class PowerFactory
+ {
+ public:
+ explicit PowerFactory() = default;
+ virtual ~PowerFactory() = default;
+
+ PowerFactory& operator=(const PowerFactory&) = default;
+ PowerFactory(const PowerFactory&) = default;
+
+ public:
+ Bool Shutdown()
+ {
+ return NO;
+ }; // shutdown
+ Void Reboot(){}; // soft-reboot
+ };
+} // namespace Kernel \ No newline at end of file