]> xenbits.xensource.com Git - xen.git/commitdiff
x86/msi: prune unused macros
authorRoger Pau Monné <roger.pau@citrix.com>
Tue, 19 Nov 2024 13:34:53 +0000 (13:34 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 19 Nov 2024 19:53:51 +0000 (19:53 +0000)
No functional change.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/include/asm/msi.h

index 748bc3cd6d8b95d6c72b4825a86bb06092bd1d1b..62a40e7298d2983bdc593353928c2ad490615413 100644 (file)
@@ -156,24 +156,17 @@ int msi_free_irq(struct msi_desc *entry);
        ( (is64bit == 1) ? base+PCI_MSI_MASK_BIT : base+PCI_MSI_MASK_BIT-4)
 #define msi_pending_bits_reg(base, is64bit) \
        ((base) + PCI_MSI_MASK_BIT + ((is64bit) ? 4 : 0))
-#define msi_disable(control)           control &= ~PCI_MSI_FLAGS_ENABLE
 #define multi_msi_capable(control) \
        (1 << ((control & PCI_MSI_FLAGS_QMASK) >> 1))
 #define multi_msi_enable(control, num) \
        control |= (((fls(num) - 1) << 4) & PCI_MSI_FLAGS_QSIZE);
 #define is_64bit_address(control)      (!!(control & PCI_MSI_FLAGS_64BIT))
 #define is_mask_bit_support(control)   (!!(control & PCI_MSI_FLAGS_MASKBIT))
-#define msi_enable(control, num) multi_msi_enable(control, num); \
-       control |= PCI_MSI_FLAGS_ENABLE
 
 #define msix_control_reg(base)         (base + PCI_MSIX_FLAGS)
 #define msix_table_offset_reg(base)    (base + PCI_MSIX_TABLE)
 #define msix_pba_offset_reg(base)      (base + PCI_MSIX_PBA)
-#define msix_enable(control)           control |= PCI_MSIX_FLAGS_ENABLE
-#define msix_disable(control)          control &= ~PCI_MSIX_FLAGS_ENABLE
 #define msix_table_size(control)       ((control & PCI_MSIX_FLAGS_QSIZE)+1)
-#define msix_unmask(address)           (address & ~PCI_MSIX_VECTOR_BITMASK)
-#define msix_mask(address)             (address | PCI_MSIX_VECTOR_BITMASK)
 
 /*
  * MSI Defined Data Structures