hw/vfio/pci: generalize mask/unmask to any IRQ index
commit079eb19cbb3079536788dfd58832824804815e48
authorEric Auger <eric.auger@linaro.org>
Fri, 19 Dec 2014 22:24:24 +0000 (19 15:24 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Fri, 19 Dec 2014 22:24:24 +0000 (19 15:24 -0700)
treeba50170e235eed27f72c14eacacb619094276067
parent9ee27d7381c2d540ee976c7cbae941c66bb66e70
hw/vfio/pci: generalize mask/unmask to any IRQ index

To prepare for platform device introduction, rename vfio_mask_intx
and vfio_unmask_intx into vfio_mask_single_irqindex and respectively
unmask_single_irqindex. Also use a nex index parameter.

With that name and prototype the function will be usable for other
indexes than VFIO_PCI_INTX_IRQ_INDEX.

Signed-off-by: Eric Auger <eric.auger@linaro.org>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
hw/vfio/pci.c