Agpgart for 845G
Hi,
Patch for Intel 845G agpgart support
Cheers
Graeme
drivers/char/agp/agp.h +6 -0
@@ -170,6 +170,12 @@ struct agp_bridge_data {#ifndef PCI_DEVICE_ID_INTEL_810_0 #define PCI_DEVICE_ID_INTEL_810_0 0x7120#endif +#ifndef PCI_DEVICE_ID_INTEL_845_G_0 +#define PCI_DEVICE_ID_INTEL_845_G_0 0x2560 +#endif +#ifndef PCI_DEVICE_ID_INTEL_845_G_1 +#define PCI_DEVICE_ID_INTEL_845_G_1 0x2562 +#endif #ifndef PCI_DEVICE_ID_INTEL_830_M_0 #define PCI_DEVICE_ID_INTEL_830_M_0 0x3575#endif
drivers/char/agp/agpgart_be.c +28 -0
@@ -3662,6 +3662,12 @@ static struct {"Intel" ,"i830M" , intel_830mp_setup }, + { PCI_DEVICE_ID_INTEL_845_G_0, +PCI_VENDOR_ID_INTEL , +INTEL_I845_G , +"Intel" , +"i845G" , + intel_830mp_setup }, { PCI_DEVICE_ID_INTEL_840_0,PCI_VENDOR_ID_INTEL , INTEL_I840,
@@ -3979,6 +3985,28 @@ static int __init agp_find_supported_dev agp_bridge.type =INTEL_I810 ;return intel_i810_setup (i810_dev); +case PCI_DEVICE_ID_INTEL_845_G_0 : + i810_dev =pci_find_device (PCI_VENDOR_ID_INTEL , +PCI_DEVICE_ID_INTEL_845_G_1 ,NULL ); +if (i810_dev &&PCI_FUNC (i810_dev->devfn) !=0 ) { + i810_dev =pci_find_device (PCI_VENDOR_ID_INTEL , +PCI_DEVICE_ID_INTEL_845_G_1 , i810_dev); + } + +if (i810_dev ==NULL ) { +/* +* We probably have a I830MP chipset +* with an external graphics +* card. It will be initialized later +*/ + agp_bridge.type =INTEL_I845_G ; +break ; + } + printk(KERN_INFO PFX "Detected an Intel " + "845G Chipset.\n"); + agp_bridge.type =INTEL_I810 ; +return intel_i830_setup (i810_dev); +case PCI_DEVICE_ID_INTEL_830_M_0 : i810_dev =pci_find_device (PCI_VENDOR_ID_INTEL ,PCI_DEVICE_ID_INTEL_830_M_1 ,NULL );
include/linux/agp_backend.h +1 -0
@@ -48,6 +48,7 @@ enum chipset_type {INTEL_I815 ,INTEL_I820 ,INTEL_I830_M , +INTEL_I845_G ,INTEL_I840 ,INTEL_I845 , INTEL_I850,