20 #ifndef MACHINE_MACHINE_H 21 #define MACHINE_MACHINE_H 23 #include "pedigree/kernel/compiler.h" 24 #include "pedigree/kernel/processor/types.h" 43 friend void system_reset();
51 virtual void initialise() = 0;
60 virtual void deinitialise()
62 m_bInitialised =
false;
64 inline bool isInitialised()
66 return m_bInitialised;
81 virtual Serial *getSerial(
size_t n) = 0;
86 virtual size_t getNumSerial() = 0;
91 virtual Vga *getVga(
size_t n) = 0;
96 virtual size_t getNumVga() = 0;
107 virtual Timer *getTimer() = 0;
112 virtual Keyboard *getKeyboard() = 0;
117 virtual void setKeyboard(
Keyboard *kb) = 0;
119 #ifdef MULTIPROCESSOR 123 virtual void stopAllOtherProcessors() = 0;
127 inline Machine() : m_bInitialised(
false)
virtual void initialiseDeviceTree()
virtual void initialise2()
Called after debugger startup.
virtual void initialise3()
Called after processor startup - for thread creation etc.