tp.h 1.7 KB

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