NetBSD Problem Report #10388

Received: (qmail 20391 invoked from network); 18 Jun 2000 11:57:26 -0000
Message-Id: <200006181156.VAA03300@siren.baea.com.au>
Date: Sun, 18 Jun 2000 21:26:49 +0930 (CST)
From: blymn@baesystems.com.au
Reply-To: blymn@baesystems.com.au
To: gnats-bugs@gnats.netbsd.org
Subject: isapnp pcic should allow memory size to be changed
X-Send-Pr-Version: 3.95

>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 11:58:01 +0000 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:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.