Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/831520/?format=api
{ "id": 831520, "url": "http://patchwork.ozlabs.org/api/patches/831520/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1509114760-7626-1-git-send-email-paul.greenwalt@intel.com/", "project": { "id": 46, "url": "http://patchwork.ozlabs.org/api/projects/46/?format=api", "name": "Intel Wired Ethernet development", "link_name": "intel-wired-lan", "list_id": "intel-wired-lan.osuosl.org", "list_email": "intel-wired-lan@osuosl.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<1509114760-7626-1-git-send-email-paul.greenwalt@intel.com>", "list_archive_url": null, "date": "2017-10-27T14:32:40", "name": "ixgbe: extend firmware version support", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "093ff9e643f83470251526659e061535e65c2560", "submitter": { "id": 71166, "url": "http://patchwork.ozlabs.org/api/people/71166/?format=api", "name": "Paul Greenwalt", "email": "paul.greenwalt@intel.com" }, "delegate": { "id": 68, "url": "http://patchwork.ozlabs.org/api/users/68/?format=api", "username": "jtkirshe", "first_name": "Jeff", "last_name": "Kirsher", "email": "jeffrey.t.kirsher@intel.com" }, "mbox": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1509114760-7626-1-git-send-email-paul.greenwalt@intel.com/mbox/", "series": [ { "id": 10671, "url": "http://patchwork.ozlabs.org/api/series/10671/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=10671", "date": "2017-10-27T14:32:40", "name": "ixgbe: extend firmware version support", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/10671/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/831520/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/831520/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<intel-wired-lan-bounces@osuosl.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "intel-wired-lan@lists.osuosl.org" ], "Delivered-To": [ "patchwork-incoming@bilbo.ozlabs.org", "intel-wired-lan@lists.osuosl.org" ], "Authentication-Results": "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=osuosl.org\n\t(client-ip=140.211.166.138; helo=whitealder.osuosl.org;\n\tenvelope-from=intel-wired-lan-bounces@osuosl.org;\n\treceiver=<UNKNOWN>)", "Received": [ "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3yNy6p2Px5z9t4X\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat, 28 Oct 2017 08:43:30 +1100 (AEDT)", "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id B47E48A077;\n\tFri, 27 Oct 2017 21:43:28 +0000 (UTC)", "from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 73z0d45fkRAC; Fri, 27 Oct 2017 21:43:26 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id EFC208A071;\n\tFri, 27 Oct 2017 21:43:25 +0000 (UTC)", "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\tby ash.osuosl.org (Postfix) with ESMTP id E40D01C16C1\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri, 27 Oct 2017 21:43:24 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id D65618A3F6\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri, 27 Oct 2017 21:43:24 +0000 (UTC)", "from hemlock.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id OJA9Y1Fv7hql for <intel-wired-lan@lists.osuosl.org>;\n\tFri, 27 Oct 2017 21:43:23 +0000 (UTC)", "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n\tby hemlock.osuosl.org (Postfix) with ESMTPS id 740E68A3F5\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri, 27 Oct 2017 21:43:23 +0000 (UTC)", "from fmsmga002.fm.intel.com ([10.253.24.26])\n\tby fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t27 Oct 2017 14:43:23 -0700", "from unknown (HELO localhost.jf.intel.com) ([134.134.177.139])\n\tby fmsmga002.fm.intel.com with ESMTP; 27 Oct 2017 14:43:22 -0700" ], "X-Virus-Scanned": [ "amavisd-new at osuosl.org", "amavisd-new at osuosl.org" ], "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos; i=\"5.44,305,1505804400\"; d=\"scan'208\";\n\ta=\"1236372189\"", "From": "Paul Greenwalt <paul.greenwalt@intel.com>", "To": "intel-wired-lan@lists.osuosl.org", "Date": "Fri, 27 Oct 2017 10:32:40 -0400", "Message-Id": "<1509114760-7626-1-git-send-email-paul.greenwalt@intel.com>", "X-Mailer": "git-send-email 2.7.4", "Subject": "[Intel-wired-lan] [PATCH] ixgbe: extend firmware version support", "X-BeenThere": "intel-wired-lan@osuosl.org", "X-Mailman-Version": "2.1.18-1", "Precedence": "list", "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.osuosl.org>", "List-Unsubscribe": "<https://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=unsubscribe>", "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>", "List-Post": "<mailto:intel-wired-lan@osuosl.org>", "List-Help": "<mailto:intel-wired-lan-request@osuosl.org?subject=help>", "List-Subscribe": "<https://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=subscribe>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Errors-To": "intel-wired-lan-bounces@osuosl.org", "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@osuosl.org>" }, "content": "Extend FW version reporting by displaying information from the iSCSI\nor OEM block in the EEPROM.\n\nThis will allow us to more accurately identify the FW.\n\nSigned-off-by: Paul Greenwalt <paul.greenwalt@intel.com>\n---\n drivers/net/ethernet/intel/ixgbe/ixgbe.h | 3 +-\n drivers/net/ethernet/intel/ixgbe/ixgbe_common.c | 112 +++++++++++++++++++++++\n drivers/net/ethernet/intel/ixgbe/ixgbe_common.h | 6 ++\n drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c | 7 +-\n drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c | 7 +-\n drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 38 +++++++-\n drivers/net/ethernet/intel/ixgbe/ixgbe_type.h | 39 ++++++++\n 7 files changed, 198 insertions(+), 14 deletions(-)", "diff": "diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe.h b/drivers/net/ethernet/intel/ixgbe/ixgbe.h\nindex 468c355..92a784b 100644\n--- a/drivers/net/ethernet/intel/ixgbe/ixgbe.h\n+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe.h\n@@ -721,8 +721,7 @@ struct ixgbe_adapter {\n \n \tu16 bridge_mode;\n \n-\tu16 eeprom_verh;\n-\tu16 eeprom_verl;\n+\tchar eeprom_id[NVM_VER_SIZE];\n \tu16 eeprom_cap;\n \n \tu32 interrupt_event;\ndiff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c\nindex 9bef255..1948e42 100644\n--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c\n+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c\n@@ -4028,6 +4028,118 @@ s32 ixgbe_init_thermal_sensor_thresh_generic(struct ixgbe_hw *hw)\n \treturn 0;\n }\n \n+/**\n+ * ixgbe_get_orom_version - Return option ROM from EEPROM\n+ *\n+ * @hw: pointer to hardware structure\n+ * @nvm_ver: pointer to output structure\n+ *\n+ * if valid option ROM version, nvm_ver->or_valid set to true\n+ * else nvm_ver->or_valid is false.\n+ **/\n+void ixgbe_get_orom_version(struct ixgbe_hw *hw,\n+\t\t\t struct ixgbe_nvm_version *nvm_ver)\n+{\n+\tu16 offset, eeprom_cfg_blkh, eeprom_cfg_blkl;\n+\n+\tnvm_ver->or_valid = false;\n+\t/* Option Rom may or may not be present. Start with pointer */\n+\thw->eeprom.ops.read(hw, NVM_OROM_OFFSET, &offset);\n+\n+\t/* make sure offset is valid */\n+\tif (offset == 0x0 || offset == NVM_INVALID_PTR)\n+\t\treturn;\n+\n+\thw->eeprom.ops.read(hw, offset + NVM_OROM_BLK_HI, &eeprom_cfg_blkh);\n+\thw->eeprom.ops.read(hw, offset + NVM_OROM_BLK_LOW, &eeprom_cfg_blkl);\n+\n+\t/* option rom exists and is valid */\n+\tif ((eeprom_cfg_blkl | eeprom_cfg_blkh) == 0x0 ||\n+\t eeprom_cfg_blkl == NVM_VER_INVALID ||\n+\t eeprom_cfg_blkh == NVM_VER_INVALID)\n+\t\treturn;\n+\n+\tnvm_ver->or_valid = true;\n+\tnvm_ver->or_major = eeprom_cfg_blkl >> NVM_OROM_SHIFT;\n+\tnvm_ver->or_build = (eeprom_cfg_blkl << NVM_OROM_SHIFT) |\n+\t\t\t (eeprom_cfg_blkh >> NVM_OROM_SHIFT);\n+\tnvm_ver->or_patch = eeprom_cfg_blkh & NVM_OROM_PATCH_MASK;\n+}\n+\n+/**\n+ * ixgbe_get_oem_prod_version Etrack ID from EEPROM\n+ *\n+ * @hw: pointer to hardware structure\n+ * @nvm_ver: pointer to output structure\n+ *\n+ * if valid OEM product version, nvm_ver->oem_valid set to true\n+ * else nvm_ver->oem_valid is false.\n+ **/\n+void ixgbe_get_oem_prod_version(struct ixgbe_hw *hw,\n+\t\t\t\tstruct ixgbe_nvm_version *nvm_ver)\n+{\n+\tu16 rel_num, prod_ver, mod_len, cap, offset;\n+\n+\tnvm_ver->oem_valid = false;\n+\thw->eeprom.ops.read(hw, NVM_OEM_PROD_VER_PTR, &offset);\n+\n+\t/* Return is offset to OEM Product Version block is invalid */\n+\tif (offset == 0x0 && offset == NVM_INVALID_PTR)\n+\t\treturn;\n+\n+\t/* Read product version block */\n+\thw->eeprom.ops.read(hw, offset, &mod_len);\n+\thw->eeprom.ops.read(hw, offset + NVM_OEM_PROD_VER_CAP_OFF, &cap);\n+\n+\t/* Return if OEM product version block is invalid */\n+\tif (mod_len != NVM_OEM_PROD_VER_MOD_LEN ||\n+\t (cap & NVM_OEM_PROD_VER_CAP_MASK) != 0x0)\n+\t\treturn;\n+\n+\thw->eeprom.ops.read(hw, offset + NVM_OEM_PROD_VER_OFF_L, &prod_ver);\n+\thw->eeprom.ops.read(hw, offset + NVM_OEM_PROD_VER_OFF_H, &rel_num);\n+\n+\t/* Return if version is invalid */\n+\tif ((rel_num | prod_ver) == 0x0 ||\n+\t rel_num == NVM_VER_INVALID || prod_ver == NVM_VER_INVALID)\n+\t\treturn;\n+\n+\tnvm_ver->oem_major = prod_ver >> NVM_VER_SHIFT;\n+\tnvm_ver->oem_minor = prod_ver & NVM_VER_MASK;\n+\tnvm_ver->oem_release = rel_num;\n+\tnvm_ver->oem_valid = true;\n+}\n+\n+/**\n+ * ixgbe_get_etk_id - Return Etrack ID from EEPROM\n+ *\n+ * @hw: pointer to hardware structure\n+ * @nvm_ver: pointer to output structure\n+ *\n+ * word read errors will return 0xFFFF\n+ **/\n+void ixgbe_get_etk_id(struct ixgbe_hw *hw,\n+\t\t struct ixgbe_nvm_version *nvm_ver)\n+{\n+\tu16 etk_id_l, etk_id_h;\n+\n+\tif (hw->eeprom.ops.read(hw, NVM_ETK_OFF_LOW, &etk_id_l))\n+\t\tetk_id_l = NVM_VER_INVALID;\n+\tif (hw->eeprom.ops.read(hw, NVM_ETK_OFF_HI, &etk_id_h))\n+\t\tetk_id_h = NVM_VER_INVALID;\n+\n+\t/* The word order for the version format is determined by high order\n+\t * word bit 15.\n+\t */\n+\tif ((etk_id_h & NVM_ETK_VALID) == 0) {\n+\t\tnvm_ver->etk_id = etk_id_h;\n+\t\tnvm_ver->etk_id |= (etk_id_l << NVM_ETK_SHIFT);\n+\t} else {\n+\t\tnvm_ver->etk_id = etk_id_l;\n+\t\tnvm_ver->etk_id |= (etk_id_h << NVM_ETK_SHIFT);\n+\t}\n+}\n+\n void ixgbe_disable_rx_generic(struct ixgbe_hw *hw)\n {\n \tu32 rxctrl;\ndiff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_common.h b/drivers/net/ethernet/intel/ixgbe/ixgbe_common.h\nindex e083732..e46b08a 100644\n--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_common.h\n+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_common.h\n@@ -139,6 +139,12 @@ extern const u32 ixgbe_mvals_8259X[IXGBE_MVALS_IDX_LIMIT];\n \n s32 ixgbe_get_thermal_sensor_data_generic(struct ixgbe_hw *hw);\n s32 ixgbe_init_thermal_sensor_thresh_generic(struct ixgbe_hw *hw);\n+void ixgbe_get_etk_id(struct ixgbe_hw *hw,\n+\t\t struct ixgbe_nvm_version *nvm_ver);\n+void ixgbe_get_oem_prod_version(struct ixgbe_hw *hw,\n+\t\t\t\tstruct ixgbe_nvm_version *nvm_ver);\n+void ixgbe_get_orom_version(struct ixgbe_hw *hw,\n+\t\t\t struct ixgbe_nvm_version *nvm_ver);\n void ixgbe_disable_rx_generic(struct ixgbe_hw *hw);\n void ixgbe_enable_rx_generic(struct ixgbe_hw *hw);\n s32 ixgbe_setup_mac_link_multispeed_fiber(struct ixgbe_hw *hw,\ndiff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c\nindex 0aad1c2..7634b19 100644\n--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c\n+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c\n@@ -1014,16 +1014,13 @@ static void ixgbe_get_drvinfo(struct net_device *netdev,\n \t\t\t struct ethtool_drvinfo *drvinfo)\n {\n \tstruct ixgbe_adapter *adapter = netdev_priv(netdev);\n-\tu32 nvm_track_id;\n \n \tstrlcpy(drvinfo->driver, ixgbe_driver_name, sizeof(drvinfo->driver));\n \tstrlcpy(drvinfo->version, ixgbe_driver_version,\n \t\tsizeof(drvinfo->version));\n \n-\tnvm_track_id = (adapter->eeprom_verh << 16) |\n-\t\t\tadapter->eeprom_verl;\n-\tsnprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version), \"0x%08x\",\n-\t\t nvm_track_id);\n+\tstrlcpy(drvinfo->fw_version, adapter->eeprom_id,\n+\t\tsizeof(drvinfo->fw_version));\n \n \tstrlcpy(drvinfo->bus_info, pci_name(adapter->pdev),\n \t\tsizeof(drvinfo->bus_info));\ndiff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c\nindex 5772fe2..c569a231 100644\n--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c\n+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c\n@@ -1036,11 +1036,8 @@ int ixgbe_fcoe_get_hbainfo(struct net_device *netdev,\n \t\t ixgbe_driver_name,\n \t\t ixgbe_driver_version);\n \t/* Firmware Version */\n-\tsnprintf(info->firmware_version,\n-\t\t sizeof(info->firmware_version),\n-\t\t \"0x%08x\",\n-\t\t (adapter->eeprom_verh << 16) |\n-\t\t adapter->eeprom_verl);\n+\tstrlcpy(info->firmware_version, adapter->eeprom_id,\n+\t\tsizeof(info->firmware_version));\n \n \t/* Model */\n \tif (hw->mac.type == ixgbe_mac_82599EB) {\ndiff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c\nindex a8d4be8..8b16577 100644\n--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c\n+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c\n@@ -10222,6 +10222,41 @@ bool ixgbe_wol_supported(struct ixgbe_adapter *adapter, u16 device_id,\n }\n \n /**\n+ * ixgbe_set_fw_version - Set FW version\n+ * @adapter: the adapter private structure\n+ *\n+ * This function is used by probe and ethtool to determine the FW version to\n+ * format to display. The FW version is taken from the EEPROM/NVM.\n+ */\n+static void ixgbe_set_fw_version(struct ixgbe_adapter *adapter)\n+{\n+\tstruct ixgbe_hw *hw = &adapter->hw;\n+\tstruct ixgbe_nvm_version nvm_ver;\n+\n+\tixgbe_get_oem_prod_version(hw, &nvm_ver);\n+\tif (nvm_ver.oem_valid) {\n+\t\tsnprintf(adapter->eeprom_id, sizeof(adapter->eeprom_id),\n+\t\t\t \"%x.%x.%x\", nvm_ver.oem_major, nvm_ver.oem_minor,\n+\t\t\t nvm_ver.oem_release);\n+\t\treturn;\n+\t}\n+\n+\tixgbe_get_etk_id(hw, &nvm_ver);\n+\tixgbe_get_orom_version(hw, &nvm_ver);\n+\n+\tif (nvm_ver.or_valid) {\n+\t\tsnprintf(adapter->eeprom_id, sizeof(adapter->eeprom_id),\n+\t\t\t \"0x%08x, %d.%d.%d\", nvm_ver.etk_id, nvm_ver.or_major,\n+\t\t\t nvm_ver.or_build, nvm_ver.or_patch);\n+\t\treturn;\n+\t}\n+\n+\t/* Set ETrack ID format */\n+\tsnprintf(adapter->eeprom_id, sizeof(adapter->eeprom_id),\n+\t\t \"0x%08x\", nvm_ver.etk_id);\n+}\n+\n+/**\n * ixgbe_probe - Device Initialization Routine\n * @pdev: PCI device information struct\n * @ent: entry in ixgbe_pci_tbl\n@@ -10557,8 +10592,7 @@ static int ixgbe_probe(struct pci_dev *pdev, const struct pci_device_id *ent)\n \tdevice_set_wakeup_enable(&adapter->pdev->dev, adapter->wol);\n \n \t/* save off EEPROM version number */\n-\thw->eeprom.ops.read(hw, 0x2e, &adapter->eeprom_verh);\n-\thw->eeprom.ops.read(hw, 0x2d, &adapter->eeprom_verl);\n+\tixgbe_set_fw_version(adapter);\n \n \t/* pick up the PCI bus settings for reporting later */\n \tif (ixgbe_pcie_from_parent(hw))\ndiff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h b/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h\nindex ffa0ee5..21eb79a 100644\n--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h\n+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h\n@@ -235,6 +235,45 @@ struct ixgbe_thermal_sensor_data {\n \tstruct ixgbe_thermal_diode_data sensor[IXGBE_MAX_SENSORS];\n };\n \n+#define NVM_OROM_OFFSET\t\t0x17\n+#define NVM_OROM_BLK_LOW\t0x83\n+#define NVM_OROM_BLK_HI\t\t0x84\n+#define NVM_OROM_PATCH_MASK\t0xFF\n+#define NVM_OROM_SHIFT\t\t8\n+\n+#define NVM_VER_MASK\t\t0x00FF\t/* version mask */\n+#define NVM_VER_SHIFT\t\t8\t/* version bit shift */\n+#define NVM_OEM_PROD_VER_PTR\t0x1B /* OEM Product version block pointer */\n+#define NVM_OEM_PROD_VER_CAP_OFF 0x1 /* OEM Product version format offset */\n+#define NVM_OEM_PROD_VER_OFF_L\t0x2 /* OEM Product version offset low */\n+#define NVM_OEM_PROD_VER_OFF_H\t0x3 /* OEM Product version offset high */\n+#define NVM_OEM_PROD_VER_CAP_MASK 0xF /* OEM Product version cap mask */\n+#define NVM_OEM_PROD_VER_MOD_LEN 0x3 /* OEM Product version module length */\n+#define NVM_ETK_OFF_LOW\t\t0x2D /* version low order word */\n+#define NVM_ETK_OFF_HI\t\t0x2E /* version high order word */\n+#define NVM_ETK_SHIFT\t\t16 /* high version word shift */\n+#define NVM_VER_INVALID\t\t0xFFFF\n+#define NVM_ETK_VALID\t\t0x8000\n+#define NVM_INVALID_PTR\t\t0xFFFF\n+#define NVM_VER_SIZE\t\t32 /* version sting size */\n+\n+struct ixgbe_nvm_version {\n+\tu32 etk_id;\n+\tu8 nvm_major;\n+\tu16 nvm_minor;\n+\tu8 nvm_id;\n+\n+\tbool oem_valid;\n+\tu8 oem_major;\n+\tu8 oem_minor;\n+\tu16 oem_release;\n+\n+\tbool or_valid;\n+\tu8 or_major;\n+\tu16 or_build;\n+\tu8 or_patch;\n+};\n+\n /* Interrupt Registers */\n #define IXGBE_EICR 0x00800\n #define IXGBE_EICS 0x00808\n", "prefixes": [] }