Date: Wed, 12 Jul 2000 22:01:32 -0400 (EDT) From: Isaac Waldron <iwaldron@lr.net> To: stable@FreeBSD.org Subject: Minor patch for /usr/src/sys/isa/pnpparse.c Message-ID: <200007130201.WAA00739@waldron.house>
next in thread | raw e-mail | index | archive | help
My Soundblaster AWE64 causes two warnings to be emitted at boot time. The
first has to do with the device wanting too many different resources, and the
message printed is "too many dependant configs." I fixed this simply by
increasing the value of MAXDEP in pnpparse.c from 8 to 16. The other warning
I get is due to the PnP code receiving a vendor tag from the device. This was
easy to fix as well, I simply added a case statement to the existing switch in
pnpparse.c to handle the predefined PNP_TAG_VENDOR. I defined it as a no-op,
this way, the original behavior is held consistent. I'm not sure if these are
truly correct fixes, but they have not caused any trouble on my machine.
Output from `uname -a` and the patch are included below.
Isaac Waldron
waldroni@lr.net
uname -a output:
FreeBSD yota.waldron.house 4.0-STABLE FreeBSD 4.0-STABLE #1: Wed Jul 12 10:48:28 EDT 2000 iwaldron@yota.waldron.house:/usr/src/sys/compile/YOTA i386
and here's the patch:
--- pnpparse.c Wed Jul 12 11:34:56 2000
+++ pnpparse.c.new Wed Jul 12 11:41:05 2000
@@ -36,7 +36,7 @@
#include <isa/pnpreg.h>
#include <isa/pnpvar.h>
-#define MAXDEP 8
+#define MAXDEP 16
#define I16(p) ((p)[0] + ((p)[1] << 8))
#define I32(p) (I16(p) + (I16(p+2) << 16))
@@ -214,6 +214,13 @@
= resinfo[2];
config->ic_port[config->ic_nport].ir_align = 1;
config->ic_nport++;
+ break;
+
+ case PNP_TAG_VENDOR:
+ if (bootverbose) {
+ printf("%s: vendor tag received.\n",
+ pnp_eisaformat(id));
+ }
break;
case PNP_TAG_END:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007130201.WAA00739>
