]> Joshua Wise's Git repositories - netwatch.git/blob - aseg/firstrun.c
a606d2bd2b97d9c43337ecbaa43d527d9b4d3133
[netwatch.git] / aseg / firstrun.c
1 #include <io.h>
2 #include <smi.h>
3 #include <pci.h>
4 #include "vga-overlay.h"
5
6 void __firstrun_start() {
7         dologf("NetWatch running");
8
9         /* Try really hard to shut up USB_LEGKEY. */
10         pci_write16(0, 31, 2, 0xC0, pci_read16(0, 31, 2, 0xC0));
11         pci_write16(0, 31, 2, 0xC0, 0);
12         pci_write16(0, 31, 4, 0xC0, pci_read16(0, 31, 4, 0xC0));
13         pci_write16(0, 31, 4, 0xC0, 0);
14
15         /* Turn on the SMIs we want */
16         outb(0x830, inb(0x830) | 0x40);
17         smi_enable();
18 }
19
This page took 0.020325 seconds and 2 git commands to generate.