diff options
Diffstat (limited to 'drivers/net/gianfar.h')
-rw-r--r-- | drivers/net/gianfar.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/drivers/net/gianfar.h b/drivers/net/gianfar.h index eaa86897f5c3..54332b0059df 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 |
@@ -756,6 +758,8 @@ struct gfar_private { | |||
756 | unsigned int rx_stash_size; | 758 | unsigned int rx_stash_size; |
757 | unsigned int rx_stash_index; | 759 | unsigned int rx_stash_index; |
758 | 760 | ||
761 | struct sk_buff_head rx_recycle; | ||
762 | |||
759 | struct vlan_group *vlgrp; | 763 | struct vlan_group *vlgrp; |
760 | 764 | ||
761 | /* Unprotected fields */ | 765 | /* Unprotected fields */ |
@@ -826,8 +830,7 @@ extern void gfar_halt(struct net_device *dev); | |||
826 | extern void gfar_phy_test(struct mii_bus *bus, struct phy_device *phydev, | 830 | extern void gfar_phy_test(struct mii_bus *bus, struct phy_device *phydev, |
827 | int enable, u32 regnum, u32 read); | 831 | int enable, u32 regnum, u32 read); |
828 | void gfar_init_sysfs(struct net_device *dev); | 832 | void gfar_init_sysfs(struct net_device *dev); |
829 | int gfar_local_mdio_write(struct gfar_mii __iomem *regs, int mii_id, | 833 | |
830 | int regnum, u16 value); | 834 | extern const struct ethtool_ops gfar_ethtool_ops; |
831 | int gfar_local_mdio_read(struct gfar_mii __iomem *regs, int mii_id, int regnum); | ||
832 | 835 | ||
833 | #endif /* __GIANFAR_H */ | 836 | #endif /* __GIANFAR_H */ |