Subject: port-i386/22600: Patches for i865G integrated graphics support
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mallen@erhs.la>
List: netbsd-bugs
Date: 08/25/2003 23:16:31
>Number:         22600
>Category:       port-i386
>Synopsis:       Patches for i865G integrated graphics support
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-i386-maintainer
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 26 06:17:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Michael D. Allen
>Release:        NetBSD 1.6W
>Organization:
	
>Environment:
	
	
System: NetBSD cube.localdomain 1.6W NetBSD 1.6W (CUBE) #3: Fri Aug 22 21:42:06 PDT 2003 mallen@cube.localdomain:/usr/src/sys/arch/i386/compile/CUBE i386
Architecture: i386
Machine: i386
>Description:
Patches to add support for i865G integrated graphics.  With these
patches, X works on my i865-based Shuttle PC.
>How-To-Repeat:
	
>Fix:
Apply these versus files in sys/dev/pci:

--- pcidevs.ORIG	2003-08-24 14:05:40.000000000 -0700
+++ pcidevs	2003-08-22 20:40:21.000000000 -0700
@@ -1610,6 +1610,7 @@
 product INTEL 82845G_IGD	0x2562	82845G/GL Integrated Graphics Device
 product INTEL 82865_HB		0x2570	82865 Host
 product INTEL 82865_AGP		0x2571	82865 AGP
+product INTEL 82865_IGD		0x2572	82865 Integrated Graphics Device
 product INTEL 82801EB_HPB	0x2573	82801EB Hub-to-PCI Bridge
 product INTEL 82875P_HB		0x2578	82875P Host
 product INTEL 82875P_AGP	0x2579	82875P AGP


--- agp.c.ORIG	2003-08-24 14:04:15.000000000 -0700
+++ agp.c	2003-08-22 21:41:54.000000000 -0700
@@ -159,6 +159,8 @@
 	  NULL,			agp_i810_attach },
 	{ PCI_VENDOR_INTEL,	PCI_PRODUCT_INTEL_82855GM_MCH,
 	  NULL,			agp_i810_attach },
+	{ PCI_VENDOR_INTEL,	PCI_PRODUCT_INTEL_82865_HB,
+	  NULL,			agp_i810_attach },
 #endif
 
 #if NAGP_INTEL > 0


--- agp_i810.c.ORIG	2003-08-24 14:05:02.000000000 -0700
+++ agp_i810.c	2003-08-22 20:43:57.000000000 -0700
@@ -115,6 +115,7 @@
 	case PCI_PRODUCT_INTEL_82830MP_IV:
 	case PCI_PRODUCT_INTEL_82845G_IGD:
 	case PCI_PRODUCT_INTEL_82855GM_IGD:
+	case PCI_PRODUCT_INTEL_82865_IGD:
 		return (1);
 	}
 
@@ -165,6 +166,7 @@
 		isc->chiptype = CHIP_I830;
 		break;
 	case PCI_PRODUCT_INTEL_82855GM_IGD:
+	case PCI_PRODUCT_INTEL_82865_IGD:
 		isc->chiptype = CHIP_I855;
 		break;
 	}


Apply this versus sys/arch/i386/pci/pchb.c:

--- pchb.c.ORIG 2003-08-24 23:49:29.000000000 -0700
+++ pchb.c      2003-08-22 20:56:33.000000000 -0700
@@ -275,6 +275,7 @@
                case PCI_PRODUCT_INTEL_82830MP_IO_1:
                case PCI_PRODUCT_INTEL_82845G_DRAM:
                case PCI_PRODUCT_INTEL_82855GM_MCH:
+               case PCI_PRODUCT_INTEL_82865_HB:
                        /*
                         * The host bridge is either in GFX mode (internal
                         * graphics) or in AGP mode. In GFX mode, we pretend

>Release-Note:
>Audit-Trail:
>Unformatted: