mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* TRIVIAL tdfxfb new IDs
@ 2003-10-23 15:47 David Jez
  0 siblings, 0 replies; 2+ messages in thread
From: David Jez @ 2003-10-23 15:47 UTC (permalink / raw)
  To: Hannu Mallat; +Cc: linux-kernel

  Hi Hannu,

  I send you small trivial patch which supports some exotics voodoo cards.
Please aply.

Regards,
-- 
-------------------------------------------------------
  David "Dave" Jez                Brno, CZ, Europe
 E-mail: dave.jez@seznam.cz
PGP key: finger xjezda00@eva.fit.vutbr.cz
---------=[ ~EOF ]=------------------------------------

^ permalink raw reply	[flat|nested] 2+ messages in thread
* TRIVIAL tdfxfb new IDs
@ 2003-10-23 15:51 David Jez
  0 siblings, 0 replies; 2+ messages in thread
From: David Jez @ 2003-10-23 15:51 UTC (permalink / raw)
  To: Hannu Mallat; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 348 bytes --]

  Hi Hannu,

  I send you small trivial patch which supports some exotics voodoo cards.
Please aply.

Regards,
-- 
-------------------------------------------------------
  David "Dave" Jez                Brno, CZ, Europe
 E-mail: dave.jez@seznam.cz
PGP key: finger xjezda00@eva.fit.vutbr.cz
---------=[ ~EOF ]=------------------------------------

[-- Attachment #2: tdfxfb.diff --]
[-- Type: text/plain, Size: 2761 bytes --]

--- tdfxfb.c.orig	Mon Dec  2 14:29:13 2002
+++ tdfxfb.c	Fri Apr 18 21:55:58 2003
@@ -94,6 +94,14 @@
 #define PCI_DEVICE_ID_3DFX_VOODOO5	0x0009
 #endif
 
+#ifndef PCI_DEVICE_ID_3DFX_BANSHEE_VELOCITY
+#define PCI_DEVICE_ID_3DFX_BANSHEE_VELOCITY 0x0004
+#endif
+
+#ifndef PCI_DEVICE_ID_3DFX_VOODOO3_AVENGER
+#define PCI_DEVICE_ID_3DFX_VOODOO3_AVENGER 0x0057
+#endif
+
 /* membase0 register offsets */
 #define STATUS		0x00
 #define PCIINIT0	0x04
@@ -482,12 +490,18 @@
 	{ PCI_VENDOR_ID_3DFX, PCI_DEVICE_ID_3DFX_BANSHEE,
 	  PCI_ANY_ID, PCI_ANY_ID, PCI_BASE_CLASS_DISPLAY << 16,
 	  0xff0000, 0 },
+	{ PCI_VENDOR_ID_3DFX, PCI_DEVICE_ID_3DFX_BANSHEE_VELOCITY,
+	  PCI_ANY_ID, PCI_ANY_ID, PCI_BASE_CLASS_DISPLAY << 16,
+	  0xff0000, 0 },
 	{ PCI_VENDOR_ID_3DFX, PCI_DEVICE_ID_3DFX_VOODOO3,
 	  PCI_ANY_ID, PCI_ANY_ID, PCI_BASE_CLASS_DISPLAY << 16,
 	  0xff0000, 0 },
 	{ PCI_VENDOR_ID_3DFX, PCI_DEVICE_ID_3DFX_VOODOO5,
 	  PCI_ANY_ID, PCI_ANY_ID, PCI_BASE_CLASS_DISPLAY << 16,
 	  0xff0000, 0 },
+	{ PCI_VENDOR_ID_3DFX, PCI_DEVICE_ID_3DFX_VOODOO3_AVENGER,
+	  PCI_ANY_ID, PCI_ANY_ID, PCI_BASE_CLASS_DISPLAY << 16,
+	  0xff0000, 0 },
 	{ 0, }
 };
 
@@ -978,6 +992,8 @@
   draminit1 = tdfx_inl(DRAMINIT1);
 
   if ((fb_info.dev == PCI_DEVICE_ID_3DFX_BANSHEE) ||
+      (fb_info.dev == PCI_DEVICE_ID_3DFX_BANSHEE_VELOCITY) ||
+      (fb_info.dev == PCI_DEVICE_ID_3DFX_VOODOO3_AVENGER) ||
       (fb_info.dev == PCI_DEVICE_ID_3DFX_VOODOO3)) {
     sgram_p = (draminit1 & DRAMINIT1_MEM_SDRAM) ? 0 : 1;
   
@@ -1526,8 +1542,10 @@
 
   switch(i->dev) {
   case PCI_DEVICE_ID_3DFX_BANSHEE:
+  case PCI_DEVICE_ID_3DFX_BANSHEE_VELOCITY:
   case PCI_DEVICE_ID_3DFX_VOODOO3:
   case PCI_DEVICE_ID_3DFX_VOODOO5:
+  case PCI_DEVICE_ID_3DFX_VOODOO3_AVENGER:
     par->width       = (var->xres + 15) & ~15; /* could sometimes be 8 */
     par->width_virt  = par->width;
     par->height      = var->yres;
@@ -1652,9 +1670,15 @@
   case PCI_DEVICE_ID_3DFX_BANSHEE:
     strcpy(fix->id, "3Dfx Banshee");
     break;
+  case PCI_DEVICE_ID_3DFX_BANSHEE_VELOCITY:
+    strcpy(fix->id, "3Dfx Banshee [Velocity 100]");
+    break;
   case PCI_DEVICE_ID_3DFX_VOODOO3:
     strcpy(fix->id, "3Dfx Voodoo3");
     break;
+  case PCI_DEVICE_ID_3DFX_VOODOO3_AVENGER:
+    strcpy(fix->id, "3Dfx Voodoo3/3000 [Avenger]");
+    break;
   case PCI_DEVICE_ID_3DFX_VOODOO5:
     strcpy(fix->id, "3Dfx Voodoo5");
     break;
@@ -1912,10 +1936,12 @@
 	
 	switch (pdev->device) {
 		case PCI_DEVICE_ID_3DFX_BANSHEE:
+		case PCI_DEVICE_ID_3DFX_BANSHEE_VELOCITY:
 			fb_info.max_pixclock = BANSHEE_MAX_PIXCLOCK;
 			name = "Banshee";
 			break;
 		case PCI_DEVICE_ID_3DFX_VOODOO3:
+		case PCI_DEVICE_ID_3DFX_VOODOO3_AVENGER:
 			fb_info.max_pixclock = VOODOO3_MAX_PIXCLOCK;
 			name = "Voodoo3";
 			break;

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-10-23 15:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-23 15:47 TRIVIAL tdfxfb new IDs David Jez
2003-10-23 15:51 David Jez

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®