Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Jan 2002 13:21:02 +0100 (CET)
From:      Michael Reifenberger <root@nihil.plaut.de>
To:        FreeBSD-Current <current@freebsd.org>
Subject:   Why does bus_alloc_resource fail for sound and PCIC?
Message-ID:  <20020105130553.V431-100000@nihil>

next in thread | raw e-mail | index | archive | help
Hi,
here are some details for my previous message (A30p) (where the detailed
dmesg output was attached):

In the case of the snd_ich driver it seems that the following code fails:
...
foo = bus_alloc_resource(dev,SYS_RES_IOPORT,0x10,0,~0,1,RF_ACTIVE);
bar = bus_alloc_resource(dev,SYS_RES_IOPORT,0x14,0,~0,1,RF_ACTIVE);
...

foo and bar are 0 but the bus-probe-code earlier prints:
...
found-> vendor=0x8086, dev=0x2485, revid=0x01
        bus=0, slot=31, func=5
        class=04-01-00, hdrtype=0x00, mfdev=0
        intpin=b, irq=11
        map[10]: type 4, range 32, base 00002400, size  8, port disabled
        map[14]: type 4, range 32, base 00002000, size  7, port disabled
...

Which I interpret as:
There are two ioports (type 4) which are disabled ( should get enabled
using RF_ACTIVE flag)...

Where is the problem.

Bye!
----
Michael Reifenberger
^.*Plaut.*$, IT, R/3 Basis, GPS


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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