From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Reinauer Subject: Re: Problem with radeon new ROM probe code Date: Thu, 25 Sep 2003 14:10:25 +0200 Sender: linux-fbdev-devel-admin@lists.sourceforge.net Message-ID: <20030925121025.GA30733@suse.de> References: <1064425449.15996.58.camel@gaston> <20030924181257.78090.qmail@web14914.mail.yahoo.com> <20030925053916.GA2068@iliana> Mime-Version: 1.0 Return-path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.11] helo=sc8-sf-mx1.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Cipher TLSv1:DES-CBC3-SHA:168) (Exim 3.31-VA-mm2 #1 (Debian)) id 1A2UyW-0002fi-00 for ; Thu, 25 Sep 2003 05:12:00 -0700 Received: from ns.suse.de ([195.135.220.2] helo=Cantor.suse.de) by sc8-sf-mx1.sourceforge.net with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.22) id 1A2UyV-0005Px-Dt for linux-fbdev-devel@lists.sourceforge.net; Thu, 25 Sep 2003 05:11:59 -0700 Content-Disposition: inline In-Reply-To: <20030925053916.GA2068@iliana> Errors-To: linux-fbdev-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Sven Luther Cc: Jon Smirl , Benjamin Herrenschmidt , Michel DXnzer , Linux Fbdev development list * Sven Luther [030925 07:39]: > On Wed, Sep 24, 2003 at 11:12:57AM -0700, Jon Smirl wrote: > > Is the 'Mac' card being used on a x86 machine? > > I thought the ROM code was compiled out on non-X86 machines. > > Notice that not all powerpc boxes are in this case. The pegasos at least > includes an x86 emulator in the OF which runs the cards bios. I know > that the amigaone does the same. So testing for powerpc may well not be > enough for detecting OF cards. Whether it's an Open Firmware card or not can be read from the PCI headers stored in the ROM. Check the romheaders utility from OpenBIOS CVS ( http://www.openbios.org/ ) Look at the code here: http://cvs.openbios.org/cgi-dom/viewcvs.cgi/utils/romheaders.c?rev=1.2&content-type=text/vnd.viewcvs-markup The program prints whether the rom is OpenFirmware, x86 or HP PA-Risc. Note that graphics cards can theoretically contain ROM images for both x86 and OF in one chip. Stefan -- Architecture Team SuSE Linux AG ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf