Subject: Re: isapnp modem
To: Laine Stump <laine@MorningStar.Com>
From: Not for internal consumption <>
List: current-users
Date: 01/14/1998 19:26:42
I think it's time to put a lookup table and loop of sorts into the
isapnp stuff as the below solution is starting to look a bit unwieldy.

Laine Stump sez:
 * I have a Philips EasyConnect ISA bus PnP mode ($60 for 56kflex!) which I
 * was using in a Win95 test machine and decided to try on NetBSD.
 * I plugged it into a machine that had its BIOS PnP option set off. When I
 * boot with the standard GENERIC kernel, it reports com2 on isa0 at 0x3e8
 * irq5, then later on the PnP message comes up about an "unrecognized
 * device "SMM00C1", but with a different address and irq (2e8, irq 11)
 * than was detected earlier.
 * When I turn on PnP in the BIOS, only the latter message is reported, but
 * with 3e8 irq 5.
 * So I went looking in the kernel source and found com_isapnp.c. I added a
 * compare for "SMM00C1" in com_isapnp_match():
 * 	if (strcmp(ipa->ipa_devlogic, "ROK0010") &&
 * +++	    strcmp(ipa->ipa_devlogic, "SMM00C1") && 
 * 	    strcmp(ipa->ipa_devlogic, "BRI1400") && /* Boca 33.6 PnP */
 * 	    strcmp(ipa->ipa_devcompat, "PNP0500") && /* generic 8250/16450 */
 * 	    strcmp(ipa->ipa_devcompat, "PNP0501")) /* generic 16550A */
 * 		return (0);
 * 	return (1);

# On the 'Net:  Why are more and more fourth-level wizard(-wannabe)s trying
# to invoke ninth-level magic instead of taking the time to climb the other
# (quite essential) thirteen or fourteen levels so they can do this properly?
# Don't they know their console will crumble into dust if they do that?