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 From owner-freebsd-new-bus Sun Apr 9 9:14:24 2000 Delivered-To: freebsd-new-bus@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id D1E1137B7DE for ; Sun, 9 Apr 2000 09:14:20 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id KAA15554; Sun, 9 Apr 2000 10:14:19 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id KAA84140; Sun, 9 Apr 2000 10:14:15 -0600 (MDT) Message-Id: <200004091614.KAA84140@harmony.village.org> To: Doug Rabson Subject: Re: How dow you... Cc: new-bus@freebsd.org In-reply-to: Your message of "Sun, 09 Apr 2000 10:47:20 BST." References: Date: Sun, 09 Apr 2000 10:14:15 -0600 From: Warner Losh Sender: owner-freebsd-new-bus@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message Doug Rabson writes: : 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. Yes, but how I know where the isa hole is. I know on intel boxes it is at 0xa0000-0xdffff, but is that machine dependent or not? Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-new-bus" in the body of the message From owner-freebsd-new-bus Mon Apr 10 1:19:48 2000 Delivered-To: freebsd-new-bus@freebsd.org Received: from anchor-post-32.mail.demon.net (anchor-post-32.mail.demon.net [194.217.242.90]) by hub.freebsd.org (Postfix) with ESMTP id AD56437B850 for ; Mon, 10 Apr 2000 01:19:24 -0700 (PDT) (envelope-from dfr@nlsystems.com) Received: from nlsys.demon.co.uk ([158.152.125.33] helo=herring.nlsystems.com) by anchor-post-32.mail.demon.net with esmtp (Exim 2.12 #1) id 12eZPh-000C0S-0W; Mon, 10 Apr 2000 09:19:17 +0100 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 JAA35195; Mon, 10 Apr 2000 09:25:32 +0100 (BST) (envelope-from dfr@nlsystems.com) Date: Mon, 10 Apr 2000 09:25:29 +0100 (BST) From: Doug Rabson To: Warner Losh Cc: new-bus@freebsd.org Subject: Re: How dow you... In-Reply-To: <200004091614.KAA84140@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 Sun, 9 Apr 2000, Warner Losh wrote: > In message Doug Rabson writes: > : 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. > > Yes, but how I know where the isa hole is. I know on intel boxes it > is at 0xa0000-0xdffff, but is that machine dependent or not? No, that is the same for all systems. -- 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