sfxge.h (300607) | sfxge.h (301067) |
---|---|
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 300607 2016-05-24 12:16:57Z arybchik $ | 33 * $FreeBSD: head/sys/dev/sfxge/sfxge.h 301067 2016-05-31 18:34:39Z 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> --- 66 unchanged lines hidden (view full) --- 108#include "sfxge_tx.h" 109 110#define ROUNDUP_POW_OF_TWO(_n) (1ULL << flsl((_n) - 1)) 111 112#define SFXGE_IP_ALIGN 2 113 114#define SFXGE_ETHERTYPE_LOOPBACK 0x9000 /* Xerox loopback */ 115 | 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> --- 66 unchanged lines hidden (view full) --- 108#include "sfxge_tx.h" 109 110#define ROUNDUP_POW_OF_TWO(_n) (1ULL << flsl((_n) - 1)) 111 112#define SFXGE_IP_ALIGN 2 113 114#define SFXGE_ETHERTYPE_LOOPBACK 0x9000 /* Xerox loopback */ 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)) 125 126#define SFXGE_MAGIC_RX_QFLUSH_FAILED \ 127 (SFXGE_MAGIC_RESERVED | (2 << SFXGE_MAGIC_DMAQ_LABEL_WIDTH)) 128 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 |
|
116enum sfxge_evq_state { 117 SFXGE_EVQ_UNINITIALIZED = 0, 118 SFXGE_EVQ_INITIALIZED, 119 SFXGE_EVQ_STARTING, 120 SFXGE_EVQ_STARTED 121}; 122 123#define SFXGE_EV_BATCH 16384 --- 315 unchanged lines hidden --- | 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 --- |