]> git.proxmox.com Git - qemu.git/commit
PPC: e500: pci: Export slot2irq calculation
authorAlexander Graf <agraf@suse.de>
Thu, 13 Dec 2012 00:16:24 +0000 (01:16 +0100)
committerAlexander Graf <agraf@suse.de>
Fri, 14 Dec 2012 12:12:57 +0000 (13:12 +0100)
commit9e2c12988bebca7b99c0cd064b23fb7ea6643c86
tree7dee741527eb75b537cccac75ccef86aae9a70c0
parent3bb7e02a9725a24e5bf915b35f914f82f5b07a1f
PPC: e500: pci: Export slot2irq calculation

We need the calculation method to get from a PCI slot ID to its respective
interrupt line twice. Once in the internal map function and once when
assembling the device tree.

So let's extract the calculation to a separate function that can be called
by both users.

Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppc/e500.c
hw/ppce500_pci.c
hw/ppce500_pci.h [new file with mode: 0644]