summaryrefslogtreecommitdiff
path: root/util/superiotool/superiotool.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/superiotool/superiotool.c')
-rw-r--r--util/superiotool/superiotool.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/util/superiotool/superiotool.c b/util/superiotool/superiotool.c
index 9d3840f1f7..583a974fd4 100644
--- a/util/superiotool/superiotool.c
+++ b/util/superiotool/superiotool.c
@@ -157,6 +157,20 @@ void dump_superio(const char *vendor,
}
}
+void dump_io(uint16_t iobase, uint16_t length)
+{
+ uint16_t i;
+
+ printf("Dumping %d IO mapped registers at base 0x%04x:\n",
+ length, iobase);
+ for (i=0; i<length; i++)
+ printf ("%02x ", i);
+ printf("\n");
+ for (i=0; i<length; i++)
+ printf ("%02x ", INB(iobase +i));
+ printf("\n");
+}
+
void probing_for(const char *vendor, const char *info, uint16_t port)
{
if (!verbose)