aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@redhat.com>2012-06-14 12:16:19 -0600
committerMichael S. Tsirkin <mst@robin.(none)>2012-06-18 10:21:11 +0300
commiteebcb0a76a7e8b093740c9bd3db00f5b38e79a33 (patch)
tree41311dc60704cdde99383ff30f670597c560b32e
parentb2357c484d3b3e2afd305b71fb5bc0b0b8d61ca8 (diff)
downloadqemu-eebcb0a76a7e8b093740c9bd3db00f5b38e79a33.zip
qemu-eebcb0a76a7e8b093740c9bd3db00f5b38e79a33.tar.gz
qemu-eebcb0a76a7e8b093740c9bd3db00f5b38e79a33.tar.bz2
msix: Move msix_mmio_read
What's this doing so far from msix_mmio_ops? Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
-rw-r--r--hw/msix.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/hw/msix.c b/hw/msix.c
index bafea94..50885ac 100644
--- a/hw/msix.c
+++ b/hw/msix.c
@@ -86,16 +86,6 @@ static int msix_add_config(struct PCIDevice *pdev, unsigned short nentries,
return 0;
}
-static uint64_t msix_mmio_read(void *opaque, target_phys_addr_t addr,
- unsigned size)
-{
- PCIDevice *dev = opaque;
- unsigned int offset = addr & (MSIX_PAGE_SIZE - 1) & ~0x3;
- void *page = dev->msix_table_page;
-
- return pci_get_long(page + offset);
-}
-
static uint8_t msix_pending_mask(int vector)
{
return 1 << (vector % 8);
@@ -203,6 +193,16 @@ void msix_write_config(PCIDevice *dev, uint32_t addr,
}
}
+static uint64_t msix_mmio_read(void *opaque, target_phys_addr_t addr,
+ unsigned size)
+{
+ PCIDevice *dev = opaque;
+ unsigned int offset = addr & (MSIX_PAGE_SIZE - 1) & ~0x3;
+ void *page = dev->msix_table_page;
+
+ return pci_get_long(page + offset);
+}
+
static void msix_mmio_write(void *opaque, target_phys_addr_t addr,
uint64_t val, unsigned size)
{