|
@@ -110,8 +110,8 @@ extern int pci_vector_resources(int last, int nr_released);
|
|
(1 << ((control & PCI_MSI_FLAGS_QMASK) >> 1))
|
|
(1 << ((control & PCI_MSI_FLAGS_QMASK) >> 1))
|
|
#define multi_msi_enable(control, num) \
|
|
#define multi_msi_enable(control, num) \
|
|
control |= (((num >> 1) << 4) & PCI_MSI_FLAGS_QSIZE);
|
|
control |= (((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 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); \
|
|
#define msi_enable(control, num) multi_msi_enable(control, num); \
|
|
control |= PCI_MSI_FLAGS_ENABLE
|
|
control |= PCI_MSI_FLAGS_ENABLE
|
|
|
|
|