mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
da88d766b2
This commits inserts TODOs into all necessary places to make the kernel compile on riscv64!
37 lines
771 B
C++
37 lines
771 B
C++
/*
|
|
* Copyright (c) 2023, Sönke Holz <sholz8530@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/AtomicRefCounted.h>
|
|
#include <AK/StringView.h>
|
|
#include <AK/Types.h>
|
|
|
|
#include <Kernel/Interrupts/GenericInterruptHandler.h>
|
|
|
|
#include <AK/Platform.h>
|
|
VALIDATE_IS_RISCV64()
|
|
|
|
namespace Kernel {
|
|
|
|
class IRQController : public AtomicRefCounted<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 u64 pending_interrupts() const = 0;
|
|
|
|
virtual StringView model() const = 0;
|
|
|
|
protected:
|
|
IRQController() = default;
|
|
};
|
|
|
|
}
|