lkml.org 
[lkml]   [1997]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectPatch to PCI stuff to detect IGA-1682
My Intergraphics PCI VGA card is not detected by Linux-2.0.27.

On this list, it was mentioned that the mail address given for emailing
changes to the PCI files was a fancy /dev/null. Someone suggested we patch
the kernel ourselves.

So... this patch makes kernel detect my card. This is my first kernel
patch, so if I have done something dumb, please flame me gently :-)

Peter.


diff -u -r linux-2.0.27/drivers/pci/pci.c linux-2.0.27.patched/drivers/pci/pci.c
--- linux-2.0.27/drivers/pci/pci.c Mon Nov 25 08:45:48 1996
+++ linux-2.0.27.patched/drivers/pci/pci.c Wed Jan 8 11:43:11 1997
@@ -162,6 +162,7 @@
DEVICE( TEKRAM2, TEKRAM2_690c, "DC690c"),
DEVICE( AMCC, AMCC_MYRINET, "Myrinet PCI (M2-PCI-32)"),
DEVICE( INTERG, INTERG_1680, "IGA-1680"),
+ DEVICE( INTERG, INTERG_1682, "IGA-1682"),
DEVICE( REALTEK, REALTEK_8029, "8029"),
DEVICE( INIT, INIT_320P, "320 P"),
DEVICE( VIA, VIA_82C505, "VT 82C505"),
diff -u -r linux-2.0.27/include/linux/pci.h linux-2.0.27.patched/include/linux/pci.h
--- linux-2.0.27/include/linux/pci.h Mon Nov 25 08:45:50 1996
+++ linux-2.0.27.patched/include/linux/pci.h Wed Jan 8 11:42:06 1997
@@ -439,6 +439,7 @@

#define PCI_VENDOR_ID_INTERG 0x10ea
#define PCI_DEVICE_ID_INTERG_1680 0x1680
+#define PCI_DEVICE_ID_INTERG_1682 0x1682

#define PCI_VENDOR_ID_REALTEK 0x10ec
#define PCI_DEVICE_ID_REALTEK_8029 0x8029


\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.036 / U:1.296 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site