aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pci.h
diff options
context:
space:
mode:
authorBjorn Helgaas <bjorn.helgaas@hp.com>2008-12-16 21:36:55 -0700
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-01-07 11:13:12 -0800
commit68feac87de15edfc2c700d2d81b814288c93d003 (patch)
tree97ee9f0dc3ee3728aca7d5a252eda6a1cb633430 /include/linux/pci.h
parente8c331e963c58b83db24b7d0e39e8c07f687dbc6 (diff)
downloadkernel_samsung_smdk4412-68feac87de15edfc2c700d2d81b814288c93d003.zip
kernel_samsung_smdk4412-68feac87de15edfc2c700d2d81b814288c93d003.tar.gz
kernel_samsung_smdk4412-68feac87de15edfc2c700d2d81b814288c93d003.tar.bz2
PCI: add pci_common_swizzle() for INTx swizzling
This patch adds pci_common_swizzle(), which swizzles INTx values all the way up to a root bridge. This common implementation can replace several architecture-specific ones. This should someday be combined with pci_get_interrupt_pin(), but I left it separate for now to make reviewing easier. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r--include/linux/pci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index da1c22b..170f9ae 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -545,6 +545,7 @@ struct resource *pci_find_parent_resource(const struct pci_dev *dev,
struct resource *res);
u8 pci_swizzle_interrupt_pin(struct pci_dev *dev, u8 pin);
int pci_get_interrupt_pin(struct pci_dev *dev, struct pci_dev **bridge);
+u8 pci_common_swizzle(struct pci_dev *dev, u8 *pinp);
extern struct pci_dev *pci_dev_get(struct pci_dev *dev);
extern void pci_dev_put(struct pci_dev *dev);
extern void pci_remove_bus(struct pci_bus *b);