Browse Source
We add an abstract interrupt controller interface which can be used by devices to trigger wired interrupts. Signed-off-by: Anup Patel <anup@brainfault.org>pull/889/head
2 changed files with 15 additions and 0 deletions
@ -0,0 +1,14 @@ |
|||
#ifndef _RISCV_ABSTRACT_INTERRUPT_CONTROLLER_H |
|||
#define _RISCV_ABSTRACT_INTERRUPT_CONTROLLER_H |
|||
|
|||
#include "decode.h" |
|||
#include <cstdint> |
|||
#include <cstddef> |
|||
|
|||
class abstract_interrupt_controller_t { |
|||
public: |
|||
virtual void set_interrupt_level(uint32_t interrupt_id, int level) = 0; |
|||
virtual ~abstract_interrupt_controller_t() {} |
|||
}; |
|||
|
|||
#endif |
|||
Loading…
Reference in new issue