From: Qi Zhang Date: Tue, 9 Jan 2018 20:30:14 +0000 (-0500) Subject: net/i40e/base: add defines for flat NVM X-Git-Tag: spdx-start~450 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=65a866aa816a44bd5eedd046f382d80f38795836;p=dpdk.git net/i40e/base: add defines for flat NVM New control bits were defined for flat NVM structure. One for pointing which NVM bank is currently used and one used as indicator of structure type. Signed-off-by: Qi Zhang Acked-by: Beilei Xing --- diff --git a/drivers/net/i40e/base/i40e_type.h b/drivers/net/i40e/base/i40e_type.h index 056ca4d1d1..a062816c63 100644 --- a/drivers/net/i40e/base/i40e_type.h +++ b/drivers/net/i40e/base/i40e_type.h @@ -1538,6 +1538,8 @@ struct i40e_hw_port_stats { #define I40E_SR_PCIE_ALT_MODULE_MAX_SIZE 1024 #define I40E_SR_CONTROL_WORD_1_SHIFT 0x06 #define I40E_SR_CONTROL_WORD_1_MASK (0x03 << I40E_SR_CONTROL_WORD_1_SHIFT) +#define I40E_SR_CONTROL_WORD_1_NVM_BANK_VALID BIT(5) +#define I40E_SR_NVM_MAP_STRUCTURE_TYPE BIT(12) /* Shadow RAM related */ #define I40E_SR_SECTOR_SIZE_IN_WORDS 0x800