diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2007-07-10 23:37:45 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2007-07-23 10:27:07 -0500 |
commit | 38805e5f096162867a70c7468c654d7f9bb507da (patch) | |
tree | 841b3de2dc1b7c968564c39939398cda0427fb00 /include/asm-powerpc | |
parent | 9ac4dd301eebb3cd8de801e02bfc91f296e56f63 (diff) | |
download | linux-38805e5f096162867a70c7468c654d7f9bb507da.tar.gz linux-38805e5f096162867a70c7468c654d7f9bb507da.tar.bz2 linux-38805e5f096162867a70c7468c654d7f9bb507da.zip |
[POWERPC] Add the ability to find PCI capabilities early on
Added early_find_capability that wraps pci_bus_find_capability and uses
fake_pci_bus() to allow us to call it before we've fully setup the
pci_controller.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r-- | include/asm-powerpc/pci-bridge.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-powerpc/pci-bridge.h b/include/asm-powerpc/pci-bridge.h index e72c2a60853c..7a00b8e388ec 100644 --- a/include/asm-powerpc/pci-bridge.h +++ b/include/asm-powerpc/pci-bridge.h @@ -79,6 +79,9 @@ int early_write_config_word(struct pci_controller *hose, int bus, int dev_fn, int early_write_config_dword(struct pci_controller *hose, int bus, int dev_fn, int where, u32 val); +extern int early_find_capability(struct pci_controller *hose, int bus, + int dev_fn, int cap); + extern void setup_indirect_pci_nomap(struct pci_controller* hose, void __iomem *cfg_addr, void __iomem *cfg_data); extern void setup_indirect_pci(struct pci_controller* hose, |