From owner-freebsd-current Sat Jan 5 3:28:28 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 A4D2E37B417 for ; Sat, 5 Jan 2002 03:28:17 -0800 (PST) Received: (from uucp@localhost) by ns.plaut.de (8.9.3/8.9.3) with UUCP id MAA30152 for current@freebsd.org; Sat, 5 Jan 2002 12:27:15 +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 g05CL2T00452 for ; Sat, 5 Jan 2002 13:21:02 +0100 (CET) (envelope-from root@nihil) Date: Sat, 5 Jan 2002 13:21:02 +0100 (CET) From: Michael Reifenberger To: FreeBSD-Current Subject: Why does bus_alloc_resource fail for sound and PCIC? Message-ID: <20020105130553.V431-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, here are some details for my previous message (A30p) (where the detailed dmesg output was attached): In the case of the snd_ich driver it seems that the following code fails: ... foo = bus_alloc_resource(dev,SYS_RES_IOPORT,0x10,0,~0,1,RF_ACTIVE); bar = bus_alloc_resource(dev,SYS_RES_IOPORT,0x14,0,~0,1,RF_ACTIVE); ... foo and bar are 0 but the bus-probe-code earlier prints: ... found-> vendor=0x8086, dev=0x2485, revid=0x01 bus=0, slot=31, func=5 class=04-01-00, hdrtype=0x00, mfdev=0 intpin=b, irq=11 map[10]: type 4, range 32, base 00002400, size 8, port disabled map[14]: type 4, range 32, base 00002000, size 7, port disabled ... Which I interpret as: There are two ioports (type 4) which are disabled ( should get enabled using RF_ACTIVE flag)... Where is 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