aboutsummaryrefslogtreecommitdiff
path: root/kernel/kapi/acpi/system_description_table_header.cpp
blob: f688b4d09196ee268aee98cc79e1adfd9511de20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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