PCI: add pci_common_swizzle() for INTx swizzling
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Wed, 17 Dec 2008 04:36:55 +0000 (21:36 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 7 Jan 2009 19:13:12 +0000 (11:13 -0800)
commit68feac87de15edfc2c700d2d81b814288c93d003
tree97ee9f0dc3ee3728aca7d5a252eda6a1cb633430
parente8c331e963c58b83db24b7d0e39e8c07f687dbc6
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>
drivers/pci/pci.c
include/linux/pci.h