]> www.infradead.org Git - users/jedix/linux-maple.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)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 06:35:02 +0000 (14:35 +0800)
commit933b21a8287a136954059d0b4fca2016b8ca5c8e
treed941ded848bad804252745e7c868215d93a0071f
parent5a30950b78ef6fda0fb3da453f16301cdfb36ac5
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.

(cherry picked from commit c5083cf6d286e4d3485eaf7904e5d60a2d9df6f5)
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>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/e1000e/e1000.h
drivers/net/e1000e/hw.h
drivers/net/e1000e/netdev.c