1/*- 2 * Copyright (c) 2009, 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: stable/10/sys/dev/alc/if_alcvar.h 264442 2014-04-14 04:51:59Z yongari $ |
28 */ 29 30#ifndef _IF_ALCVAR_H 31#define _IF_ALCVAR_H 32 33#define ALC_TX_RING_CNT 256 34#define ALC_TX_RING_ALIGN sizeof(struct tx_desc) 35#define ALC_RX_RING_CNT 256 36#define ALC_RX_RING_ALIGN sizeof(struct rx_desc) 37#define ALC_RX_BUF_ALIGN 4 38#define ALC_RR_RING_CNT ALC_RX_RING_CNT 39#define ALC_RR_RING_ALIGN sizeof(struct rx_rdesc) 40#define ALC_CMB_ALIGN 8 41#define ALC_SMB_ALIGN 8 42 43#define ALC_TSO_MAXSEGSIZE 4096 44#define ALC_TSO_MAXSIZE (65535 + sizeof(struct ether_vlan_header)) |
45#define ALC_MAXTXSEGS 35 |
46 47#define ALC_ADDR_LO(x) ((uint64_t) (x) & 0xFFFFFFFF) 48#define ALC_ADDR_HI(x) ((uint64_t) (x) >> 32) 49 50#define ALC_DESC_INC(x, y) ((x) = ((x) + 1) % (y)) 51 52/* Water mark to kick reclaiming Tx buffers. */ 53#define ALC_TX_DESC_HIWAT ((ALC_TX_RING_CNT * 6) / 10) --- 228 unchanged lines hidden --- |