bus_alloc_resource fails for AVM ISDN B1 card
Joerg Sonnenberger
joerg at britannica.bec.de
Thu Jan 27 12:15:40 PST 2005
On Thu, Jan 27, 2005 at 08:47:08PM +0100, Joerg Anslik wrote:
> So the card itself is recognized, but the "bus_alloc_resource()" call
> following the detection fails (from net/i4b/capi/iavc_pci.c):
>
> [...]
> /* use the memory mapped DMA controller */
>
> sc->sc_resources.mem_rid = 0x10;
>
> if (!(sc->sc_resources.mem =
> bus_alloc_resource(dev, SYS_RES_MEMORY,
> &sc->sc_resources.mem_rid,
> 0UL, ~0UL, 1, RF_ACTIVE))) {
> printf("iavc%d: can't allocate memory region\n", unit);
> return(ENXIO);
> }
> [...]
Look at the output of boot -v for the slot & function of the device,
the map entry tells you which bars are available for the device.
Joerg
More information about the Users
mailing list