Add Intel Pineview support

This commit is contained in:
matt 2011-02-24 20:01:53 +00:00
parent 274ce75f7e
commit 95ad459439
3 changed files with 16 additions and 6 deletions

View File

@ -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 @@ pchbattach(device_t parent, device_t self, void *aux)
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

View File

@ -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 @@ const struct agp_product {
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

View File

@ -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 @@ agp_i810_vgamatch(struct pci_attach_args *pa)
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 @@ agp_i810_attach(device_t parent, device_t self, void *aux)
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: