xref: /dpdk/drivers/net/bnxt/bnxt_irq.h (revision 97435d7906d7706e39e5c3dfefa5e09d7de7f733)
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2014-2023 Broadcom
3  * All rights reserved.
4  */
5 
6 #ifndef _BNXT_IRQ_H_
7 #define _BNXT_IRQ_H_
8 
9 struct bnxt_irq {
10 	rte_intr_callback_fn	handler;
11 	unsigned int		vector_idx;
12 	uint8_t			requested;
13 	char			name[RTE_ETH_NAME_MAX_LEN + 2];
14 };
15 
16 struct bnxt;
17 int bnxt_free_int(struct bnxt *bp);
18 void bnxt_disable_int(struct bnxt *bp);
19 void bnxt_enable_int(struct bnxt *bp);
20 int bnxt_setup_int(struct bnxt *bp);
21 int bnxt_request_int(struct bnxt *bp);
22 void bnxt_int_handler(void *param);
23 #endif
24