Patch to PCI stuff to detect IGA-1682

Peter Hunter (peter@fido.bfriars.ox.ac.uk)
Thu, 9 Jan 1997 14:58:53 +0000 (GMT)


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