/drivers/net/ethernet/chelsio/cxgb/tp.h

http://github.com/mirrors/linux · C Header · 73 lines · 59 code · 10 blank · 4 comment · 0 complexity · 522d9e6f3a5304c5f11974cce7a815db MD5 · raw file

  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /* $Date: 2005/03/07 23:59:05 $ $RCSfile: tp.h,v $ $Revision: 1.20 $ */
  3. #ifndef CHELSIO_TP_H
  4. #define CHELSIO_TP_H
  5. #include "common.h"
  6. #define TP_MAX_RX_COALESCING_SIZE 16224U
  7. struct tp_mib_statistics {
  8. /* IP */
  9. u32 ipInReceive_hi;
  10. u32 ipInReceive_lo;
  11. u32 ipInHdrErrors_hi;
  12. u32 ipInHdrErrors_lo;
  13. u32 ipInAddrErrors_hi;
  14. u32 ipInAddrErrors_lo;
  15. u32 ipInUnknownProtos_hi;
  16. u32 ipInUnknownProtos_lo;
  17. u32 ipInDiscards_hi;
  18. u32 ipInDiscards_lo;
  19. u32 ipInDelivers_hi;
  20. u32 ipInDelivers_lo;
  21. u32 ipOutRequests_hi;
  22. u32 ipOutRequests_lo;
  23. u32 ipOutDiscards_hi;
  24. u32 ipOutDiscards_lo;
  25. u32 ipOutNoRoutes_hi;
  26. u32 ipOutNoRoutes_lo;
  27. u32 ipReasmTimeout;
  28. u32 ipReasmReqds;
  29. u32 ipReasmOKs;
  30. u32 ipReasmFails;
  31. u32 reserved[8];
  32. /* TCP */
  33. u32 tcpActiveOpens;
  34. u32 tcpPassiveOpens;
  35. u32 tcpAttemptFails;
  36. u32 tcpEstabResets;
  37. u32 tcpOutRsts;
  38. u32 tcpCurrEstab;
  39. u32 tcpInSegs_hi;
  40. u32 tcpInSegs_lo;
  41. u32 tcpOutSegs_hi;
  42. u32 tcpOutSegs_lo;
  43. u32 tcpRetransSeg_hi;
  44. u32 tcpRetransSeg_lo;
  45. u32 tcpInErrs_hi;
  46. u32 tcpInErrs_lo;
  47. u32 tcpRtoMin;
  48. u32 tcpRtoMax;
  49. };
  50. struct petp;
  51. struct tp_params;
  52. struct petp *t1_tp_create(adapter_t *adapter, struct tp_params *p);
  53. void t1_tp_destroy(struct petp *tp);
  54. void t1_tp_intr_disable(struct petp *tp);
  55. void t1_tp_intr_enable(struct petp *tp);
  56. void t1_tp_intr_clear(struct petp *tp);
  57. int t1_tp_intr_handler(struct petp *tp);
  58. void t1_tp_get_mib_statistics(adapter_t *adap, struct tp_mib_statistics *tps);
  59. void t1_tp_set_tcp_checksum_offload(struct petp *tp, int enable);
  60. void t1_tp_set_ip_checksum_offload(struct petp *tp, int enable);
  61. int t1_tp_set_coalescing_size(struct petp *tp, unsigned int size);
  62. int t1_tp_reset(struct petp *tp, struct tp_params *p, unsigned int tp_clk);
  63. #endif