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

#include <Versatile.h>

+ Inheritance diagram for ArmVersatile:
+ Collaboration diagram for ArmVersatile:

Public Member Functions

virtual void initialise ()
 
virtual SerialgetSerial (size_t n)
 
virtual size_t getNumSerial ()
 
virtual VgagetVga (size_t n)
 
virtual size_t getNumVga ()
 
virtual IrqManagergetIrqManager ()
 
virtual SchedulerTimergetSchedulerTimer ()
 
virtual TimergetTimer ()
 
virtual KeyboardgetKeyboard ()
 
virtual void setKeyboard (Keyboard *kb)
 
virtual void initialiseDeviceTree ()
 
- Public Member Functions inherited from Machine
virtual void initialise2 ()
 Called after debugger startup.
 
virtual void initialise3 ()
 Called after processor startup - for thread creation etc.
 
virtual void deinitialise ()
 
bool isInitialised ()
 

Static Public Member Functions

static Machineinstance ()
 
- Static Public Member Functions inherited from Machine
static Machineinstance ()
 

Private Member Functions

 ArmVersatile ()
 
 ArmVersatile (const ArmVersatile &)
 
ArmVersatileoperator= (const ArmVersatile &)
 
virtual ~ArmVersatile ()
 

Private Attributes

ArmVersatileSerial m_Serial [2]
 
ArmVersatileVga m_Vga
 
ArmVersatileKeyboard m_Keyboard
 

Static Private Attributes

static ArmVersatile m_Instance
 

Additional Inherited Members

- Protected Attributes inherited from Machine
bool m_bInitialised
 

Detailed Description

Concretion of the abstract Machine class for an ArmVersatile board.

Definition at line 31 of file Versatile.h.

Constructor & Destructor Documentation

ArmVersatile::ArmVersatile ( )
private

Default constructor, does nothing.

Definition at line 75 of file Versatile.cc.

Referenced by initialiseDeviceTree().

+ Here is the caller graph for this function:

ArmVersatile::~ArmVersatile ( )
privatevirtual

Virtual destructor, does nothing.

Definition at line 78 of file Versatile.cc.

Referenced by initialiseDeviceTree().

+ Here is the caller graph for this function:

Member Function Documentation

Keyboard * ArmVersatile::getKeyboard ( )
virtual

Returns the keyboard device.

Implements Machine.

Definition at line 70 of file Versatile.cc.

size_t ArmVersatile::getNumSerial ( )
virtual

Returns the number of Serial device.

Implements Machine.

Definition at line 43 of file Versatile.cc.

size_t ArmVersatile::getNumVga ( )
virtual

Returns the number of VGA devices.

Implements Machine.

Definition at line 51 of file Versatile.cc.

SchedulerTimer * ArmVersatile::getSchedulerTimer ( )
virtual

Returns the SchedulerTimer device.

Implements Machine.

Definition at line 60 of file Versatile.cc.

Serial * ArmVersatile::getSerial ( size_t  n)
virtual

Returns the n'th Serial device.

Implements Machine.

Definition at line 39 of file Versatile.cc.

Timer * ArmVersatile::getTimer ( )
virtual

Returns the n'th Timer device.

Implements Machine.

Definition at line 65 of file Versatile.cc.

Vga * ArmVersatile::getVga ( size_t  n)
virtual

Returns the n'th VGA device.

Implements Machine.

Definition at line 47 of file Versatile.cc.

void ArmVersatile::initialise ( )
virtual

Initialises the machine.

Todo:
setup second pl011 as well (removed to make it work) and detect existance of pl011s

Implements Machine.

Definition at line 29 of file Versatile.cc.

virtual void ArmVersatile::initialiseDeviceTree ( )
inlinevirtual

Initialises the machine's base device tree, if one exists, to prefill the tree with those devices that are not otherwise able to be detected via some sort of bus support.

Reimplemented from Machine.

Definition at line 50 of file Versatile.h.

References ArmVersatile(), and ~ArmVersatile().

virtual void ArmVersatile::setKeyboard ( Keyboard kb)
inlinevirtual

Sets the keyboard device.

Implements Machine.

Definition at line 48 of file Versatile.h.


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