Chameleon

Chameleon Commit Details

Date:2013-02-01 00:06:51 (7 years 3 months ago)
Author:Cosmosis Jones
Commit:2177
Parents: 2176
Message:http://forge.voodooprojects.org/p/chameleon/issues/303/ HD4000/2500 common data patch. Please let me know if this is incorrect
Changes:
M/trunk/doc/BootHelp.txt
M/trunk/i386/libsaio/gma.c

File differences

trunk/i386/libsaio/gma.c
132132
133133
134134
135
136
135137
136138
137139
......
322324
323325
324326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
325361
326362
327363
{ 0x80862A43, "GMAX3100"},
{ 0x80860102, "HD Graphics 2000"},
{ 0x80860106, "HD Graphics 2000 Mobile"},
{ 0x80860152, "Intel HD Graphics 2500" },
{ 0x80860156, "Intel HD Graphics 2500 Mobile"},
{ 0x80860112, "HD Graphics 3000"},
{ 0x80860116, "HD Graphics 3000 Mobile"},
{ 0x80860122, "HD Graphics 3000"},
devprop_add_value(device, "AAPL,ig-platform-id", (uint8_t*)&ig_platform_id, 4);
}
//do the HD4000 common path
//i didn't quite get the patch @ http://forge.voodooprojects.org/p/chameleon/issues/303/
//so i put it here.. someone correct me if this is wrong
if (model == (char*)&"Intel HD Graphics 2500" ||
model == (char*)&"Intel HD Graphics 4000")
{
uint32_t ig_platform_id = 0U;// Default to 0x01660000
getIntForKey("IGPlatformId", (int*)&ig_platform_id, &bootInfo->chameleonConfig);
if (ig_platform_id > 11U) ig_platform_id = 0U;
if (ig_platform_id >= 5U && ig_platform_id <= 7U)
ig_platform_id |= 0x01620000U;
else
ig_platform_id |= 0x01660000U;
devprop_add_value(device, "AAPL,ig-platform-id", (uint8_t*)&ig_platform_id, sizeof ig_platform_id);
#if 0
devprop_add_value(device, "built-in", &BuiltIn, 1);
devprop_add_value(device, "class-code", ClassFix, 4);
devprop_add_value(device, "hda-gfx", (uint8_t *)"onboard-1", 10);
#endif
#if 0
{
struct DevPropDevice *meiDevice = NULL;
uint32_t mei_device_id = 0x1e3aU;
meiDevice = devprop_add_device(string, "PciRoot(0x0)/Pci(0x16,0x0)");
if (meiDevice)
devprop_add_value(meiDevice, "device-id", (uint8_t*)&mei_device_id, sizeof mei_device_id);
else
printf("Failed initializing dev-prop MEIDevice.\n");
}
#endif
}
stringdata = malloc(sizeof(uint8_t) * string->length);
if (!stringdata)
{
trunk/doc/BootHelp.txt
8686
8787
8888
89
8990
9091
9192
display_0=<value> Inject alternate value of display-cfg into NVDA,Display-A@0 (HEX).
display_1=<value> Inject alternate value of display-cfg into NVDA,Display-B@1 (HEX).
EnableHDMIAudio=Yes Inject HDMI audio for NVIDIA
IGPlatformId=<value> For Intel Gen7 graphics, range 0-11
EthernetBuiltIn=Yes|No Automatic "built-in"=yes device-properties generation
for ethernet interfaces.

Archive Download the corresponding diff file

Revision: 2177