diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-07-25 14:30:10 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-07-25 14:30:10 +0200 |
| commit | 2bf97dc2927da8f051661d104d52fec41222c670 (patch) | |
| tree | 846c67ac64bf2b1d1375eccfe5b6889093fa1007 /arch | |
| parent | 948453d3d073de207274535376d7274e82f04bc6 (diff) | |
| download | kernel-2bf97dc2927da8f051661d104d52fec41222c670.tar.xz kernel-2bf97dc2927da8f051661d104d52fec41222c670.zip | |
kapi: introduce driver names
Diffstat (limited to 'arch')
| -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; |
