Re: /proc/pci minor patch

Larry M. Augustin (lma@varesearch.com)
Wed, 11 Jun 1997 22:29:10 -0700


I have been doing a lot of this (putting devices in pci.h lately). I
am willing to maintain those files. I'll make a new release
immediately with a number of collected fixes if no one objects.

Larry

>Date: Fri, 13 Jun 1997 00:45:17 -0400
>From: Joe Pranevich <joepran@telerama.lm.com>
>X-Mailer: Mozilla 4.0 [en] (Win95; I)
>MIME-Version: 1.0
>X-Priority: 3 (Normal)
>Content-Type: multipart/mixed; boundary="------------3A6B1ED70B7741DC249F0AA5"
>Sender: owner-linux-kernel@vger.rutgers.edu
>Precedence: bulk
>
>This is a multi-part message in MIME format.
>--------------3A6B1ED70B7741DC249F0AA5
>Content-Type: text/plain; charset=us-ascii
>Content-Transfer-Encoding: 7bit
>
>Hola!
>
>Well, I got bored and wanted to get rid of a couple annoying warning
>messages at boot due to an unknown PCI device and went ahead and made
>the offending device "known." Unfortunately, the PCI code maintainer (as
>determined in pci.h) doesn't seem to exist anymore. (Does anyone know if
>this is a temporary thing, or if there is a new address for the
>maintainer? Maybe I should have checked the Maintainers file. :) )
>
>In any case, here is a simple patch to recognize the ALG-2064 as far as
>/proc/pci is concerned. It just adds it to the existing device list and
>should cause no problems. This diff should work with little or no
>changes in both the 2.0.x and 2.1.x trees. (I'm 90% sure I did the diff
>right. :) )
>
>If I have sent this to the wrong place, or if there is an official
>address to send prospective inclusions into the kernel, could someone
>please tell me.
>
>Ciao.
>
>Joe Pranevich
>--------------3A6B1ED70B7741DC249F0AA5
>Content-Type: text/plain; charset=us-ascii; name="alg2064.patch"
>Content-Transfer-Encoding: 7bit
>Content-Disposition: inline; filename="alg2064.patch"
>
>diff -r -u linux/drivers/pci/pci.c /usr/src/linux-2.1.42/drivers/pci/pci.c
>--- linux/drivers/pci/pci.c Sun May 18 19:38:34 1997
>+++ /usr/src/linux-2.1.42/drivers/pci/pci.c Thu Jun 12 23:34:49 1997
>@@ -230,6 +230,7 @@
> DEVICE( SYMPHONY, SYMPHONY_101, "82C101"),
> DEVICE( TEKRAM, TEKRAM_DC290, "DC-290"),
> DEVICE( 3DLABS, 3DLABS_300SX, "GLINT 300SX"),
>+ DEVICE( AVANCE, AVANCE_2064, "ALG-2064"),
> DEVICE( AVANCE, AVANCE_2302, "ALG-2302"),
> DEVICE( S3, S3_ViRGE, "ViRGE"),
> DEVICE( S3, S3_TRIO, "Trio32/Trio64"),
>@@ -555,7 +556,7 @@
> case PCI_VENDOR_ID_SYMPHONY: return "Symphony";
> 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_AVANCE: return "Avance Logic";
> case PCI_VENDOR_ID_S3: return "S3 Inc.";
> case PCI_VENDOR_ID_INTEL: return "Intel";
> case PCI_VENDOR_ID_KTI: return "KTI";
>diff -r -u -x .depend linux/include/linux/pci.h /usr/src/linux-2.1.42/include/linux/pci.h
>--- linux/include/linux/pci.h Mon May 19 15:49:28 1997
>+++ /usr/src/linux-2.1.42/include/linux/pci.h Thu Jun 12 23:35:53 1997
>@@ -560,6 +560,7 @@
> #define PCI_DEVICE_ID_3DLABS_300SX 0x0001
>
> #define PCI_VENDOR_ID_AVANCE 0x4005
>+#define PCI_DEVICE_ID_AVANCE_2064 0x2064
> #define PCI_DEVICE_ID_AVANCE_2302 0x2302
>
> #define PCI_VENDOR_ID_S3 0x5333
>
>--------------3A6B1ED70B7741DC249F0AA5--
>