gentoo-full-overlay/app-misc/i810switch/files/i810switch-macbook-support.patch

24 lines
657 B
Diff

--- i810switch.c.old 2005-06-12 06:36:36.000000000 +0200
+++ i810switch.c 2007-07-03 02:06:31.000000000 +0200
@@ -60,6 +60,7 @@
#define I855STR "8086:3582"
//#define I865STR "8086:2572"
#define I915STR "8086:2592"
+#define I945STR "8086:27a2"
#define MEMSTR "Memory at"
#define NONPRSTR "32-bit, non-prefetchable"
@@ -279,6 +280,13 @@
return p;
}
+ i = (p = strstr(*buff_ptr, I945STR)) != NULL;
+ if (i)
+ {
+ *chiptype = I855;
+ return p;
+ }
+
i = (p = strstr(*buff_ptr, I915STR)) != NULL;
if (i)
{