diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2009-02-12 00:03:41 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-16 02:13:25 -0500 |
commit | 38c845c7648ee354fd1d2fb8a7fbc352f2d3dcc3 (patch) | |
tree | aa55b7d582dadb2735079f92f7fe246069647ae7 /drivers/net/igb/igb.h | |
parent | d24fff22d8dba13cc21034144f68f213415cb7c8 (diff) |
igb: access to NIC time
Adds the register definitions and code to read the time
register.
Signed-off-by: John Ronciak <john.ronciak@intel.com>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/igb/igb.h')
-rw-r--r-- | drivers/net/igb/igb.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/igb/igb.h b/drivers/net/igb/igb.h index e507449b3cc2..797a9fe107ad 100644 --- a/drivers/net/igb/igb.h +++ b/drivers/net/igb/igb.h | |||
@@ -34,6 +34,8 @@ | |||
34 | #include "e1000_mac.h" | 34 | #include "e1000_mac.h" |
35 | #include "e1000_82575.h" | 35 | #include "e1000_82575.h" |
36 | 36 | ||
37 | #include <linux/clocksource.h> | ||
38 | |||
37 | struct igb_adapter; | 39 | struct igb_adapter; |
38 | 40 | ||
39 | /* Interrupt defines */ | 41 | /* Interrupt defines */ |
@@ -251,6 +253,8 @@ struct igb_adapter { | |||
251 | struct napi_struct napi; | 253 | struct napi_struct napi; |
252 | struct pci_dev *pdev; | 254 | struct pci_dev *pdev; |
253 | struct net_device_stats net_stats; | 255 | struct net_device_stats net_stats; |
256 | struct cyclecounter cycles; | ||
257 | struct timecounter clock; | ||
254 | 258 | ||
255 | /* structs defined in e1000_hw.h */ | 259 | /* structs defined in e1000_hw.h */ |
256 | struct e1000_hw hw; | 260 | struct e1000_hw hw; |