From 7552e4c613680e98ba7718346902075d6f00ae4a Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Thu, 13 May 2004 17:04:37 +0000 Subject: [PATCH] fix for need for multiple superios with same type --- util/config/NLBConfig.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/util/config/NLBConfig.py b/util/config/NLBConfig.py index 1e924b5142..aaacb5bc40 100644 --- a/util/config/NLBConfig.py +++ b/util/config/NLBConfig.py @@ -393,12 +393,14 @@ def nsuperio(dir, superio_commands): decl = ''; decl = "extern struct superio_control superio_" decl = decl + superio_decl_name + "_control; \n" - decl = decl + "struct superio superio_" + superio_decl_name + decl = decl + "struct superio superio_" + "%s_%d" %(superio_decl_name, + numsuperio) decl = decl + "= { " decl = decl + "&superio_" + superio_decl_name+ "_control" decl = decl + superio_cmds + "};\n" superio_decls = superio_decls + decl; - superio_devices.append("&superio_" + superio_decl_name); + superio_devices.append("&superio_" + "%s_%d" % (superio_decl_name, + numsuperio)); # note that we're using the new interface option(dir, "USE_NEW_SUPERIO_INTERFACE=1") numsuperio = numsuperio + 1