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