The Pedigree Project  0.1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
CountCompareTimer Class Reference

#include <Timer.h>

+ Inheritance diagram for CountCompareTimer:
+ Collaboration diagram for CountCompareTimer:

Public Member Functions

virtual bool registerHandler (TimerHandler *handler)
 
bool initialise () INITIALISATION_ONLY
 
void uninitialise ()
 

Static Public Member Functions

static CountCompareTimerinstance ()
 

Protected Member Functions

 CountCompareTimer () INITIALISATION_ONLY
 
virtual ~CountCompareTimer ()
 
- Protected Member Functions inherited from SchedulerTimer
 SchedulerTimer ()
 
virtual ~SchedulerTimer ()
 

Private Member Functions

 CountCompareTimer (const CountCompareTimer &)
 
CountCompareTimeroperator= (const CountCompareTimer &)
 
virtual void interrupt (size_t interruptNumber, InterruptState &state)
 
virtual ~InterruptHandler ()
 

Private Attributes

TimerHandlerm_Handler
 
uint32_t m_Compare
 

Static Private Attributes

static CountCompareTimer m_Instance
 

Detailed Description

The programmable interval timer implements the SchedulerTimer interface

Definition at line 31 of file kernel/machine/mips_common/Timer.h.

Constructor & Destructor Documentation

CountCompareTimer::CountCompareTimer ( )
protected

The default constructor

Definition at line 73 of file mips_common/Timer.cc.

Referenced by instance(), and ~CountCompareTimer().

+ Here is the caller graph for this function:

virtual CountCompareTimer::~CountCompareTimer ( )
inlineprotectedvirtual

The destructor

Definition at line 55 of file kernel/machine/mips_common/Timer.h.

References CountCompareTimer(), interrupt(), and operator=().

CountCompareTimer::CountCompareTimer ( const CountCompareTimer )
private

The copy-constructor

Note
NOT implemented

Member Function Documentation

bool CountCompareTimer::initialise ( )

Initialises the class

Returns
true, if successful, false otherwise

Definition at line 39 of file mips_common/Timer.cc.

References Hex, InterruptManager::instance(), NOTICE, and Processor::setInterrupts().

Referenced by Malta::initialise(), and instance().

+ Here is the caller graph for this function:

static CountCompareTimer& CountCompareTimer::instance ( )
inlinestatic

Get the CountCompareTimer class instance

Definition at line 35 of file kernel/machine/mips_common/Timer.h.

References CountCompareTimer(), INITIALISATION_ONLY, initialise(), m_Instance, and uninitialise().

Referenced by Malta::initialise().

+ Here is the caller graph for this function:

void CountCompareTimer::interrupt ( size_t  nInterruptNumber,
InterruptState &  state 
)
privatevirtual

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

Parameters
[in]nInterruptNumberthe interrupt number
[in]statereference to the state before the interrupt

Implements InterruptHandler.

Definition at line 77 of file mips_common/Timer.cc.

References LIKELY, m_Handler, and TimerHandler::timer().

Referenced by ~CountCompareTimer().

+ Here is the caller graph for this function:

CountCompareTimer& CountCompareTimer::operator= ( const CountCompareTimer )
private

The assignment operator

Note
NOT implemented

Referenced by ~CountCompareTimer().

+ Here is the caller graph for this function:

void CountCompareTimer::uninitialise ( )

Uninitialises the class

Definition at line 69 of file mips_common/Timer.cc.

Referenced by instance().

+ Here is the caller graph for this function:

Member Data Documentation

TimerHandler* CountCompareTimer::m_Handler
private

The scheduler

Definition at line 73 of file kernel/machine/mips_common/Timer.h.

Referenced by interrupt().

CountCompareTimer CountCompareTimer::m_Instance
staticprivate

The CountCompareTimer class instance

Definition at line 76 of file kernel/machine/mips_common/Timer.h.

Referenced by instance().


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