diff options
author | John Snow <jsnow@redhat.com> | 2014-08-04 17:11:24 -0400 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2014-08-15 18:03:13 +0100 |
commit | 6ce7100e7ff986c1f214f6bccca89dfd7256d8ec (patch) | |
tree | 5a972532cb08f88c3ac4d0ff131d9f957a9f45e6 /tests/ide-test.c | |
parent | 7f2a5ae6c1194b1676f1a7239fbcacd9d59637be (diff) | |
download | qemu-6ce7100e7ff986c1f214f6bccca89dfd7256d8ec.zip qemu-6ce7100e7ff986c1f214f6bccca89dfd7256d8ec.tar.gz qemu-6ce7100e7ff986c1f214f6bccca89dfd7256d8ec.tar.bz2 |
libqos: allow qpci_iomap to return BAR mapping size
This patch allows qpci_iomap to return the size of the
BAR mapping that it created, to allow driver applications
(e.g, ahci-test) to make determinations about the suitability
or the mapping size, or in the specific case of AHCI, how
many ports are supported by the HBA.
Signed-off-by: John Snow <jsnow@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'tests/ide-test.c')
-rw-r--r-- | tests/ide-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ide-test.c b/tests/ide-test.c index 151ef30..e2b4efc 100644 --- a/tests/ide-test.c +++ b/tests/ide-test.c @@ -146,7 +146,7 @@ static QPCIDevice *get_pci_device(uint16_t *bmdma_base) g_assert(device_id == PCI_DEVICE_ID_INTEL_82371SB_1); /* Map bmdma BAR */ - *bmdma_base = (uint16_t)(uintptr_t) qpci_iomap(dev, 4); + *bmdma_base = (uint16_t)(uintptr_t) qpci_iomap(dev, 4, NULL); qpci_device_enable(dev); |