␉{ 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)␊ |
␉{␊ |