Applied stripped down patch from Mathew Schofield.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18766 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2006-09-05 18:30:07 +00:00
parent 51f05ea6fc
commit f3585ce573
2 changed files with 9 additions and 1 deletions

View File

@ -40,6 +40,13 @@ const struct supported_device {
{0x2572, INTEL_TYPE_8xx | INTEL_TYPE_85x, "i865G"},
{0x3582, INTEL_TYPE_8xx | INTEL_TYPE_85x, "i855G"},
#if 0
{0x2582, INTEL_TYPE_9xx, "i915G"},
{0x2592, INTEL_TYPE_9xx, "i915GM"},
{0x2772, INTEL_TYPE_9xx, "i945G"},
{0x27a2, INTEL_TYPE_9xx, "i945GM"},
#endif
};
int32 api_version = B_CUR_DRIVER_API_VERSION;

View File

@ -152,7 +152,8 @@ determine_stolen_memory_size(intel_info &info)
memorySize *= 8;
break;
}
} else if (info.device_type == (INTEL_TYPE_8xx | INTEL_TYPE_85x)) {
} else if (info.device_type == (INTEL_TYPE_8xx | INTEL_TYPE_85x)
|| (info.device_type & INTEL_TYPE_FAMILY_MASK) == INTEL_TYPE_9xx) {
switch (memoryConfig & STOLEN_MEMORY_MASK) {
case i855_STOLEN_MEMORY_4M:
memorySize *= 4;