Chameleon

Chameleon Commit Details

Date:2011-08-31 04:47:51 (12 years 7 months ago)
Author:Azimutz
Commit:1488
Parents: 1487
Message:Change custom_ports to max_ports. Small tweaks and 2 max values added.
Changes:
M/branches/azimutz/trunkGraphicsEnablerModules/i386/modules/GraphicsEnabler/AMDGraphicsEnabler/ati.c

File differences

branches/azimutz/trunkGraphicsEnablerModules/i386/modules/GraphicsEnabler/AMDGraphicsEnabler/ati.c
209209
210210
211211
212
212
213213
214214
215215
......
262262
263263
264264
265
265
266266
267267
268268
......
380380
381381
382382
383
383
384384
385385
386386
......
13521352
13531353
13541354
1355
1356
1357
1358
1355
1356
1357
1358
13591359
13601360
13611361
......
13671367
13681368
13691369
1370
1370
13711371
13721372
13731373
chip_family_tchip_family;
const char*model_name;
config_name_tcfg_name;
uint8_tcustom_ports; // max_ports ??
uint8_tmax_ports;
} radeon_card_info_t;
static radeon_card_info_t radeon_cards[] = {
{ 0x944E,0x30101787, CHIP_FAMILY_RV770,"ATI Radeon HD 4810 Series",kMotmot, 0 },
{ 0x944E,0x31001787, CHIP_FAMILY_RV770,"ATI Radeon HD 4820",kMotmot, 0 },
{ 0x9480,0x3628103C, CHIP_FAMILY_RV730,"ATI Radeon HD 4650M",kGliff, 0 },
{ 0x9480,0x3628103C, CHIP_FAMILY_RV730,"ATI Radeon HD 4650M",kGliff, 2 },
{ 0x9480,0x9035104D, CHIP_FAMILY_RV730,"ATI Radeon HD 4650M",kGliff, 0 },
{ 0x954F,0x301017AF, CHIP_FAMILY_RV710,"ATI Radeon HD 4450",kNull, 0 },
{ 0x9552,0x04341028, CHIP_FAMILY_RV710,"ATI Mobility Radeon 4330",kShrike, 0 },
{ 0x9552,0x04341028, CHIP_FAMILY_RV710,"ATI Mobility Radeon 4330",kShrike, 2 },
{ 0x9552,0x308B103C, CHIP_FAMILY_RV710,"ATI Mobility Radeon HD 4300 Series", kShrike, 0 },
}
else// if (card->cfg_name > 0) // do we want 0 ports if fb is kNull or mistyped ?
{
// use custom_ports value on radeon_cards
card->ports = card->info->custom_ports;
// if custom value is 0
if (card->ports == 0)
// use max_ports value on radeon_cards
card->ports = card->info->max_ports;
// if max_ports value is 0
if (card->ports <= 0)
{
// match cfg_name with card_configs list and retrive default nr of ports.
for (i = 0; i < kCfgEnd; i++)
}
else
{
verbose("Nr of ports set to card's custom ??: %d\n", card->ports);
verbose("Nr of ports set to card's ?? max: %d\n", card->ports);
}
}
//else

Archive Download the corresponding diff file

Revision: 1488