X-Git-Url: https://gerrit.fd.io/r/gitweb?p=deb_dpdk.git;a=blobdiff_plain;f=drivers%2Fnet%2Fbnxt%2Fbnxt_irq.h;fp=lib%2Flibrte_vhost%2Fvhost_cuse%2Feventfd_copy.h;h=e21bec5689a38bc3b2dca5c3902b0e7b01929f78;hp=5f446ca01e4852f2419f677070933bc8eba91e0d;hb=6b3e017e5d25f15da73f7700f7f2ac553ef1a2e9;hpb=32e04ea00cd159613e04acef75e52bfca6eeff2f diff --git a/lib/librte_vhost/vhost_cuse/eventfd_copy.h b/drivers/net/bnxt/bnxt_irq.h similarity index 75% rename from lib/librte_vhost/vhost_cuse/eventfd_copy.h rename to drivers/net/bnxt/bnxt_irq.h index 5f446ca0..e21bec56 100644 --- a/lib/librte_vhost/vhost_cuse/eventfd_copy.h +++ b/drivers/net/bnxt/bnxt_irq.h @@ -1,7 +1,7 @@ /*- * BSD LICENSE * - * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. + * Copyright(c) 2014-2015 Broadcom Corporation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * * Neither the name of Intel Corporation nor the names of its + * * Neither the name of Broadcom Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * @@ -30,16 +30,22 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _EVENTFD_H -#define _EVENTFD_H -int -eventfd_init(void); +#ifndef _BNXT_IRQ_H_ +#define _BNXT_IRQ_H_ -int -eventfd_free(void); +struct bnxt_irq { + rte_intr_callback_fn handler; + unsigned int vector; + uint8_t requested; + char name[RTE_ETH_NAME_MAX_LEN + 2]; +}; -int -eventfd_copy(int target_fd, int target_pid); +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