1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* $Date: 2005/03/07 23:59:05 $ $RCSfile: tp.h,v $ $Revision: 1.20 $ */
8 #define TP_MAX_RX_COALESCING_SIZE 16224U
10 struct tp_mib_statistics {
17 u32 ipInAddrErrors_hi;
18 u32 ipInAddrErrors_lo;
19 u32 ipInUnknownProtos_hi;
20 u32 ipInUnknownProtos_lo;
60 struct petp *t1_tp_create(adapter_t *adapter, struct tp_params *p);
61 void t1_tp_destroy(struct petp *tp);
63 void t1_tp_intr_disable(struct petp *tp);
64 void t1_tp_intr_enable(struct petp *tp);
65 void t1_tp_intr_clear(struct petp *tp);
66 int t1_tp_intr_handler(struct petp *tp);
68 void t1_tp_get_mib_statistics(adapter_t *adap, struct tp_mib_statistics *tps);
69 void t1_tp_set_tcp_checksum_offload(struct petp *tp, int enable);
70 void t1_tp_set_ip_checksum_offload(struct petp *tp, int enable);
71 int t1_tp_set_coalescing_size(struct petp *tp, unsigned int size);
72 int t1_tp_reset(struct petp *tp, struct tp_params *p, unsigned int tp_clk);