xref: /linux/drivers/infiniband/hw/hfi1/msix.h (revision 762f99f4f3cb41a775b5157dd761217beba65873)
1 /* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
2 /*
3  * Copyright(c) 2018 - 2020 Intel Corporation.
4  */
5 
6 #ifndef _HFI1_MSIX_H
7 #define _HFI1_MSIX_H
8 
9 #include "hfi.h"
10 
11 /* MSIx interface */
12 int msix_initialize(struct hfi1_devdata *dd);
13 int msix_request_irqs(struct hfi1_devdata *dd);
14 void msix_clean_up_interrupts(struct hfi1_devdata *dd);
15 int msix_request_general_irq(struct hfi1_devdata *dd);
16 int msix_request_rcd_irq(struct hfi1_ctxtdata *rcd);
17 int msix_request_sdma_irq(struct sdma_engine *sde);
18 void msix_free_irq(struct hfi1_devdata *dd, u8 msix_intr);
19 
20 /* Netdev interface */
21 void msix_netdev_synchronize_irq(struct hfi1_devdata *dd);
22 int msix_netdev_request_rcd_irq(struct hfi1_ctxtdata *rcd);
23 
24 #endif
25