]> git.ipfire.org Git - thirdparty/qemu.git/commit
pci: msix: move 'MSIX_CAP_LENGTH' to header file
authorLi Qiang <liq3ea@163.com>
Tue, 21 May 2019 15:15:43 +0000 (08:15 -0700)
committerLaurent Vivier <laurent@vivier.eu>
Wed, 22 May 2019 15:35:27 +0000 (17:35 +0200)
commit2d9574bdbed69b374116c59259f6bd14f7dfad7f
tree18a697f161d254605a98fb33c3a11c50ffda18eb
parentbf04ef354c9d9d343d73d5dee0c0a62574a0e6bf
pci: msix: move 'MSIX_CAP_LENGTH' to header file

'MSIX_CAP_LENGTH' is defined in two .c file. Move it
to hw/pci/msix.h file to reduce duplicated code.

CC: qemu-trivial@nongnu.org
Signed-off-by: Li Qiang <liq3ea@163.com>
Message-Id: <20190521151543.92274-5-liq3ea@163.com>
Acked-by: Alex Williamson <alex.williamson@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
hw/pci/msix.c
hw/vfio/pci.c
include/hw/pci/msix.h