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