From owner-freebsd-arch@FreeBSD.ORG Thu Oct 15 20:37:17 2009 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5CE1B1065679; Thu, 15 Oct 2009 20:37:17 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout027.mac.com (asmtpout027.mac.com [17.148.16.102]) by mx1.freebsd.org (Postfix) with ESMTP id 473458FC08; Thu, 15 Oct 2009 20:37:17 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=us-ascii; format=flowed; delsp=yes Received: from macbook-pro.lan.xcllnt.net (mail.xcllnt.net [75.101.29.67]) by asmtp027.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0KRK00B5KP9Q0Z40@asmtp027.mac.com>; Thu, 15 Oct 2009 13:37:05 -0700 (PDT) From: Marcel Moolenaar In-reply-to: <20091015.134532.-1110324186.imp@bsdimp.com> Date: Thu, 15 Oct 2009 13:37:02 -0700 Message-id: <4890688A-D2DB-431C-ADB6-03A39A8FD10E@mac.com> References: <20091015.085910.-520412456.imp@bsdimp.com> <200910151118.50619.jhb@freebsd.org> <200910151431.53236.jkim@FreeBSD.org> <20091015.134532.-1110324186.imp@bsdimp.com> To: "M. Warner Losh" X-Mailer: Apple Mail (2.1076) Cc: arch@freebsd.org, jkim@freebsd.org Subject: Re: x86BIOS and the ISA bus and low memory in general... X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Oct 2009 20:37:17 -0000 On Oct 15, 2009, at 12:45 PM, M. Warner Losh wrote: > [[ redirected to arch@ ]] > > In message: <200910151431.53236.jkim@FreeBSD.org> > Jung-uk Kim writes: > > : This is actually very interesting discussion for me because one of > my > : pet projects is extending x86bios to support non-PC architectures. > : If anyone is interested, the current source tarball is here: > : > : http://people.freebsd.org/~jkim/x86bios-20091015.tar.bz2 > : > : Especially, please see the code around #ifdef X86BIOS_COMPAT_ARCH. > : Basically, mapping I/O ports and orm(4) is missing. We don't have > to > : implement I/O ports but orm(4) vs. bus_space(9) is critical to make > : it a reality. Please consider it as a real practical example for > : orm, not just a blackhole driver. :-) > > I thought that most video cards had I/O ports as well as video RAM > that needed to be mapped... Am I crazy? It depends on the platform. On an Itanium machine I have the VGA frame buffer is at physical address 0xA0000-0xC0000. The only requirement is that you use non-cached I/O, otherwise you get a machine check. This can mean a non-identity mapping or not. It all depends... I/O ports don't exist and there's a memory region for generating I/O port accesses, but the translation is not linear, so you can't work with a single base and port offset to get this to work. See ia64_ioport_address() in sys/ia64/ia64/machdep.c -- Marcel Moolenaar xcllnt@mac.com