DragonFly BSD
DragonFly submit List (threaded) for 2004-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

i865 support for agp_i810


From: Patrick Mauritz <oxygene@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 06 May 2004 10:38:41 +0200

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 mauritz
Index: 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;
 	};


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]