Deleted Added
full compact
if_aereg.h (183567) if_aereg.h (253406)
1/*-
2 * Copyright (c) 2008 Stanislav Sedov <stas@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

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

17 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 *
1/*-
2 * Copyright (c) 2008 Stanislav Sedov <stas@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

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

17 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 *
25 * $FreeBSD: head/sys/dev/ae/if_aereg.h 183567 2008-10-03 10:31:31Z stas $
25 * $FreeBSD: head/sys/dev/ae/if_aereg.h 253406 2013-07-17 01:34:25Z yongari $
26 */
27
28/*
29 * Master configuration register
30 */
31#define AE_MASTER_REG 0x1400
32
33#define AE_MASTER_SOFT_RESET 0x1 /* Reset adapter. */

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

99 have 128-byte alignment). */
100#define AE_TXD_BUFSIZE_REG 0x1548 /* Size of TxD ring in 4-byte units.
101 Should be 4-byte aligned. */
102#define AE_TXS_COUNT_REG 0x1550 /* Number of TxS descriptors in ring.
103 4 byte alignment. */
104#define AE_RXD_COUNT_MIN 16
105#define AE_RXD_COUNT_MAX 512
106#define AE_RXD_COUNT_DEFAULT 64
26 */
27
28/*
29 * Master configuration register
30 */
31#define AE_MASTER_REG 0x1400
32
33#define AE_MASTER_SOFT_RESET 0x1 /* Reset adapter. */

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

99 have 128-byte alignment). */
100#define AE_TXD_BUFSIZE_REG 0x1548 /* Size of TxD ring in 4-byte units.
101 Should be 4-byte aligned. */
102#define AE_TXS_COUNT_REG 0x1550 /* Number of TxS descriptors in ring.
103 4 byte alignment. */
104#define AE_RXD_COUNT_MIN 16
105#define AE_RXD_COUNT_MAX 512
106#define AE_RXD_COUNT_DEFAULT 64
107/* Padding to align frames on a 128-byte boundary. */
108#define AE_RXD_PADDING 120
107
108#define AE_TXD_BUFSIZE_MIN 4096
109#define AE_TXD_BUFSIZE_MAX 65536
110#define AE_TXD_BUFSIZE_DEFAULT 8192
111
112#define AE_TXS_COUNT_MIN 8 /* Not sure. */
113#define AE_TXS_COUNT_MAX 160
114#define AE_TXS_COUNT_DEFAULT 64 /* AE_TXD_BUFSIZE_DEFAULT / 128 */

--- 271 unchanged lines hidden ---
109
110#define AE_TXD_BUFSIZE_MIN 4096
111#define AE_TXD_BUFSIZE_MAX 65536
112#define AE_TXD_BUFSIZE_DEFAULT 8192
113
114#define AE_TXS_COUNT_MIN 8 /* Not sure. */
115#define AE_TXS_COUNT_MAX 160
116#define AE_TXS_COUNT_DEFAULT 64 /* AE_TXD_BUFSIZE_DEFAULT / 128 */

--- 271 unchanged lines hidden ---