From owner-freebsd-alpha@FreeBSD.ORG Mon Jan 5 04:39:08 2004 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A738516A4CE for ; Mon, 5 Jan 2004 04:39:08 -0800 (PST) Received: from blount.mail.mindspring.net (blount.mail.mindspring.net [207.69.200.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C28B43D2D for ; Mon, 5 Jan 2004 04:39:07 -0800 (PST) (envelope-from mail_list@mindspring.com) Received: from h-67-101-167-234.lsanca54.dynamic.covad.net ([67.101.167.234] helo=mindspring.com) by blount.mail.mindspring.net with esmtp (Exim 3.33 #1) id 1AdU0g-00084w-00 for freebsd-alpha@freebsd.org; Mon, 05 Jan 2004 07:39:06 -0500 Message-ID: <3FF95AE6.30103@mindspring.com> Date: Mon, 05 Jan 2004 04:39:02 -0800 From: FBSD_AS1200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-alpha@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: xfree86 support for AS1200 X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jan 2004 12:39:08 -0000 Just wanted to get some comments or opinions on the AS1200 suggestions received from the XFree86 mailing list as quoted below. FBSD_AS1200 wrote (in a message from Saturday 3) > Thank you for the reference. I have read the note but still don't feel > any closer to finding support for my system. The Domain.note appears to > be geared toward sun linux systems. While the note did mention > multi-domain alpha systems (I assume this is a ref to multi pci-host > bridges) I am still not clear on how I should implement an XFree86 > system on an AlphaServer 1200 under FreeBSD. I think I MUST be missing a > point or two... Would it be possible to find further documentation on > this issue so I can get up to speed on X development. From the post I > have been reading on XFree86 and FreeBSD mailing list there are several > people with multi-pci bus alpha systems that would like to assist in > getting XFree up and running under a BSD variant. Thank you for your > assistance! I'm sorry, I don't know any other written documentation that could help you. What you need is to implement the xf86GetPciDomain(), xf86MapDomainMemory(), xf86MapDomainIO() and xf86ReadDomainMemory(). functions in freebsdPci.c. Once you've done this, you can edit Pci.h and remove the INCLUDE_XF86_NO_DOMAIN for FreeBSD/alpha. Then the XFree86 drivers will be able to access the video card(s) independently of the bus they are attached to. There can be 2 approaches for that : - if the FreeBSD kernel already provides an API to enumerate the PCI host bridges and the configuration space and memory mappings for each host bridge, use that (this is what freebsdPci.c currently does for a single host bridge). - it there's no such interface available, then you need to develop a driver that will poke directly into the main chipset I/O registers to probe the various host bridges and handle their memory mappings from userland. This is for instance what sparcPci.c does for SunOS. Don't hesitate to join the devel@xfree86 mailing list and ask more questions here if needed. This list is more appropriate for developpement related questions. Looking forward for your contributions. Matthieu