Deleted Added
full compact
sfxge.h (301067) sfxge.h (301075)
1/*-
2 * Copyright (c) 2010-2016 Solarflare Communications Inc.
3 * All rights reserved.
4 *
5 * This software was developed in part by Philip Paeps under contract for
6 * Solarflare Communications, Inc.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

25 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
26 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
27 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 *
29 * The views and conclusions contained in the software and documentation are
30 * those of the authors and should not be interpreted as representing official
31 * policies, either expressed or implied, of the FreeBSD Project.
32 *
1/*-
2 * Copyright (c) 2010-2016 Solarflare Communications Inc.
3 * All rights reserved.
4 *
5 * This software was developed in part by Philip Paeps under contract for
6 * Solarflare Communications, Inc.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

25 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
26 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
27 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 *
29 * The views and conclusions contained in the software and documentation are
30 * those of the authors and should not be interpreted as representing official
31 * policies, either expressed or implied, of the FreeBSD Project.
32 *
33 * $FreeBSD: head/sys/dev/sfxge/sfxge.h 301067 2016-05-31 18:34:39Z arybchik $
33 * $FreeBSD: head/sys/dev/sfxge/sfxge.h 301075 2016-05-31 20:54:42Z arybchik $
34 */
35
36#ifndef _SFXGE_H
37#define _SFXGE_H
38
39#include <sys/param.h>
40#include <sys/kernel.h>
41#include <sys/socket.h>

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

115
116
117#define SFXGE_MAGIC_RESERVED 0x8000
118
119#define SFXGE_MAGIC_DMAQ_LABEL_WIDTH 6
120#define SFXGE_MAGIC_DMAQ_LABEL_MASK \
121 ((1 << SFXGE_MAGIC_DMAQ_LABEL_WIDTH) - 1)
122
34 */
35
36#ifndef _SFXGE_H
37#define _SFXGE_H
38
39#include <sys/param.h>
40#include <sys/kernel.h>
41#include <sys/socket.h>

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

115
116
117#define SFXGE_MAGIC_RESERVED 0x8000
118
119#define SFXGE_MAGIC_DMAQ_LABEL_WIDTH 6
120#define SFXGE_MAGIC_DMAQ_LABEL_MASK \
121 ((1 << SFXGE_MAGIC_DMAQ_LABEL_WIDTH) - 1)
122
123#define SFXGE_MAGIC_RX_QFLUSH_DONE \
124 (SFXGE_MAGIC_RESERVED | (1 << SFXGE_MAGIC_DMAQ_LABEL_WIDTH))
123enum sfxge_sw_ev {
124 SFXGE_SW_EV_RX_QFLUSH_DONE = 1,
125 SFXGE_SW_EV_RX_QFLUSH_FAILED,
126 SFXGE_SW_EV_RX_QREFILL,
127 SFXGE_SW_EV_TX_QFLUSH_DONE,
128};
125
129
126#define SFXGE_MAGIC_RX_QFLUSH_FAILED \
127 (SFXGE_MAGIC_RESERVED | (2 << SFXGE_MAGIC_DMAQ_LABEL_WIDTH))
130#define SFXGE_SW_EV_MAGIC(_sw_ev) \
131 (SFXGE_MAGIC_RESERVED | ((_sw_ev) << SFXGE_MAGIC_DMAQ_LABEL_WIDTH))
128
132
129#define SFXGE_MAGIC_RX_QREFILL \
130 (SFXGE_MAGIC_RESERVED | (3 << SFXGE_MAGIC_DMAQ_LABEL_WIDTH))
131
132#define SFXGE_MAGIC_TX_QFLUSH_DONE \
133 (SFXGE_MAGIC_RESERVED | (4 << SFXGE_MAGIC_DMAQ_LABEL_WIDTH))
134
135
136enum sfxge_evq_state {
137 SFXGE_EVQ_UNINITIALIZED = 0,
138 SFXGE_EVQ_INITIALIZED,
139 SFXGE_EVQ_STARTING,
140 SFXGE_EVQ_STARTED
141};
142
143#define SFXGE_EV_BATCH 16384

--- 315 unchanged lines hidden ---
133enum sfxge_evq_state {
134 SFXGE_EVQ_UNINITIALIZED = 0,
135 SFXGE_EVQ_INITIALIZED,
136 SFXGE_EVQ_STARTING,
137 SFXGE_EVQ_STARTED
138};
139
140#define SFXGE_EV_BATCH 16384

--- 315 unchanged lines hidden ---