t4_tom.h (259804) | t4_tom.h (270297) |
---|---|
1/*- 2 * Copyright (c) 2012 Chelsio Communications, Inc. 3 * All rights reserved. 4 * Written by: Navdeep Parhar <np@FreeBSD.org> 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * | 1/*- 2 * Copyright (c) 2012 Chelsio Communications, Inc. 3 * All rights reserved. 4 * Written by: Navdeep Parhar <np@FreeBSD.org> 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * |
27 * $FreeBSD: stable/10/sys/dev/cxgbe/tom/t4_tom.h 259804 2013-12-24 02:10:12Z np $ | 27 * $FreeBSD: stable/10/sys/dev/cxgbe/tom/t4_tom.h 270297 2014-08-21 19:54:02Z np $ |
28 * 29 */ 30 31#ifndef __T4_TOM_H__ 32#define __T4_TOM_H__ 33 34#define KTR_CXGBE KTR_SPARE3 35#define LISTEN_HASH_SIZE 32 --- 238 unchanged lines hidden (view full) --- 274void send_reset(struct adapter *, struct toepcb *, uint32_t); 275void make_established(struct toepcb *, uint32_t, uint32_t, uint16_t); 276void t4_rcvd(struct toedev *, struct tcpcb *); 277int t4_tod_output(struct toedev *, struct tcpcb *); 278int t4_send_fin(struct toedev *, struct tcpcb *); 279int t4_send_rst(struct toedev *, struct tcpcb *); 280void t4_set_tcb_field(struct adapter *, struct toepcb *, int, uint16_t, 281 uint64_t, uint64_t); | 28 * 29 */ 30 31#ifndef __T4_TOM_H__ 32#define __T4_TOM_H__ 33 34#define KTR_CXGBE KTR_SPARE3 35#define LISTEN_HASH_SIZE 32 --- 238 unchanged lines hidden (view full) --- 274void send_reset(struct adapter *, struct toepcb *, uint32_t); 275void make_established(struct toepcb *, uint32_t, uint32_t, uint16_t); 276void t4_rcvd(struct toedev *, struct tcpcb *); 277int t4_tod_output(struct toedev *, struct tcpcb *); 278int t4_send_fin(struct toedev *, struct tcpcb *); 279int t4_send_rst(struct toedev *, struct tcpcb *); 280void t4_set_tcb_field(struct adapter *, struct toepcb *, int, uint16_t, 281 uint64_t, uint64_t); |
282void t4_push_frames(struct adapter *sc, struct toepcb *toep, int drop); |
|
282 283/* t4_ddp.c */ 284void t4_init_ddp(struct adapter *, struct tom_data *); 285void t4_uninit_ddp(struct adapter *, struct tom_data *); 286int t4_soreceive_ddp(struct socket *, struct sockaddr **, struct uio *, 287 struct mbuf **, struct mbuf **, int *); 288struct mbuf *get_ddp_mbuf(int); 289void enable_ddp(struct adapter *, struct toepcb *toep); 290void release_ddp_resources(struct toepcb *toep); 291void insert_ddp_data(struct toepcb *, uint32_t); | 283 284/* t4_ddp.c */ 285void t4_init_ddp(struct adapter *, struct tom_data *); 286void t4_uninit_ddp(struct adapter *, struct tom_data *); 287int t4_soreceive_ddp(struct socket *, struct sockaddr **, struct uio *, 288 struct mbuf **, struct mbuf **, int *); 289struct mbuf *get_ddp_mbuf(int); 290void enable_ddp(struct adapter *, struct toepcb *toep); 291void release_ddp_resources(struct toepcb *toep); 292void insert_ddp_data(struct toepcb *, uint32_t); |
293 294/* ULP related */ 295#define CXGBE_ISCSI_MBUF_TAG 50 296int t4tom_cpl_handler_registered(struct adapter *, unsigned int); 297void t4tom_register_cpl_iscsi_callback(void (*fp)(struct tom_data *, 298 struct socket *, void *, unsigned int)); 299void t4tom_register_queue_iscsi_callback(struct mbuf *(*fp)(struct socket *, 300 unsigned int, int *)); 301void t4_ulp_push_frames(struct adapter *sc, struct toepcb *toep, int); 302int t4_cpl_iscsi_callback(struct tom_data *, struct toepcb *, void *, uint32_t); 303struct mbuf *t4_queue_iscsi_callback(struct socket *, struct toepcb *, uint32_t, 304 int *); 305extern void (*tom_cpl_iscsi_callback)(struct tom_data *, struct socket *, 306 void *, unsigned int); 307extern struct mbuf *(*tom_queue_iscsi_callback)(struct socket*, unsigned int, 308 int *); |
|
292#endif | 309#endif |