From afa26ecc3010d2851a065edc7817d31e07d236ec Mon Sep 17 00:00:00 2001 From: Peter Xu Date: Wed, 16 Jan 2019 11:08:14 +0800 Subject: pci/msi: export msi_is_masked() It is going to be used later on outside MSI code to detect whether one MSI vector is masked out. Signed-off-by: Peter Xu Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/pci/msi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw') diff --git a/hw/pci/msi.c b/hw/pci/msi.c index 5e05ce5..47d2b0f 100644 --- a/hw/pci/msi.c +++ b/hw/pci/msi.c @@ -286,7 +286,7 @@ void msi_reset(PCIDevice *dev) MSI_DEV_PRINTF(dev, "reset\n"); } -static bool msi_is_masked(const PCIDevice *dev, unsigned int vector) +bool msi_is_masked(const PCIDevice *dev, unsigned int vector) { uint16_t flags = pci_get_word(dev->config + msi_flags_off(dev)); uint32_t mask, data; -- cgit v1.1