diff options
author | Linas Vepstas <linas@linas.org> | 2005-11-03 19:53:07 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-01-09 23:29:04 -0500 |
commit | 5d5a0936b3ad9e3d3f6eaf61f1a06c62ea0e7a59 (patch) | |
tree | b663cd4b65c378161afef4d27e579af883b31457 /include | |
parent | 77bd741561016134d1761d6101c4f0361025062f (diff) |
[PATCH] powerpc: Split out PCI address cache to its own file
25-pci-address-cache.patch
The core EEH file is rather large. This patch splits out a self-contained
chunk of it into its own file. This is the chunk that performes the
caching and lookup of pci devices based on the i/o addresses of thier
resoures. This code is almos architecture-independent and could be
used by any system that wanted to find a pci device based only on
the i/o address used by the device.
Signed-off-by: Linas Vepstas <linas@austin.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
(cherry picked from b0b291d59906d4a9a89ed9e34d9fd684c7188924 commit)
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-powerpc/ppc-pci.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-powerpc/ppc-pci.h b/include/asm-powerpc/ppc-pci.h index caf67a3bcb78..79239a200f18 100644 --- a/include/asm-powerpc/ppc-pci.h +++ b/include/asm-powerpc/ppc-pci.h | |||
@@ -52,6 +52,14 @@ extern unsigned long pci_probe_only; | |||
52 | 52 | ||
53 | /* ---- EEH internal-use-only related routines ---- */ | 53 | /* ---- EEH internal-use-only related routines ---- */ |
54 | #ifdef CONFIG_EEH | 54 | #ifdef CONFIG_EEH |
55 | |||
56 | void pci_addr_cache_insert_device(struct pci_dev *dev); | ||
57 | void pci_addr_cache_remove_device(struct pci_dev *dev); | ||
58 | void pci_addr_cache_build(void); | ||
59 | struct pci_dev *pci_get_device_by_addr(unsigned long addr); | ||
60 | |||
61 | void eeh_save_bars(struct pci_dev * pdev, struct pci_dn *pdn); | ||
62 | |||
55 | /** | 63 | /** |
56 | * eeh_slot_error_detail -- record and EEH error condition to the log | 64 | * eeh_slot_error_detail -- record and EEH error condition to the log |
57 | * @severity: 1 if temporary, 2 if permanent failure. | 65 | * @severity: 1 if temporary, 2 if permanent failure. |