From owner-freebsd-arch@FreeBSD.ORG Mon Jan 26 17:20:15 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 535EB16A4CE for ; Mon, 26 Jan 2004 17:20:15 -0800 (PST) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id D10B243D80 for ; Mon, 26 Jan 2004 17:19:27 -0800 (PST) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.10/8.12.9) with ESMTP id i0R1HQET084680; Mon, 26 Jan 2004 18:17:26 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Mon, 26 Jan 2004 18:17:20 -0700 (MST) Message-Id: <20040126.181720.15264443.imp@bsdimp.com> To: nate@root.org From: "M. Warner Losh" In-Reply-To: <20040126165523.W30461@root.org> References: <20040126140100.T29680@root.org> <20040126.151728.133912536.imp@bsdimp.com> <20040126165523.W30461@root.org> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: arch@freebsd.org Subject: Re: newbus ioport usage X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jan 2004 01:20:15 -0000 In message: <20040126165523.W30461@root.org> Nate Lawson writes: : Ok, I'm doing the set/alloc and it works. However, one weird thing. If I : allocate all ports at boot time, it succeeds. My driver goes through : multiple release/allocate cycles and it all works as expected. However if : I boot and attach to only one of the registers, subsequent attempts to : attach the second one fail. The resources are 2 IO ports, 0x101c and : 0x101d. Both are 1 byte. Deos devinfo -r show any cause for the problem? Maybe you aren't releasing them properly? Also, why not allocate them as a block of 2? Warner