]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: add pci_swizzle_interrupt_pin()
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Thu, 11 Dec 2008 18:24:23 +0000 (11:24 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 7 Jan 2009 19:12:50 +0000 (11:12 -0800)
commitc1bb0ce5fdbf88066a7d319b2ae96e1368d717f5
treeba071276800dc24d9232fd124c4678b2a86f86b5
parente07dfb5fa5788bb88c13167ab10e0502d19c7e51
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>
drivers/pci/pci.c
include/linux/pci.h