diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2008-12-11 13:24:23 -0500 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-01-07 14:12:50 -0500 |
commit | 57c2cf71c12318b72ebaa5720d210476b6bac4d4 (patch) | |
tree | ba071276800dc24d9232fd124c4678b2a86f86b5 /include/linux/pci.h | |
parent | 12b955ff63db0b75cfc2d4939696c57b31891ec6 (diff) |
PCI: add pci_swizzle_interrupt_pin()
This patch adds pci_swizzle_interrupt_pin(), which implements the
INTx swizzling algorithm specified in Table 9-1 of the "PCI-to-PCI
Bridge Architecture Specification," revision 1.2.
There are many architecture-specific implementations of this
swizzle that can be replaced by this common one.
Reviewed-by: David Howells <dhowells@redhat.com>
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index bfcb39ca8879..58357d14f94c 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -532,6 +532,7 @@ int __must_check pci_bus_add_device(struct pci_dev *dev); | |||
532 | void pci_read_bridge_bases(struct pci_bus *child); | 532 | void pci_read_bridge_bases(struct pci_bus *child); |
533 | struct resource *pci_find_parent_resource(const struct pci_dev *dev, | 533 | struct resource *pci_find_parent_resource(const struct pci_dev *dev, |
534 | struct resource *res); | 534 | struct resource *res); |
535 | u8 pci_swizzle_interrupt_pin(struct pci_dev *dev, u8 pin); | ||
535 | int pci_get_interrupt_pin(struct pci_dev *dev, struct pci_dev **bridge); | 536 | int pci_get_interrupt_pin(struct pci_dev *dev, struct pci_dev **bridge); |
536 | extern struct pci_dev *pci_dev_get(struct pci_dev *dev); | 537 | extern struct pci_dev *pci_dev_get(struct pci_dev *dev); |
537 | extern void pci_dev_put(struct pci_dev *dev); | 538 | extern void pci_dev_put(struct pci_dev *dev); |