e1000e: convert head, tail and itr_register offsets to __iomem pointers
authorBruce Allan <bruce.w.allan@intel.com>
Fri, 16 Dec 2011 00:45:40 +0000 (00:45 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 26 Jan 2012 07:12:13 +0000 (23:12 -0800)
commitc5083cf6d286e4d3485eaf7904e5d60a2d9df6f5
treede0736d8ff50800af5149ab0e84188dc71fe1900
parent7ee913562fb7937595ba97f9b9adbf294b657d5b
e1000e: convert head, tail and itr_register offsets to __iomem pointers

The Tx/Rx head and tail registers and itr_register are always at known
addresses based on the __iomem address at which the PCI region (from BAR 0)
is mapped and known offsets within the region for each of these registers.
Store and use the full address rather than just the region offset to reduce
unnecessary address calculations.  Also, change current u8 __iomem pointers
to void __iomem pointers.

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>
drivers/net/ethernet/intel/e1000e/e1000.h
drivers/net/ethernet/intel/e1000e/hw.h
drivers/net/ethernet/intel/e1000e/netdev.c