1174704Skmacy/*-
2237263Snp * Copyright (c) 2012 Chelsio Communications, Inc.
3174704Skmacy * All rights reserved.
4174704Skmacy *
5174704Skmacy * Redistribution and use in source and binary forms, with or without
6237263Snp * modification, are permitted provided that the following conditions
7237263Snp * are met:
8237263Snp * 1. Redistributions of source code must retain the above copyright
9237263Snp *    notice, this list of conditions and the following disclaimer.
10237263Snp * 2. Redistributions in binary form must reproduce the above copyright
11237263Snp *    notice, this list of conditions and the following disclaimer in the
12237263Snp *    documentation and/or other materials provided with the distribution.
13174704Skmacy *
14237263Snp * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15237263Snp * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16174704Skmacy * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17237263Snp * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18237263Snp * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19237263Snp * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20237263Snp * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21237263Snp * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22237263Snp * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23237263Snp * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24237263Snp * SUCH DAMAGE.
25174704Skmacy *
26174704Skmacy * $FreeBSD$
27237263Snp *
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
37237263Snpextern int registered_toedevs;
38174704Skmacy
39237263Snpint  tcp_offload_connect(struct socket *, struct sockaddr *);
40237263Snpvoid tcp_offload_listen_start(struct tcpcb *);
41237263Snpvoid tcp_offload_listen_stop(struct tcpcb *);
42237263Snpvoid tcp_offload_input(struct tcpcb *, struct mbuf *);
43237263Snpint  tcp_offload_output(struct tcpcb *);
44237263Snpvoid tcp_offload_rcvd(struct tcpcb *);
45237263Snpvoid tcp_offload_ctloutput(struct tcpcb *, int, int);
46237263Snpvoid tcp_offload_detach(struct tcpcb *);
47195654Slstewart
48174704Skmacy#endif
49