Chameleon

Chameleon Commit Details

Date:2011-02-28 11:06:51 (8 years 7 months ago)
Author:Kabyl
Commit:748
Parents: 747
Message:Fix a bug when manually setting a AtiConfig (thanks to bcc9)
Changes:
M/branches/Kabyl/i386/libsaio/ati.c

File differences

branches/Kabyl/i386/libsaio/ati.c
377377
378378
379379
380
380381
381382
382383
......
10661067
10671068
10681069
1070
1071
1072
10691073
10701074
10711075
......
11031107
11041108
11051109
1106
1107
1110
1111
11081112
11091113
11101114
{ 0x68D8,0x5730174B,CHIP_FAMILY_REDWOOD,"ATI Radeon HD 5730",kNull},
{ 0x68D8,0x21D91458,CHIP_FAMILY_REDWOOD,"ATI Radeon HD 5670",kBaboon},
{ 0x68D8,0x03561043,CHIP_FAMILY_REDWOOD,"ATI Radeon HD 5670",kBaboon},
{ 0x68D8,0xE151174B,CHIP_FAMILY_REDWOOD,"ATI Radeon HD 5670",kBaboon},
{ 0x68D9,0x301017AF,CHIP_FAMILY_REDWOOD,"ATI Radeon HD 5630",kNull},
{ 0x68DA,0x301017AF,CHIP_FAMILY_REDWOOD,"ATI Radeon HD 5630",kNull},
{ 0x68DA,0x30001787,CHIP_FAMILY_REDWOOD,"ATI Radeon HD 5630",kNull},
card->mmio= (uint8_t *)(pci_config_read32(pci_dev->dev.addr, PCI_BASE_ADDRESS_2) & ~0x0f);
card->io= (uint8_t *)(pci_config_read32(pci_dev->dev.addr, PCI_BASE_ADDRESS_4) & ~0x03);
verbose("Framebuffer @0x%08X MMIO @0x%08X I/O Port @0x%08X ROM Addr @0x%08X\n",
card->fb, card->mmio, card->io, pci_config_read32(pci_dev->dev.addr, PCI_ROM_ADDRESS));
card->posted= radeon_card_posted();
verbose("ATI card %s, ", card->posted ? "POSTed" : "non-POSTed");
else
{
for (i = 0; i < kCfgEnd; i++)
if (strcmp(fb_name, card_configs[card->info->cfg_name].name) == 0)
card->ports = card_configs[card->info->cfg_name].ports;
if (strcmp(fb_name, card_configs[i].name) == 0)
card->ports = card_configs[i].ports;
}
sprintf(name, "ATY,%s", fb_name);

Archive Download the corresponding diff file

Revision: 748