/** @file
*
* Media Independent Interface constants
*
*
* Copyright (C) 1996, 1999, 2001 David S. Miller (davem@redhat.com)
*
*/
/* Generic MII registers. */
#
define MII_BMCR 0x00 /* Basic mode control register */#
define MII_BMSR 0x01 /* Basic mode status register */#
define MII_LPA 0x05 /* Link partner ability reg */#
define MII_NCONFIG 0x1c /* Network interface config */
/* Basic mode control register. */
#
define BMCR_CTST 0x0080 /* Collision test */#
define BMCR_ISOLATE 0x0400 /* Disconnect DP83840 from MII */#
define BMCR_PDOWN 0x0800 /* Powerdown the DP83840 */
/* Basic mode status register. */
#
define BMSR_ERCAP 0x0001 /* Ext-reg capability */#
define BMSR_JCD 0x0002 /* Jabber detected */#
define BMSR_10HALF 0x0800 /* Can do 10mbps, half-duplex */#
define BMSR_10FULL 0x1000 /* Can do 10mbps, full-duplex */#
define BMSR_100HALF 0x2000 /* Can do 100mbps, half-duplex */#
define BMSR_100FULL 0x4000 /* Can do 100mbps, full-duplex */
/* Advertisement control register. */
/* Link partner ability register. */
#
define LPA_SLCT 0x001f /* Same as advertise selector */#
define LPA_10HALF 0x0020 /* Can do 10mbps half-duplex */#
define LPA_10FULL 0x0040 /* Can do 10mbps full-duplex */#
define LPA_100HALF 0x0080 /* Can do 100mbps half-duplex */#
define LPA_100FULL 0x0100 /* Can do 100mbps full-duplex */#
define LPA_RFAULT 0x2000 /* Link partner faulted */#
define LPA_LPACK 0x4000 /* Link partner acked us */
/* Expansion register for auto-negotiation. */
/* N-way test register. */
/* 1000BASE-T Control register */
/* 1000BASE-T Status register */
#
define LPA_1000FULL 0x0800 /* Partner 1000BASE-T full duplex */#
define LPA_1000HALF 0x0400 /* Partner 1000BASE-T half duplex */
unsigned int force_media :
1;
/* is autoneg. disabled? */ unsigned int supports_gmii :
1;
/* are GMII registers supported? */
};
#endif