]> Joshua Wise's Git repositories - netwatch.git/blobdiff - ich2/smi.c
More churn moving files around.
[netwatch.git] / ich2 / smi.c
diff --git a/ich2/smi.c b/ich2/smi.c
deleted file mode 100644 (file)
index 59f14b6..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-#include <smi.h>
-#include <pci.h>
-#include <io.h>
-#include <stdint.h>
-
-uint16_t _get_PMBASE()
-{
-       return pci_read32(0, 0, 0, 0x40) & 0xFF80;
-}
-
-void smi_disable()
-{
-       unsigned short smi_en = _get_PMBASE() + 0x30;
-       outl(smi_en, inl(smi_en) & ~0x0001);
-}
-
-void smi_enable()
-{
-       unsigned short smi_en = _get_PMBASE() + 0x30;
-       outl(smi_en, inl(smi_en) | 0x0001);
-}
-
-unsigned long smi_status()
-{
-       unsigned short smi_sts = _get_PMBASE() + 0x34;
-       return inl(smi_sts);
-}
This page took 0.022543 seconds and 4 git commands to generate.