diff options
author | Paul Mackerras <paulus@samba.org> | 2005-10-10 08:50:37 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-10-10 08:50:37 -0400 |
commit | 40ef8cbc6d360e564573eb19582249c35d8ba330 (patch) | |
tree | abba70b7da8bef93a87431691dc8df79eb4425d5 /include/asm-ppc64/pci-bridge.h | |
parent | bc6f8a4b199156897f6eb5b70bf5c1a4773f4e2b (diff) |
powerpc: Get 64-bit configs to compile with ARCH=powerpc
This is a bunch of mostly small fixes that are needed to get
ARCH=powerpc to compile for 64-bit. This adds setup_64.c from
arch/ppc64/kernel/setup.c and locks.c from arch/ppc64/lib/locks.c.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-ppc64/pci-bridge.h')
-rw-r--r-- | include/asm-ppc64/pci-bridge.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asm-ppc64/pci-bridge.h b/include/asm-ppc64/pci-bridge.h index 8ca5fce626bb..c342c9eb07a4 100644 --- a/include/asm-ppc64/pci-bridge.h +++ b/include/asm-ppc64/pci-bridge.h | |||
@@ -106,6 +106,16 @@ static inline struct device_node *pci_device_to_OF_node(struct pci_dev *dev) | |||
106 | return fetch_dev_dn(dev); | 106 | return fetch_dev_dn(dev); |
107 | } | 107 | } |
108 | 108 | ||
109 | static inline int pci_device_from_OF_node(struct device_node *np, | ||
110 | u8 *bus, u8 *devfn) | ||
111 | { | ||
112 | if (!PCI_DN(np)) | ||
113 | return -ENODEV; | ||
114 | *bus = PCI_DN(np)->busno; | ||
115 | *devfn = PCI_DN(np)->devfn; | ||
116 | return 0; | ||
117 | } | ||
118 | |||
109 | static inline struct device_node *pci_bus_to_OF_node(struct pci_bus *bus) | 119 | static inline struct device_node *pci_bus_to_OF_node(struct pci_bus *bus) |
110 | { | 120 | { |
111 | if (bus->self) | 121 | if (bus->self) |