📄 hba_timer.h
字号:
#ifndef __HBA_TIMER_H__#define __HBA_TIMER_H__#include "hba_header.h"#define HBA_REQ_TIMER_AFTER_RESET 15#define HBA_REQ_TIMER 10#define HBA_REQ_TIMER_IOCTL (HBA_REQ_TIMER_AFTER_RESET+3)enum _tag_hba_msg_state{ MSG_QUEUE_IDLE=0, MSG_QUEUE_PROC};struct mv_hba_msg { MV_PVOID data; MV_U32 msg; MV_U32 param; struct list_head msg_list;};#define MSG_QUEUE_DEPTH 32struct mv_hba_msg_queue { spinlock_t lock; struct list_head free; struct list_head tasks; struct mv_hba_msg msgs[MSG_QUEUE_DEPTH];};enum { HBA_TIMER_IDLE = 0, HBA_TIMER_RUNNING, HBA_TIMER_LEAVING,};void hba_house_keeper_init(void);void hba_house_keeper_run(void);void hba_house_keeper_exit(void);void hba_msg_insert(void *data, unsigned int msg, unsigned int param);#endif /* __HBA_TIMER_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -