mii.h (213878) | mii.h (215297) |
---|---|
1/* $NetBSD: mii.h,v 1.9 2001/05/31 03:07:14 thorpej Exp $ */ 2 3/*- 4 * Copyright (c) 1997 Manuel Bouyer. All rights reserved. 5 * 6 * Modification to match BSD/OS 3.0 MII interface by Jason R. Thorpe, 7 * Numerical Aerospace Simulation Facility, NASA Ames Research Center. 8 * --- 12 unchanged lines hidden (view full) --- 21 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 22 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 23 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * | 1/* $NetBSD: mii.h,v 1.9 2001/05/31 03:07:14 thorpej Exp $ */ 2 3/*- 4 * Copyright (c) 1997 Manuel Bouyer. All rights reserved. 5 * 6 * Modification to match BSD/OS 3.0 MII interface by Jason R. Thorpe, 7 * Numerical Aerospace Simulation Facility, NASA Ames Research Center. 8 * --- 12 unchanged lines hidden (view full) --- 21 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 22 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 23 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * |
29 * $FreeBSD: head/sys/dev/mii/mii.h 213878 2010-10-14 22:01:40Z marius $ | 29 * $FreeBSD: head/sys/dev/mii/mii.h 215297 2010-11-14 13:26:10Z marius $ |
30 */ 31 32#ifndef _DEV_MII_MII_H_ 33#define _DEV_MII_MII_H_ 34 35/* 36 * Registers common to all PHYs. 37 */ --- 85 unchanged lines hidden (view full) --- 123#define ANAR_RF 0x2000 /* remote fault (ro) */ 124#define ANAR_FC 0x0400 /* local device supports PAUSE */ 125#define ANAR_T4 0x0200 /* local device supports 100bT4 */ 126#define ANAR_TX_FD 0x0100 /* local device supports 100bTx FD */ 127#define ANAR_TX 0x0080 /* local device supports 100bTx */ 128#define ANAR_10_FD 0x0040 /* local device supports 10bT FD */ 129#define ANAR_10 0x0020 /* local device supports 10bT */ 130#define ANAR_CSMA 0x0001 /* protocol selector CSMA/CD */ | 30 */ 31 32#ifndef _DEV_MII_MII_H_ 33#define _DEV_MII_MII_H_ 34 35/* 36 * Registers common to all PHYs. 37 */ --- 85 unchanged lines hidden (view full) --- 123#define ANAR_RF 0x2000 /* remote fault (ro) */ 124#define ANAR_FC 0x0400 /* local device supports PAUSE */ 125#define ANAR_T4 0x0200 /* local device supports 100bT4 */ 126#define ANAR_TX_FD 0x0100 /* local device supports 100bTx FD */ 127#define ANAR_TX 0x0080 /* local device supports 100bTx */ 128#define ANAR_10_FD 0x0040 /* local device supports 10bT FD */ 129#define ANAR_10 0x0020 /* local device supports 10bT */ 130#define ANAR_CSMA 0x0001 /* protocol selector CSMA/CD */ |
131#define ANAR_PAUSE_NONE (0 << 10) 132#define ANAR_PAUSE_SYM (1 << 10) 133#define ANAR_PAUSE_ASYM (2 << 10) 134#define ANAR_PAUSE_TOWARDS (3 << 10) |
|
131 132#define ANAR_X_FD 0x0020 /* local device supports 1000BASE-X FD */ 133#define ANAR_X_HD 0x0040 /* local device supports 1000BASE-X HD */ 134#define ANAR_X_PAUSE_NONE (0 << 7) 135#define ANAR_X_PAUSE_SYM (1 << 7) 136#define ANAR_X_PAUSE_ASYM (2 << 7) 137#define ANAR_X_PAUSE_TOWARDS (3 << 7) 138 --- 4 unchanged lines hidden (view full) --- 143#define ANLPAR_RF 0x2000 /* remote fault (ro) */ 144#define ANLPAR_FC 0x0400 /* link partner supports PAUSE */ 145#define ANLPAR_T4 0x0200 /* link partner supports 100bT4 */ 146#define ANLPAR_TX_FD 0x0100 /* link partner supports 100bTx FD */ 147#define ANLPAR_TX 0x0080 /* link partner supports 100bTx */ 148#define ANLPAR_10_FD 0x0040 /* link partner supports 10bT FD */ 149#define ANLPAR_10 0x0020 /* link partner supports 10bT */ 150#define ANLPAR_CSMA 0x0001 /* protocol selector CSMA/CD */ | 135 136#define ANAR_X_FD 0x0020 /* local device supports 1000BASE-X FD */ 137#define ANAR_X_HD 0x0040 /* local device supports 1000BASE-X HD */ 138#define ANAR_X_PAUSE_NONE (0 << 7) 139#define ANAR_X_PAUSE_SYM (1 << 7) 140#define ANAR_X_PAUSE_ASYM (2 << 7) 141#define ANAR_X_PAUSE_TOWARDS (3 << 7) 142 --- 4 unchanged lines hidden (view full) --- 147#define ANLPAR_RF 0x2000 /* remote fault (ro) */ 148#define ANLPAR_FC 0x0400 /* link partner supports PAUSE */ 149#define ANLPAR_T4 0x0200 /* link partner supports 100bT4 */ 150#define ANLPAR_TX_FD 0x0100 /* link partner supports 100bTx FD */ 151#define ANLPAR_TX 0x0080 /* link partner supports 100bTx */ 152#define ANLPAR_10_FD 0x0040 /* link partner supports 10bT FD */ 153#define ANLPAR_10 0x0020 /* link partner supports 10bT */ 154#define ANLPAR_CSMA 0x0001 /* protocol selector CSMA/CD */ |
155#define ANLPAR_PAUSE_MASK (3 << 10) 156#define ANLPAR_PAUSE_NONE (0 << 10) 157#define ANLPAR_PAUSE_SYM (1 << 10) 158#define ANLPAR_PAUSE_ASYM (2 << 10) 159#define ANLPAR_PAUSE_TOWARDS (3 << 10) |
|
151 152#define ANLPAR_X_FD 0x0020 /* local device supports 1000BASE-X FD */ 153#define ANLPAR_X_HD 0x0040 /* local device supports 1000BASE-X HD */ 154#define ANLPAR_X_PAUSE_MASK (3 << 7) 155#define ANLPAR_X_PAUSE_NONE (0 << 7) 156#define ANLPAR_X_PAUSE_SYM (1 << 7) 157#define ANLPAR_X_PAUSE_ASYM (2 << 7) 158#define ANLPAR_X_PAUSE_TOWARDS (3 << 7) --- 45 unchanged lines hidden --- | 160 161#define ANLPAR_X_FD 0x0020 /* local device supports 1000BASE-X FD */ 162#define ANLPAR_X_HD 0x0040 /* local device supports 1000BASE-X HD */ 163#define ANLPAR_X_PAUSE_MASK (3 << 7) 164#define ANLPAR_X_PAUSE_NONE (0 << 7) 165#define ANLPAR_X_PAUSE_SYM (1 << 7) 166#define ANLPAR_X_PAUSE_ASYM (2 << 7) 167#define ANLPAR_X_PAUSE_TOWARDS (3 << 7) --- 45 unchanged lines hidden --- |