summaryrefslogtreecommitdiff
path: root/util/superiotool/ite.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2007-09-16 18:17:44 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2007-09-16 18:17:44 +0000
commit4cb7e717327add9165e30cca537225044bdc0fdd (patch)
treee5cba99eae57db68ab303b761a0e42a85c8a78ca /util/superiotool/ite.c
parent0120e1a3d8ebb450aed5016b4653ce4a7524295e (diff)
Make 'struct superio_registers' globally available, pretty much
all Super I/Os can (and should!) use this (trivial). 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@2778 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/superiotool/ite.c')
-rw-r--r--util/superiotool/ite.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/util/superiotool/ite.c b/util/superiotool/ite.c
index ca956be95d..314b8df16e 100644
--- a/util/superiotool/ite.c
+++ b/util/superiotool/ite.c
@@ -21,25 +21,7 @@
#include "superiotool.h"
-#define EOT -1 /* End Of Table */
-#define NOLDN -2 /* NO LDN needed */
-#define NANA -3 /* Not Available */
-#define MAXNAMELEN 20 /* Maximum Name Length */
-#define MAXLDN 0xa /* Biggest LDN */
-#define LDNSIZE (MAXLDN + 3) /* Biggest LDN + 0 + NOLDN + EOT */
-#define MAXNUMIDX 70 /* Maximum number of indexes */
-#define IDXSIZE (MAXNUMIDX + 1)
-
-const static struct ite_registers {
- /* Yes, superio_id should be unsigned, but EOT has to be negative. */
- signed short superio_id;
- const char name[MAXNAMELEN];
- struct ite_ldnidx {
- signed short ldn;
- signed short idx[IDXSIZE];
- signed short def[IDXSIZE];
- } ldn[LDNSIZE];
-} ite_reg_table[] = {
+const static struct superio_registers ite_reg_table[] = {
{0x8702, "IT8702", {
{EOT}}},
{0x8705, "IT8705 or IT8700", {