diff options
| author | Linus Torvalds <torvalds@athlon.transmeta.com> | 2002-02-05 00:17:16 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@athlon.transmeta.com> | 2002-02-05 00:17:16 -0800 |
| commit | fe48f9c8ac1f6b93d8f1371f116a2a0d95d6bc19 (patch) | |
| tree | a5c617773ddae97b8135c414fd9a2347d492d8bf /include/linux/mii.h | |
| parent | 397cbdc2c254c7650d75fc990d33a878e75fafb7 (diff) | |
v2.5.2.4.1 -> v2.5.2.5
- Jeff Garzik: net driver updates
- NIIBE Yutaka: SuperH update
Diffstat (limited to 'include/linux/mii.h')
| -rw-r--r-- | include/linux/mii.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/linux/mii.h b/include/linux/mii.h index 943913583dea..4a3881211195 100644 --- a/include/linux/mii.h +++ b/include/linux/mii.h @@ -70,6 +70,8 @@ #define ADVERTISE_LPACK 0x4000 /* Ack link partners response */ #define ADVERTISE_NPAGE 0x8000 /* Next page bit */ +#define ADVERTISE_FULL (ADVERTISE_100FULL | ADVERTISE_10FULL | \ + ADVERTISE_CSMA) #define ADVERTISE_ALL (ADVERTISE_10HALF | ADVERTISE_10FULL | \ ADVERTISE_100HALF | ADVERTISE_100FULL) @@ -101,6 +103,27 @@ #define NWAYTEST_LOOPBACK 0x0100 /* Enable loopback for N-way */ #define NWAYTEST_RESV2 0xfe00 /* Unused... */ + +struct mii_if_info { + int phy_id; + int advertising; + + unsigned int full_duplex : 1; + unsigned int duplex_lock : 1; + + struct net_device *dev; + int (*mdio_read) (struct net_device *dev, int phy_id, int location); + void (*mdio_write) (struct net_device *dev, int phy_id, int location, int val); +}; + +struct ethtool_cmd; + +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 */ struct mii_ioctl_data { u16 phy_id; |
