The Pedigree Project
0.1
|
#include <Pit.h>
Public Member Functions | |
virtual bool | registerHandler (TimerHandler *handler) |
bool | initialise () INITIALISATION_ONLY |
void | uninitialise () |
Static Public Member Functions | |
static Pit & | instance () |
Protected Member Functions | |
Pit () INITIALISATION_ONLY | |
virtual | ~Pit () |
Protected Member Functions inherited from SchedulerTimer | |
SchedulerTimer () | |
virtual | ~SchedulerTimer () |
Private Member Functions | |
Pit (const Pit &) | |
Pit & | operator= (const Pit &) |
virtual bool | irq (irq_id_t number, InterruptState &state) |
virtual | ~IrqHandler () |
Private Attributes | |
IoPort | m_IoPort |
irq_id_t | m_IrqId |
TimerHandler * | m_Handler |
Static Private Attributes | |
static Pit | m_Instance |
The programmable interval timer implements the SchedulerTimer interface
|
protected |
The default constructor
Definition at line 91 of file Pit.cc.
Referenced by instance(), and ~Pit().
|
inlineprotectedvirtual |
|
private |
The copy-constructor
bool Pit::initialise | ( | ) |
Initialises the class
Definition at line 45 of file Pit.cc.
References IoPort::allocate(), m_IoPort, m_IrqId, IrqManager::registerIsaIrqHandler(), and IoPort::write8().
Referenced by Pc::initialise(), and instance().
|
inlinestatic |
Get the Pit class instance
Definition at line 40 of file Pit.h.
References INITIALISATION_ONLY, initialise(), m_Instance, Pit(), and uninitialise().
Referenced by Pc::getSchedulerTimer(), and Pc::initialise().
|
privatevirtual |
Called when the handler is registered with the irq manager and the irq occurred
[in] | number | the irq number |
Implements IrqHandler.
Definition at line 95 of file Pit.cc.
References LIKELY, m_Handler, and TimerHandler::timer().
Referenced by ~Pit().
The assignment operator
Referenced by ~Pit().
void Pit::uninitialise | ( | ) |
Uninitialises the class
Definition at line 76 of file Pit.cc.
References IoPort::free(), m_IoPort, m_IrqId, and IrqManager::unregisterHandler().
Referenced by instance().
|
private |
|
staticprivate |
|
private |
The PIT I/O port range
Definition at line 78 of file Pit.h.
Referenced by initialise(), and uninitialise().
|
private |