Subject: kern/10388: isapnp pcic should allow memory size to be changed
To: None <>
From: None <>
List: netbsd-bugs
Date: 06/18/2000 04:57:30
>Number:         10388
>Category:       kern
>Synopsis:       There is no way to change isapnp pcic memory size without code edit.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 18 04:58:01 PDT 2000
>Originator:     Brett Lymn (Master of the Siren)
>Release:        NetBSD 20000505
Brett Lymn
System: NetBSD siren 1.4X NetBSD 1.4X (SIREN) #23: Sun Jun 18 15:58:12 CST 2000 toor@siren:/usr/src/sys/arch/i386/compile/SIREN i386

	The current isapnp pcic driver will not allow the memory size
to be configured by the user.  The only way to configure the memory size
is to edit the /usr/src/sys/dev/isapnp/i82365_isapnp.c file and change
the msize variable in pcic_isapnp_attach.  I found the attach of my wavelan
card was silently failing because the memory size was too small.  When I
changed msize to be 0x100000 the wavelan worked as did an accton en2212
ethernet card.

	Install a pnp based ISA pcmcia adapter and configure the kernel to use
it.  Attempt to use a wavelan or, I guess, a Webgear Aviator and it will fail.

	The best thing to do would be to change the msize assignement to be
a set by a #define'd symbol that can be overridden by an options line in
the kernel config file.  i.e. in i82365_isapnp.c have:

#define ISAPNP_PCIC_MEMSIZE 0x4000