mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:37:35 +00:00
Kernel: Change HandlerPurpose to HandlerType
Also, GenericInterruptHandler class requires to implement two new methods.
This commit is contained in:
parent
52954ccce6
commit
773afefe7c
16 changed files with 39 additions and 13 deletions
|
@ -33,7 +33,7 @@
|
|||
|
||||
namespace Kernel {
|
||||
|
||||
enum class HandlerPurpose : u8 {
|
||||
enum class HandlerType : u8 {
|
||||
IRQHandler = 1,
|
||||
SharedIRQHandler = 2,
|
||||
UnhandledInterruptHandler = 3,
|
||||
|
@ -56,7 +56,9 @@ public:
|
|||
virtual bool is_shared_handler() const = 0;
|
||||
virtual bool is_sharing_with_others() const = 0;
|
||||
|
||||
virtual HandlerPurpose purpose() const = 0;
|
||||
virtual HandlerType type() const = 0;
|
||||
virtual const char* purpose() const = 0;
|
||||
virtual const char* controller() const = 0;
|
||||
|
||||
virtual bool eoi() = 0;
|
||||
void increment_invoking_counter();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue