1
2
3
4
5
6
7
8
9
10
11 #ifndef AQ_VEC_H
12 #define AQ_VEC_H
13
14 #include "aq_common.h"
15 #include <linux/irqreturn.h>
16
17 struct aq_hw_s;
18 struct aq_hw_ops;
19 struct aq_nic_s;
20 struct aq_nic_cfg_s;
21 struct aq_ring_stats_rx_s;
22 struct aq_ring_stats_tx_s;
23
24 irqreturn_t aq_vec_isr(int irq, void *private);
25 irqreturn_t aq_vec_isr_legacy(int irq, void *private);
26 struct aq_vec_s *aq_vec_alloc(struct aq_nic_s *aq_nic, unsigned int idx,
27 struct aq_nic_cfg_s *aq_nic_cfg);
28 int aq_vec_init(struct aq_vec_s *self, const struct aq_hw_ops *aq_hw_ops,
29 struct aq_hw_s *aq_hw);
30 void aq_vec_deinit(struct aq_vec_s *self);
31 void aq_vec_free(struct aq_vec_s *self);
32 int aq_vec_start(struct aq_vec_s *self);
33 void aq_vec_stop(struct aq_vec_s *self);
34 cpumask_t *aq_vec_get_affinity_mask(struct aq_vec_s *self);
35 int aq_vec_get_sw_stats(struct aq_vec_s *self, u64 *data,
36 unsigned int *p_count);
37 void aq_vec_add_stats(struct aq_vec_s *self,
38 struct aq_ring_stats_rx_s *stats_rx,
39 struct aq_ring_stats_tx_s *stats_tx);
40
41 #endif