summaryrefslogtreecommitdiffhomepage
path: root/dev/Mod
diff options
context:
space:
mode:
Diffstat (limited to 'dev/Mod')
-rw-r--r--dev/Mod/ACPI/ACPIFactoryInterface.h6
-rw-r--r--dev/Mod/Pwr/PowerFactory.h35
2 files changed, 39 insertions, 2 deletions
diff --git a/dev/Mod/ACPI/ACPIFactoryInterface.h b/dev/Mod/ACPI/ACPIFactoryInterface.h
index 01143c17..eb8d7353 100644
--- a/dev/Mod/ACPI/ACPIFactoryInterface.h
+++ b/dev/Mod/ACPI/ACPIFactoryInterface.h
@@ -12,14 +12,16 @@
#include <NewKit/ErrorOr.h>
#include <NewKit/Defines.h>
#include <NewKit/Ref.h>
+#include <Mod/Pwr/PowerFactory.h>
namespace NeOS
{
+ class PowerFactory;
class ACPIFactoryInterface;
typedef ACPIFactoryInterface PowerFactoryInterface;
- class ACPIFactoryInterface final
+ class ACPIFactoryInterface final : public PowerFactory
{
public:
explicit ACPIFactoryInterface(voidPtr rsp_ptr);
@@ -29,7 +31,7 @@ namespace NeOS
ACPIFactoryInterface(const ACPIFactoryInterface&) = default;
public:
- Void Shutdown(); // shutdown
+ Bool Shutdown(); // shutdown
Void Reboot(); // soft-reboot
public:
diff --git a/dev/Mod/Pwr/PowerFactory.h b/dev/Mod/Pwr/PowerFactory.h
new file mode 100644
index 00000000..2992fac1
--- /dev/null
+++ b/dev/Mod/Pwr/PowerFactory.h
@@ -0,0 +1,35 @@
+/* -------------------------------------------
+
+ Copyright (C) 2025, Amlal EL Mahrouss, all rights reserved.
+
+------------------------------------------- */
+
+#pragma once
+
+#include <KernelKit/DebugOutput.h>
+#include <Mod/ACPI/ACPI.h>
+#include <NewKit/ErrorOr.h>
+#include <NewKit/Defines.h>
+#include <NewKit/Ref.h>
+
+namespace NeOS
+{
+ 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 NeOS \ No newline at end of file