From b9f9cbb12c3f8541346d0d46c7bb33c01aeea5e5 Mon Sep 17 00:00:00 2001 From: Liav A Date: Sat, 5 Feb 2022 16:11:13 +0200 Subject: [PATCH] Kernel/Interrupts: Remove stale MSIHandler class When we implement MSI support, we can rely on the IRQHandler class for installing IRQ handlers at the right location. --- Kernel/Interrupts/MSIHandler.h | 38 ---------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 Kernel/Interrupts/MSIHandler.h diff --git a/Kernel/Interrupts/MSIHandler.h b/Kernel/Interrupts/MSIHandler.h deleted file mode 100644 index 99d6725699..0000000000 --- a/Kernel/Interrupts/MSIHandler.h +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2020, Liav A. - * - * SPDX-License-Identifier: BSD-2-Clause - */ - -#pragma once - -#include -#include -#include - -namespace Kernel { - -class MSIHandler final : public GenericInterruptHandler { -public: - virtual ~MSIHandler(); - - virtual void handle_interrupt(RegisterState&) override { } - - void enable_irq(); - void disable_irq(); - - virtual bool eoi() override; - - virtual size_t sharing_devices_count() const override { return 0; } - virtual bool is_shared_handler() const override { return false; } - virtual bool is_sharing_with_others() const override { return m_shared_with_others; } - -protected: - void change_irq_number(u8 irq); - explicit MSIHandler(PCI::Address); - -private: - bool m_shared_with_others; - bool m_enabled; -}; -}