agpgart for P4M266

From: Nimrod A. Abing (abing@redberger.com)
Date: Sat May 31 2003 - 10:28:03 EST


Hello,

Below is a patch to 2.4.21-rc6 that adds agpgart support for Via Apollo
P4M266. This chipset is used by my EliteGroup P4VMM2 mainboard. It works
fine on my machine, e.g. I am able to run Quake III Arena and it runs more
smoothly after the patch was applied. I was only able to test on my
machine which has an NVIDIA TNT2 based gfx card (using drivers from
NVIDIA).

Please CC me when replying as I am currently not subscribed to the list.
--
_nimrod_a_abing_

PGP Public Key here:

http://www.redberger.com/~abing/abing_at_redberger_dot_com.asc

Key expires 2003-11-06
diff -Naur linux-2.4.21-rc6/drivers/char/agp/agpgart_be.c linux-2.4.21-rc6_abing/drivers/char/agp/agpgart_be.c
--- linux-2.4.21-rc6/drivers/char/agp/agpgart_be.c 2003-05-31 22:31:24.000000000 +0800
+++ linux-2.4.21-rc6_abing/drivers/char/agp/agpgart_be.c 2003-05-31 21:30:08.000000000 +0800
@@ -4688,6 +4688,12 @@
"Via",
"Apollo Pro KT400",
via_generic_setup },
+ { PCI_DEVICE_ID_VIA_P4M266,
+ PCI_VENDOR_ID_VIA,
+ VIA_APOLLO_P4M266,
+ "Via",
+ "Apollo P4M266",
+ via_generic_setup },
{ PCI_DEVICE_ID_VIA_P4X333,
PCI_VENDOR_ID_VIA,
VIA_APOLLO_P4X400,
diff -Naur linux-2.4.21-rc6/include/linux/agp_backend.h linux-2.4.21-rc6_abing/include/linux/agp_backend.h
--- linux-2.4.21-rc6/include/linux/agp_backend.h 2003-05-31 22:31:51.000000000 +0800
+++ linux-2.4.21-rc6_abing/include/linux/agp_backend.h 2003-05-31 21:29:21.000000000 +0800
@@ -60,6 +60,7 @@
VIA_APOLLO_PRO,
VIA_APOLLO_KX133,
VIA_APOLLO_KT133,
+ VIA_APOLLO_P4M266,
VIA_APOLLO_P4X400,
VIA_APOLLO_KT400,
SIS_GENERIC,
diff -Naur linux-2.4.21-rc6/include/linux/pci_ids.h linux-2.4.21-rc6_abing/include/linux/pci_ids.h
--- linux-2.4.21-rc6/include/linux/pci_ids.h 2003-05-31 22:31:54.000000000 +0800
+++ linux-2.4.21-rc6_abing/include/linux/pci_ids.h 2003-05-31 21:29:37.000000000 +0800
@@ -1027,6 +1027,7 @@
#define PCI_DEVICE_ID_VIA_8361 0x3112
#define PCI_DEVICE_ID_VIA_8375 0x3116
#define PCI_DEVICE_ID_VIA_8233A 0x3147
+#define PCI_DEVICE_ID_VIA_P4M266 0x3148
#define PCI_DEVICE_ID_VIA_P4X333 0x3168
#define PCI_DEVICE_ID_VIA_8235 0x3177
#define PCI_DEVICE_ID_VIA_8377_0 0x3189

Attachment: pgp00001.pgp
Description: PGP signature