]>
git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blob - drivers/net/chelsio/tp.h
1 /*****************************************************************************
5 * $Date: 2005/03/23 07:15:59 $ *
7 * part of the Chelsio 10Gb Ethernet Driver. *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License, version 2, as *
11 * published by the Free Software Foundation. *
13 * You should have received a copy of the GNU General Public License along *
14 * with this program; if not, write to the Free Software Foundation, Inc., *
15 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
17 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED *
18 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF *
19 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. *
21 * http://www.chelsio.com *
23 * Copyright (c) 2003 - 2005 Chelsio Communications, Inc. *
24 * All rights reserved. *
26 * Maintainers: maintainers@chelsio.com *
28 * Authors: Dimitrios Michailidis <dm@chelsio.com> *
29 * Tina Yang <tainay@chelsio.com> *
30 * Felix Marti <felix@chelsio.com> *
31 * Scott Bardone <sbardone@chelsio.com> *
32 * Kurt Ottaway <kottaway@chelsio.com> *
33 * Frank DiMambro <frank@chelsio.com> *
37 ****************************************************************************/
44 #define TP_MAX_RX_COALESCING_SIZE 16224U
46 struct tp_mib_statistics
{
53 u32 ipInAddrErrors_hi
;
54 u32 ipInAddrErrors_lo
;
55 u32 ipInUnknownProtos_hi
;
56 u32 ipInUnknownProtos_lo
;
96 struct petp
*t1_tp_create(adapter_t
*adapter
, struct tp_params
*p
);
97 void t1_tp_destroy(struct petp
*tp
);
99 void t1_tp_intr_disable(struct petp
*tp
);
100 void t1_tp_intr_enable(struct petp
*tp
);
101 void t1_tp_intr_clear(struct petp
*tp
);
102 int t1_tp_intr_handler(struct petp
*tp
);
104 void t1_tp_get_mib_statistics(adapter_t
*adap
, struct tp_mib_statistics
*tps
);
105 void t1_tp_set_udp_checksum_offload(struct petp
*tp
, int enable
);
106 void t1_tp_set_tcp_checksum_offload(struct petp
*tp
, int enable
);
107 void t1_tp_set_ip_checksum_offload(struct petp
*tp
, int enable
);
108 int t1_tp_set_coalescing_size(struct petp
*tp
, unsigned int size
);
109 int t1_tp_reset(struct petp
*tp
, struct tp_params
*p
, unsigned int tp_clk
);