From owner-freebsd-hackers Wed Jan 3 6:33: 3 2001 From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 3 06:33:01 2001 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from smtp.alcove.fr (smtp.alcove.fr [212.155.209.139]) by hub.freebsd.org (Postfix) with ESMTP id 48FCD37B400 for ; Wed, 3 Jan 2001 06:33:00 -0800 (PST) Received: from wiliam.alcove-int ([10.16.110.19]) by smtp.alcove.fr with esmtp (Exim 3.12 #1 (Debian)) id 14DoyB-0001OV-00; Wed, 03 Jan 2001 15:32:51 +0100 Received: from nsouch by wiliam.alcove-int with local (Exim 3.12 #1 (Debian)) id 14Doy9-0005mK-00; Wed, 03 Jan 2001 15:32:49 +0100 Date: Wed, 3 Jan 2001 15:32:49 +0100 From: Nicolas Souchu To: "Matthew C. Forman" Cc: freebsd-hackers@freebsd.org Subject: Re: Allocating I/O port space Message-ID: <20010103153249.A21984@wiliam.alcove-int> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.4i In-Reply-To: ; from mcf@forman.homeip.net on Fri, Dec 29, 2000 at 12:26:53PM +0000 Organization: =?iso-8859-1?Q?Alc=F4ve=2C_http:=2F=2Fwww=2Ealcove=2Efr?= Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Dec 29, 2000 at 12:26:53PM +0000, Matthew C. Forman wrote: > > Hi again all, > > Well, despite the reception I'm still here, desperately trying to allocate > an I/O port range! Still can't get bus_alloc_resource to work, despite > doing everything by the book. I have a question. My kernel prints this: > > amdpm0: at device 7.3 on pci0 > > ...before amdpm_attach complains it can't map any I/O space. Where > does the resource info printed here come from? Does the fact The probe. > that nothing is printed about ports mean that as far as the system is > concerned, it doesn't have any? Is this why bus_alloc_resource > fails? Sorry if the answers seem obvious, but I'm learning, so please be > patient! > > If all this is the case, then how could I allocate the I/O space I need? Try to bus_set_resource() in the probe routine, then alloc them in the attach one. You should get what you want in the detection message. -- Nicolas.Souchu@alcove.fr Alcôve - Open Source Software Engineer - http://www.alcove.fr To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message