Messages in this thread Patch in this message | | | Date | Fri, 13 Jun 1997 00:45:17 -0400 | From | Joe Pranevich <> | Subject | /proc/pci minor patch |
| |
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 Pranevichdiff -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 | |