From owner-freebsd-arm@FreeBSD.ORG Thu Jun 1 13:09:57 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 52AE716A484 for ; Thu, 1 Jun 2006 13:09:57 +0000 (UTC) (envelope-from m.boyarov@bsd.by) Received: from mx1.cybernet.by (mx1.cybernet.by [195.222.70.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id B62FE43D45 for ; Thu, 1 Jun 2006 13:09:56 +0000 (GMT) (envelope-from m.boyarov@bsd.by) Received: from mx1.cybernet.by (mx1.cybernet.by [127.0.0.4]) by mx1.cybernet.by (Postfix) with ESMTP id 9E7163C14FB; Thu, 1 Jun 2006 16:09:55 +0300 (EEST) Received: by mx1.cybernet.by (Postfix, from userid 58) id 86C703C14FA; Thu, 1 Jun 2006 16:09:55 +0300 (EEST) X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on mx1.cybernet.by X-Spam-Level: X-Spam-Status: No, score=0.0 required=8.0 tests=AWL autolearn=ham version=3.1.1 Received: from deimos (unknown [217.21.35.33]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.cybernet.by (Postfix) with ESMTP id 51B363C0A3B; Thu, 1 Jun 2006 16:09:50 +0300 (EEST) Received: by deimos (Pustifikus, from userid 1026) id C463C28443; Thu, 1 Jun 2006 16:09:26 +0300 (EEST) To: Olivier Houchard References: <7hodxe4132.fsf@bsd.by> <20060531170631.GA96970@ci0.org> <7hk6823yzj.fsf@bsd.by> <20060531175025.GA97299@ci0.org> <7hd5du3xdu.fsf@bsd.by> <20060531213752.GA98637@ci0.org> <7hwtc1vya5.fsf@bsd.by> <20060601132828.GA5739@ci0.org> From: m.boyarov@bsd.by (Max N. Boyarov) Date: Thu, 01 Jun 2006 16:09:26 +0300 In-Reply-To: <20060601132828.GA5739@ci0.org> (Olivier Houchard's message of "Thu, 1 Jun 2006 15:28:28 +0200") Message-ID: <7hslmpvx89.fsf@bsd.by> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: ClamAV using ClamSMTP on mx1.cybernet.by Cc: freebsd-arm@freebsd.org Subject: Re: i80321reg.h X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 13:09:57 -0000 >>>>> "OH" == Olivier Houchard writes: OH> On Thu, Jun 01, 2006 at 03:46:42PM +0300, Max N. Boyarov wrote: >> >> >>>>> "OH" == Olivier Houchard writes: >> >> OH> On Wed, May 31, 2006 at 08:41:17PM +0300, Max N. Boyarov wrote: >> >> >> >> >>>>> "OH" == Olivier Houchard writes: >> >> >> >> OH> On Wed, May 31, 2006 at 08:06:40PM +0300, Max N. Boyarov wrote: >> >> >> >> >> >> >>>>> "OH" == Olivier Houchard writes: >> >> >> >> >> >> OH> On Wed, May 31, 2006 at 07:21:21PM +0300, Max N. Boyarov wrote: >> >> >> >> >> >> >> >> Hi! >> >> >> >> >> >> >> >> What document should I read in order to understand >> >> >> >> how to calculate the defines that are used in i80321reg.h ? >> >> >> >> >> >> >> >> >> >> OH> Hi Max, >> >> >> Hi Olivier, >> >> >> OH> I'm not sure I understand the question. However, those most of those values >> >> >> OH> come from the Intel 80321 I/O Processor developer's manual, available here : >> >> >> OH> http://www.intel.com/design/iio/manuals/273517.htm >> >> >> >> >> >> Sorry for my english :). I meant, I do not know how freebsd works with virtual >> >> >> memory, i.e. what address range is used for user applications, where kernel resides. >> >> >> What would you recommend to read about that? Just for education purposes :) My concern >> >> >> is 80321 xcale port only (not generic). >> >> >> >> >> >> >> OH> No worries, my english isn't better :) >> >> OH> Unfortunately I'm not sure there's something explaining this beside the code >> >> OH> itself, so I'm gonna try to answer. >> >> OH> Most of this is the same for every arm port, including the 80321. >> >> OH> The interesting #define are mostly in sys/arm/include/vmparam.h >> >> OH> * The line between user space and kernel space >> >> OH> * Mappings >= KERNEL_BASE are constant across all processes >> >> OH> */ >> >> OH> #define KERNBASE 0xc0000000 >> >> >> >> OH> So generally speaking, whatever is >= 0xc0000000 is kernelland, whatever is < >> >> OH> is userland. >> >> OH> In arm/xscale/iq31244_machdep.c (which should be usable for every i80321 >> >> OH> port, and thus has an unaccurate name), we map 0xfe800000 (IQ80321_OBIO_BASE), >> >> OH> physical == virtual, to be able to use the UART early, >> >> OH> then we use the virtual address 0xfe400000 (IQ80321_IOW_VBASE) to map the ATU >> >> OH> stuff and the CPU registers. >> >> >> >> OH> I'm still not sure I properly answer to your question:) Feel free to ask >> >> OH> for more. >> >> >> >> Many thanks, I shall continue to experiments with i80219 :) >> >> >> >> OH> I'm very interested in i80219 support but have no hardware, please make me >> OH> know how it goes, I'd be more than happy to provide help. >> >> It's work :)))) >> >> http://ncd0.bsd.by/arm/freebsd-arm-ep80219.log >> >> OH> Very nice work ! OH> It seems you've been able to re-use a lot of the code from the 80321, which OH> is good. Care to share the patches ? :-) yes, after sleep i cleanup code and share it :) i change cpu detection, pci irq routing, and pci atu initialization. it's all for ep80219 (http://www.embeddedplanet.com/products/ep80219.asp). -- Best regards, Max N. Boyarov BSD.by Team. E-mail: m.boyarov@bsd.by Minsk, Republic of Belarus http://bsd.by