diff options
Diffstat (limited to 'arch/x86_64')
| -rw-r--r-- | arch/x86_64/arch/drivers/pit.cpp | 5 | ||||
| -rw-r--r-- | arch/x86_64/arch/drivers/pit.hpp | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86_64/arch/drivers/pit.cpp b/arch/x86_64/arch/drivers/pit.cpp index 4ca2fef8..ea053319 100644 --- a/arch/x86_64/arch/drivers/pit.cpp +++ b/arch/x86_64/arch/drivers/pit.cpp @@ -69,6 +69,11 @@ namespace arch::drivers return pit_names; } + auto pit::name() const noexcept -> std::string_view + { + return "Intel 8253/8254 compatible PIT"; + } + auto pit::handle_interrupt(std::uint32_t irq_number, kstd::weak_ptr<void> context) -> kapi::interrupts::status { auto data = static_pointer_cast<pit::data>(context.lock()); diff --git a/arch/x86_64/arch/drivers/pit.hpp b/arch/x86_64/arch/drivers/pit.hpp index 0f5740b3..e99bdf81 100644 --- a/arch/x86_64/arch/drivers/pit.hpp +++ b/arch/x86_64/arch/drivers/pit.hpp @@ -29,6 +29,8 @@ namespace arch::drivers auto handle_interrupt(std::uint32_t irq_number, kstd::weak_ptr<void> context) -> kapi::interrupts::status override; + [[nodiscard]] auto name() const noexcept -> std::string_view override; + protected: auto query_interface(kapi::devices::interface_id interface) -> void * override; |
