Re: "New pci.h"

Steve McIntyre (stevem@chiark.greenend.org.uk)
Sat, 23 Aug 1997 13:43:20 +0100


>it is known that ne.c cannot be compiled in pre-7 because of the missing
>defines PCI_VENDOR_ID_NETVIN and PCI_DEVICE_ID_NETVIN_NV5000SC. But where
>to get the correct defines?
>
>Alan Cox just said that one needs a newer pci.h. But I'm unable to find
>this. Even 2.1.51 doesn't have these defines. I didn't find anything on
>linuxhq.
>
>Please Alan, could you just post this trivial patch? For the moment I have
>to remove the IDs for the new card from ne.c.

I'll do it - I wa the one who sent in the patch for the NetVin PCI NE2000
card, both for ne.c and pci.[ch]. Here's the PCI stuff:

--- linux/include/linux/pci.h Fri Jan 24 18:56:58 1997
+++ linux-2.0.29/include/linux/pci.h Sat Aug 2 02:39:15 1997
@@ -529,6 +530,9 @@

#define PCI_VENDOR_ID_AVANCE 0x4005
#define PCI_DEVICE_ID_AVANCE_2302 0x2302
+
+#define PCI_VENDOR_ID_NETVIN 0x4A14
+#define PCI_DEVICE_ID_NETVIN_NV5000SC 0x5000

#define PCI_VENDOR_ID_S3 0x5333
#define PCI_DEVICE_ID_S3_ViRGE 0x5631
--- linux/drivers/pci/pci.c Fri Jan 24 18:56:58 1997
+++ linux-2.0.29/drivers/pci/pci.c Sat Aug 2 03:37:35 1997
@@ -210,6 +211,7 @@
DEVICE( TEKRAM, TEKRAM_DC290, "DC-290"),
DEVICE( 3DLABS, 3DLABS_300SX, "GLINT 300SX"),
DEVICE( AVANCE, AVANCE_2302, "ALG-2302"),
+ DEVICE( NETVIN, NETVIN_NV5000SC,"NV 5000SC"),
DEVICE( S3, S3_ViRGE, "ViRGE"),
DEVICE( S3, S3_TRIO, "Trio32/Trio64"),
DEVICE( S3, S3_AURORA64VP, "Aurora64V+"),
@@ -524,6 +526,7 @@
case PCI_VENDOR_ID_TEKRAM: return "Tekram";
case PCI_VENDOR_ID_3DLABS: return "3Dlabs";
case PCI_VENDOR_ID_AVANCE: return "Avance";
+ case PCI_VENDOR_ID_NETVIN: return "Netvin";
case PCI_VENDOR_ID_S3: return "S3 Inc.";
case PCI_VENDOR_ID_INTEL: return "Intel";
case PCI_VENDOR_ID_ADAPTEC: return "Adaptec";

-- 
Steve