aboutsummaryrefslogtreecommitdiff
path: root/kernel/kapi/devices/driver.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-08-17 15:20:57 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-08-17 15:20:57 +0200
commit824cc5a96f8a6f666a5c963897c8ab9076b48373 (patch)
tree3c0f28e79702487f4ebcc12cf5d94bc3ef751887 /kernel/kapi/devices/driver.cpp
parent44f28c5ceafafd88b68de6fe2c05fac332ff3c33 (diff)
downloadkernel-824cc5a96f8a6f666a5c963897c8ab9076b48373.tar.xz
kernel-824cc5a96f8a6f666a5c963897c8ab9076b48373.zip
kapi: add power management support to drivers
Diffstat (limited to 'kernel/kapi/devices/driver.cpp')
-rw-r--r--kernel/kapi/devices/driver.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/kernel/kapi/devices/driver.cpp b/kernel/kapi/devices/driver.cpp
index 4f0ce0e4..5ca92dc8 100644
--- a/kernel/kapi/devices/driver.cpp
+++ b/kernel/kapi/devices/driver.cpp
@@ -1,6 +1,8 @@
#include <kapi/capabilities/facet_id.hpp>
#include <kapi/devices.hpp>
+#include <kstd/result.hpp>
+
#include <cstdint>
#include <optional>
@@ -17,6 +19,16 @@ namespace kapi::devices
return std::nullopt;
}
+ auto driver::suspend(device &) -> kstd::result<void>
+ {
+ return kstd::success();
+ }
+
+ auto driver::resume(device &) -> kstd::result<void>
+ {
+ return kstd::success();
+ }
+
auto driver::query_facet(kapi::capabilities::facet_id) -> void *
{
return nullptr;