diff options
author | françois romieu <romieu@fr.zoreil.com> | 2011-09-30 02:38:02 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-10-03 20:09:10 +0200 |
commit | 3235de1684ae88e5e380de254a2a674dcd558acc (patch) | |
tree | 89703c6342a32579a6fc508c1ed27b6e64b20707 /drivers/net/ethernet/realtek/sc92031.c | |
parent | atm/iphase : removal of PCI space dereferences. (diff) | |
download | linux-3235de1684ae88e5e380de254a2a674dcd558acc.tar.xz linux-3235de1684ae88e5e380de254a2a674dcd558acc.zip |
sc92031: use standard #defines from mii.h.
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/realtek/sc92031.c')
-rw-r--r-- | drivers/net/ethernet/realtek/sc92031.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/net/ethernet/realtek/sc92031.c b/drivers/net/ethernet/realtek/sc92031.c index 128f8ebb81ec..a284d6440538 100644 --- a/drivers/net/ethernet/realtek/sc92031.c +++ b/drivers/net/ethernet/realtek/sc92031.c @@ -31,6 +31,7 @@ #include <linux/netdevice.h> #include <linux/etherdevice.h> #include <linux/ethtool.h> +#include <linux/mii.h> #include <linux/crc32.h> #include <asm/irq.h> @@ -116,16 +117,9 @@ enum silan_registers { TestD8 = 0xD8, }; -#define MII_BMCR 0 // Basic mode control register -#define MII_BMSR 1 // Basic mode status register #define MII_JAB 16 #define MII_OutputStatus 24 -#define BMCR_FULLDPLX 0x0100 // Full duplex -#define BMCR_ANRESTART 0x0200 // Auto negotiation restart -#define BMCR_ANENABLE 0x1000 // Enable auto negotiation -#define BMCR_SPEED100 0x2000 // Select 100Mbps -#define BMSR_LSTATUS 0x0004 // Link status #define PHY_16_JAB_ENB 0x1000 #define PHY_16_PORT_ENB 0x1 |