diff options
author | Michael Brown | 2015-03-10 22:23:51 +0100 |
---|---|---|
committer | Michael Brown | 2015-03-10 22:31:07 +0100 |
commit | 6ad02e78bb85f5afebe3d897bc629b26f89abc17 (patch) | |
tree | d7bd31a2d9bad2b2a7a0fa3f95491f68e75e69c4 /src/drivers/net/smsc75xx.h | |
parent | [legal] Relicense Davicom DM96xx drivers (diff) | |
download | ipxe-6ad02e78bb85f5afebe3d897bc629b26f89abc17.tar.gz ipxe-6ad02e78bb85f5afebe3d897bc629b26f89abc17.tar.xz ipxe-6ad02e78bb85f5afebe3d897bc629b26f89abc17.zip |
[mii] Add generic mii_check_link() function
Most devices expose at least the link up/down status via a bit in a
MAC register, since the MAC generally already needs to know whether or
not the link is up. Some devices (e.g. the SMSC75xx USB NIC) expose
this information to software only via the MII registers.
Provide a generic mii_check_link() implementation to check the BMSR
and report the link status via netdev_link_{up,down}().
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/net/smsc75xx.h')
0 files changed, 0 insertions, 0 deletions