]> git.proxmox.com Git - mirror_qemu.git/commit
libqos: allow qpci_iomap to return BAR mapping size
authorJohn Snow <jsnow@redhat.com>
Mon, 4 Aug 2014 21:11:24 +0000 (17:11 -0400)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 15 Aug 2014 17:03:13 +0000 (18:03 +0100)
commit6ce7100e7ff986c1f214f6bccca89dfd7256d8ec
tree5a972532cb08f88c3ac4d0ff131d9f957a9f45e6
parent7f2a5ae6c1194b1676f1a7239fbcacd9d59637be
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>
tests/ide-test.c
tests/libqos/pci-pc.c
tests/libqos/pci.c
tests/libqos/pci.h
tests/usb-hcd-ehci-test.c