mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "maciek n" <maciek_now@wp.pl>
To: linux-kernel@vger.kernel.org
Subject: Patch to agpgart for VIA Apollo Pro 133A - VIA694X chipset
Date: Thu, 26 Jul 2001 12:44:29 +0200	[thread overview]
Message-ID: <20010726104622Z266698-720+6508@vger.kernel.org> (raw)

Please find small patch to linux-2.4.7 agpgart/drm for very popular 
and powerfull VIA VT82C694X chipset ( Intel PIII/CII ). 

Until now it was not directly supported by agpgart/drm in kernel
and for operation need ugly agp_try_unsupported=1 into modules.conf

If you interested there is also the second patch ( or you can put it
manually ) to XFree-4.1.0 drm/kernel

Is it possible to include it to in future kernels ?


Maciek

If you have any questions to me please add cc: to 
maciek_now@wp.pl because I'am not subscribed to this list




--- linux-2.4.7-VIA694X-patch -------------------------

diff -u --recursive --new-file linux-2.4.7-
orig/drivers/char/agp/agp.h linux/drivers/char/agp/agp.h
--- linux-2.4.7-orig/drivers/char/agp/agp.h	Tue Jul  3 00:27:56 
2001
+++ linux/drivers/char/agp/agp.h	Wed Jul 25 21:49:03 2001
@@ -160,6 +160,9 @@
 #ifndef PCI_DEVICE_ID_VIA_8363_0
 #define PCI_DEVICE_ID_VIA_8363_0      0x0305
 #endif
+#ifndef PCI_DEVICE_ID_VIA_82C694X_0
+#define PCI_DEVICE_ID_VIA_82C694X_0      0x0605
+#endif
 #ifndef PCI_DEVICE_ID_INTEL_810_0
 #define PCI_DEVICE_ID_INTEL_810_0       0x7120
 #endif
diff -u --recursive --new-file linux-2.4.7-
orig/drivers/char/agp/agpgart_be.c linux/drivers/char/agp/agpgart_be.c
--- linux-2.4.7-orig/drivers/char/agp/agpgart_be.c	Tue Jul  3 
00:27:56 2001
+++ linux/drivers/char/agp/agpgart_be.c	Wed Jul 25 22:07:49 2001
@@ -507,6 +507,7 @@
 		if (cap_ptr != 0x00)
 			pci_write_config_dword(device, cap_ptr + 8, 
command);
 	}
+	printk (KERN_INFO PFX "AGP mode is %ldx\n", command & 7);
 }
 
 static int agp_generic_create_gatt_table(void)
@@ -3022,6 +3023,12 @@
 		VIA_APOLLO_KT133,
 		"Via",
 		"Apollo Pro KT133",
+		via_generic_setup },
+	{ PCI_DEVICE_ID_VIA_82C694X_0,
+		PCI_VENDOR_ID_VIA,
+		VIA_APOLLO_PRO133A,
+		"Via",
+		"Apollo Pro 133A",
 		via_generic_setup },
 	{ 0,
 		PCI_VENDOR_ID_VIA,
diff -u --recursive --new-file linux-2.4.7-
orig/drivers/char/drm/agpsupport.c linux/drivers/char/drm/agpsupport.c
--- linux-2.4.7-orig/drivers/char/drm/agpsupport.c	Tue Jul  3 
00:27:56 2001
+++ linux/drivers/char/drm/agpsupport.c	Wed Jul 25 22:19:21 2001
@@ -275,6 +275,8 @@
 			break;
 		case VIA_APOLLO_KT133:	head->chipset = "VIA Apollo 
KT133"; 
 			break;
+		case VIA_APOLLO_PRO133A:head->chipset = "VIA Apollo 
Pro 133A";
+			break;
 #endif
 
 		case VIA_APOLLO_PRO: 	head->chipset = "VIA Apollo 
Pro";
diff -u --recursive --new-file linux-2.4.7-
orig/include/linux/agp_backend.h linux/include/linux/agp_backend.h
--- linux-2.4.7-orig/include/linux/agp_backend.h	Tue Jul  3 
00:27:56 2001
+++ linux/include/linux/agp_backend.h	Wed Jul 25 22:15:01 2001
@@ -55,6 +55,7 @@
 	VIA_APOLLO_PRO,
 	VIA_APOLLO_KX133,
 	VIA_APOLLO_KT133,
+	VIA_APOLLO_PRO133A,
 	SIS_GENERIC,
 	AMD_GENERIC,
 	AMD_IRONGATE,


--- XFree86-4.1.0-DRM-VIA694X-patch --------------------------------


diff -u /tmp/dri/xc/programs/Xserver/hw/xfree86/os-
support/linux/drm/kernel/drm_agpsupport.h 
xc/programs/Xserver/hw/xfree86/os-
support/linux/drm/kernel/drm_agpsupport.h
--- /tmp/dri/xc/programs/Xserver/hw/xfree86/os-
support/linux/drm/kernel/drm_agpsupport.h	Tue Apr 10 18:08:04 
2001
+++ xc/programs/Xserver/hw/xfree86/os-
support/linux/drm/kernel/drm_agpsupport.h	Tue Jul 24 23:15:13 
2001
@@ -285,6 +285,8 @@
 			break;
 		case VIA_APOLLO_KT133:	head->chipset = "VIA Apollo 
KT133";
 			break;
+		case VIA_APOLLO_PRO133A:head->chipset = "VIA Apollo 
Pro133A";
+			break;
 #endif
 
 		case VIA_APOLLO_PRO: 	head->chipset = "VIA Apollo 
Pro";



-----------------------------------------------------------------------
Najtańsze książki, płyty, filmy. Kliknij! < http://www.ws.pl/Reklama/m.html?s=5 >


                 reply	other threads:[~2001-07-26 10:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010726104622Z266698-720+6508@vger.kernel.org \
    --to=maciek_now@wp.pl \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®