From: françois romieu Date: Fri, 30 Sep 2011 00:38:02 +0000 (+0000) Subject: sc92031: use standard #defines from mii.h. X-Git-Tag: v2.6.39-400.9.0~423^2~19^2~11^2~42 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f1831224ac5478f5f9b07c03d627a6cfb48d36ed;p=users%2Fjedix%2Flinux-maple.git sc92031: use standard #defines from mii.h. (cherry picked from commit 3235de1684ae88e5e380de254a2a674dcd558acc) Signed-off-by: Francois Romieu Signed-off-by: David S. Miller Signed-off-by: Joe Jin --- diff --git a/drivers/net/sc92031.c b/drivers/net/sc92031.c index d65205207ecfa..f69df90f664e4 100644 --- a/drivers/net/sc92031.c +++ b/drivers/net/sc92031.c @@ -30,6 +30,7 @@ #include #include #include +#include #include #include @@ -115,16 +116,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