Add Intel Pineview support trunk
authormatt <matt@NetBSD.org>
Thu, 24 Feb 2011 20:01:53 +0000
branchtrunk
changeset 198430 d8c7d329c2c3
parent 198429 fe929f01d067
child 198431 9b1b9c656891
Add Intel Pineview support
sys/arch/x86/pci/pchb.c
sys/dev/pci/agp.c
sys/dev/pci/agp_i810.c
--- a/sys/arch/x86/pci/pchb.c	Thu Feb 24 20:01:26 2011 +0000
+++ b/sys/arch/x86/pci/pchb.c	Thu Feb 24 20:01:53 2011 +0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: pchb.c,v 1.23 2010/07/23 00:43:21 jakllsch Exp $ */
+/*	$NetBSD: pchb.c,v 1.24 2011/02/24 20:02:20 matt Exp $ */
 
 /*-
  * Copyright (c) 1996, 1998, 2000 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pchb.c,v 1.23 2010/07/23 00:43:21 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pchb.c,v 1.24 2011/02/24 20:02:20 matt Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -394,6 +394,8 @@
 		case PCI_PRODUCT_INTEL_IRONLAKE_M_HB:
 		case PCI_PRODUCT_INTEL_IRONLAKE_MA_HB:
 		case PCI_PRODUCT_INTEL_IRONLAKE_MC2_HB:
+		case PCI_PRODUCT_INTEL_PINEVIEW_HB:
+		case PCI_PRODUCT_INTEL_PINEVIEW_M_HB:
 			/*
 			 * The host bridge is either in GFX mode (internal
 			 * graphics) or in AGP mode. In GFX mode, we pretend
--- a/sys/dev/pci/agp.c	Thu Feb 24 20:01:26 2011 +0000
+++ b/sys/dev/pci/agp.c	Thu Feb 24 20:01:53 2011 +0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: agp.c,v 1.77 2011/02/15 08:57:01 jmcneill Exp $	*/
+/*	$NetBSD: agp.c,v 1.78 2011/02/24 20:01:53 matt Exp $	*/
 
 /*-
  * Copyright (c) 2000 Doug Rabson
@@ -65,7 +65,7 @@
 
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: agp.c,v 1.77 2011/02/15 08:57:01 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: agp.c,v 1.78 2011/02/24 20:01:53 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -210,6 +210,10 @@
 	  NULL, 		agp_i810_attach },
 	{ PCI_VENDOR_INTEL,	PCI_PRODUCT_INTEL_IRONLAKE_MC2_HB,
 	  NULL, 		agp_i810_attach },
+	{ PCI_VENDOR_INTEL,	PCI_PRODUCT_INTEL_PINEVIEW_HB,
+	  NULL, 		agp_i810_attach },
+	{ PCI_VENDOR_INTEL,	PCI_PRODUCT_INTEL_PINEVIEW_M_HB,
+	  NULL, 		agp_i810_attach },
 #endif
 
 #if NAGP_INTEL > 0
--- a/sys/dev/pci/agp_i810.c	Thu Feb 24 20:01:26 2011 +0000
+++ b/sys/dev/pci/agp_i810.c	Thu Feb 24 20:01:53 2011 +0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: agp_i810.c,v 1.71 2011/01/30 23:43:08 gsutre Exp $	*/
+/*	$NetBSD: agp_i810.c,v 1.72 2011/02/24 20:01:53 matt Exp $	*/
 
 /*-
  * Copyright (c) 2000 Doug Rabson
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: agp_i810.c,v 1.71 2011/01/30 23:43:08 gsutre Exp $");
+__KERNEL_RCSID(0, "$NetBSD: agp_i810.c,v 1.72 2011/02/24 20:01:53 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -220,6 +220,8 @@
 	case PCI_PRODUCT_INTEL_82B43_IGD:
 	case PCI_PRODUCT_INTEL_IRONLAKE_D_IGD:
 	case PCI_PRODUCT_INTEL_IRONLAKE_M_IGD:
+	case PCI_PRODUCT_INTEL_PINEVIEW_IGD:
+	case PCI_PRODUCT_INTEL_PINEVIEW_M_IGD:
 		return (1);
 	}
 
@@ -304,6 +306,8 @@
 	case PCI_PRODUCT_INTEL_82945GM_IGD_1:
 	case PCI_PRODUCT_INTEL_82945GME_IGD:
 	case PCI_PRODUCT_INTEL_E7221_IGD:
+	case PCI_PRODUCT_INTEL_PINEVIEW_IGD:
+	case PCI_PRODUCT_INTEL_PINEVIEW_M_IGD:
 		isc->chiptype = CHIP_I915;
 		break;
 	case PCI_PRODUCT_INTEL_82965Q_IGD: