From owner-freebsd-new-bus Sun Apr 9 2:46: 9 2000 Delivered-To: freebsd-new-bus@freebsd.org Received: from finch-post-12.mail.demon.net (finch-post-12.mail.demon.net [194.217.242.41]) by hub.freebsd.org (Postfix) with ESMTP id AA10637B609 for ; Sun, 9 Apr 2000 02:44:10 -0700 (PDT) (envelope-from dfr@nlsystems.com) Received: from nlsys.demon.co.uk ([158.152.125.33] helo=herring.nlsystems.com) by finch-post-12.mail.demon.net with esmtp (Exim 2.12 #1) id 12eEDU-000AVF-0C; Sun, 9 Apr 2000 09:41:16 +0000 Received: from salmon.nlsystems.com (salmon.nlsystems.com [10.0.0.3]) by herring.nlsystems.com (8.9.3/8.8.8) with ESMTP id KAA30364; Sun, 9 Apr 2000 10:47:08 +0100 (BST) (envelope-from dfr@nlsystems.com) Date: Sun, 9 Apr 2000 10:47:20 +0100 (BST) From: Doug Rabson To: Warner Losh Cc: new-bus@freebsd.org Subject: Re: How dow you... In-Reply-To: <200004090032.SAA24084@harmony.village.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-new-bus@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 8 Apr 2000, Warner Losh wrote: > ... get some memory. > > I need to get some memory. It needs to be in the ISA hole, but I don't care > where, just something that's not in use, 4k in size and aligned to 4k. I > know how to do the last clause of that, but not the rest. Ideas? You need to call bus_alloc_resource, using the start and end fields to constrain the returned memory to be within the hole and you probably need to incorporate the alignment patch which was floating around a while ago to make sure that its aligned correctly. -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 442 9037 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-new-bus" in the body of the message