e1000e: helper functions for accessing EMI registers
authorBruce Allan <bruce.w.allan@intel.com>
Wed, 5 Dec 2012 06:25:58 +0000 (06:25 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 16 Jan 2013 05:47:20 +0000 (21:47 -0800)
commit4ddc48a9a5f3352343eb4725eb75f9ca38fa1559
tree78caa2906cef8854115d7a778e1cf0b5069e1cb5
parent1cc7a3a14fa60f31ca4ff69f0dd31f369e0a51c2
e1000e: helper functions for accessing EMI registers

The Extended Management Interface (EMI) registers are accessed by first
writing the EMI register offset to the EMI_ADDR regiter and then either
reading or writing the data to/from the EMI_DATA register.  Add helper
functions for performing these steps and convert existing EMI register
accesses accordingly.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/e1000e/ich8lan.c