aq_vec.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * aQuantia Corporation Network Driver
  3. * Copyright (C) 2014-2017 aQuantia Corporation. All rights reserved
  4. *
  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.
  8. */
  9. /* File aq_vec.h: Definition of common structures for vector of Rx and Tx rings.
  10. * Declaration of functions for Rx and Tx rings.
  11. */
  12. #ifndef AQ_VEC_H
  13. #define AQ_VEC_H
  14. #include "aq_common.h"
  15. #include <linux/irqreturn.h>
  16. struct aq_hw_s;
  17. struct aq_hw_ops;
  18. struct aq_ring_stats_rx_s;
  19. struct aq_ring_stats_tx_s;
  20. irqreturn_t aq_vec_isr(int irq, void *private);
  21. irqreturn_t aq_vec_isr_legacy(int irq, void *private);
  22. struct aq_vec_s *aq_vec_alloc(struct aq_nic_s *aq_nic, unsigned int idx,
  23. struct aq_nic_cfg_s *aq_nic_cfg);
  24. int aq_vec_init(struct aq_vec_s *self, struct aq_hw_ops *aq_hw_ops,
  25. struct aq_hw_s *aq_hw);
  26. void aq_vec_deinit(struct aq_vec_s *self);
  27. void aq_vec_free(struct aq_vec_s *self);
  28. int aq_vec_start(struct aq_vec_s *self);
  29. void aq_vec_stop(struct aq_vec_s *self);
  30. cpumask_t *aq_vec_get_affinity_mask(struct aq_vec_s *self);
  31. int aq_vec_get_sw_stats(struct aq_vec_s *self, u64 *data,
  32. unsigned int *p_count);
  33. void aq_vec_add_stats(struct aq_vec_s *self,
  34. struct aq_ring_stats_rx_s *stats_rx,
  35. struct aq_ring_stats_tx_s *stats_tx);
  36. #endif /* AQ_VEC_H */