offload.h (239344) | offload.h (245274) |
---|---|
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 239344 2012-08-17 00:49:29Z np $ | 27 * $FreeBSD: head/sys/dev/cxgbe/offload.h 245274 2013-01-10 23:56:50Z np $ |
28 * 29 */ 30 31#ifndef __T4_OFFLOAD_H__ 32#define __T4_OFFLOAD_H__ 33 34#define INIT_ULPTX_WRH(w, wrlen, atomic, tid) do { \ 35 (w)->wr_hi = htonl(V_FW_WR_OP(FW_ULPTX_WR) | V_FW_WR_ATOMIC(atomic)); \ --- 34 unchanged lines hidden (view full) --- 70}; 71 72/* 73 * Holds the size, base address, free list start, etc of the TID, server TID, 74 * and active-open TID tables. The tables themselves are allocated dynamically. 75 */ 76struct tid_info { 77 void **tid_tab; | 28 * 29 */ 30 31#ifndef __T4_OFFLOAD_H__ 32#define __T4_OFFLOAD_H__ 33 34#define INIT_ULPTX_WRH(w, wrlen, atomic, tid) do { \ 35 (w)->wr_hi = htonl(V_FW_WR_OP(FW_ULPTX_WR) | V_FW_WR_ATOMIC(atomic)); \ --- 34 unchanged lines hidden (view full) --- 70}; 71 72/* 73 * Holds the size, base address, free list start, etc of the TID, server TID, 74 * and active-open TID tables. The tables themselves are allocated dynamically. 75 */ 76struct tid_info { 77 void **tid_tab; |
78 unsigned int ntids; | 78 u_int ntids; 79 u_int tids_in_use; |
79 | 80 |
81 struct mtx stid_lock __aligned(CACHE_LINE_SIZE); |
|
80 union serv_entry *stid_tab; | 82 union serv_entry *stid_tab; |
81 unsigned int nstids; 82 unsigned int stid_base; | 83 u_int nstids; 84 u_int stid_base; 85 union serv_entry *sfree; 86 u_int stids_in_use; |
83 | 87 |
88 struct mtx atid_lock __aligned(CACHE_LINE_SIZE); |
|
84 union aopen_entry *atid_tab; | 89 union aopen_entry *atid_tab; |
85 unsigned int natids; 86 87 struct filter_entry *ftid_tab; 88 unsigned int nftids; 89 unsigned int ftid_base; 90 unsigned int ftids_in_use; 91 92 struct mtx atid_lock; | 90 u_int natids; |
93 union aopen_entry *afree; | 91 union aopen_entry *afree; |
94 unsigned int atids_in_use; | 92 u_int atids_in_use; |
95 | 93 |
96 struct mtx stid_lock; 97 union serv_entry *sfree; 98 unsigned int stids_in_use; 99 100 unsigned int tids_in_use; | 94 struct mtx ftid_lock __aligned(CACHE_LINE_SIZE); 95 struct filter_entry *ftid_tab; 96 u_int nftids; 97 u_int ftid_base; 98 u_int ftids_in_use; |
101}; 102 103struct t4_range { 104 unsigned int start; 105 unsigned int size; 106}; 107 108struct t4_virt_res { /* virtualized HW resources */ --- 39 unchanged lines hidden --- | 99}; 100 101struct t4_range { 102 unsigned int start; 103 unsigned int size; 104}; 105 106struct t4_virt_res { /* virtualized HW resources */ --- 39 unchanged lines hidden --- |