From: Nicolas Mailhot Date: Thu, 21 Nov 2002 06:25:51 +0000 (-0800) Subject: [PATCH] Via KT400 agp support X-Git-Tag: v2.5.49~7^2~20 X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=4eccc58aa38d06afb9ea22e44bfdcd04e3dd57ff;p=history.git [PATCH] Via KT400 agp support This adds the KT400 pci ID and lists it as using Via generic setup routines. This patch has been tested with all GL xscreensavers I could find, and been reviewed by Dave Jones (full patch history at http://bugzilla.kernel.org/show_bug.cgi?id=3D14). diff -uNr linux-2.5.47-ac6.orig/drivers/char/agp/agp.c linux-2.5.47-ac6/drivers/char/agp/agp.c --- diff --git a/drivers/char/agp/agp.c b/drivers/char/agp/agp.c index 6130ff20c1e7..d2034e6bceb7 100644 --- a/drivers/char/agp/agp.c +++ b/drivers/char/agp/agp.c @@ -1149,6 +1149,14 @@ static struct { .chipset_name = "Apollo Pro KT266", .chipset_setup = via_generic_setup }, + { + .device_id = PCI_DEVICE_ID_VIA_8377_0, + .vendor_id = PCI_VENDOR_ID_VIA, + .chipset = VIA_APOLLO_KT400, + .vendor_name = "Via", + .chipset_name = "Apollo Pro KT400", + .chipset_setup = via_generic_setup + }, { .device_id = PCI_DEVICE_ID_VIA_8653_0, .vendor_id = PCI_VENDOR_ID_VIA, diff --git a/include/linux/agp_backend.h b/include/linux/agp_backend.h index f250d4da587c..ad1d8a935d21 100644 --- a/include/linux/agp_backend.h +++ b/include/linux/agp_backend.h @@ -61,6 +61,7 @@ enum chipset_type { VIA_APOLLO_PRO, VIA_APOLLO_KX133, VIA_APOLLO_KT133, + VIA_APOLLO_KT400, SIS_GENERIC, AMD_GENERIC, AMD_IRONGATE, diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index 44c84141a6b4..f8890c70fa89 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h @@ -1018,6 +1018,7 @@ #define PCI_DEVICE_ID_VIA_8361 0x3112 #define PCI_DEVICE_ID_VIA_8233A 0x3147 #define PCI_DEVICE_ID_VIA_8235 0x3177 +#define PCI_DEVICE_ID_VIA_8377_0 0x3189 #define PCI_DEVICE_ID_VIA_86C100A 0x6100 #define PCI_DEVICE_ID_VIA_8231 0x8231 #define PCI_DEVICE_ID_VIA_8231_4 0x8235