From owner-freebsd-current Sat Jan 5 13:39:36 2002 Delivered-To: freebsd-current@freebsd.org Received: from ns.plaut.de (ns.plaut.de [194.99.75.166]) by hub.freebsd.org (Postfix) with ESMTP id 8BCD237B431 for ; Sat, 5 Jan 2002 13:39:01 -0800 (PST) Received: (from uucp@localhost) by ns.plaut.de (8.9.3/8.9.3) with UUCP id WAA32292; Sat, 5 Jan 2002 22:37:56 +0100 (CET) (envelope-from root@nihil.plaut.de) Received: from localhost (root@localhost) by nihil.plaut.de (8.11.3/8.8.8) with ESMTP id g05MW5v00712; Sat, 5 Jan 2002 23:32:05 +0100 (CET) (envelope-from root@nihil) Date: Sat, 5 Jan 2002 23:32:05 +0100 (CET) From: Michael Reifenberger To: "M. Warner Losh" Cc: FreeBSD-Current , "Matthew N. Dodd" Subject: Re: Why does bus_alloc_resource fail for sound and PCIC? Message-ID: <20020105232557.S706-100000@nihil> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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: at device 30.0 on pci0 pci2: on pcib2 pccbb0: 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: 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