mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 15:02:46 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
	
		
			312 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
	
		
			312 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <AK/Types.h>
 | |
| 
 | |
| class IRQHandler {
 | |
| public:
 | |
|     virtual ~IRQHandler();
 | |
|     virtual void handleIRQ() = 0;
 | |
| 
 | |
|     byte irqNumber() const { return m_irqNumber; }
 | |
| 
 | |
|     void enableIRQ();
 | |
|     void disableIRQ();
 | |
| 
 | |
| protected:
 | |
|     explicit IRQHandler(byte irq);
 | |
| 
 | |
| private:
 | |
|     byte m_irqNumber { 0 };
 | |
| };
 | |
| 
 | 
