20 #ifndef KERNEL_MACHINE_HOSTED_COMMON_TIMER_H 21 #define KERNEL_MACHINE_HOSTED_COMMON_TIMER_H 23 #include "pedigree/kernel/machine/IrqManager.h" 24 #include "pedigree/kernel/machine/SchedulerTimer.h" 25 #include "pedigree/kernel/machine/Timer.h" 33 #define MAX_TIMER_HANDLERS 32 52 addAlarm(
class Event *pEvent,
size_t alarmSecs,
size_t alarmUsecs = 0);
53 virtual void removeAlarm(
class Event *pEvent);
54 virtual size_t removeAlarm(
class Event *pEvent,
bool bRetZero);
55 virtual size_t getYear();
56 virtual uint8_t getMonth();
57 virtual uint8_t getDayOfMonth();
58 virtual uint8_t getDayOfWeek();
59 virtual uint8_t getHour();
60 virtual uint8_t getMinute();
61 virtual uint8_t getSecond();
62 virtual uint64_t getNanosecond();
63 virtual uint64_t getTickCount();
64 virtual uint64_t getTickCountNano();
70 virtual void synchronise(
bool tohw =
false);
93 virtual bool irq(irq_id_t number, InterruptState &state);
129 : m_pEvent(pEvent), m_Time(time), m_pThread(pThread)
132 class Event *m_pEvent;
#define INITIALISATION_ONLY
__pedigree_hosted::timer_t m_Timer
static HostedTimer m_Instance
Thread & operator=(const Thread &)