From nork@FreeBSD.org  Mon May  5 09:57:47 2003
Return-Path: <nork@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 631C137B401
	for <FreeBSD-gnats-submit@FreeBSD.org>; Mon,  5 May 2003 09:57:47 -0700 (PDT)
Received: from nd250009.gab.xdsl.ne.jp (nd250009.gab.xdsl.ne.jp [61.202.250.9])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 3C0EC43F85
	for <FreeBSD-gnats-submit@FreeBSD.org>; Mon,  5 May 2003 09:57:46 -0700 (PDT)
	(envelope-from nork@FreeBSD.org)
Received: from nd250009.gab.xdsl.ne.jp (nadesico.ninth-nine.com [192.168.36.3]) by nd250009.gab.xdsl.ne.jp (8.12.9/8.12.9/NinthNine) with SMTP id h45GviLJ091787 for <FreeBSD-gnats-submit@freebsd.org>; Tue, 6 May 2003 01:57:44 +0900 (JST) (envelope-from nMessage-Id: <200305051657.h45GviLJ091787@nd250009.gab.xdsl.ne.jp>
Date: Tue, 6 May 2003 01:57:44 +0900 (JST)
From: Norikatsu Shigemura <nork@FreeBSD.org>
To: FreeBSD-gnats-submit@FreeBSD.org
Subject: agp driver for i875P chipset

>Number:         51802
>Category:       i386
>Synopsis:       agp driver for i875P chipset
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    anholt
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 05 10:00:20 PDT 2003
>Closed-Date:    Mon Jun 23 04:10:44 PDT 2003
>Last-Modified:  Mon Jun 23 04:10:44 PDT 2003
>Originator:     Norikatsu Shigemura
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
Ensure Technology Ltd.
>Environment:
System: FreeBSD nadesico.ninth-nine.com 5.0-CURRENT FreeBSD 5.0-CURRENT #3: Sat May 3 19:44:30 JST 2003 nork@nadesico.ninth-nine.com:/usr/obj/usr/src/sys/NADESICO i386
CPU:		Intel PentiumIII 1.13GMHz x 2
MotherBoard:	SUPERMICRO P3TDDE
Chipset:	VIA Apollo Pro266T
GraphicsCard:	ATI Radeon9000 (64MB)
>Description:
	I made a patch for i875P AGP driver.
>How-To-Repeat:
	N/A.  I don't have a i875 mother board.
>Fix:
--- agp_intel.c.diff begins here ---
Index: agp_intel.c
===================================================================
RCS file: /home/ncvs/src/sys/pci/agp_intel.c,v
retrieving revision 1.12
diff -u -r1.12 agp_intel.c
--- agp_intel.c	15 Apr 2003 06:37:29 -0000	1.12
+++ agp_intel.c	5 May 2003 16:47:16 -0000
@@ -98,6 +98,9 @@
 
 	case 0x25318086:
 		return ("Intel 82860 host to AGP bridge");
+
+	case 0x25788086:
+		return ("Intel 82875P host to AGP bridge");
 	};
 
 	if (pci_get_vendor(dev) == 0x8086)
@@ -188,6 +191,7 @@
 		break;
 
 	case 0x1a308086: /* i845 */
+	case 0x25788086: /* i875P */
 		pci_write_config(dev, AGP_INTEL_I845_MCHCFG,
 				 (pci_read_config(dev, AGP_INTEL_I845_MCHCFG, 1)
 				  | (1 << 1)), 1);
@@ -209,6 +213,7 @@
 	case 0x1a308086: /* i845 */
 	case 0x25308086: /* i850 */
 	case 0x25318086: /* i860 */
+	case 0x25788086: /* i875P */
 		pci_write_config(dev, AGP_INTEL_I8XX_ERRSTS, 0x001c, 2);
 		break;
 
@@ -251,6 +256,7 @@
 				& ~(1 << 1)), 1);
 
 	case 0x1a308086: /* i845 */
+	case 0x25788086: /* i875P */
 		printf("%s: set MCHCFG to %x\n", __func__, (unsigned)
 				(pci_read_config(dev, AGP_INTEL_I845_MCHCFG, 1)
 				& ~(1 << 1)));
--- agp_intel.c.diff ends here ---
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-i386->anholt 
Responsible-Changed-By: nork 
Responsible-Changed-When: Fri May 16 11:14:15 PDT 2003 
Responsible-Changed-Why:  
Over to DRM maintainer. 
I believe you will find i875P age driver interesting. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=51802 
State-Changed-From-To: open->closed 
State-Changed-By: mdodd 
State-Changed-When: Mon Jun 23 04:10:30 PDT 2003 
State-Changed-Why:  
Committed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=51802 
>Unformatted:
