quick hack to fix lack of PCI_VENDOR_ID_ICP in 2.2 kernels
authorFrank Mori Hess <fmhess@speakeasy.net>
Thu, 21 Feb 2002 17:57:56 +0000 (17:57 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Thu, 21 Feb 2002 17:57:56 +0000 (17:57 +0000)
include/linux/pci.h

index 77a2610a795908a72f4d6207efc0af378026121c..19a04bae0fe7c5bb0c4134e8e82ca8d11f15a1fe 100644 (file)
@@ -23,6 +23,9 @@
 #define pci_enable_device(x) 0
 
 #define PCI_ANY_ID (~0)
+#ifndef PCI_VENDOR_ID_ICP
+#define PCI_VENDOR_ID_ICP 0x104c
+#endif
 
 struct pci_device_id {
        unsigned int vendor, device;
@@ -72,9 +75,6 @@ extern inline unsigned long pci_resource_start(struct pci_dev *dev, unsigned int
                return dev->base_address[bar] & PCI_BASE_ADDRESS_IO_MASK;
        return dev->base_address[bar] & PCI_BASE_ADDRESS_MEM_MASK;
 }
-
-#else
-
 #endif
 
 #endif