Subject: Re: newbie ethernet driver question
To: =?iso-8859-1?Q?Jarom=EDr_Dolecek?= <jdolecek@netbsd.org>
From: Charles M. Hannum <root@ihack.net>
List: tech-kern
Date: 02/15/2001 15:55:54
On Fri, Feb 16, 2001 at 12:43:20AM +0100, Jaromír Dolecek wrote:
>
> I'm attempting to write a driver for one of MCA ethernet cards I
> have.  The current problem I have is that I cannot bus_space_map()
> card's memory - the call fails with EAGAIN. Since ~same thing which
> I try to do at the moment is done on dev/mca/if_tr_mca.c (which is
> reported to work) I wonder where could be an error.
> 
> The call is like this:
> 
> 	if ((err = bus_space_map(ma->ma_memt, pbram_addr, IETH_PBUF_SIZE, 0, &memh))) {
> 	printf("err!\n");
> 	return;
>  }

There are only two places in this path that can return EAGAIN, both in
subr_extent.c:extent_alloc_subregion1().  It should be easy to figure
out which one is failing.