msi.h 500 B

1234567891011121314151617
  1. /*
  2. * Copyright (C) 2003-2004 Intel
  3. * Copyright (C) Tom Long Nguyen (tom.l.nguyen@intel.com)
  4. */
  5. #ifndef MSI_H
  6. #define MSI_H
  7. #define msi_mask_reg(base, is64bit) \
  8. (base + ((is64bit == 1) ? PCI_MSI_MASK_64 : PCI_MSI_MASK_32))
  9. #define msix_table_offset_reg(base) (base + PCI_MSIX_TABLE)
  10. #define msix_pba_offset_reg(base) (base + PCI_MSIX_PBA)
  11. #define msix_table_size(control) ((control & PCI_MSIX_FLAGS_QSIZE)+1)
  12. #define multi_msix_capable(control) msix_table_size((control))
  13. #endif /* MSI_H */