diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-07-24 19:37:41 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-07-24 19:38:00 +0200 |
| commit | 1eec1ed62987f34a8473db0ff2b89f82dd92ff4d (patch) | |
| tree | 0d4b97c6161e856c97154aa9ef6237a2dc34319e /arch | |
| parent | 40c91984152a238351529d2611fe627040f6a618 (diff) | |
| download | kernel-1eec1ed62987f34a8473db0ff2b89f82dd92ff4d.tar.xz kernel-1eec1ed62987f34a8473db0ff2b89f82dd92ff4d.zip | |
kapi: rename interface to interface_id
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/x86_64/arch/bus/isa.hpp | 4 | ||||
| -rw-r--r-- | arch/x86_64/arch/devices/init.cpp | 1 | ||||
| -rw-r--r-- | arch/x86_64/arch/devices/pit.cpp | 2 | ||||
| -rw-r--r-- | arch/x86_64/arch/devices/pit.hpp | 2 | ||||
| -rw-r--r-- | arch/x86_64/arch/drivers/pit.cpp | 2 | ||||
| -rw-r--r-- | arch/x86_64/arch/drivers/pit.hpp | 2 |
6 files changed, 6 insertions, 7 deletions
diff --git a/arch/x86_64/arch/bus/isa.hpp b/arch/x86_64/arch/bus/isa.hpp index aa6eb01a..fa85c8e8 100644 --- a/arch/x86_64/arch/bus/isa.hpp +++ b/arch/x86_64/arch/bus/isa.hpp @@ -16,7 +16,7 @@ namespace arch::bus struct isa_identification { //! The ID of this interface. - constexpr auto static id = kapi::devices::interface{"isa_identification"}; + constexpr auto static id = kapi::devices::interface_id{"isa_identification"}; //! Allow for correct destruction through base pointers. virtual ~isa_identification() = default; @@ -27,7 +27,7 @@ namespace arch::bus struct isa_driver_identification { - constexpr auto static id = kapi::devices::interface{"isa_driver_identification"}; + constexpr auto static id = kapi::devices::interface_id{"isa_driver_identification"}; virtual ~isa_driver_identification() = default; diff --git a/arch/x86_64/arch/devices/init.cpp b/arch/x86_64/arch/devices/init.cpp index 10848508..03d082f6 100644 --- a/arch/x86_64/arch/devices/init.cpp +++ b/arch/x86_64/arch/devices/init.cpp @@ -7,7 +7,6 @@ #include <kapi/acpi.hpp> #include <kapi/cpu.hpp> #include <kapi/devices.hpp> -#include <kapi/devices/driver_registry.hpp> #include <acpi/acpi.hpp> diff --git a/arch/x86_64/arch/devices/pit.cpp b/arch/x86_64/arch/devices/pit.cpp index df28288f..a280bcdc 100644 --- a/arch/x86_64/arch/devices/pit.cpp +++ b/arch/x86_64/arch/devices/pit.cpp @@ -18,7 +18,7 @@ namespace arch::devices return "pit"; } - auto pit::query_interface(kapi::devices::interface interface) -> void * + auto pit::query_interface(kapi::devices::interface_id interface) -> void * { if (interface == arch::bus::isa_identification::id) { diff --git a/arch/x86_64/arch/devices/pit.hpp b/arch/x86_64/arch/devices/pit.hpp index 5104087b..452eedc0 100644 --- a/arch/x86_64/arch/devices/pit.hpp +++ b/arch/x86_64/arch/devices/pit.hpp @@ -24,7 +24,7 @@ namespace arch::devices [[nodiscard]] auto isa_name() const -> std::string_view override; protected: - auto query_interface(kapi::devices::interface interface) -> void * override; + auto query_interface(kapi::devices::interface_id interface) -> void * override; }; } // namespace arch::devices diff --git a/arch/x86_64/arch/drivers/pit.cpp b/arch/x86_64/arch/drivers/pit.cpp index 2b03172d..6bad179e 100644 --- a/arch/x86_64/arch/drivers/pit.cpp +++ b/arch/x86_64/arch/drivers/pit.cpp @@ -87,7 +87,7 @@ namespace arch::drivers return kapi::interrupts::status::handled; } - auto pit::query_interface(kapi::devices::interface interface) -> void * + auto pit::query_interface(kapi::devices::interface_id interface) -> void * { if (interface == arch::bus::isa_driver_identification::id) { diff --git a/arch/x86_64/arch/drivers/pit.hpp b/arch/x86_64/arch/drivers/pit.hpp index f22c6037..6e51ec36 100644 --- a/arch/x86_64/arch/drivers/pit.hpp +++ b/arch/x86_64/arch/drivers/pit.hpp @@ -30,7 +30,7 @@ namespace arch::drivers auto handle_interrupt(std::uint32_t irq_number, kstd::weak_ptr<void> context) -> kapi::interrupts::status override; protected: - auto query_interface(kapi::devices::interface interface) -> void * override; + auto query_interface(kapi::devices::interface_id interface) -> void * override; private: struct data |
