Deleted Added
full compact
if_jmevar.h (216546) if_jmevar.h (216551)
1/*-
2 * Copyright (c) 2008, Pyun YongHyeon <yongari@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 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) 2008, Pyun YongHyeon <yongari@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 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/jme/if_jmevar.h 216546 2010-12-18 23:03:38Z yongari $
27 * $FreeBSD: head/sys/dev/jme/if_jmevar.h 216551 2010-12-18 23:52:50Z yongari $
28 */
29
30#ifndef _IF_JMEVAR_H
31#define _IF_JMEVAR_H
32
33#include <sys/queue.h>
34#include <sys/callout.h>
35#include <sys/taskqueue.h>

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

180 void *jme_intrhand[JME_MSI_MESSAGES];
181 int jme_rev;
182 int jme_chip_rev;
183 int jme_phyaddr;
184 uint8_t jme_eaddr[ETHER_ADDR_LEN];
185 uint32_t jme_tx_dma_size;
186 uint32_t jme_rx_dma_size;
187 int jme_flags;
28 */
29
30#ifndef _IF_JMEVAR_H
31#define _IF_JMEVAR_H
32
33#include <sys/queue.h>
34#include <sys/callout.h>
35#include <sys/taskqueue.h>

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

180 void *jme_intrhand[JME_MSI_MESSAGES];
181 int jme_rev;
182 int jme_chip_rev;
183 int jme_phyaddr;
184 uint8_t jme_eaddr[ETHER_ADDR_LEN];
185 uint32_t jme_tx_dma_size;
186 uint32_t jme_rx_dma_size;
187 int jme_flags;
188#define JME_FLAG_FPGA 0x0001
189#define JME_FLAG_PCIE 0x0002
190#define JME_FLAG_PCIX 0x0003
191#define JME_FLAG_MSI 0x0004
192#define JME_FLAG_MSIX 0x0010
193#define JME_FLAG_PMCAP 0x0020
194#define JME_FLAG_FASTETH 0x0040
195#define JME_FLAG_NOJUMBO 0x0080
196#define JME_FLAG_TXCLK 0x0100
197#define JME_FLAG_DMA32BIT 0x0200
198#define JME_FLAG_HWMIB 0x0400
199#define JME_FLAG_DETACH 0x4000
200#define JME_FLAG_LINK 0x8000
188#define JME_FLAG_FPGA 0x00000001
189#define JME_FLAG_PCIE 0x00000002
190#define JME_FLAG_PCIX 0x00000004
191#define JME_FLAG_MSI 0x00000008
192#define JME_FLAG_MSIX 0x00000010
193#define JME_FLAG_PMCAP 0x00000020
194#define JME_FLAG_FASTETH 0x00000040
195#define JME_FLAG_NOJUMBO 0x00000080
196#define JME_FLAG_RXCLK 0x00000100
197#define JME_FLAG_TXCLK 0x00000200
198#define JME_FLAG_DMA32BIT 0x00000400
199#define JME_FLAG_HWMIB 0x00000800
200#define JME_FLAG_EFUSE 0x00001000
201#define JME_FLAG_PCCPCD 0x00002000
202#define JME_FLAG_DETACH 0x40000000
203#define JME_FLAG_LINK 0x80000000
201
202 struct jme_hw_stats jme_ostats;
203 struct jme_hw_stats jme_stats;
204 struct callout jme_tick_ch;
205 struct jme_chain_data jme_cdata;
206 struct jme_ring_data jme_rdata;
207 int jme_if_flags;
208 int jme_watchdog_timer;
209 uint32_t jme_txcsr;
210 uint32_t jme_rxcsr;
211 int jme_process_limit;
212 int jme_tx_coal_to;
204
205 struct jme_hw_stats jme_ostats;
206 struct jme_hw_stats jme_stats;
207 struct callout jme_tick_ch;
208 struct jme_chain_data jme_cdata;
209 struct jme_ring_data jme_rdata;
210 int jme_if_flags;
211 int jme_watchdog_timer;
212 uint32_t jme_txcsr;
213 uint32_t jme_rxcsr;
214 int jme_process_limit;
215 int jme_tx_coal_to;
216 int jme_tx_pcd_to;
213 int jme_tx_coal_pkt;
214 int jme_rx_coal_to;
217 int jme_tx_coal_pkt;
218 int jme_rx_coal_to;
219 int jme_rx_pcd_to;
215 int jme_rx_coal_pkt;
216 volatile int jme_morework;
217
218 struct task jme_int_task;
219 struct task jme_tx_task;
220 struct task jme_link_task;
221 struct taskqueue *jme_tq;
222 struct mtx jme_mtx;

--- 27 unchanged lines hidden ---
220 int jme_rx_coal_pkt;
221 volatile int jme_morework;
222
223 struct task jme_int_task;
224 struct task jme_tx_task;
225 struct task jme_link_task;
226 struct taskqueue *jme_tq;
227 struct mtx jme_mtx;

--- 27 unchanged lines hidden ---