summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@mandrakesoft.com>2002-09-28 17:07:35 -0400
committerJeff Garzik <jgarzik@mandrakesoft.com>2002-09-28 17:07:35 -0400
commit949682feead87b88764c193e783c07518b1e02a2 (patch)
tree0865ab65942f8abcdf34506115d730495980e3cf /include/linux
parent439f01a0aa3a03499e5fb5a7073b22fccfad08cf (diff)
Add helper function generic_mii_ioctl to MII lib, use it in 8139cp net drvr
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mii.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/mii.h b/include/linux/mii.h
index e1c30d0e7270..46c225e65587 100644
--- a/include/linux/mii.h
+++ b/include/linux/mii.h
@@ -107,6 +107,8 @@
struct mii_if_info {
int phy_id;
int advertising;
+ int phy_id_mask;
+ int reg_num_mask;
unsigned int full_duplex : 1; /* is full duplex? */
unsigned int force_media : 1; /* is autoneg. disabled? */
@@ -117,6 +119,7 @@ struct mii_if_info {
};
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);
@@ -126,6 +129,9 @@ 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 net_device *dev, struct mii_if_info *mii_if,
+ struct mii_ioctl_data *mii_data, int cmd);
+
/* This structure is used in all SIOCxMIIxxx ioctl calls */