Re: include/linux/pci.h

kmg@barco.barco.com
Sun, 08 Dec 96 13:20:05 +0000


> I was looking through this file while trying to figure out how to do some
> of the pci configuration stuff for a non-linux project and happened to
> notice that the pci video card I'm messing with isn't in the list of pci
> devices here. However, doing a search through the sources for some of the
> other tseng cards didn't turn up any reference to them elsewhere in the
> kernel sources.

I submitted this patch TWICE to the "official" Linux PCI responsibles
(linux-pcisupport@cao-vlsi.ibp.fr), but they neither replied, nor included
it into the linux kernel, so I gave up. I wonder why they didn't use it...
It's not really a "dangerous" patch, is it?

Koen.

PS: it might not apply very cleanly to 2.1 kernels, since it was written
back in the 2.0.0 days -- but you'll get the general idea.

=================================================================================
diff -r -u linux/drivers/pci/pci.c /usr/src/linux/drivers/pci/pci.c
--- linux/drivers/pci/pci.c Thu Oct 31 21:26:36 1996
+++ /usr/src/linux/drivers/pci/pci.c Fri Sep 13 21:54:31 1996
@@ -61,6 +61,7 @@
DEVICE( TSENG, TSENG_W32P_b, "ET4000W32P rev B"),
DEVICE( TSENG, TSENG_W32P_c, "ET4000W32P rev C"),
DEVICE( TSENG, TSENG_W32P_d, "ET4000W32P rev D"),
+ DEVICE( TSENG, TSENG_ET6000, "ET6000"),
DEVICE( WEITEK, WEITEK_P9000, "P9000"),
DEVICE( WEITEK, WEITEK_P9100, "P9100"),
BRIDGE( DEC, DEC_BRD, "DC21050", 0x00),
@@ -453,7 +454,7 @@
case PCI_VENDOR_ID_VLSI: return "VLSI";
case PCI_VENDOR_ID_ADL: return "Advance Logic";
case PCI_VENDOR_ID_NS: return "NS";
- case PCI_VENDOR_ID_TSENG: return "Tseng'Lab";
+ case PCI_VENDOR_ID_TSENG: return "Tseng Labs";
case PCI_VENDOR_ID_WEITEK: return "Weitek";
case PCI_VENDOR_ID_DEC: return "DEC";
case PCI_VENDOR_ID_CIRRUS: return "Cirrus Logic";
diff -r -u linux/include/linux/pci.h /usr/src/linux/include/linux/pci.h
--- linux/include/linux/pci.h Thu Oct 31 21:26:36 1996
+++ /usr/src/linux/include/linux/pci.h Fri Sep 13 21:54:32 1996
@@ -252,6 +252,7 @@
#define PCI_DEVICE_ID_TSENG_W32P_b 0x3205
#define PCI_DEVICE_ID_TSENG_W32P_c 0x3206
#define PCI_DEVICE_ID_TSENG_W32P_d 0x3207
+#define PCI_DEVICE_ID_TSENG_ET6000 0x3208

#define PCI_VENDOR_ID_WEITEK 0x100e
#define PCI_DEVICE_ID_WEITEK_P9000 0x9001