1/*- 2 * Copyright (c) 1997, 1998, 1999, 2000 3 * Bill Paul <wpaul@ctr.columbia.edu>. 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/sk/xmaciireg.h 158070 2006-04-27 05:59:09Z yongari $ |
33 */ 34 35/* 36 * Registers and data structures for the XaQti Corporation XMAC II 37 * Gigabit Ethernet MAC. Datasheet is available from http://www.xaqti.com. 38 * The XMAC can be programmed for 16-bit or 32-bit register access modes. 39 * The SysKonnect gigabit ethernet adapters use 16-bit mode, so that's 40 * how the registers are laid out here. --- 271 unchanged lines hidden (view full) --- 312#define XM_RXSTAT_CARREXTERR 0x00000400 313#define XM_RXSTAT_BURSTMODE 0x00000800 314#define XM_RXSTAT_UNICAST 0x00002000 315#define XM_RXSTAT_MULTICAST 0x00004000 316#define XM_RXSTAT_BROADCAST 0x00008000 317#define XM_RXSTAT_VLAN_LEV1 0x00010000 318#define XM_RXSTAT_VLAN_LEV2 0x00020000 319#define XM_RXSTAT_LEN 0xFFFC0000 |
320#define XM_RXSTAT_LENSHIFT 18 |
321 |
322#define XM_RXSTAT_BYTES(x) ((x) >> XM_RXSTAT_LENSHIFT) 323 |
324/* 325 * XMAC PHY registers, indirectly accessed through 326 * XM_PHY_ADDR and XM_PHY_REG. 327 */ 328 329#define XM_PHY_BMCR 0x0000 /* control */ 330#define XM_PHY_BMSR 0x0001 /* status */ 331#define XM_PHY_VENID 0x0002 /* vendor id */ --- 75 unchanged lines hidden --- |