From owner-freebsd-current Sat Jan 5 13: 8:49 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 9448D37B41B for ; Sat, 5 Jan 2002 13:08:45 -0800 (PST) Received: (from uucp@localhost) by ns.plaut.de (8.9.3/8.9.3) with UUCP id WAA32179; Sat, 5 Jan 2002 22:07:09 +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 g05M14500439; Sat, 5 Jan 2002 23:01:04 +0100 (CET) (envelope-from root@nihil) Date: Sat, 5 Jan 2002 23:01:04 +0100 (CET) From: Michael Reifenberger To: "Matthew N. Dodd" Cc: FreeBSD-Current Subject: Re: Why does bus_alloc_resource fail for sound and PCIC? In-Reply-To: Message-ID: <20020105225253.T413-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 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