diff options
author | Andy Fleming <afleming@freescale.com> | 2009-02-04 19:42:12 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-04 19:42:35 -0500 |
commit | 1577ecef766650a57fceb171acee2b13cbfaf1d3 (patch) | |
tree | b66df11d8815f95f815e65c3c3ffd32df81b8d43 /drivers/net/gianfar.h | |
parent | 9c46f6d42f1b5627c49a5906cb5b315ad8716ff0 (diff) |
netdev: Merge UCC and gianfar MDIO bus drivers
The MDIO bus drivers for the UCC and gianfar ethernet controllers are
essentially the same. There's no reason to duplicate that much code.
Signed-off-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/gianfar.h')
-rw-r--r-- | drivers/net/gianfar.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/net/gianfar.h b/drivers/net/gianfar.h index 7820720ceeed..3cb901b2e240 100644 --- a/drivers/net/gianfar.h +++ b/drivers/net/gianfar.h | |||
@@ -46,7 +46,6 @@ | |||
46 | #include <linux/workqueue.h> | 46 | #include <linux/workqueue.h> |
47 | #include <linux/ethtool.h> | 47 | #include <linux/ethtool.h> |
48 | #include <linux/fsl_devices.h> | 48 | #include <linux/fsl_devices.h> |
49 | #include "gianfar_mii.h" | ||
50 | 49 | ||
51 | /* The maximum number of packets to be handled in one call of gfar_poll */ | 50 | /* The maximum number of packets to be handled in one call of gfar_poll */ |
52 | #define GFAR_DEV_WEIGHT 64 | 51 | #define GFAR_DEV_WEIGHT 64 |
@@ -126,9 +125,12 @@ extern const char gfar_driver_version[]; | |||
126 | #define DEFAULT_RX_COALESCE 0 | 125 | #define DEFAULT_RX_COALESCE 0 |
127 | #define DEFAULT_RXCOUNT 0 | 126 | #define DEFAULT_RXCOUNT 0 |
128 | 127 | ||
129 | #define MIIMCFG_INIT_VALUE 0x00000007 | 128 | #define GFAR_SUPPORTED (SUPPORTED_10baseT_Half \ |
130 | #define MIIMCFG_RESET 0x80000000 | 129 | | SUPPORTED_10baseT_Full \ |
131 | #define MIIMIND_BUSY 0x00000001 | 130 | | SUPPORTED_100baseT_Half \ |
131 | | SUPPORTED_100baseT_Full \ | ||
132 | | SUPPORTED_Autoneg \ | ||
133 | | SUPPORTED_MII) | ||
132 | 134 | ||
133 | /* TBI register addresses */ | 135 | /* TBI register addresses */ |
134 | #define MII_TBICON 0x11 | 136 | #define MII_TBICON 0x11 |
@@ -826,9 +828,6 @@ extern void gfar_halt(struct net_device *dev); | |||
826 | extern void gfar_phy_test(struct mii_bus *bus, struct phy_device *phydev, | 828 | extern void gfar_phy_test(struct mii_bus *bus, struct phy_device *phydev, |
827 | int enable, u32 regnum, u32 read); | 829 | int enable, u32 regnum, u32 read); |
828 | void gfar_init_sysfs(struct net_device *dev); | 830 | void gfar_init_sysfs(struct net_device *dev); |
829 | int gfar_local_mdio_write(struct gfar_mii __iomem *regs, int mii_id, | ||
830 | int regnum, u16 value); | ||
831 | int gfar_local_mdio_read(struct gfar_mii __iomem *regs, int mii_id, int regnum); | ||
832 | 831 | ||
833 | extern const struct ethtool_ops gfar_ethtool_ops; | 832 | extern const struct ethtool_ops gfar_ethtool_ops; |
834 | 833 | ||