summaryrefslogtreecommitdiff
path: root/util/superiotool/superiotool.h
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2007-09-20 23:57:44 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2007-09-20 23:57:44 +0000
commiteddc473ce0753bfd8aa55cc19bcec991866694fd (patch)
treec710be3d289d2d649572bf59cc429e2edc44cddb /util/superiotool/superiotool.h
parentb4db2209f9e01e1a013cc33356bceec57c3a3c80 (diff)
downloadcoreboot-eddc473ce0753bfd8aa55cc19bcec991866694fd.tar.xz
Add -D / --dump-readable option which prints the Super I/O register
contents in human-readable form (e.g. "COM1 enabled" etc.) instead of the hex-table format from -d / --dump. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2795 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/superiotool/superiotool.h')
-rw-r--r--util/superiotool/superiotool.h23
1 files changed, 11 insertions, 12 deletions
diff --git a/util/superiotool/superiotool.h b/util/superiotool/superiotool.h
index 9b82b4cf9d..493c841058 100644
--- a/util/superiotool/superiotool.h
+++ b/util/superiotool/superiotool.h
@@ -31,11 +31,12 @@
#define SUPERIOTOOL_VERSION "0.1"
-#define USAGE "Usage: superiotool [-d] [-V] [-v] [-h]\n\n\
- -d | --dump Dump Super I/O registers\n\
- -V | --verbose Verbose mode\n\
- -v | --version Show the superiotool version\n\
- -h | --help Show a short help text\n\n\
+#define USAGE "Usage: superiotool [-d] [-D] [-V] [-v] [-h]\n\n\
+ -d | --dump Dump Super I/O registers\n\
+ -D | --dump-readable Dump Super I/O registers in human-readable format\n\
+ -V | --verbose Verbose mode\n\
+ -v | --version Show the superiotool version\n\
+ -h | --help Show a short help text\n\n\
Per default (no options) superiotool will just probe for a Super I/O\n\
and print its vendor, name, ID, version, and config port.\n"
@@ -54,14 +55,14 @@ and print its vendor, name, ID, version, and config port.\n"
#define MAXNUMPORTS (2 + 1) /* Maximum number of Super I/O ports */
/* Command line parameters. */
-extern int dump, verbose;
+extern int dump, dump_readable, verbose;
struct superio_registers {
- int32_t superio_id; /* Signed, as we need EOT. */
- const char name[MAXNAMELEN];
+ int32_t superio_id; /* Signed, as we need EOT. */
+ const char name[MAXNAMELEN]; /* Super I/O name */
struct {
int ldn;
- const char *name;
+ const char *name; /* LDN name */
int idx[IDXSIZE];
int def[IDXSIZE];
} ldn[LDNSIZE];
@@ -77,18 +78,16 @@ const char *get_superio_name(const struct superio_registers reg_table[],
uint16_t id);
void dump_superio(const char *name, const struct superio_registers reg_table[],
uint16_t port, uint16_t id);
+void dump_superio_readable(uint16_t port);
void no_superio_found(uint16_t port);
/* fintek.c */
-void dump_fintek(uint16_t port, uint16_t did);
void probe_idregs_fintek(uint16_t port);
/* ite.c */
-void dump_ite(uint16_t port, uint16_t id);
void probe_idregs_ite(uint16_t port);
/* nsc.c */
-void dump_ns8374(uint16_t port);
void probe_idregs_simple(uint16_t port);
/* smsc.c */