The Pedigree Project
0.1
|
#include <Pc.h>
Public Member Functions | |
virtual void | initialise () INITIALISATION_ONLY |
virtual void | initialise3 () |
Called after processor startup - for thread creation etc. | |
virtual void | deinitialise () |
virtual void | initialiseDeviceTree () |
virtual Serial * | getSerial (size_t n) |
virtual size_t | getNumSerial () |
virtual Vga * | getVga (size_t n) |
virtual size_t | getNumVga () |
virtual IrqManager * | getIrqManager () |
virtual SchedulerTimer * | getSchedulerTimer () |
virtual Timer * | getTimer () |
virtual Keyboard * | getKeyboard () |
virtual void | setKeyboard (Keyboard *kb) |
Public Member Functions inherited from Machine | |
virtual void | initialise2 () |
Called after debugger startup. | |
bool | isInitialised () |
Static Public Member Functions | |
static Pc & | instance () |
Static Public Member Functions inherited from Machine | |
static Machine & | instance () |
Private Member Functions | |
Pc () INITIALISATION_ONLY | |
Pc (const Pc &) | |
Pc & | operator= (const Pc &) |
virtual | ~Pc () |
Private Attributes | |
X86Serial | m_pSerial [4] |
X86Vga | m_Vga |
Keyboard * | m_pKeyboard |
X86Keyboard | m_Keyboard |
Bus | m_IsaBus |
Controller | m_AtaMaster |
Controller | m_AtaSlave |
Ps2Controller | m_Ps2Controller |
Device | m_Watchdog |
Static Private Attributes | |
static Pc | m_Instance |
Additional Inherited Members | |
Protected Attributes inherited from Machine | |
bool | m_bInitialised |
Concretion of the abstract Machine class for x86 and x64 machines
|
virtual |
|
virtual |
|
virtual |
Returns the number of VGA devices.
Implements Machine.
Definition at line 238 of file Pc.cc.
References Pic::instance().
|
virtual |
Returns the SchedulerTimer device.
Implements Machine.
Definition at line 248 of file Pc.cc.
References Pit::instance().
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Initialises the machine.
Implements Machine.
Definition at line 52 of file Pc.cc.
References X86Keyboard::initialise(), Pit::initialise(), Pic::initialise(), Rtc::initialise1(), Rtc::initialise2(), Pit::instance(), Pic::instance(), NOTICE, panic(), and X86Serial::setBase().
|
virtual |
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 178 of file Pc.cc.
References Device::addChild(), Device::addresses(), Device::addToRoot(), PciBus::initialise(), Device::setInterruptNumber(), Device::setParent(), and Device::setSpecificType().
|
virtual |