From: Qi Zhang Date: Tue, 9 Jan 2018 20:30:01 +0000 (-0500) Subject: net/i40e/base: add (Q)SFP module memory access definitions X-Git-Tag: spdx-start~463 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=2954665d3f79160138690cc3408c1ed0c6dcfa4d;p=dpdk.git net/i40e/base: add (Q)SFP module memory access definitions Add definations used for accessing and interrupting contents of (Q)SFP module internal EEPROM memory. 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 42b2d91663..d049509a2f 100644 --- a/drivers/net/i40e/base/i40e_type.h +++ b/drivers/net/i40e/base/i40e_type.h @@ -530,6 +530,19 @@ struct i40e_nvm_access { u8 data[1]; }; +/* (Q)SFP module access definitions */ +#define I40E_I2C_EEPROM_DEV_ADDR 0xA0 +#define I40E_I2C_EEPROM_DEV_ADDR2 0xA2 +#define I40E_MODULE_TYPE_ADDR 0x00 +#define I40E_MODULE_REVISION_ADDR 0x01 +#define I40E_MODULE_SFF_8472_COMP 0x5E +#define I40E_MODULE_SFF_8472_SWAP 0x5C +#define I40E_MODULE_SFF_ADDR_MODE 0x04 +#define I40E_MODULE_SFF_DIAG_CAPAB 0x40 +#define I40E_MODULE_TYPE_QSFP_PLUS 0x0D +#define I40E_MODULE_TYPE_QSFP28 0x11 +#define I40E_MODULE_QSFP_MAX_LEN 640 + /* PCI bus types */ enum i40e_bus_type { i40e_bus_type_unknown = 0,