aboutsummaryrefslogtreecommitdiff
path: root/hw/pci/msix.h
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2012-12-18 13:54:32 +0200
committerMichael S. Tsirkin <mst@redhat.com>2012-12-26 11:49:29 +0200
commit70f8ee395afda6d96b15cb9a5b311af7720dded0 (patch)
tree0df1809edb2e2a3608a7f14fde4ae027e738bd1d /hw/pci/msix.h
parentbbef882cc1938fa5a6e1b36a50d79ce5c0cefb81 (diff)
downloadqemu-70f8ee395afda6d96b15cb9a5b311af7720dded0.zip
qemu-70f8ee395afda6d96b15cb9a5b311af7720dded0.tar.gz
qemu-70f8ee395afda6d96b15cb9a5b311af7720dded0.tar.bz2
msix: expose access to masked/pending state
For use by poll handler. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/pci/msix.h')
-rw-r--r--hw/pci/msix.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/pci/msix.h b/hw/pci/msix.h
index ea85d02..d0c4429 100644
--- a/hw/pci/msix.h
+++ b/hw/pci/msix.h
@@ -26,6 +26,9 @@ void msix_load(PCIDevice *dev, QEMUFile *f);
int msix_enabled(PCIDevice *dev);
int msix_present(PCIDevice *dev);
+bool msix_is_masked(PCIDevice *dev, unsigned vector);
+void msix_set_pending(PCIDevice *dev, unsigned vector);
+
int msix_vector_use(PCIDevice *dev, unsigned vector);
void msix_vector_unuse(PCIDevice *dev, unsigned vector);
void msix_unuse_all_vectors(PCIDevice *dev);