if_vgevar.h (200696) | if_vgevar.h (200758) |
---|---|
1/*- 2 * Copyright (c) 2004 3 * Bill Paul <wpaul@windriver.com>. 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 --- 15 unchanged lines hidden (view full) --- 24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 * | 1/*- 2 * Copyright (c) 2004 3 * Bill Paul <wpaul@windriver.com>. 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 --- 15 unchanged lines hidden (view full) --- 24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 * |
32 * $FreeBSD: head/sys/dev/vge/if_vgevar.h 200696 2009-12-18 22:14:28Z yongari $ | 32 * $FreeBSD: head/sys/dev/vge/if_vgevar.h 200758 2009-12-20 19:11:32Z yongari $ |
33 */ 34 35#define VGE_JUMBO_MTU 9000 36 37#define VGE_TX_DESC_CNT 256 38#define VGE_RX_DESC_CNT 252 /* Must be a multiple of 4!! */ 39#define VGE_TX_RING_ALIGN 64 40#define VGE_RX_RING_ALIGN 64 41#define VGE_MAXTXSEGS 6 | 33 */ 34 35#define VGE_JUMBO_MTU 9000 36 37#define VGE_TX_DESC_CNT 256 38#define VGE_RX_DESC_CNT 252 /* Must be a multiple of 4!! */ 39#define VGE_TX_RING_ALIGN 64 40#define VGE_RX_RING_ALIGN 64 41#define VGE_MAXTXSEGS 6 |
42#define VGE_RX_BUF_ALIGN sizeof(uint32_t) | 42#define VGE_RX_BUF_ALIGN sizeof(uint64_t) |
43 44/* 45 * VIA Velocity allows 64bit DMA addressing but high 16bits 46 * of the DMA address should be the same for Tx/Rx buffers. 47 * Because this condition can't be guaranteed vge(4) limit 48 * DMA address space to 48bits. 49 */ 50#if (BUS_SPACE_MAXADDR < 0xFFFFFFFFFF) --- 196 unchanged lines hidden --- | 43 44/* 45 * VIA Velocity allows 64bit DMA addressing but high 16bits 46 * of the DMA address should be the same for Tx/Rx buffers. 47 * Because this condition can't be guaranteed vge(4) limit 48 * DMA address space to 48bits. 49 */ 50#if (BUS_SPACE_MAXADDR < 0xFFFFFFFFFF) --- 196 unchanged lines hidden --- |