diff options
author | Ajit Khaparde <ajit.khaparde@emulex.com> | 2011-02-20 12:42:07 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-22 19:26:46 +0100 |
commit | 609ff3bb8f6cd38c68c719bbc3c31d6b0b9ce894 (patch) | |
tree | d0b1c965750782ad9daa44099cfd296caef5d0f7 /drivers/net/benet/be.h | |
parent | be2net: fix to ignore transparent vlan ids wrongly indicated by NIC (diff) | |
download | linux-609ff3bb8f6cd38c68c719bbc3c31d6b0b9ce894.tar.xz linux-609ff3bb8f6cd38c68c719bbc3c31d6b0b9ce894.zip |
be2net: add code to display temperature of ASIC
Add support to display temperature of ASIC via ethtool -S
From: Somnath K <somnath.kotur@emulex.com>
Signed-off-by: Ajit Khaparde <ajit.khaparde@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet/be.h')
-rw-r--r-- | drivers/net/benet/be.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/benet/be.h b/drivers/net/benet/be.h index 7bf8dd4edeb4..46b951f2b045 100644 --- a/drivers/net/benet/be.h +++ b/drivers/net/benet/be.h @@ -225,6 +225,10 @@ struct be_rx_obj { u32 cache_line_barrier[15]; }; +struct be_drv_stats { + u8 be_on_die_temperature; +}; + struct be_vf_cfg { unsigned char vf_mac_addr[ETH_ALEN]; u32 vf_if_handle; @@ -234,6 +238,7 @@ struct be_vf_cfg { }; #define BE_INVALID_PMAC_ID 0xffffffff + struct be_adapter { struct pci_dev *pdev; struct net_device *netdev; @@ -269,6 +274,7 @@ struct be_adapter { u32 big_page_size; /* Compounded page size shared by rx wrbs */ u8 msix_vec_next_idx; + struct be_drv_stats drv_stats; struct vlan_group *vlan_grp; u16 vlans_added; @@ -281,6 +287,7 @@ struct be_adapter { struct be_dma_mem stats_cmd; /* Work queue used to perform periodic tasks like getting statistics */ struct delayed_work work; + u16 work_counter; /* Ethtool knobs and info */ bool rx_csum; /* BE card must perform rx-checksumming */ |