Current-Users archive

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

Intel G35 AGP



Hi,

attached is the patch for making AGP work on Intel G35 as found on Asus
P5E-VM HDMI motherboard. i915drm works as well after applying this patch.

-- 
Milos Negovanovic
milos.negovanovic%googlemail.com@localhost
Index: sys/arch/x86/pci/pchb.c
===================================================================
RCS file: /cvsroot/src/sys/arch/x86/pci/pchb.c,v
retrieving revision 1.14
diff -u -r1.14 pchb.c
--- sys/arch/x86/pci/pchb.c     22 Aug 2008 18:05:44 -0000      1.14
+++ sys/arch/x86/pci/pchb.c     6 Nov 2008 23:35:30 -0000
@@ -382,6 +382,7 @@
                case PCI_PRODUCT_INTEL_82Q35_HB:
                case PCI_PRODUCT_INTEL_82G33_HB:
                case PCI_PRODUCT_INTEL_82Q33_HB:
+               case PCI_PRODUCT_INTEL_82G35_HB:
                        /*
                         * The host bridge is either in GFX mode (internal
                         * graphics) or in AGP mode. In GFX mode, we pretend
Index: sys/dev/pci/agp.c
===================================================================
RCS file: /cvsroot/src/sys/dev/pci/agp.c,v
retrieving revision 1.62
diff -u -r1.62 agp.c
--- sys/dev/pci/agp.c   17 Oct 2008 17:15:09 -0000      1.62
+++ sys/dev/pci/agp.c   6 Nov 2008 23:35:38 -0000
@@ -180,6 +180,8 @@
          NULL,                 agp_i810_attach },
        { PCI_VENDOR_INTEL,     PCI_PRODUCT_INTEL_82Q33_HB,
          NULL,                 agp_i810_attach },
+       { PCI_VENDOR_INTEL,     PCI_PRODUCT_INTEL_82G35_HB,
+         NULL,                 agp_i810_attach },
        { PCI_VENDOR_INTEL,     PCI_PRODUCT_INTEL_82946GZ_HB,
          NULL,                 agp_i810_attach },
 #endif
Index: sys/dev/pci/agp_i810.c
===================================================================
RCS file: /cvsroot/src/sys/dev/pci/agp_i810.c,v
retrieving revision 1.56
diff -u -r1.56 agp_i810.c
--- sys/dev/pci/agp_i810.c      22 Aug 2008 18:05:44 -0000      1.56
+++ sys/dev/pci/agp_i810.c      6 Nov 2008 23:35:40 -0000
@@ -167,6 +167,8 @@
        case PCI_PRODUCT_INTEL_82Q35_IGD_1:
        case PCI_PRODUCT_INTEL_82Q33_IGD:
        case PCI_PRODUCT_INTEL_82Q33_IGD_1:
+       case PCI_PRODUCT_INTEL_82G35_IGD:
+       case PCI_PRODUCT_INTEL_82G35_IGD_1:
        case PCI_PRODUCT_INTEL_82946GZ_IGD:
                return (1);
        }
@@ -259,6 +261,8 @@
        case PCI_PRODUCT_INTEL_82965G_IGD:
        case PCI_PRODUCT_INTEL_82965G_IGD_1:
        case PCI_PRODUCT_INTEL_82946GZ_IGD:
+       case PCI_PRODUCT_INTEL_82G35_IGD:
+       case PCI_PRODUCT_INTEL_82G35_IGD_1:
                isc->chiptype = CHIP_I965;
                break;
        case PCI_PRODUCT_INTEL_82Q35_IGD:
Index: sys/dev/pci/pcidevs.h
===================================================================
RCS file: /cvsroot/src/sys/dev/pci/pcidevs.h,v
retrieving revision 1.963
diff -u -r1.963 pcidevs.h
--- sys/dev/pci/pcidevs.h       15 Oct 2008 18:31:16 -0000      1.963
+++ sys/dev/pci/pcidevs.h       6 Nov 2008 23:35:52 -0000
@@ -2525,6 +2525,9 @@
 #define        PCI_PRODUCT_INTEL_82801I_IGP_C  0x294c          /* 82801I (C) 
LAN Controller */
 #define        PCI_PRODUCT_INTEL_82946GZ_HB    0x2970          /* 82946GZ Host 
Bridge */
 #define        PCI_PRODUCT_INTEL_82946GZ_IGD   0x2972          /* 82946GZ 
Integrated Graphics Device */
+#define        PCI_PRODUCT_INTEL_82G35_HB      0x2980          /* 82G35 Host 
Bridge */
+#define        PCI_PRODUCT_INTEL_82G35_IGD     0x2982          /* 82G35 
Integrated Graphics Device */
+#define        PCI_PRODUCT_INTEL_82G35_IGD_1   0x2983          /* 82G35 
Integrated Graphics Device */
 #define        PCI_PRODUCT_INTEL_82965Q_HB     0x2990          /* 82965Q Host 
Bridge */
 #define        PCI_PRODUCT_INTEL_82965Q_EXP    0x2991          /* 82965Q PCI 
Express Bridge */
 #define        PCI_PRODUCT_INTEL_82965Q_IGD    0x2992          /* 82965Q 
Integrated Graphics Device */


Home | Main Index | Thread Index | Old Index