1174704Skmacy/*-
2252555Snp * Copyright (c) 2012 Chelsio Communications, Inc.
3174704Skmacy * All rights reserved.
4174704Skmacy *
5174704Skmacy * Redistribution and use in source and binary forms, with or without
6252555Snp * modification, are permitted provided that the following conditions
7252555Snp * are met:
8252555Snp * 1. Redistributions of source code must retain the above copyright
9252555Snp *    notice, this list of conditions and the following disclaimer.
10252555Snp * 2. Redistributions in binary form must reproduce the above copyright
11252555Snp *    notice, this list of conditions and the following disclaimer in the
12252555Snp *    documentation and/or other materials provided with the distribution.
13174704Skmacy *
14252555Snp * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15252555Snp * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16174704Skmacy * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17252555Snp * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18252555Snp * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19252555Snp * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20252555Snp * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21252555Snp * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22252555Snp * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23252555Snp * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24252555Snp * SUCH DAMAGE.
25174704Skmacy *
26174704Skmacy * $FreeBSD$
27252555Snp *
28174704Skmacy */
29174704Skmacy
30174704Skmacy#ifndef _NETINET_TCP_OFFLOAD_H_
31174704Skmacy#define	_NETINET_TCP_OFFLOAD_H_
32174704Skmacy
33174704Skmacy#ifndef _KERNEL
34174704Skmacy#error "no user-serviceable parts inside"
35174704Skmacy#endif
36174704Skmacy
37252555Snpextern int registered_toedevs;
38174704Skmacy
39252555Snpint  tcp_offload_connect(struct socket *, struct sockaddr *);
40252555Snpvoid tcp_offload_listen_start(struct tcpcb *);
41252555Snpvoid tcp_offload_listen_stop(struct tcpcb *);
42252555Snpvoid tcp_offload_input(struct tcpcb *, struct mbuf *);
43252555Snpint  tcp_offload_output(struct tcpcb *);
44252555Snpvoid tcp_offload_rcvd(struct tcpcb *);
45252555Snpvoid tcp_offload_ctloutput(struct tcpcb *, int, int);
46252555Snpvoid tcp_offload_detach(struct tcpcb *);
47195654Slstewart
48174704Skmacy#endif
49