#include <pci-bother.h>
#include <output.h>
#include <minilib.h>
+#include <lwip/init.h>
#include "net.h"
#include "../aseg/keyboard.h"
outputf("NIC: Command: 0x%x, %d bytes", p->command, dl);
- if (p->command == 0x42)
- {
+ switch (p->command) {
+ case 0x42:
for (i = 0; i < dl; i++)
kbd_inject_key(p->data[i]);
+ break;
+ case 0xFE:
+ outb(0xCF9, 0x4); /* Reboot */
+ break;
}
}
/* Required for DMA to work. :( */
smram_tseg_set_state(SMRAM_TSEG_OPEN);
pci_probe_driver(a3c90x_driver);
+ lwip_init();
}