1 --- a/include/linux/mii.h
2 +++ b/include/linux/mii.h
4 #define __LINUX_MII_H__
6 #include <linux/types.h>
9 /* Generic MII registers. */
12 #define NWAYTEST_LOOPBACK 0x0100 /* Enable loopback for N-way */
13 #define NWAYTEST_RESV2 0xfe00 /* Unused... */
15 +/* This structure is used in all SIOCxMIIxxx ioctl calls */
16 +struct mii_ioctl_data {
25 +#include <linux/if.h>
31 @@ -119,9 +131,6 @@ struct mii_if_info {
32 void (*mdio_write) (struct net_device *dev, int phy_id, int location, int val);
36 -struct mii_ioctl_data;
38 extern int mii_link_ok (struct mii_if_info *mii);
39 extern int mii_nway_restart (struct mii_if_info *mii);
40 extern int mii_ethtool_gset(struct mii_if_info *mii, struct ethtool_cmd *ecmd);
41 @@ -136,15 +145,6 @@ extern int generic_mii_ioctl(struct mii_
45 -/* This structure is used in all SIOCxMIIxxx ioctl calls */
46 -struct mii_ioctl_data {
54 static inline struct mii_ioctl_data *if_mii(struct ifreq *rq)
56 return (struct mii_ioctl_data *) &rq->ifr_ifru;
57 @@ -202,5 +202,5 @@ static inline unsigned int mii_duplex (u
62 +#endif /* __KERNEL__ */
63 #endif /* __LINUX_MII_H__ */