15129044dSC.J. Collier/*-
25129044dSC.J. Collier *   BSD LICENSE
35129044dSC.J. Collier *
43d9b7210SChristian Ehrhardt *   Copyright(c) 2014-2015 Broadcom Corporation.
55129044dSC.J. Collier *   All rights reserved.
65129044dSC.J. Collier *
75129044dSC.J. Collier *   Redistribution and use in source and binary forms, with or without
85129044dSC.J. Collier *   modification, are permitted provided that the following conditions
95129044dSC.J. Collier *   are met:
105129044dSC.J. Collier *
115129044dSC.J. Collier *     * Redistributions of source code must retain the above copyright
125129044dSC.J. Collier *       notice, this list of conditions and the following disclaimer.
135129044dSC.J. Collier *     * Redistributions in binary form must reproduce the above copyright
145129044dSC.J. Collier *       notice, this list of conditions and the following disclaimer in
155129044dSC.J. Collier *       the documentation and/or other materials provided with the
165129044dSC.J. Collier *       distribution.
173d9b7210SChristian Ehrhardt *     * Neither the name of Broadcom Corporation nor the names of its
185129044dSC.J. Collier *       contributors may be used to endorse or promote products derived
195129044dSC.J. Collier *       from this software without specific prior written permission.
205129044dSC.J. Collier *
215129044dSC.J. Collier *   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
225129044dSC.J. Collier *   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
235129044dSC.J. Collier *   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
245129044dSC.J. Collier *   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
255129044dSC.J. Collier *   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
265129044dSC.J. Collier *   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
275129044dSC.J. Collier *   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
285129044dSC.J. Collier *   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
295129044dSC.J. Collier *   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
305129044dSC.J. Collier *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
315129044dSC.J. Collier *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
325129044dSC.J. Collier */
335129044dSC.J. Collier
343d9b7210SChristian Ehrhardt#ifndef _BNXT_IRQ_H_
353d9b7210SChristian Ehrhardt#define _BNXT_IRQ_H_
365129044dSC.J. Collier
373d9b7210SChristian Ehrhardtstruct bnxt_irq {
383d9b7210SChristian Ehrhardt	rte_intr_callback_fn	handler;
393d9b7210SChristian Ehrhardt	unsigned int		vector;
403d9b7210SChristian Ehrhardt	uint8_t			requested;
413d9b7210SChristian Ehrhardt	char			name[RTE_ETH_NAME_MAX_LEN + 2];
423d9b7210SChristian Ehrhardt};
435129044dSC.J. Collier
443d9b7210SChristian Ehrhardtstruct bnxt;
453d9b7210SChristian Ehrhardtvoid bnxt_free_int(struct bnxt *bp);
463d9b7210SChristian Ehrhardtvoid bnxt_disable_int(struct bnxt *bp);
473d9b7210SChristian Ehrhardtvoid bnxt_enable_int(struct bnxt *bp);
483d9b7210SChristian Ehrhardtint bnxt_setup_int(struct bnxt *bp);
493d9b7210SChristian Ehrhardtint bnxt_request_int(struct bnxt *bp);
505129044dSC.J. Collier
515129044dSC.J. Collier#endif
52