i865 support for agp_i810

Patrick Mauritz oxygene at studentenbude.ath.cx
Thu May 6 01:38:41 PDT 2004


Hi,

the attached patch adds some pci ids to the agpgart, necessary for i865
based boards. works for me for quite a while now.


patrick mauritzIndex: sys/dev/agp/agp_i810.c
===================================================================
RCS file: /home/dcvs/src/sys/dev/agp/agp_i810.c,v
retrieving revision 1.6
diff -u -r1.6 agp_i810.c
--- sys/dev/agp/agp_i810.c	24 Mar 2004 20:42:12 -0000	1.6
+++ sys/dev/agp/agp_i810.c	28 Apr 2004 10:11:19 -0000
@@ -104,6 +104,9 @@
 
 	case 0x25628086:
 		return ("Intel 82845 (i845 GMCH) SVGA controller");
+
+	case 0x25728086:
+		return ("Intel 82865 (i865 GMCH) SVGA controller");
 	};
 
 	return NULL;
@@ -133,6 +136,7 @@
 	case 0x11328086:
 	case 0x35778086:
 	case 0x25628086:
+	case 0x25728086:
 		devid -= 0x20000;
 		break;
 	};
@@ -173,7 +177,8 @@
 		 * checking whether internal graphics device has been activated.
 		 */
 		if ( (devid != 0x35778086 ) &&
-		     (devid != 0x25628086 ) ) {
+		     (devid != 0x25628086 ) &&
+		     (devid != 0x25728086 ) ) {
 			smram = pci_read_config(bdev, AGP_I810_SMRAM, 1);
 			if ((smram & AGP_I810_SMRAM_GMS)
 			    == AGP_I810_SMRAM_GMS_DISABLED) {
@@ -223,6 +228,7 @@
 		break;
 	case 0x35778086:
 	case 0x25628086:
+	case 0x25728086:
 		sc->chiptype = CHIP_I830;
 		break;
 	};




More information about the Submit mailing list