DragonFly BSD
DragonFly users List (threaded) for 2005-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: bus_alloc_resource fails for AVM ISDN B1 card


From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxx>
Date: Thu, 27 Jan 2005 21:13:52 +0100
Mail-followup-to: users@crater.dragonflybsd.org

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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]