lkml.org 
[lkml]   [2003]   [Jan]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patches in this message
/
Date
From
Subject[PATCH] AGP support for VIA P4X333 boards
SSIA
The patch adds AGP support for VIA P4X333 mainboards [by simply adding the
PCI IDs, the generic VIA driver works].

LLaP
bero

--
Ark Linux - Linux for the masses
http://www.arklinux.org/--- linux-2.4.20/include/linux/pci_ids.h.bero Fri Jan 3 13:49:09 2003
+++ linux-2.4.20/include/linux/pci_ids.h Fri Jan 3 13:49:37 2003
@@ -986,6 +986,7 @@
#define PCI_DEVICE_ID_VIA_8233C_0 0x3109
#define PCI_DEVICE_ID_VIA_8361 0x3112
#define PCI_DEVICE_ID_VIA_8233A 0x3147
+#define PCI_DEVICE_ID_VIA_P4X333 0x3168
#define PCI_DEVICE_ID_VIA_86C100A 0x6100
#define PCI_DEVICE_ID_VIA_8231 0x8231
#define PCI_DEVICE_ID_VIA_8231_4 0x8235
--- linux-2.4.20/include/linux/agp_backend.h.bero Fri Jan 3 13:49:45 2003
+++ linux-2.4.20/include/linux/agp_backend.h Fri Jan 3 13:50:01 2003
@@ -60,6 +60,7 @@
VIA_APOLLO_PRO,
VIA_APOLLO_KX133,
VIA_APOLLO_KT133,
+ VIA_APOLLO_P4X400,
SIS_GENERIC,
AMD_GENERIC,
AMD_IRONGATE,
--- linux-2.4.20/drivers/char/drm/drm_agpsupport.h.bero Fri Jan 3 13:50:17 2003
+++ linux-2.4.20/drivers/char/drm/drm_agpsupport.h Fri Jan 3 13:50:49 2003
@@ -281,6 +281,8 @@
break;
case VIA_APOLLO_PRO: head->chipset = "VIA Apollo Pro";
break;
+ case VIA_APOLLO_P4X400: hard->chipset = "VIA Apollo P4X400";
+ break;

case SIS_GENERIC: head->chipset = "SiS"; break;
case AMD_GENERIC: head->chipset = "AMD"; break;
--- linux-2.4.20/drivers/char/agp/agpgart_be.c.bero Fri Jan 3 13:50:59 2003
+++ linux-2.4.20/drivers/char/agp/agpgart_be.c Fri Jan 3 13:51:46 2003
@@ -4714,6 +4714,12 @@
"Via",
"Apollo Pro KT266",
via_generic_setup },
+ { PCI_DEVICE_ID_VIA_P4X333,
+ PCI_VENDOR_ID_VIA,
+ VIA_APOLLO_P4X400,
+ "Via",
+ "Apollo P4X400",
+ via_generic_setup },
{ 0,
PCI_VENDOR_ID_VIA,
VIA_GENERIC,
--- linux-2.4.20/drivers/char/drm-4.0/agpsupport.c.bero Fri Jan 3 13:52:01 2003
+++ linux-2.4.20/drivers/char/drm-4.0/agpsupport.c Fri Jan 3 13:52:22 2003
@@ -275,6 +275,7 @@
break;
case VIA_APOLLO_KT133: head->chipset = "VIA Apollo KT133";
break;
+ case VIA_APOLLO_P4X400: head->chipset = "VIA Apollo P4X400";
#endif

case VIA_APOLLO_PRO: head->chipset = "VIA Apollo Pro";--- linux-2.4.20/include/linux/pci_ids.h.p4x333~ Fri Jan 3 13:27:25 2003
+++ linux-2.4.20/include/linux/pci_ids.h Fri Jan 3 13:27:36 2003
@@ -1014,6 +1014,7 @@
#define PCI_DEVICE_ID_VIA_8233C_0 0x3109
#define PCI_DEVICE_ID_VIA_8361 0x3112
#define PCI_DEVICE_ID_VIA_8233A 0x3147
+#define PCI_DEVICE_ID_VIA_P4X333 0x3168
#define PCI_DEVICE_ID_VIA_8235 0x3177
#define PCI_DEVICE_ID_VIA_8377_0 0x3189
#define PCI_DEVICE_ID_VIA_86C100A 0x6100
--- linux-2.4.20/include/linux/agp_backend.h.p4x333~ Fri Jan 3 13:30:31 2003
+++ linux-2.4.20/include/linux/agp_backend.h Fri Jan 3 13:30:47 2003
@@ -61,6 +61,7 @@
VIA_APOLLO_KX133,
VIA_APOLLO_KT133,
VIA_APOLLO_KT400,
+ VIA_APOLLO_P4X400,
SIS_GENERIC,
AMD_GENERIC,
AMD_IRONGATE,
--- linux-2.4.20/drivers/char/drm/drm_agpsupport.h.p4x333~ Fri Jan 3 13:29:29 2003
+++ linux-2.4.20/drivers/char/drm/drm_agpsupport.h Fri Jan 3 13:29:59 2003
@@ -281,6 +281,8 @@
break;
case VIA_APOLLO_KT400: head->chipset = "VIA Apollo KT400";
break;
+ case VIA_APOLLO_P4X400: head->chipset = "VIA Apollo P4X400";
+ break;
case VIA_APOLLO_PRO: head->chipset = "VIA Apollo Pro";
break;

--- linux-2.4.20/drivers/char/agp/agpgart_be.c.p4x333~ Fri Jan 3 13:27:36 2003
+++ linux-2.4.20/drivers/char/agp/agpgart_be.c Fri Jan 3 13:33:27 2003
@@ -4728,11 +4728,11 @@
"Via",
"Apollo Pro KT400",
via_generic_setup },
- { PCI_DEVICE_ID_VIA_8377_0,
+ { PCI_DEVICE_ID_VIA_P4X333,
PCI_VENDOR_ID_VIA,
- VIA_APOLLO_KT400,
+ VIA_APOLLO_P4X400,
"Via",
- "Apollo Pro KT400",
+ "Apollo P4X400",
via_generic_setup },
{ 0,
PCI_VENDOR_ID_VIA,
--- linux-2.4.20/drivers/char/drm-4.0/agpsupport.c.p4x333~ Fri Jan 3 13:31:14 2003
+++ linux-2.4.20/drivers/char/drm-4.0/agpsupport.c Fri Jan 3 13:31:49 2003
@@ -277,6 +277,8 @@
break;
case VIA_APOLLO_KT400: head->chipset = "VIA Apollo KT400";
break;
+ case VIA_APOLLO_P4X400: head->chipset = "VIA Apollo P4X400";
+ break;
#endif

case VIA_APOLLO_PRO: head->chipset = "VIA Apollo Pro";
\
 
 \ /
  Last update: 2005-03-22 13:32    [W:0.053 / U:3.792 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site