Add support for my Core i3 integrated graphics.

This commit is contained in:
Adrien Destugues
2014-08-29 09:37:44 +02:00
parent 9e616c6b9e
commit 2d5dbc78c4
3 changed files with 6 additions and 2 deletions
@@ -99,7 +99,9 @@ const struct supported_device {
{0x0154, 0x0156, INTEL_TYPE_IVBGM, "IvyBridge Mobile GT1"}, {0x0154, 0x0156, INTEL_TYPE_IVBGM, "IvyBridge Mobile GT1"},
{0x0154, 0x0166, INTEL_TYPE_IVBGM, "IvyBridge Mobile GT2"}, {0x0154, 0x0166, INTEL_TYPE_IVBGM, "IvyBridge Mobile GT2"},
{0x0158, 0x015a, INTEL_TYPE_IVBGS, "IvyBridge Server GT1"}, {0x0158, 0x015a, INTEL_TYPE_IVBGS, "IvyBridge Server GT1"},
{0x0158, 0x016a, INTEL_TYPE_IVBGS, "IvyBridge Server GT2"} {0x0158, 0x016a, INTEL_TYPE_IVBGS, "IvyBridge Server GT2"},
{0x0c00, 0x0412, INTEL_TYPE_IVBG, "Haswell Desktop"}
}; };
struct intel_info { struct intel_info {
@@ -96,6 +96,8 @@ const struct supported_device {
{0x0166, INTEL_TYPE_IVBGM, "IvyBridge Mobile GT2"}, {0x0166, INTEL_TYPE_IVBGM, "IvyBridge Mobile GT2"},
{0x015a, INTEL_TYPE_IVBGS, "IvyBridge Server GT1"}, {0x015a, INTEL_TYPE_IVBGS, "IvyBridge Server GT1"},
{0x016a, INTEL_TYPE_IVBGS, "IvyBridge Server GT2"}, {0x016a, INTEL_TYPE_IVBGS, "IvyBridge Server GT2"},
{0x0412, INTEL_TYPE_IVBG, "Haswell Desktop"},
}; };
int32 api_version = B_CUR_DRIVER_API_VERSION; int32 api_version = B_CUR_DRIVER_API_VERSION;
@@ -227,7 +227,7 @@ intel_extreme_init(intel_info &info)
info.aperture = gGART->map_aperture(info.pci->bus, info.pci->device, info.aperture = gGART->map_aperture(info.pci->bus, info.pci->device,
info.pci->function, 0, &info.aperture_base); info.pci->function, 0, &info.aperture_base);
if (info.aperture < B_OK) { if (info.aperture < B_OK) {
ERROR("error: could not map GART aperture!\n"); ERROR("error: could not map GART aperture! (%s)\n", strerror(info.aperture));
return info.aperture; return info.aperture;
} }