The Pedigree Project  0.1
Public Member Functions | Protected Member Functions | List of all members
IrqHandler Class Referenceabstract

#include <IrqHandler.h>

+ Inheritance diagram for IrqHandler:
+ Collaboration diagram for IrqHandler:

Public Member Functions

virtual bool irq (irq_id_t number, InterruptState &state)=0
 

Protected Member Functions

virtual ~IrqHandler ()
 

Detailed Description

Abstract base class for all irq-handlers. All irq-handlers must be derived from this class

Definition at line 32 of file IrqHandler.h.

Constructor & Destructor Documentation

IrqHandler::~IrqHandler ( )
protectedvirtualdefault

Virtual destructor

Member Function Documentation

virtual bool IrqHandler::irq ( irq_id_t  number,
InterruptState &  state 
)
pure virtual

Called when the handler is registered with the irq manager and the irq occurred

Note
If this function returns false you have to call IrqManager::acknowledgeIrq() when you removed the interrupt reason.
Parameters
[in]numberthe irq number
Returns
should return true, if the interrupt reason was removed, or false otherwise

Implemented in Ohci, Ehci, Uhci, Rtc, HostedTimer, Ps2Controller, HostedSchedulerTimer, Pit, PciAtaController, IsaAtaController, Ne2k, AtaController, Rtl8139, Nic3C90x, and CdiIrqHandler.


The documentation for this class was generated from the following files: