From owner-freebsd-stable Wed Jul 12 19: 2:18 2000 Delivered-To: freebsd-stable@freebsd.org Received: from unix.worldpath.net (unix.worldpath.net [206.152.180.10]) by hub.freebsd.org (Postfix) with ESMTP id E429837C02B for ; Wed, 12 Jul 2000 19:02:14 -0700 (PDT) (envelope-from iwaldron@lr.net) Received: from waldron.house (pm41-112-146.worldpath.net [209.187.112.146]) by unix.worldpath.net (8.9.3/8.9.3(WPI)) with ESMTP id WAA29869 for ; Wed, 12 Jul 2000 22:02:11 -0400 (EDT) Received: (from iwaldron@localhost) by waldron.house (8.9.3/8.9.3) id WAA00739 for stable@FreeBSD.org; Wed, 12 Jul 2000 22:01:32 -0400 (EDT) (envelope-from iwaldron) Date: Wed, 12 Jul 2000 22:01:32 -0400 (EDT) From: Isaac Waldron Message-Id: <200007130201.WAA00739@waldron.house> To: stable@FreeBSD.org Subject: Minor patch for /usr/src/sys/isa/pnpparse.c Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 #include -#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