summaryrefslogtreecommitdiffstats
path: root/include/asm-ppc/pci-bridge.h
diff options
context:
space:
mode:
authorAnton Altaparmakov <aia21@cantab.net>2005-10-31 11:06:46 +0100
committerAnton Altaparmakov <aia21@cantab.net>2005-10-31 11:06:46 +0100
commit1f04c0a24b2f3cfe89c802a24396263623e3512d (patch)
treed7e2216b6e65b833c0c2b79b478d13ce17dbf296 /include/asm-ppc/pci-bridge.h
parentMerge branch 'master' of /usr/src/ntfs-2.6/ (diff)
parentpowerpc: import a fix from arch/ppc/mm/pgtable.c (diff)
downloadlinux-1f04c0a24b2f3cfe89c802a24396263623e3512d.tar.xz
linux-1f04c0a24b2f3cfe89c802a24396263623e3512d.zip
Merge branch 'master' of /usr/src/ntfs-2.6/
Diffstat (limited to 'include/asm-ppc/pci-bridge.h')
-rw-r--r--include/asm-ppc/pci-bridge.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-ppc/pci-bridge.h b/include/asm-ppc/pci-bridge.h
index ffa423456c2b..e58c78f90a5a 100644
--- a/include/asm-ppc/pci-bridge.h
+++ b/include/asm-ppc/pci-bridge.h
@@ -79,6 +79,11 @@ struct pci_controller {
struct resource mem_space;
};
+static inline struct pci_controller *pci_bus_to_host(struct pci_bus *bus)
+{
+ return bus->sysdata;
+}
+
/* These are used for config access before all the PCI probing
has been done. */
int early_read_config_byte(struct pci_controller *hose, int bus, int dev_fn,