lkml.org 
[lkml]   [2000]   [Aug]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] agpgart support for KX133/KT133, 2.4.0-test7-pre3
Hi Linus, Jeff, all.

Please apply this patch (diffed against 2.4.0-test7-pre3) to clear up some
problems with chipset detection for the VIA KX-133/KT-133 chipsets, and enable
support for the VIA KT133 AGP bridge.

--
Byron Stanoszek Ph: (330) 644-3059
Systems Programmer Fax: (330) 644-8110
Commercial Timesharing Inc. Email: bstanoszek@comtime.com
--- linux/drivers/char/agp/agp.h.bak Sun Aug 13 21:46:28 2000
+++ linux/drivers/char/agp/agp.h Sun Aug 13 21:47:56 2000
@@ -154,8 +154,11 @@
#ifndef PCI_DEVICE_ID_VIA_82C691_0
#define PCI_DEVICE_ID_VIA_82C691_0 0x0691
#endif
-#ifndef PCI_DEVICE_ID_VIA_82C691_1
-#define PCI_DEVICE_ID_VIA_82C691_1 0x8691
+#ifndef PCI_DEVICE_ID_VIA_8371_0
+#define PCI_DEVICE_ID_VIA_8371_0 0x0391
+#endif
+#ifndef PCI_DEVICE_ID_VIA_8363_0
+#define PCI_DEVICE_ID_VIA_8363_0 0x0305
#endif
#ifndef PCI_DEVICE_ID_INTEL_810_0
#define PCI_DEVICE_ID_INTEL_810_0 0x7120
--- linux/drivers/char/agp/agpgart_be.c.bak Sun Aug 13 21:46:28 2000
+++ linux/drivers/char/agp/agpgart_be.c Sun Aug 13 21:47:56 2000
@@ -414,10 +414,9 @@

/*
* Driver routines - start
- * Currently this module supports the
- * i810, 440lx, 440bx, 440gx, via vp3, via mvp3,
- * amd irongate, ALi M1541 and generic support for the
- * SiS chipsets.
+ * Currently this module supports the following chipsets:
+ * i810, 440lx, 440bx, 440gx, via vp3, via mvp3, via kx133, via kt133,
+ * amd irongate, ALi M1541, and generic support for the SiS chipsets.
*/

/* Generic Agp routines - Start */
@@ -2129,12 +2128,6 @@
#endif /* CONFIG_AGP_SIS */

#ifdef CONFIG_AGP_VIA
- { PCI_DEVICE_ID_VIA_8371_0,
- PCI_VENDOR_ID_VIA,
- VIA_APOLLO_SUPER,
- "Via",
- "Apollo Super",
- via_generic_setup },
{ PCI_DEVICE_ID_VIA_8501_0,
PCI_VENDOR_ID_VIA,
VIA_MVP4,
@@ -2158,6 +2151,18 @@
VIA_APOLLO_PRO,
"Via",
"Apollo Pro",
+ via_generic_setup },
+ { PCI_DEVICE_ID_VIA_8371_0,
+ PCI_VENDOR_ID_VIA,
+ VIA_APOLLO_KX133,
+ "Via",
+ "Apollo Pro KX133",
+ via_generic_setup },
+ { PCI_DEVICE_ID_VIA_8363_0,
+ PCI_VENDOR_ID_VIA,
+ VIA_APOLLO_KT133,
+ "Via",
+ "Apollo Pro KT133",
via_generic_setup },
{ 0,
PCI_VENDOR_ID_VIA,
--- linux/drivers/char/drm/agpsupport.c.bak Sun Aug 13 21:46:28 2000
+++ linux/drivers/char/drm/agpsupport.c Sun Aug 13 21:47:56 2000
@@ -309,7 +309,9 @@

#if LINUX_VERSION_CODE >= 0x020400
case VIA_MVP4: head->chipset = "VIA MVP4"; break;
- case VIA_APOLLO_SUPER: head->chipset = "VIA Apollo Super";
+ case VIA_APOLLO_KX133: head->chipset = "VIA Apollo KX133";
+ break;
+ case VIA_APOLLO_KT133: head->chipset = "VIA Apollo KT133";
break;
#endif

--- linux/drivers/pci/pci.ids.bak Sun Aug 13 21:46:28 2000
+++ linux/drivers/pci/pci.ids Sun Aug 13 21:47:56 2000
@@ -1964,8 +1964,8 @@
6100 VT85C100A [Rhine II]
8231 VT8231 [PCI-to-ISA Bridge]
8235 VT8235 Power Management
- 8305 VT8365 [KM133 AGP]
- 8391 VT8363/8371 [KT133/KX133 AGP]
+ 8305 VT8363/8365 [KT133/KM133 AGP]
+ 8391 VT8371 [KX133 AGP]
8501 VT8501 [Apollo MVP4 AGP]
8596 VT82C596 [Apollo PRO AGP]
8597 VT82C597 [Apollo VP3 AGP]
--- linux/include/linux/agp_backend.h.bak Sun Aug 13 21:46:28 2000
+++ linux/include/linux/agp_backend.h Sun Aug 13 21:47:56 2000
@@ -50,8 +50,9 @@
VIA_VP3,
VIA_MVP3,
VIA_MVP4,
- VIA_APOLLO_SUPER,
VIA_APOLLO_PRO,
+ VIA_APOLLO_KX133,
+ VIA_APOLLO_KT133,
SIS_GENERIC,
AMD_GENERIC,
AMD_IRONGATE,
\
 
 \ /
  Last update: 2005-03-22 13:58    [W:0.024 / U:0.788 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site