Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jun 2006 14:15:54 +0200
From:      "Attilio Rao" <attilio@freebsd.org>
To:        "hongz@promisechina.com" <hongz@promisechina.com>,  freebsd-hackers@freebsd.org
Subject:   Re: Help:why bus resource shortage?
Message-ID:  <3bbf2fe10606150515p58bc62c3p3edc58495b15a22f@mail.gmail.com>
In-Reply-To: <5769599057805718758@unknownmsgid>
References:  <5769599057805718758@unknownmsgid>

next in thread | previous in thread | raw e-mail | index | archive | help
2006/6/15, hongz@promisechina.com <hongz@promisechina.com>:
> Hi guys:
>
>
>
> I failed to get the pci bus resource after the driver is loaded (sc->r_mem
> is NULL after bus_alloc_resource_any is called). Is it because bus resources
> have been consumed by other drivers? Or other something happened? Please
> help me on this!
>
>
>
> Thanks!
>
>
>
> Hong
>
>
>
> Notes:
>
> /* get resources */
>
> rid = 0x10;
>
> sc->r_mem = bus_alloc_resource_any(sc->dev, SYS_RES_MEMORY, &rid,
> RF_ACTIVE);
>
> if (!sc->r_mem) return ENOMEM;
>
>
>
> The pci resources on our cards:
>
> shasta0: <Promise FastTrak 4310/579/779 Driver> port 0x2400-0x247f,
> 0x2000-0x20ff mem 0xe9021000-0xe9021fff, 0xe9000000-0xe901ffff irq 17 at
> device 5.0 on pci2

I suspect your PCI BAR pointer is wrong.
Are you sure about its value?

Attilio


-- 
Peace can only be achieved by understanding - A. Einstein



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