Chameleon

Chameleon Commit Details

Date:2011-06-08 15:51:04 (8 years 2 months ago)
Author:Cosmosis Jones
Commit:991
Parents: 990
Message:display-cfgs always injected now, defaults of ffffffff used
Changes:
M/trunk/i386/libsaio/nvidia.c

File differences

trunk/i386/libsaio/nvidia.c
13181318
13191319
13201320
1321
1322
1321
1322
13231323
1324
1324
13251325
13261326
1327
1327
13281328
1329
1330
13291331
13301332
13311333
1332
1334
13331335
1334
1335
1336
13371336
13381337
13391338
1340
1341
1339
1340
13421341
1343
1342
13441343
13451344
1346
13471345
1346
1347
13481348
13491349
1350
1351
1352
1350
13531351
1352
13541353
1355
13561354
13571355
13581356
......
13701368
13711369
13721370
1371
1372
13731373
13741374
1375
13761375
13771376
13781377
}
}
if (getValueForKey(kdcfg0, &value, &len, &bootInfo->bootConfig) && len == DCFG0_LEN * 2)
{
if (getValueForKey(kdcfg0, &value, &len, &bootInfo->bootConfig) && len == DCFG0_LEN * 2){
uint8_t new_dcfg0[DCFG0_LEN];
if (hex2bin(value, new_dcfg0, DCFG0_LEN) == 0)
{
verbose("Using user supplied @0,display-cfg\n");
memcpy(default_dcfg_0, new_dcfg0, DCFG0_LEN);
verbose("Using user supplied @0,display-cfg\n");
printf("@0,display-cfg: %02x%02x%02x%02x\n",
default_dcfg_0[0], default_dcfg_0[1], default_dcfg_0[2], default_dcfg_0[3]);
devprop_add_value(device, "@0,display-cfg", default_dcfg_0, DCFG0_LEN);
}
}
if (getValueForKey(kdcfg1, &value, &len, &bootInfo->bootConfig) && len == DCFG1_LEN * 2)
{
if (getValueForKey(kdcfg1, &value, &len, &bootInfo->bootConfig) && len == DCFG1_LEN * 2){
uint8_t new_dcfg1[DCFG1_LEN];
if (hex2bin(value, new_dcfg1, DCFG1_LEN) == 0)
{
verbose("Using user supplied @1,display-cfg\n");
memcpy(default_dcfg_1, new_dcfg1, DCFG1_LEN);
verbose("Using user supplied @1,display-cfg\n");
printf("@1,display-cfg: %02x%02x%02x%02x\n",
default_dcfg_1[0], default_dcfg_1[1], default_dcfg_1[2], default_dcfg_1[3]);
devprop_add_value(device, "@1,display-cfg", default_dcfg_1, DCFG1_LEN);
}
}
devprop_add_value(device, "VRAM,totalsize", (uint8_t*)&videoRam, 4);
devprop_add_value(device, "model", (uint8_t*)model, strlen(model) + 1);
devprop_add_value(device, "rom-revision", (uint8_t*)biosVersion, strlen(biosVersion) + 1);
devprop_add_value(device, "@0,display-cfg", default_dcfg_0, DCFG0_LEN);
devprop_add_value(device, "@1,display-cfg", default_dcfg_1, DCFG1_LEN);
if (getBoolForKey(kVBIOS, &doit, &bootInfo->bootConfig) && doit) {
devprop_add_value(device, "vbios", rom, (nvBiosOveride > 0) ? nvBiosOveride : (rom[2] * 512));
}

Archive Download the corresponding diff file

Revision: 991