3 void __firstrun_start() {
5 puts("Current USB state is: ");
6 puthex(pci_read16(0, 31, 2, 0xC0));
8 puthex(pci_read16(0, 31, 4, 0xC0));
10 puts("Current SMI state is: ");
13 puts("Current SMRAMC state is: ");
14 puthex(pci_read8(0, 0, 0, 0x70));
18 /* Try really hard to shut up USB_LEGKEY. */
19 pci_write16(0, 31, 2, 0xC0, pci_read16(0, 31, 2, 0xC0));
20 pci_write16(0, 31, 2, 0xC0, 0);
21 pci_write16(0, 31, 4, 0xC0, pci_read16(0, 31, 4, 0xC0));
22 pci_write16(0, 31, 4, 0xC0, 0);
24 /* Turn on the SMIs we want */
25 outb(0x830, inb(0x830) | 0x41);