pci: introduce pci_swizzle_map_irq_fn() for standardized interrupt pin swizzle
commit91e5615984c1fd5674caad343e750bb5ecd17995
authorIsaku Yamahata <yamahata@valinux.co.jp>
Fri, 19 Oct 2012 20:43:28 +0000 (19 16:43 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 29 Oct 2012 15:59:06 +0000 (29 17:59 +0200)
treef15f776dbf1e8e21000a9b4b519b5a90187e6f6b
parent9e38f56183c52e06fc29c64691f59a46d246eec5
pci: introduce pci_swizzle_map_irq_fn() for standardized interrupt pin swizzle

Introduce pci_swizzle_map_irq_fn() for interrupt pin swizzle which is
standardized. PCI bridge swizzle is common logic, by introducing
this function duplicated swizzle logic will be avoided later.

[jbaron@redhat.com: drop opaque argument]
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Jason Baron <jbaron@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci.c
hw/pci.h