2 * aQuantia Corporation Network Driver
3 * Copyright (C) 2014-2017 aQuantia Corporation. All rights reserved
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU General Public License,
7 * version 2, as published by the Free Software Foundation.
10 /* File aq_vec.h: Definition of common structures for vector of Rx and Tx rings.
11 * Declaration of functions for Rx and Tx rings.
17 #include "aq_common.h"
18 #include <linux/irqreturn.h>
22 struct aq_ring_stats_rx_s;
23 struct aq_ring_stats_tx_s;
25 irqreturn_t aq_vec_isr(int irq, void *private);
26 irqreturn_t aq_vec_isr_legacy(int irq, void *private);
27 struct aq_vec_s *aq_vec_alloc(struct aq_nic_s *aq_nic, unsigned int idx,
28 struct aq_nic_cfg_s *aq_nic_cfg);
29 int aq_vec_init(struct aq_vec_s *self, struct aq_hw_ops *aq_hw_ops,
30 struct aq_hw_s *aq_hw);
31 void aq_vec_deinit(struct aq_vec_s *self);
32 void aq_vec_free(struct aq_vec_s *self);
33 int aq_vec_start(struct aq_vec_s *self);
34 void aq_vec_stop(struct aq_vec_s *self);
35 cpumask_t *aq_vec_get_affinity_mask(struct aq_vec_s *self);
36 int aq_vec_get_sw_stats(struct aq_vec_s *self, u64 *data,
37 unsigned int *p_count);
38 void aq_vec_add_stats(struct aq_vec_s *self,
39 struct aq_ring_stats_rx_s *stats_rx,
40 struct aq_ring_stats_tx_s *stats_tx);