ixgbe/base: add a shift constant for EEE
authorWenzhuo Lu <wenzhuo.lu@intel.com>
Wed, 24 Jun 2015 03:25:54 +0000 (11:25 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 26 Jun 2015 10:42:18 +0000 (12:42 +0200)
Adds define for the number of bits needed to shift the EEE_SU register
in order to get the value of TEEE_DLY.

Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
Acked-by: Helin Zhang <helin.zhang@intel.com>
drivers/net/ixgbe/base/ixgbe_type.h

index 33f04a7..23bf58a 100644 (file)
@@ -625,6 +625,7 @@ struct ixgbe_dmac_config {
 #define IXGBE_EEER                     0x043A0 /* EEE register */
 #define IXGBE_EEE_STAT                 0x04398 /* EEE Status */
 #define IXGBE_EEE_SU                   0x04380 /* EEE Set up */
+#define IXGBE_EEE_SU_TEEE_DLY_SHIFT    26
 #define IXGBE_TLPIC                    0x041F4 /* EEE Tx LPI count */
 #define IXGBE_RLPIC                    0x041F8 /* EEE Rx LPI count */