]>
Commit | Line | Data |
---|---|---|
e5d94488 | 1 | #include <io.h> |
85bc8ca6 | 2 | #include <smi.h> |
36ce375d | 3 | #include <pci.h> |
d71d9872 | 4 | #include "vga-overlay.h" |
e5d94488 JP |
5 | |
6 | void __firstrun_start() { | |
d71d9872 | 7 | dologf("NetWatch running"); |
e5d94488 JP |
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 */ | |
85bc8ca6 JW |
16 | outb(0x830, inb(0x830) | 0x40); |
17 | smi_enable(); | |
e5d94488 JP |
18 | } |
19 |