Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Jan 2002 23:32:05 +0100 (CET)
From:      Michael Reifenberger <root@nihil.plaut.de>
To:        "M. Warner Losh" <imp@village.org>
Cc:        FreeBSD-Current <current@freebsd.org>, "Matthew N. Dodd" <winter@jurai.net>
Subject:   Re: Why does bus_alloc_resource fail for sound and PCIC?
Message-ID:  <20020105232557.S706-100000@nihil>

next in thread | raw e-mail | index | archive | help
Hi,
thanks for the tip. "options PCI_ENABLE_IO_MODES" did the trick (for snd_ich).
But why?
Where is PCI_ENABLE_IO_MODES different from:

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

or

    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);

which allready existed in snd_ich ?!?

BTW: In the case of the PCIC I still get:
pcib2: <PCI-PCI bridge> at device 30.0 on pci0
pci2: <PCI bus> on pcib2
pccbb0: <RF5C478 PCI-CardBus Bridge> mem 0x50000000-0x50000fff irq 11 at device
0.0 on pci2
pcib2: device pccbb0 requested unsupported memory range 0x50000000-0x50000fff
(decoding 0xc0200000-0xcfffffff, 0xe8000000-0xefffffff)
pccbb0: Could not map register memory
device_probe_and_attach: pccbb0 attach returned 12
pccbb0: <RF5C478 PCI-CardBus Bridge> mem 0x50100000-0x50100fff irq 11 at device
0.1 on pci2
pcib2: device pccbb0 requested unsupported memory range 0x50100000-0x50100fff
(decoding 0xc0200000-0xcfffffff, 0xe8000000-0xefffffff)
pccbb0: Could not map register memory
device_probe_and_attach: pccbb0 attach returned 12

...

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?20020105232557.S706-100000>