Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __NITROX_ISR_H
0003 #define __NITROX_ISR_H
0004 
0005 #include "nitrox_dev.h"
0006 
0007 int nitrox_register_interrupts(struct nitrox_device *ndev);
0008 void nitrox_unregister_interrupts(struct nitrox_device *ndev);
0009 int nitrox_sriov_register_interupts(struct nitrox_device *ndev);
0010 void nitrox_sriov_unregister_interrupts(struct nitrox_device *ndev);
0011 
0012 #ifdef CONFIG_PCI_IOV
0013 int nitrox_sriov_configure(struct pci_dev *pdev, int num_vfs);
0014 #else
0015 static inline int nitrox_sriov_configure(struct pci_dev *pdev, int num_vfs)
0016 {
0017     return 0;
0018 }
0019 #endif
0020 
0021 #endif /* __NITROX_ISR_H */