Imported Upstream version 16.11
[deb_dpdk.git] / 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 5f446ca..e21bec5 100644 (file)
@@ -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.
  *
  *   (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