Deleted Added
full compact
if_nfereg.h (183561) if_nfereg.h (215132)
1/* $OpenBSD: if_nfereg.h,v 1.16 2006/02/22 19:23:44 damien Exp $ */
2
3/*-
4 * Copyright (c) 2005 Jonathan Gray <jsg@openbsd.org>
5 *
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
9 *
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 *
1/* $OpenBSD: if_nfereg.h,v 1.16 2006/02/22 19:23:44 damien Exp $ */
2
3/*-
4 * Copyright (c) 2005 Jonathan Gray <jsg@openbsd.org>
5 *
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
9 *
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 *
18 * $FreeBSD: head/sys/dev/nfe/if_nfereg.h 183561 2008-10-03 03:58:16Z yongari $
18 * $FreeBSD: head/sys/dev/nfe/if_nfereg.h 215132 2010-11-11 18:08:50Z yongari $
19 */
20
21#define NFE_RX_RING_COUNT 256
22#define NFE_JUMBO_RX_RING_COUNT NFE_RX_RING_COUNT
23#define NFE_TX_RING_COUNT 256
24
25#define NFE_PROC_DEFAULT ((NFE_RX_RING_COUNT * 3) / 4)
26#define NFE_PROC_MIN 50

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

185
186#define NFE_VTAG_ENABLE (1 << 13)
187
188#define NFE_PWR_VALID (1 << 8)
189#define NFE_PWR_WAKEUP (1 << 15)
190
191#define NFE_PWR2_WAKEUP_MASK 0x0f11
192#define NFE_PWR2_REVA3 (1 << 0)
19 */
20
21#define NFE_RX_RING_COUNT 256
22#define NFE_JUMBO_RX_RING_COUNT NFE_RX_RING_COUNT
23#define NFE_TX_RING_COUNT 256
24
25#define NFE_PROC_DEFAULT ((NFE_RX_RING_COUNT * 3) / 4)
26#define NFE_PROC_MIN 50

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

185
186#define NFE_VTAG_ENABLE (1 << 13)
187
188#define NFE_PWR_VALID (1 << 8)
189#define NFE_PWR_WAKEUP (1 << 15)
190
191#define NFE_PWR2_WAKEUP_MASK 0x0f11
192#define NFE_PWR2_REVA3 (1 << 0)
193#define NFE_PWR2_GATE_CLOCKS 0x0f00
193
194#define NFE_MEDIA_SET 0x10000
195#define NFE_MEDIA_1000T 0x00032
196#define NFE_MEDIA_100TX 0x00064
197#define NFE_MEDIA_10T 0x003e8
198
199#define NFE_PHY_100TX (1 << 0)
200#define NFE_PHY_1000T (1 << 1)

--- 159 unchanged lines hidden ---
194
195#define NFE_MEDIA_SET 0x10000
196#define NFE_MEDIA_1000T 0x00032
197#define NFE_MEDIA_100TX 0x00064
198#define NFE_MEDIA_10T 0x003e8
199
200#define NFE_PHY_100TX (1 << 0)
201#define NFE_PHY_1000T (1 << 1)

--- 159 unchanged lines hidden ---