Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Mar 2004 10:28:03 +1030
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        freebsd-hackers@freebsd.org
Cc:        thefly <thefly@acaro.org>
Subject:   Re: bus_alloc_resource() returns NULL, but why?
Message-ID:  <200403181028.03543.doconnor@gsoft.com.au>
In-Reply-To: <20040316150321.GA4900@tyler>
References:  <20040316150321.GA4900@tyler>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 17 Mar 2004 01:33, thefly wrote:
> Hi, i'm currently porting QuanCom PWDOG1 Watchdog card to FreeBSD, (you
> can find the current code at http://chiakotay.nexlab.it/acaro/pwdog.c).
> ...
> but the problem is that bus_alloc_resource() returns NULL. I don't have
> a clue about WHY it should. It's running on: FreeBSD 5.2.1-RELEASE with
> GENERIC kernel in a dual pentium 200MMX.

It will return NULL if the resource allocation failed.

I think rid == 0 is what is incorrect here, either that or the card doesn't do 
IO (might be SYS_RES_MEMORY instead), try rid = 0x10.

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 9A8C 569F 685A D928 5140  AE4B 319B 41F4 5D17 FDD5



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403181028.03543.doconnor>