lkml.org 
[lkml]   [2005]   [Oct]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] nvidiafb: Geforce 7800 GTX support added

Hi, this is an almost trivial patch that simply adds support for the
Nvidia Geforce 7800 GTX card to the nvidiafb framebuffer driver. All this
patch does is add the PCI device id for this device into the module device
table for this driver, so that nvidiafb.ko will actually work on this
card.

I also added the PCI device id to linux/pci_ids.h (I hope noone minds).

I tested it on my 7800 GTX here and it works like a charm. I now can get
framebuffer support on this card! Woo hoo!! Nothing like 200x75 text
mode to make your eyes BLEED. ;)

This patch is against 2.6.14-rc5. It should apply against most 2.6
kernels though -- not sure which kernel is the standard one to submit
patches against.

Should I submit this patch for 2.4 kernel? I don't even know if that one
has nvidiafb since I don't run 2.4 much these days..

Thanks!

-Calin
diff -urN linux-2.6.14-rc5/drivers/video/nvidia/nvidia.c linux-2.6.14-rc5.new/drivers/video/nvidia/nvidia.c
--- linux-2.6.14-rc5/drivers/video/nvidia/nvidia.c 2005-10-20 02:23:05.000000000 -0400
+++ linux-2.6.14-rc5.new/drivers/video/nvidia/nvidia.c 2005-10-25 12:34:07.000000000 -0400
@@ -384,6 +384,8 @@
PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
{PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_GEFORCE_6800B_GT,
PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
+ {PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_GEFORCE_7800_GTX,
+ PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
{PCI_VENDOR_ID_NVIDIA, 0x021d,
PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
{PCI_VENDOR_ID_NVIDIA, 0x021e,
diff -urN linux-2.6.14-rc5/include/linux/pci_ids.h linux-2.6.14-rc5.new/include/linux/pci_ids.h
--- linux-2.6.14-rc5/include/linux/pci_ids.h 2005-10-20 02:23:05.000000000 -0400
+++ linux-2.6.14-rc5.new/include/linux/pci_ids.h 2005-10-25 12:39:04.000000000 -0400
@@ -1188,6 +1188,7 @@
#define PCI_DEVICE_ID_NVIDIA_CK8_AUDIO 0x008a
#define PCI_DEVICE_ID_NVIDIA_NVENET_5 0x008c
#define PCI_DEVICE_ID_NVIDIA_NFORCE2S_SATA 0x008e
+#define PCI_DEVICE_ID_NVIDIA_GEFORCE_7800_GTX 0x0091
#define PCI_DEVICE_ID_NVIDIA_ITNT2 0x00A0
#define PCI_DEVICE_ID_GEFORCE_6800A 0x00c1
#define PCI_DEVICE_ID_GEFORCE_6800A_LE 0x00c2
\
 
 \ /
  Last update: 2005-10-25 19:11    [W:0.025 / U:0.884 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site