aboutsummaryrefslogtreecommitdiff
path: root/kernel/kapi/acpi/system_description_table_header.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-04-09 15:54:04 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-04-09 15:54:04 +0200
commitf6bea6a5f1939f3261392633f6caca186befd555 (patch)
tree1aee4819f9d5cb998716c300c9202324a061cef8 /kernel/kapi/acpi/system_description_table_header.cpp
parentaa208226f992523865328d4612ae4a7679f57a04 (diff)
downloadteachos-f6bea6a5f1939f3261392633f6caca186befd555.tar.xz
teachos-f6bea6a5f1939f3261392633f6caca186befd555.zip
kapi: restructure ACPI implementation
Diffstat (limited to 'kernel/kapi/acpi/system_description_table_header.cpp')
-rw-r--r--kernel/kapi/acpi/system_description_table_header.cpp51
1 files changed, 51 insertions, 0 deletions
diff --git a/kernel/kapi/acpi/system_description_table_header.cpp b/kernel/kapi/acpi/system_description_table_header.cpp
new file mode 100644
index 0000000..f688b4d
--- /dev/null
+++ b/kernel/kapi/acpi/system_description_table_header.cpp
@@ -0,0 +1,51 @@
+#include "kapi/acpi.hpp"
+
+#include <kstd/units>
+
+#include <cstdint>
+#include <string_view>
+
+namespace kapi::acpi
+{
+
+ [[nodiscard]] auto system_description_table_header::creator_revision() const noexcept -> std::uint32_t
+ {
+ return m_creator_revision;
+ }
+
+ [[nodiscard]] auto system_description_table_header::creator_id() const noexcept -> std::uint32_t
+ {
+ return m_creator_id;
+ }
+
+ [[nodiscard]] auto system_description_table_header::length() const noexcept -> kstd::units::bytes
+ {
+ return kstd::units::bytes{m_length};
+ }
+
+ [[nodiscard]] auto system_description_table_header::oem_id() const noexcept -> std::string_view
+ {
+ return {m_oem_id.data(), m_oem_id.size()};
+ }
+
+ [[nodiscard]] auto system_description_table_header::oem_revision() const noexcept -> std::uint32_t
+ {
+ return m_oem_revision;
+ }
+
+ [[nodiscard]] auto system_description_table_header::oem_table_id() const noexcept -> std::string_view
+ {
+ return {m_oem_table_id.data(), m_oem_table_id.size()};
+ }
+
+ [[nodiscard]] auto system_description_table_header::revision() const noexcept -> std::uint8_t
+ {
+ return m_revision;
+ }
+
+ [[nodiscard]] auto system_description_table_header::signature() const noexcept -> std::string_view
+ {
+ return {m_signature.data(), m_signature.size()};
+ }
+
+} // namespace kapi::acpi