1 diff -urN linux-2.4.35.4/include/linux/mii.h linux-2.4.35.4.new/include/linux/mii.h
2 --- linux-2.4.35.4/include/linux/mii.h 2007-11-17 18:23:15.000000000 +0100
3 +++ linux-2.4.35.4.new/include/linux/mii.h 2009-03-15 17:32:45.000000000 +0100
5 #define __LINUX_MII_H__
7 #include <linux/types.h>
10 /* Generic MII registers. */
13 #define NWAYTEST_LOOPBACK 0x0100 /* Enable loopback for N-way */
14 #define NWAYTEST_RESV2 0xfe00 /* Unused... */
16 +/* This structure is used in all SIOCxMIIxxx ioctl calls */
17 +struct mii_ioctl_data {
26 +#include <linux/if.h>
33 void (*mdio_write) (struct net_device *dev, int phy_id, int location, int val);
37 -struct mii_ioctl_data;
39 extern int mii_link_ok (struct mii_if_info *mii);
40 extern int mii_nway_restart (struct mii_if_info *mii);
41 extern int mii_ethtool_gset(struct mii_if_info *mii, struct ethtool_cmd *ecmd);
46 -/* This structure is used in all SIOCxMIIxxx ioctl calls */
47 -struct mii_ioctl_data {
55 static inline struct mii_ioctl_data *if_mii(struct ifreq *rq)
57 return (struct mii_ioctl_data *) &rq->ifr_ifru;
63 +#endif /* __KERNEL__ */
64 #endif /* __LINUX_MII_H__ */