12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- #pragma once
- #include <common/glib.h>
- #include "HPET/HPET.h"
- #include "rtc/rtc.h"
- uint64_t volatile timer_jiffies = 0;
- void timer_init();
- void do_timer_softirq(void* data);
- struct timer_func_list_t
- {
- struct List list;
- uint64_t expire_jiffies;
- void (*func)(void* data);
- void* data;
- }timer_func_head;
- void timer_func_init(struct timer_func_list_t * timer_func, void (*func)(void*data), void*data,uint64_t expire_ms);
- void timer_func_add(struct timer_func_list_t* timer_func);
- void timer_func_del(struct timer_func_list_t* timer_func);
|