]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit983972c616f273ffdc1b562ca5e27d23330fa12d
treede0736d8ff50800af5149ab0e84188dc71fe1900
parentaee6f08c9dbf317802e5e1da83b05be140763649
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