Re: Why does bus_alloc_resource fail for sound and PCIC?

2002-01-06 Thread M. Warner Losh
In message: 20020105232557.S706-10@nihil Michael Reifenberger [EMAIL PROTECTED] writes: : 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 : :

Re: Why does bus_alloc_resource fail for sound and PCIC?

2002-01-06 Thread Michael Reifenberger
On Sun, 6 Jan 2002, M. Warner Losh wrote: ... : pci2: PCI bus on pcib2 : pccbb0: RF5C478 PCI-CardBus Bridge mem 0x5000-0x5fff irq 11 at device : 0.0 on pci2 : pcib2: device pccbb0 requested unsupported memory range 0x5000-0x5fff : (decoding 0xc020-0xcfff,

Re: Why does bus_alloc_resource fail for sound and PCIC?

2002-01-05 Thread Matthew N. Dodd
On Sat, 5 Jan 2002, Michael Reifenberger wrote: map[10]: type 4, range 32, base 2400, size 8, port disabled map[14]: type 4, range 32, base 2000, size 7, port disabled ... Which I interpret as: There are two ioports (type 4) which are disabled ( should get enabled

Re: Why does bus_alloc_resource fail for sound and PCIC?

2002-01-05 Thread M. Warner Losh
You might want to try and enable PCI_ENABLE_IO_MODES in your kernel. Warner To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message

Re: Why does bus_alloc_resource fail for sound and PCIC?

2002-01-05 Thread Michael Reifenberger
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);

Re: Why does bus_alloc_resource fail for sound and PCIC?

2002-01-05 Thread Michael Reifenberger
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,