msix: remove duplicated defines.
PATCH 1/1 msix: remove duplicated defines.
remove defines which are already defined in pci_regs.h
Signed-off-by Isaku Yamahata <[email protected]>
--- hw/msix.c | 8 -------- 1 files changed, 0 insertions(+), 8 deletions(-)
hw/msix.c +0 -8
@@ -15,14 +15,6 @@#include "msix.h" #include "pci.h" -/* Declaration from linux/pci_regs.h */ -#define PCI_CAP_ID_MSIX 0x11/* MSI-X */ -#define PCI_MSIX_FLAGS 2/* Table at lower 11 bits */ -#define PCI_MSIX_FLAGS_QSIZE 0x7FF -#define PCI_MSIX_FLAGS_ENABLE (1 << 15) -#define PCI_MSIX_FLAGS_MASKALL (1 << 14) -#define PCI_MSIX_FLAGS_BIRMASK (7 << 0) -/* MSI-X capability structure */ #define MSIX_TABLE_OFFSET 4#define MSIX_PBA_OFFSET 8
Signature · 1 line
1.6.6.1
Michael S. Tsirkin
AppliedQuoted 3 lines · Isaku Yamahata
remove defines which are already defined in
pci_regs.hSigned-off-by Isaku Yamahata <[email protected]>
Applied, thanks!
Quoted 26 lines
--- hw/msix.c | 8 -------- 1 files changed, 0 insertions(+), 8 deletions(-)hw/msix.c +0
-8@@ -15,14 +15,6 @@#include "msix.h" #include "pci.h" -/* Declaration from linux/pci_regs.h */ -#define PCI_CAP_ID_MSIX 0x11/* MSI-X */ -#define PCI_MSIX_FLAGS 2/* Table at lower 11 bits */ -#define PCI_MSIX_FLAGS_QSIZE 0x7FF -#define PCI_MSIX_FLAGS_ENABLE (1 << 15) -#define PCI_MSIX_FLAGS_MASKALL (1 << 14) -#define PCI_MSIX_FLAGS_BIRMASK (7 << 0) -/* MSI-X capability structure */ #define MSIX_TABLE_OFFSET 4#define MSIX_PBA_OFFSET 8Signature · 1 line
1.6.6.1