Re: Problem with radeon new ROM probe code
flat view
From: Stefan Reinauer <hidden>
Date: 2003-09-25 12:12:00
* Sven Luther [off-list ref] [030925 07:39]:
On Wed, Sep 24, 2003 at 11:12:57AM -0700, Jon Smirl wrote:quoted
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