mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Richard Baverstock <beaver@gto.net>
To: linux-kernel@vger.kernel.org
Cc: marcelo@conectiva.com.br
Subject: [PATCH] AGPGART for VIA vt8235, kernel 2.4.21-pre2
Date: Thu, 2 Jan 2003 14:53:46 -0500	[thread overview]
Message-ID: <20030102145346.27a21ed9.beaver@gto.net> (raw)

Here is a patch that enables AGPGART for the VIA vt8235 chipset on P4X400 motherboards. Rather trivial, adds the pci id, then a few lines in the agp sources to get it identified. I've only been able to test this on my computer, where it works.

Rich


--BEGIN--

diff -ur linux/drivers/char/agp/agp.h linux-2.4.21-pre2/drivers/char/agp/agp.h
--- linux/drivers/char/agp/agp.h 2003-01-02 14:36:15.000000000 -0500
+++ linux-2.4.21-pre2/drivers/char/agp/agp.h 2003-01-02 14:35:02.000000000 -0500
@@ -157,6 +157,9 @@

 #define PGE_EMPTY(p) (!(p) || (p) == (unsigned long) agp_bridge.scratch_page)

+#ifndef PCI_DEVICE_ID_VIA_8235_0
+#define PCI_DEVICE_ID_VIA_8235_0       0x3168
+#endif
 #ifndef PCI_DEVICE_ID_VIA_82C691_0
 #define PCI_DEVICE_ID_VIA_82C691_0      0x0691
 #endif
diff -ur linux/drivers/char/agp/agpgart_be.c linux-2.4.21-pre2/drivers/char/agp/agpgart_be.c
--- linux/drivers/char/agp/agpgart_be.c   2003-01-02 14:36:15.000000000 -0500
+++ linux-2.4.21-pre2/drivers/char/agp/agpgart_be.c   2003-01-02 14:35:02.000000000 -0500
@@ -4640,6 +4640,12 @@
 #endif /* CONFIG_AGP_SIS */

 #ifdef CONFIG_AGP_VIA
+  { PCI_DEVICE_ID_VIA_8235_0,
+     PCI_VENDOR_ID_VIA,
+     VIA_P4X400,
+     "Via",
+     "P4X400",
+     via_generic_setup },
   { PCI_DEVICE_ID_VIA_8501_0,
      PCI_VENDOR_ID_VIA,
      VIA_MVP4,
diff -ur linux/drivers/pci/pci.ids linux-2.4.21-pre2/drivers/pci/pci.ids
--- linux/drivers/pci/pci.ids 2003-01-02 14:36:16.000000000 -0500
+++ linux-2.4.21-pre2/drivers/pci/pci.ids 2003-01-02 14:35:02.000000000 -0500
@@ -2751,6 +2751,7 @@
   3147  VT8233A ISA Bridge
   3148  P4M266 Host Bridge
   3156  P/KN266 Host Bridge
+  3168  VT8235 [P4X400 AGP]
   3177  VT8233A ISA Bridge
      1458 5001 GA-7VAX Mainboard
   3189  VT8377 [KT400 AGP] Host Bridge
diff -ur linux/include/linux/agp_backend.h linux-2.4.21-pre2/include/linux/agp_backend.h
--- linux/include/linux/agp_backend.h  2003-01-02 14:36:17.000000000 -0500
+++ linux-2.4.21-pre2/include/linux/agp_backend.h  2003-01-02 14:35:02.000000000 -0500
@@ -54,6 +54,7 @@
   INTEL_I850,
   INTEL_I860,
   VIA_GENERIC,
+  VIA_P4X400,
   VIA_VP3,
   VIA_MVP3,
   VIA_MVP4,

--END--



             reply	other threads:[~2003-01-02 19:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-02 19:53 Richard Baverstock [this message]
2003-01-03 16:16 ` Vojtech Pavlik
2003-01-03 17:22   ` Richard Baverstock
2003-01-03 17:43     ` Dave Jones
2003-01-03 18:00       ` Dave Jones
2003-01-03 18:24         ` Richard Baverstock
2003-01-03 18:13       ` Richard Baverstock

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=20030102145346.27a21ed9.beaver@gto.net \
    --to=beaver@gto.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo@conectiva.com.br \
    /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®