]> Joshua Wise's Git repositories - netwatch.git/blame - aseg/firstrun.c
Move dolog to output
[netwatch.git] / aseg / firstrun.c
CommitLineData
e5d94488 1#include <io.h>
85bc8ca6 2#include <smi.h>
36ce375d 3#include <pci.h>
4fb81ad0 4#include <reg-82801b.h>
d71d9872 5#include "vga-overlay.h"
e5d94488
JP
6
7void __firstrun_start() {
d71d9872 8 dologf("NetWatch running");
e5d94488
JP
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 */
4fb81ad0
JW
17 outb(0x830, inb(0x830) | ICH2_SMI_EN_SWSMI_TMR_EN);
18 outb(0x848, ICH2_DEVTRAP_EN_KBC_TRP_EN);
85bc8ca6 19 smi_enable();
e5d94488
JP
20}
21
This page took 0.025285 seconds and 4 git commands to generate.