X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/c54a4356fd904634dae9b942fb3a587cdcb860b9..f2da68c5992fe2c29cced7e51709d0a45e0bb3b4:/include/smi.h diff --git a/include/smi.h b/include/smi.h index c669fc2..69fd7ef 100644 --- a/include/smi.h +++ b/include/smi.h @@ -7,4 +7,21 @@ extern void smi_enable(); extern void smi_poll(); extern unsigned long smi_status(); /* Architecturally defined; for debugging only. */ +typedef enum { + SMI_EVENT_FAST_TIMER = 0, + SMI_EVENT_DEVTRAP_KBC, + SMI_EVENT_GBL_RLS, + SMI_EVENT_MAX +} smi_event_t; + + +typedef void (*smi_handler_t)(smi_event_t); + +#define SMI_HANDLER_NONE ((smi_handler_t)0) +#define SMI_HANDLER_IGNORE ((smi_handler_t)-1) + +extern int smi_register_handler(smi_event_t ev, smi_handler_t hnd); +extern int smi_enable_event(smi_event_t ev); +extern int smi_disable_event(smi_event_t ev); + #endif