]> Joshua Wise's Git repositories - netwatch.git/blob - include/smi.h
670dc63eaf7968e501bb8a9bee2384ae2020e1f7
[netwatch.git] / include / smi.h
1 #ifndef SMI_H
2 #define SMI_H
3
4 extern void smi_disable();      /* akin to cli / sti */
5 extern void smi_enable();
6
7 extern void smi_poll();
8 extern unsigned long smi_status();      /* Architecturally defined; for debugging only. */
9
10 typedef enum {
11         SMI_EVENT_FAST_TIMER = 0,
12         SMI_EVENT_MAX
13 } smi_event_t;
14
15
16 typedef void (*smi_handler_t)(smi_event_t);
17
18 #define SMI_HANDLER_NONE        ((smi_handler_t)0)
19 #define SMI_HANDLER_IGNORE      ((smi_handler_t)-1)
20
21 extern int smi_register_handler(smi_event_t ev, smi_handler_t hnd);
22 extern int smi_enable_event(smi_event_t ev);
23 extern int smi_disable_event(smi_event_t ev);
24
25 #endif
This page took 0.019347 seconds and 2 git commands to generate.