diff options
author | Bruce Allan <bruce.w.allan@intel.com> | 2013-01-16 08:54:35 +0000 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2013-01-31 22:34:59 -0800 |
commit | c2ade1a41d69b8b734dd9947bf7ec25bb2fd2f33 (patch) | |
tree | f88da6ec776ec517f2e3fdce040c060ec7663590 /drivers/net/ethernet/intel/e1000e/e1000.h | |
parent | 8bb628697fb05172f10a0960385b8369be15cb6c (diff) | |
download | linux-stable-c2ade1a41d69b8b734dd9947bf7ec25bb2fd2f33.tar.gz linux-stable-c2ade1a41d69b8b734dd9947bf7ec25bb2fd2f33.tar.bz2 linux-stable-c2ade1a41d69b8b734dd9947bf7ec25bb2fd2f33.zip |
e1000e: use generic IEEE MII definitions
For standard IEEE MII-compatible transceivers, the kernel has generic
register and bit definitions. Use those instead of redundant local
defines.
Do not replace references of MII_CR_SPEED_10 with BMCR_SPEED10 (0x0000)
when it is not necessary (i.e. when it is bitwise OR'ed with another
value).
Some whitespace issues in the surrounding context of the above changes are
also cleaned up.
Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/e1000e/e1000.h')
-rw-r--r-- | drivers/net/ethernet/intel/e1000e/e1000.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/e1000e/e1000.h b/drivers/net/ethernet/intel/e1000e/e1000.h index c7d5c5b92ee5..4b0bd9c225cc 100644 --- a/drivers/net/ethernet/intel/e1000e/e1000.h +++ b/drivers/net/ethernet/intel/e1000e/e1000.h @@ -45,6 +45,7 @@ #include <linux/net_tstamp.h> #include <linux/ptp_clock_kernel.h> #include <linux/ptp_classify.h> +#include <linux/mii.h> #include "hw.h" struct e1000_info; |