Re: Configuration of PCI Video card on a BIOS-less board

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 9 May 2001, Wayne Gowcher wrote:
> I was wondering if anyone has any experience in
> configuring the PCI registers in a PCI Video Card on a
> MIPS board that has no BIOS like in a PC.
> 
> At the moment when I have some "home grown" PCI
> probing routines based on my best interpretation of
> the PCI spec. But it's not working.
> 
> I can probe the Base Address Register successfully,
> determine the cards memory requirement and that it is
> memory rather than mapped IO. But when I try to write
> the address I have allocated to the PCI card ( eg
> 0xC000 0000 ) the address will not latch in the base
> address register.
> 
> The card is designed for x86 PCs and when the PC bios
> configures the card, the base address register has the
> value 0xF200 0000.
> 
> Any comments from anybody with any insight into what
> is happening here / or how I might fix my probelm,
> would be greatly appreciated.
> 
> Does anyone know of any code that carries out PCI
> probing similar to that found on x86 PC's ?

Initialising video cards is a real PITA. The simplest method is to use a x86
BIOS emulator to execute the code in the video BIOS on the card.

Note that some cards (mostly older cards) power up in VGA legacy mode. They
will not respond to PCI memory space as specified by the BAR before you tell
them to do so (in a card-specific way :-(

Most modern cards power up in PCI mode. However, to use them, you still have to
know the card-specific initialization sequence.

BTW, what video card do you have? If you're lucky and have a Matrox Millennium,
you can use matroxfb, which knows how to initialize uninitialized cards.

Good luck!

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven ------------- Sony Software Development Center Europe (SDCE)
Geert.Uytterhoeven@sonycom.com ------------------- Sint-Stevens-Woluwestraat 55
Voice +32-2-7248626 Fax +32-2-7262686 ---------------- B-1130 Brussels, Belgium



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux