diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-07-26 10:28:44 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-07-26 10:28:44 +0200 |
| commit | ad43e9c9eac69b862789f2e132201cd5ceebaffa (patch) | |
| tree | c73a942e507f646aa952f61da97cedccf7db09dd /arch | |
| parent | 390cac20bfb3040900a5569c4e9dfa1972f8d2bd (diff) | |
| download | kernel-ad43e9c9eac69b862789f2e132201cd5ceebaffa.tar.xz kernel-ad43e9c9eac69b862789f2e132201cd5ceebaffa.zip | |
kapi: move protocol pointer to base bus
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/x86_64/arch/bus/isa.cpp | 12 | ||||
| -rw-r--r-- | arch/x86_64/arch/bus/isa.hpp | 3 |
2 files changed, 1 insertions, 14 deletions
diff --git a/arch/x86_64/arch/bus/isa.cpp b/arch/x86_64/arch/bus/isa.cpp index 4df86a6d..11c5f3f5 100644 --- a/arch/x86_64/arch/bus/isa.cpp +++ b/arch/x86_64/arch/bus/isa.cpp @@ -41,17 +41,7 @@ namespace arch::bus } // namespace isa::isa() - : kapi::devices::bus{"isa"} + : kapi::devices::bus{"isa", protocol_instance} {} - auto isa::query_facet(kapi::capabilities::facet_id id) -> void * - { - if (id == kapi::devices::bus_protocol::id) - { - return static_cast<kapi::devices::bus_protocol *>(&protocol_instance); - } - - return bus::query_facet(id); - } - } // namespace arch::bus
\ No newline at end of file diff --git a/arch/x86_64/arch/bus/isa.hpp b/arch/x86_64/arch/bus/isa.hpp index db85f3f7..fe2e83a6 100644 --- a/arch/x86_64/arch/bus/isa.hpp +++ b/arch/x86_64/arch/bus/isa.hpp @@ -42,9 +42,6 @@ namespace arch::bus { //! Construct a default ISA bus. isa(); - - private: - auto query_facet(kapi::capabilities::facet_id id) -> void * override; }; } // namespace arch::bus |
