aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrançois romieu <romieu@fr.zoreil.com>2011-09-29 20:38:02 -0400
committerDavid S. Miller <davem@davemloft.net>2011-10-03 14:09:10 -0400
commit3235de1684ae88e5e380de254a2a674dcd558acc (patch)
tree89703c6342a32579a6fc508c1ed27b6e64b20707
parent26c5c44d63824f7c397d27b10c2c43a3bab4a2f0 (diff)
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>
-rw-r--r--drivers/net/ethernet/realtek/sc92031.c8
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 @@
31#include <linux/netdevice.h> 31#include <linux/netdevice.h>
32#include <linux/etherdevice.h> 32#include <linux/etherdevice.h>
33#include <linux/ethtool.h> 33#include <linux/ethtool.h>
34#include <linux/mii.h>
34#include <linux/crc32.h> 35#include <linux/crc32.h>
35 36
36#include <asm/irq.h> 37#include <asm/irq.h>
@@ -116,16 +117,9 @@ enum silan_registers {
116 TestD8 = 0xD8, 117 TestD8 = 0xD8,
117}; 118};
118 119
119#define MII_BMCR 0 // Basic mode control register
120#define MII_BMSR 1 // Basic mode status register
121#define MII_JAB 16 120#define MII_JAB 16
122#define MII_OutputStatus 24 121#define MII_OutputStatus 24
123 122
124#define BMCR_FULLDPLX 0x0100 // Full duplex
125#define BMCR_ANRESTART 0x0200 // Auto negotiation restart
126#define BMCR_ANENABLE 0x1000 // Enable auto negotiation
127#define BMCR_SPEED100 0x2000 // Select 100Mbps
128#define BMSR_LSTATUS 0x0004 // Link status
129#define PHY_16_JAB_ENB 0x1000 123#define PHY_16_JAB_ENB 0x1000
130#define PHY_16_PORT_ENB 0x1 124#define PHY_16_PORT_ENB 0x1
131 125