summaryrefslogtreecommitdiff
path: root/util/superiotool/superiotool.c
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2009-03-11 14:48:20 +0000
committerStefan Reinauer <stepan@openbios.org>2009-03-11 14:48:20 +0000
commit6df0c62b688d1c4157bc151f98a2feeeca79fee8 (patch)
treef7b869d941bcd34e1ae31d0556b1a1b16e6d9090 /util/superiotool/superiotool.c
parent34b1d4ef376358661265fbdb64553332aa952e29 (diff)
downloadcoreboot-6df0c62b688d1c4157bc151f98a2feeeca79fee8.tar.xz
Add support for the LPC47M182 to superiotool
Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Joseph Smith <joe@settoplinux.org> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3990 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
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)