Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > by-pkgid > 795ae080bdb8618620666fed9e003621 > files > 13

kernel22-2.2.25-1.1mdk.src.rpm

diff -urN ref/arch/alpha/kernel/bios32.c 2.2.20pre3aa1/arch/alpha/kernel/bios32.c
--- ref/arch/alpha/kernel/bios32.c	Mon Jun 18 18:37:19 2001
+++ 2.2.20pre3aa1/arch/alpha/kernel/bios32.c	Mon Jun 18 18:26:56 2001
@@ -1470,4 +1470,14 @@
 	}
 }
 
+/* Return the index of the PCI controller for device PDEV. */
+int
+pci_controller_num(struct pci_dev *pdev)
+{
+	if (bus2hose[pdev->bus->number] == NULL)
+		return -ENXIO;
+
+	return bus2hose[pdev->bus->number]->pci_hose_index;
+}
+
 #endif /* CONFIG_PCI */
--- linux/include/asm-alpha/pci.h.alpha	2002-12-09 15:11:20.000000000 -0500
+++ linux/include/asm-alpha/pci.h	2002-12-09 15:11:53.000000000 -0500
@@ -53,13 +53,6 @@
 #define IOBASE_SPARSE_IO        3
 #define IOBASE_DENSE_IO         4
 
-/* Return the index of the PCI controller for device PDEV. */
-static __inline__ int pci_controller_num(struct pci_dev *pdev)
-{
-	if (bus2hose[pdev->bus->number] == NULL)
-		return -ENXIO;
-
-	return bus2hose[pdev->bus->number]->pci_hose_index;
-}
+extern int pci_controller_num(struct pci_dev *pdev);
 
 #endif /* __ALPHA_PCI_H */