Deleted Added
full compact
cxgb_adapter.h (171335) cxgb_adapter.h (171471)
1/**************************************************************************
2
3Copyright (c) 2007, Chelsio Inc.
4All rights reserved.
5
6Redistribution and use in source and binary forms, with or without
7modification, are permitted provided that the following conditions are met:
8

--- 12 unchanged lines hidden (view full) ---

21CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26POSSIBILITY OF SUCH DAMAGE.
27
28
1/**************************************************************************
2
3Copyright (c) 2007, Chelsio Inc.
4All rights reserved.
5
6Redistribution and use in source and binary forms, with or without
7modification, are permitted provided that the following conditions are met:
8

--- 12 unchanged lines hidden (view full) ---

21CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26POSSIBILITY OF SUCH DAMAGE.
27
28
29$FreeBSD: head/sys/dev/cxgb/cxgb_adapter.h 171335 2007-07-10 06:01:45Z kmacy $
29$FreeBSD: head/sys/dev/cxgb/cxgb_adapter.h 171471 2007-07-17 06:50:35Z kmacy $
30
31***************************************************************************/
32
33
34
35#ifndef _CXGB_ADAPTER_H_
36#define _CXGB_ADAPTER_H_
37
38#include <sys/cdefs.h>
30
31***************************************************************************/
32
33
34
35#ifndef _CXGB_ADAPTER_H_
36#define _CXGB_ADAPTER_H_
37
38#include <sys/cdefs.h>
39__FBSDID("$FreeBSD: head/sys/dev/cxgb/cxgb_adapter.h 171335 2007-07-10 06:01:45Z kmacy $");
39__FBSDID("$FreeBSD: head/sys/dev/cxgb/cxgb_adapter.h 171471 2007-07-17 06:50:35Z kmacy $");
40
41#include <sys/lock.h>
42#include <sys/mutex.h>
43#include <sys/sx.h>
44#include <sys/rman.h>
45#include <sys/mbuf.h>
46#include <sys/socket.h>
47#include <sys/sockio.h>

--- 85 unchanged lines hidden (view full) ---

133};
134
135enum { /* adapter flags */
136 FULL_INIT_DONE = (1 << 0),
137 USING_MSI = (1 << 1),
138 USING_MSIX = (1 << 2),
139 QUEUES_BOUND = (1 << 3),
140 FW_UPTODATE = (1 << 4),
40
41#include <sys/lock.h>
42#include <sys/mutex.h>
43#include <sys/sx.h>
44#include <sys/rman.h>
45#include <sys/mbuf.h>
46#include <sys/socket.h>
47#include <sys/sockio.h>

--- 85 unchanged lines hidden (view full) ---

133};
134
135enum { /* adapter flags */
136 FULL_INIT_DONE = (1 << 0),
137 USING_MSI = (1 << 1),
138 USING_MSIX = (1 << 2),
139 QUEUES_BOUND = (1 << 3),
140 FW_UPTODATE = (1 << 4),
141 TPS_UPTODATE = (1 << 5),
141};
142
143
144#define FL_Q_SIZE 4096
145#define JUMBO_Q_SIZE 512
146#define RSPQ_Q_SIZE 1024
147#define TX_ETH_Q_SIZE 1024
148

--- 85 unchanged lines hidden (view full) ---

234 bus_dma_tag_t entry_tag;
235 uma_zone_t zone;
236 int type;
237};
238
239struct tx_desc;
240struct tx_sw_desc;
241
142};
143
144
145#define FL_Q_SIZE 4096
146#define JUMBO_Q_SIZE 512
147#define RSPQ_Q_SIZE 1024
148#define TX_ETH_Q_SIZE 1024
149

--- 85 unchanged lines hidden (view full) ---

235 bus_dma_tag_t entry_tag;
236 uma_zone_t zone;
237 int type;
238};
239
240struct tx_desc;
241struct tx_sw_desc;
242
242#define TXQ_TRANSMITTING 0x1
243#define TXQ_TRANSMITTING 0x1
243
244struct sge_txq {
245 uint64_t flags;
246 uint32_t in_use;
247 uint32_t size;
248 uint32_t processed;
249 uint32_t cleaned;
250 uint32_t stop_thres;

--- 45 unchanged lines hidden (view full) ---

296 int idx; /* qset # */
297};
298
299struct sge {
300 struct sge_qset qs[SGE_QSETS];
301 struct mtx reg_lock;
302};
303
244
245struct sge_txq {
246 uint64_t flags;
247 uint32_t in_use;
248 uint32_t size;
249 uint32_t processed;
250 uint32_t cleaned;
251 uint32_t stop_thres;

--- 45 unchanged lines hidden (view full) ---

297 int idx; /* qset # */
298};
299
300struct sge {
301 struct sge_qset qs[SGE_QSETS];
302 struct mtx reg_lock;
303};
304
305struct filter_info;
306
304struct adapter {
305 device_t dev;
306 int flags;
307 TAILQ_ENTRY(adapter) adapter_entry;
308
309 /* PCI register resources */
310 uint32_t regs_rid;
311 struct resource *regs_res;

--- 14 unchanged lines hidden (view full) ---

326 void *intr_tag;
327
328 uint32_t msix_regs_rid;
329 struct resource *msix_regs_res;
330
331 struct resource *msix_irq_res[SGE_QSETS];
332 int msix_irq_rid[SGE_QSETS];
333 void *msix_intr_tag[SGE_QSETS];
307struct adapter {
308 device_t dev;
309 int flags;
310 TAILQ_ENTRY(adapter) adapter_entry;
311
312 /* PCI register resources */
313 uint32_t regs_rid;
314 struct resource *regs_res;

--- 14 unchanged lines hidden (view full) ---

329 void *intr_tag;
330
331 uint32_t msix_regs_rid;
332 struct resource *msix_regs_res;
333
334 struct resource *msix_irq_res[SGE_QSETS];
335 int msix_irq_rid[SGE_QSETS];
336 void *msix_intr_tag[SGE_QSETS];
337 uint8_t rxpkt_map[8]; /* maps RX_PKT interface values to port ids */
338 uint8_t rrss_map[SGE_QSETS]; /* revers RSS map table */
334
339
340 struct filter_info *filters;
341
335 /* Tasks */
336 struct task ext_intr_task;
337 struct task slow_intr_task;
338 struct task tick_task;
339 struct task process_responses_task;
340 struct taskqueue *tq;
341 struct callout cxgb_tick_ch;
342 struct callout sge_timer_ch;

--- 216 unchanged lines hidden ---
342 /* Tasks */
343 struct task ext_intr_task;
344 struct task slow_intr_task;
345 struct task tick_task;
346 struct task process_responses_task;
347 struct taskqueue *tq;
348 struct callout cxgb_tick_ch;
349 struct callout sge_timer_ch;

--- 216 unchanged lines hidden ---