aboutsummaryrefslogtreecommitdiff
path: root/hw/pci.h
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@valinux.co.jp>2010-10-19 18:06:29 +0900
committerMichael S. Tsirkin <mst@redhat.com>2010-10-19 13:57:24 +0200
commita5d1fd20ccfd1fbe840729378e4adbc3eb0f8306 (patch)
tree0ea6ce039fc13d1044040728ccc2932b79afe066 /hw/pci.h
parentaabcf5266f94e637afd4c38d46d1fc1d1381d99e (diff)
pci: introduce helper function to handle msi-x and msi.
this patch implements helper functions to handle msi-x and msi uniformly. They will be used later. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/pci.h')
-rw-r--r--hw/pci.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/pci.h b/hw/pci.h
index 752e652eca..3072a5f854 100644
--- a/hw/pci.h
+++ b/hw/pci.h
@@ -239,6 +239,9 @@ void do_pci_info_print(Monitor *mon, const QObject *data);
void do_pci_info(Monitor *mon, QObject **ret_data);
void pci_bridge_update_mappings(PCIBus *b);
+bool pci_msi_enabled(PCIDevice *dev);
+void pci_msi_notify(PCIDevice *dev, unsigned int vector);
+
static inline void
pci_set_byte(uint8_t *config, uint8_t val)
{