]> git.proxmox.com Git - qemu.git/commitdiff
msix: add api to access msix message
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 20 Dec 2012 22:27:02 +0000 (00:27 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 7 Jan 2013 17:42:22 +0000 (19:42 +0200)
Will be used by virtio pci.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci/msix.c
hw/pci/msix.h

index 9eee6570c212ab85b04035ae38fe502da5c812f6..e231a0dc4bb25516b551831f5c63da6266fb450d 100644 (file)
@@ -27,7 +27,7 @@
 #define MSIX_ENABLE_MASK (PCI_MSIX_FLAGS_ENABLE >> 8)
 #define MSIX_MASKALL_MASK (PCI_MSIX_FLAGS_MASKALL >> 8)
 
-static MSIMessage msix_get_message(PCIDevice *dev, unsigned vector)
+MSIMessage msix_get_message(PCIDevice *dev, unsigned vector)
 {
     uint8_t *table_entry = dev->msix_table + vector * PCI_MSIX_ENTRY_SIZE;
     MSIMessage msg;
index d0c4429843a2748d66660e6194728ce0b4c1adb5..e648410535140d9b941505dfe8abcf6313016564 100644 (file)
@@ -5,6 +5,7 @@
 #include "hw/pci/pci.h"
 
 void msix_set_message(PCIDevice *dev, int vector, MSIMessage msg);
+MSIMessage msix_get_message(PCIDevice *dev, unsigned int vector);
 int msix_init(PCIDevice *dev, unsigned short nentries,
               MemoryRegion *table_bar, uint8_t table_bar_nr,
               unsigned table_offset, MemoryRegion *pba_bar,