nitrox_isr.h 587 B

123456789101112131415161718192021
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __NITROX_ISR_H
  3. #define __NITROX_ISR_H
  4. #include "nitrox_dev.h"
  5. int nitrox_register_interrupts(struct nitrox_device *ndev);
  6. void nitrox_unregister_interrupts(struct nitrox_device *ndev);
  7. int nitrox_sriov_register_interupts(struct nitrox_device *ndev);
  8. void nitrox_sriov_unregister_interrupts(struct nitrox_device *ndev);
  9. #ifdef CONFIG_PCI_IOV
  10. int nitrox_sriov_configure(struct pci_dev *pdev, int num_vfs);
  11. #else
  12. static inline int nitrox_sriov_configure(struct pci_dev *pdev, int num_vfs)
  13. {
  14. return 0;
  15. }
  16. #endif
  17. #endif /* __NITROX_ISR_H */