if_gemreg.h (91398) | if_gemreg.h (99726) |
---|---|
1/* 2 * Copyright (C) 2001 Eduardo Horvath. 3 * All rights reserved. 4 * 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 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 * | 1/* 2 * Copyright (C) 2001 Eduardo Horvath. 3 * All rights reserved. 4 * 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 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 * from: NetBSD: gemreg.h,v 1.2 2001/10/18 03:33:33 thorpej Exp | 27 * from: NetBSD: gemreg.h,v 1.15 2002/05/11 00:36:02 matt Exp |
28 * | 28 * |
29 * $FreeBSD: head/sys/dev/gem/if_gemreg.h 91398 2002-02-27 17:41:06Z tmm $ | 29 * $FreeBSD: head/sys/dev/gem/if_gemreg.h 99726 2002-07-10 10:24:23Z benno $ |
30 */ 31 32#ifndef _IF_GEMREG_H 33#define _IF_GEMREG_H 34 35/* Register definitions for Sun GEM gigabit ethernet */ 36 37#define GEM_SEB_STATE 0x0000 /* SEB state reg, R/O */ --- 162 unchanged lines hidden (view full) --- 200 201#define GEM_RX_CONFIG_FIFO_THRS_SHIFT 24 202#define GEM_RX_CONFIG_FBOFF_SHFT 10 203#define GEM_RX_CONFIG_CXM_START_SHFT 13 204 205 206/* GEM_RX_PAUSE_THRESH register bits -- sizes in multiples of 64 bytes */ 207#define GEM_RX_PTH_XOFF_THRESH 0x000001ff | 30 */ 31 32#ifndef _IF_GEMREG_H 33#define _IF_GEMREG_H 34 35/* Register definitions for Sun GEM gigabit ethernet */ 36 37#define GEM_SEB_STATE 0x0000 /* SEB state reg, R/O */ --- 162 unchanged lines hidden (view full) --- 200 201#define GEM_RX_CONFIG_FIFO_THRS_SHIFT 24 202#define GEM_RX_CONFIG_FBOFF_SHFT 10 203#define GEM_RX_CONFIG_CXM_START_SHFT 13 204 205 206/* GEM_RX_PAUSE_THRESH register bits -- sizes in multiples of 64 bytes */ 207#define GEM_RX_PTH_XOFF_THRESH 0x000001ff |
208#define GEM_RX_PTH_XON_THRESH 0x07fc0000 | 208#define GEM_RX_PTH_XON_THRESH 0x001ff000 |
209 210 211/* GEM_RX_BLANKING register bits */ 212#define GEM_RX_BLANKING_PACKETS 0x000001ff /* Delay intr for x packets */ | 209 210 211/* GEM_RX_BLANKING register bits */ 212#define GEM_RX_BLANKING_PACKETS 0x000001ff /* Delay intr for x packets */ |
213#define GEM_RX_BLANKING_TIME 0x03fc0000 /* Delay intr for x ticks */ 214/* One tick is 1048 PCI clocs, or 16us at 66MHz */ | 213#define GEM_RX_BLANKING_TIME 0x000ff000 /* Delay intr for x ticks */ 214#define GEM_RX_BLANKING_TIME_SHIFT 12 215/* One tick is 2048 PCI clocks, or 16us at 66MHz */ |
215 216 217/* GEM_MAC registers */ 218#define GEM_MAC_TXRESET 0x6000 /* Store 1, cleared when done */ 219#define GEM_MAC_RXRESET 0x6004 /* ditto */ 220#define GEM_MAC_SEND_PAUSE_CMD 0x6008 221#define GEM_MAC_TX_STATUS 0x6010 222#define GEM_MAC_RX_STATUS 0x6014 --- 96 unchanged lines hidden (view full) --- 319#define GEM_MAC_PAUSE 0x00000002 /* enter pause state */ 320#define GEM_MAC_RESUME 0x00000004 /* exit pause state */ 321#define GEM_MAC_PAUSE_TIME 0xffff0000 322 323/* GEM_MAC_XIF_CONFIG register bits */ 324#define GEM_MAC_XIF_TX_MII_ENA 0x00000001 /* Enable XIF output drivers */ 325#define GEM_MAC_XIF_MII_LOOPBK 0x00000002 /* Enable MII loopback mode */ 326#define GEM_MAC_XIF_ECHO_DISABL 0x00000004 /* Disable echo */ | 216 217 218/* GEM_MAC registers */ 219#define GEM_MAC_TXRESET 0x6000 /* Store 1, cleared when done */ 220#define GEM_MAC_RXRESET 0x6004 /* ditto */ 221#define GEM_MAC_SEND_PAUSE_CMD 0x6008 222#define GEM_MAC_TX_STATUS 0x6010 223#define GEM_MAC_RX_STATUS 0x6014 --- 96 unchanged lines hidden (view full) --- 320#define GEM_MAC_PAUSE 0x00000002 /* enter pause state */ 321#define GEM_MAC_RESUME 0x00000004 /* exit pause state */ 322#define GEM_MAC_PAUSE_TIME 0xffff0000 323 324/* GEM_MAC_XIF_CONFIG register bits */ 325#define GEM_MAC_XIF_TX_MII_ENA 0x00000001 /* Enable XIF output drivers */ 326#define GEM_MAC_XIF_MII_LOOPBK 0x00000002 /* Enable MII loopback mode */ 327#define GEM_MAC_XIF_ECHO_DISABL 0x00000004 /* Disable echo */ |
327#define GEM_MAC_XIF_MII_MODE 0x00000008 /* Select GMII/MII mode */ | 328#define GEM_MAC_XIF_GMII_MODE 0x00000008 /* Select GMII/MII mode */ |
328#define GEM_MAC_XIF_MII_BUF_ENA 0x00000010 /* Enable MII recv buffers */ 329#define GEM_MAC_XIF_LINK_LED 0x00000020 /* force link LED active */ 330#define GEM_MAC_XIF_FDPLX_LED 0x00000040 /* force FDPLX LED active */ 331 332/* GEM_MAC_TX_CONFIG register bits */ 333#define GEM_MAC_TX_ENABLE 0x00000001 /* TX enable */ 334#define GEM_MAC_TX_IGN_CARRIER 0x00000002 /* Ignore carrier sense */ 335#define GEM_MAC_TX_IGN_COLLIS 0x00000004 /* ignore collitions */ --- 203 unchanged lines hidden --- | 329#define GEM_MAC_XIF_MII_BUF_ENA 0x00000010 /* Enable MII recv buffers */ 330#define GEM_MAC_XIF_LINK_LED 0x00000020 /* force link LED active */ 331#define GEM_MAC_XIF_FDPLX_LED 0x00000040 /* force FDPLX LED active */ 332 333/* GEM_MAC_TX_CONFIG register bits */ 334#define GEM_MAC_TX_ENABLE 0x00000001 /* TX enable */ 335#define GEM_MAC_TX_IGN_CARRIER 0x00000002 /* Ignore carrier sense */ 336#define GEM_MAC_TX_IGN_COLLIS 0x00000004 /* ignore collitions */ --- 203 unchanged lines hidden --- |