diff options
author | Li Qiang <liq3ea@163.com> | 2019-05-21 08:15:43 -0700 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2019-05-22 17:35:27 +0200 |
commit | 2d9574bdbed69b374116c59259f6bd14f7dfad7f (patch) | |
tree | 18a697f161d254605a98fb33c3a11c50ffda18eb /hw/pci/msix.c | |
parent | bf04ef354c9d9d343d73d5dee0c0a62574a0e6bf (diff) |
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>
Diffstat (limited to 'hw/pci/msix.c')
-rw-r--r-- | hw/pci/msix.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/hw/pci/msix.c b/hw/pci/msix.c index 4e336416a7..d39dcf32e8 100644 --- a/hw/pci/msix.c +++ b/hw/pci/msix.c @@ -24,8 +24,6 @@ #include "qapi/error.h" #include "trace.h" -#define MSIX_CAP_LENGTH 12 - /* MSI enable bit and maskall bit are in byte 1 in FLAGS register */ #define MSIX_CONTROL_OFFSET (PCI_MSIX_FLAGS + 1) #define MSIX_ENABLE_MASK (PCI_MSIX_FLAGS_ENABLE >> 8) |