This patch adds support for the "Intel Corporation Mobile 945GM/GMS/940GML 
Express Integrated Graphics" controller, as found in Apple MacBooks with 
PCI-ID 8086:27a2.

This patch also works for IBM ThinkPad X60s. (also has i945 chipset)

Patch has been sent as follow-up to http://bugs.debian.org/374638 and CC'ed 
to the upstream author.

Upstream: http://www16.plala.or.jp/mano-a-mano/i810switch.html

diff -ru i810switch-0.6.5/debian/changelog i810switch-0.6.5-thp/debian/changelog
--- i810switch-0.6.5/debian/changelog	2006-12-24 22:30:48.000000000 +0100
+++ i810switch-0.6.5-thp/debian/changelog	2006-12-24 22:28:33.000000000 +0100
@@ -1,3 +1,9 @@
+i810switch (0.6.5-4) unstable; urgency=low
+
+  * Added support for i945 chipset (as found in Apple MacBooks)
+
+ -- Thomas Perl <thp@perli.net>  Sun, 24 Dec 2006 22:28:02 +0100
+
 i810switch (0.6.5-3) unstable; urgency=low
 
   * Added AMD64 to list of supported arches, thanks Julien. Closes: #404039. 
Only in i810switch-0.6.5: i810switch
diff -ru i810switch-0.6.5/i810switch.c i810switch-0.6.5-thp/i810switch.c
--- i810switch-0.6.5/i810switch.c	2006-12-24 22:30:48.000000000 +0100
+++ i810switch-0.6.5-thp/i810switch.c	2006-12-24 22:27:47.000000000 +0100
@@ -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)
 		{
Only in i810switch-0.6.5: i810switch.o
