mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 21:48:13 +00:00

These 2 classes currently contain much code that is x86(_64) specific. Move them to the architecture specific directory. This also allows for a simpler implementation for aarch64.
31 lines
609 B
C++
31 lines
609 B
C++
/*
|
|
* Copyright (c) 2020, Liav A. <liavalb@hotmail.co.il>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/RefCounted.h>
|
|
#include <AK/Types.h>
|
|
|
|
namespace Kernel {
|
|
|
|
class GenericInterruptHandler;
|
|
|
|
class IRQController : public RefCounted<IRQController> {
|
|
public:
|
|
virtual ~IRQController() = default;
|
|
|
|
virtual void enable(GenericInterruptHandler const&) = 0;
|
|
virtual void disable(GenericInterruptHandler const&) = 0;
|
|
|
|
virtual void eoi(GenericInterruptHandler const&) const = 0;
|
|
|
|
virtual StringView model() const = 0;
|
|
|
|
protected:
|
|
IRQController() = default;
|
|
};
|
|
|
|
}
|