[LinuxBIOS] Need help with the VGA bios

Rudolf Marek r.marek at assembler.cz
Thu Aug 16 09:50:08 CEST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Corey,

I cant tell more than this code:

To be distributed under GPL:

       //WARNING NEED to copy some registers from NB to SB (D0F3 -> D0F7)

        {

        device_t devFUNNB3 = dev_find_device(PCI_VENDOR_ID_VIA, 0x3238, 0);

        u8 regm, regm2;



        //shadow CTRL

        regm = pci_read_config8(devFUNNB3,0x88);

        writeback(dev, 0x57, regm);



        //shadow REGION 1

        regm = pci_read_config8(devFUNNB3,0x80);

        writeback(dev, 0x61, regm);



        //shadow REGION 2

        regm = pci_read_config8(devFUNNB3,0x81);

        writeback(dev, 0x62, regm);



        //shadow REGION 3

        regm = pci_read_config8(devFUNNB3,0x86);

        writeback(dev, 0xe6, regm);



        regm = pci_read_config8(devFUNNB3,0x83);

        regm2 = pci_read_config8(dev,0x63);



        pci_write_config8(dev,0x63, (regm2 & 0xC0) | (regm & 0x3F));

        }

Rudolf
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGxAGv3J9wPJqZRNURAutyAKCSf9Yqp+RSfQkZk6sJOyCoifY3fACcCUzu
Zsom6Bxouj3WbVHJ1SdzfvQ=
=E/+Y
-----END PGP SIGNATURE-----




More information about the coreboot mailing list