patch-2.4.20 linux-2.4.20/include/linux/mii.h
Next file: linux-2.4.20/include/linux/mmzone.h
Previous file: linux-2.4.20/include/linux/lvm.h
Back to the patch index
Back to the overall index
- Lines: 39
- Date:
Thu Nov 28 15:53:15 2002
- Orig file:
linux-2.4.19/include/linux/mii.h
- Orig date:
Mon Feb 25 11:38:13 2002
diff -urN linux-2.4.19/include/linux/mii.h linux-2.4.20/include/linux/mii.h
@@ -107,9 +107,11 @@
struct mii_if_info {
int phy_id;
int advertising;
+ int phy_id_mask;
+ int reg_num_mask;
- unsigned int full_duplex : 1;
- unsigned int duplex_lock : 1;
+ unsigned int full_duplex : 1; /* is full duplex? */
+ unsigned int force_media : 1; /* is autoneg. disabled? */
struct net_device *dev;
int (*mdio_read) (struct net_device *dev, int phy_id, int location);
@@ -117,11 +119,20 @@
};
struct ethtool_cmd;
+struct mii_ioctl_data;
+
+extern int mii_link_ok (struct mii_if_info *mii);
+extern int mii_nway_restart (struct mii_if_info *mii);
+extern int mii_ethtool_gset(struct mii_if_info *mii, struct ethtool_cmd *ecmd);
+extern int mii_ethtool_sset(struct mii_if_info *mii, struct ethtool_cmd *ecmd);
+extern void mii_check_link (struct mii_if_info *mii);
+extern unsigned int mii_check_media (struct mii_if_info *mii,
+ unsigned int ok_to_print,
+ unsigned int init_media);
+extern int generic_mii_ioctl(struct mii_if_info *mii_if,
+ struct mii_ioctl_data *mii_data, int cmd,
+ unsigned int *duplex_changed);
-int mii_link_ok (struct mii_if_info *mii);
-int mii_nway_restart (struct mii_if_info *mii);
-int mii_ethtool_gset(struct mii_if_info *mii, struct ethtool_cmd *ecmd);
-int mii_ethtool_sset(struct mii_if_info *mii, struct ethtool_cmd *ecmd);
/* This structure is used in all SIOCxMIIxxx ioctl calls */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)