]> Joshua Wise's Git repositories - netwatch.git/blobdiff - netwatch/firstrun.c
First pass of 410watch UI code.
[netwatch.git] / netwatch / firstrun.c
index efa060030729d77130f18bf0659f5678c6e97c5e..e561c4f48a6ebebbe1d2f10366243eb97904a86a 100644 (file)
@@ -1,3 +1,13 @@
+/* firstrun.c
+ * First-run handler
+ * NetWatch system management mode administration console
+ *
+ * Copyright (c) 2008 Jacob Potter and Joshua Wise.  All rights reserved.
+ * This program is free software; you can redistribute and/or modify it under
+ * the terms found in the file LICENSE in the root of this source tree.
+ *
+ */
+
 #include <io.h>
 #include <smi.h>
 #include <pci.h>
@@ -14,6 +24,7 @@ extern int _bss, _bssend;
 extern void timer_handler(smi_event_t ev);
 extern void kbc_handler(smi_event_t ev);
 extern void gbl_rls_handler(smi_event_t ev);
+extern void cs410_pwrbtn_handler(smi_event_t ev);
 
 extern pci_driver_t *drivers[];
 
@@ -59,6 +70,9 @@ void smi_init() {
        
        smi_register_handler(SMI_EVENT_GBL_RLS, gbl_rls_handler);
        smi_enable_event(SMI_EVENT_GBL_RLS);
+       
+       smi_register_handler(SMI_EVENT_PWRBTN, cs410_pwrbtn_handler);
+       smi_enable_event(SMI_EVENT_PWRBTN);
 
        smi_enable();
        
This page took 0.025379 seconds and 4 git commands to generate.