2018-04-02 22:34:32 +00:00
|
|
|
/* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
* Copyright(c) 2014-2018 Broadcom
|
|
|
|
* All rights reserved.
|
2016-10-11 21:47:50 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _BNXT_IRQ_H_
|
|
|
|
#define _BNXT_IRQ_H_
|
|
|
|
|
2017-09-28 21:43:45 +00:00
|
|
|
#define BNXT_MISC_VEC_ID RTE_INTR_VEC_ZERO_OFFSET
|
|
|
|
#define BNXT_RX_VEC_START RTE_INTR_VEC_RXTX_OFFSET
|
|
|
|
|
2016-10-11 21:47:50 +00:00
|
|
|
struct bnxt_irq {
|
|
|
|
rte_intr_callback_fn handler;
|
|
|
|
unsigned int vector;
|
|
|
|
uint8_t requested;
|
|
|
|
char name[RTE_ETH_NAME_MAX_LEN + 2];
|
|
|
|
};
|
|
|
|
|
|
|
|
struct bnxt;
|
|
|
|
void bnxt_free_int(struct bnxt *bp);
|
|
|
|
void bnxt_disable_int(struct bnxt *bp);
|
|
|
|
void bnxt_enable_int(struct bnxt *bp);
|
|
|
|
int bnxt_setup_int(struct bnxt *bp);
|
|
|
|
int bnxt_request_int(struct bnxt *bp);
|
|
|
|
|
|
|
|
#endif
|