offload.h (221474) | offload.h (222509) |
---|---|
1/*- 2 * Copyright (c) 2010 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) 2010 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: head/sys/dev/cxgbe/offload.h 221474 2011-05-05 02:04:56Z np $ | 27 * $FreeBSD: head/sys/dev/cxgbe/offload.h 222509 2011-05-30 21:07:26Z np $ |
28 * 29 */ 30 31#ifndef __T4_OFFLOAD_H__ 32#define __T4_OFFLOAD_H__ 33 | 28 * 29 */ 30 31#ifndef __T4_OFFLOAD_H__ 32#define __T4_OFFLOAD_H__ 33 |
34/* CPL message priority levels */ 35enum { 36 CPL_PRIORITY_DATA = 0, /* data messages */ 37 CPL_PRIORITY_SETUP = 1, /* connection setup messages */ 38 CPL_PRIORITY_TEARDOWN = 0, /* connection teardown messages */ 39 CPL_PRIORITY_LISTEN = 1, /* listen start/stop messages */ 40 CPL_PRIORITY_ACK = 1, /* RX ACK messages */ 41 CPL_PRIORITY_CONTROL = 1 /* control messages */ 42}; 43 44#define INIT_TP_WR(w, tid) do { \ 45 (w)->wr.wr_hi = htonl(V_FW_WR_OP(FW_TP_WR) | \ 46 V_FW_WR_IMMDLEN(sizeof(*w) - sizeof(w->wr))); \ 47 (w)->wr.wr_mid = htonl(V_FW_WR_LEN16(DIV_ROUND_UP(sizeof(*w), 16)) | \ 48 V_FW_WR_FLOWID(tid)); \ 49 (w)->wr.wr_lo = cpu_to_be64(0); \ 50} while (0) 51 |
|
34/* 35 * Max # of ATIDs. The absolute HW max is 16K but we keep it lower. 36 */ 37#define MAX_ATIDS 8192U 38 39struct serv_entry { 40 void *data; 41}; --- 47 unchanged lines hidden --- | 52/* 53 * Max # of ATIDs. The absolute HW max is 16K but we keep it lower. 54 */ 55#define MAX_ATIDS 8192U 56 57struct serv_entry { 58 void *data; 59}; --- 47 unchanged lines hidden --- |