Subject: kern/10388: isapnp pcic should allow memory size to be changed
To: None <gnats-bugs@gnats.netbsd.org>
From: None <blymn@baesystems.com.au>
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
>Closed-Date:
>Last-Modified:
>Originator:     Brett Lymn (Master of the Siren)
>Release:        NetBSD 20000505
>Organization:
Brett Lymn
>Environment:
	
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


>Description:
	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.

>How-To-Repeat:
	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.

>Fix:
	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:

#ifndef ISAPNP_PCIC_MEMSIZE
#define ISAPNP_PCIC_MEMSIZE 0x4000
#endif
....
...
	msize = ISAPNP_PCIC_MEMSIZE;


>Release-Note:
>Audit-Trail:
>Unformatted: