diff options
author | Tomer Tayar <Tomer.Tayar@cavium.com> | 2017-05-23 09:41:26 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-24 15:17:19 -0400 |
commit | ae33666ab89675968d77753d18452b1ef654c43a (patch) | |
tree | 89342b654080cfec604196af0b9fcb77ddc50048 /drivers/net/ethernet/qlogic/qed/qed_hsi.h | |
parent | f855df220238436d10c3de67da0b1a280a2092b4 (diff) | |
download | linux-stable-ae33666ab89675968d77753d18452b1ef654c43a.tar.gz linux-stable-ae33666ab89675968d77753d18452b1ef654c43a.tar.bz2 linux-stable-ae33666ab89675968d77753d18452b1ef654c43a.zip |
qed: Provide MBI information in dev_info
Pass additional information about package installed on persistent memory
so that protocol drivers would be able to log it.
Signed-off-by: Tomer Tayar <Tomer.Tayar@cavium.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qed/qed_hsi.h')
-rw-r--r-- | drivers/net/ethernet/qlogic/qed/qed_hsi.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed_hsi.h b/drivers/net/ethernet/qlogic/qed/qed_hsi.h index 4755d0b33b90..802c162d8474 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_hsi.h +++ b/drivers/net/ethernet/qlogic/qed/qed_hsi.h @@ -11782,6 +11782,12 @@ struct nvm_cfg1_glob { u32 led_global_settings; u32 generic_cont1; u32 mbi_version; +#define NVM_CFG1_GLOB_MBI_VERSION_0_MASK 0x000000FF +#define NVM_CFG1_GLOB_MBI_VERSION_0_OFFSET 0 +#define NVM_CFG1_GLOB_MBI_VERSION_1_MASK 0x0000FF00 +#define NVM_CFG1_GLOB_MBI_VERSION_1_OFFSET 8 +#define NVM_CFG1_GLOB_MBI_VERSION_2_MASK 0x00FF0000 +#define NVM_CFG1_GLOB_MBI_VERSION_2_OFFSET 16 u32 mbi_date; u32 misc_sig; u32 device_capabilities; |