On 20 Nov 00 at 17:39, James Simmons wrote:
> > > It might not be possible even with full specs: A card might have two
> > > versions (sdram and sgram). All pci identification codes are the same, but
> > > it requires different initialization. The manufacturer solves this by
> > > putting two different roms, but how will your kernel code know which card
> > > it has?
> >
> > Except leaving this on user you can also read these values from BIOS.
> > If you are brave enough to reverse engineer powerup sequence from BIOS,
> > you can also retrieve where info is stored (if you have enough different
> > samples)...
>
> Thanks to Brad who pointed this out. For PowerPC versions of a PCI card we
> can do register dumps and get all the values we need.
For example on matrox you cannot... Some of registers are write-only,
so only way to get values is either trace BIOS, or run it under emulator.
I did the first, but maybe that running BIOS under some emulator would be
easier...
Best regards,
Petr Vandrovec
van...@vc...
|