Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Jan 2002 23:01:04 +0100 (CET)
From:      Michael Reifenberger <root@nihil.plaut.de>
To:        "Matthew N. Dodd" <winter@jurai.net>
Cc:        FreeBSD-Current <current@FreeBSD.ORG>
Subject:   Re: Why does bus_alloc_resource fail for sound and PCIC?
Message-ID:  <20020105225253.T413-100000@nihil>
In-Reply-To: <Pine.BSF.4.21.0201051525530.1016-100000@sasami.jurai.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 5 Jan 2002, Matthew N. Dodd wrote:
...
> While the PCI bus code should enable these resources, only the driver
> really knows if a PCI map will be used.  It should enable it.  See
> pci_enable_io()
Am I wrong or is:

    pci_enable_busmaster(dev);
    pci_enable_io(dev, SYS_RES_IOPORT);
    pci_enable_io(dev, SYS_RES_MEMORY);

(which I additionally added now) equivalent to (the allready existing):

    data = pci_read_config(dev, PCIR_COMMAND, 2);
    data |= (PCIM_CMD_PORTEN | PCIM_CMD_MEMEN | PCIM_CMD_BUSMASTEREN);
    pci_write_config(dev, PCIR_COMMAND, data, 2);

anyway neither one seems to do the job.
bus_alloc_resource() still fails...

Any tips to analyse/debug 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?20020105225253.T413-100000>