aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/qed
diff options
context:
space:
mode:
authorSudarsana Reddy Kalluru <skalluru@marvell.com>2019-08-30 00:42:03 -0700
committerDavid S. Miller <davem@davemloft.net>2019-08-31 13:32:30 -0700
commit2d4c849530a9771ed38d4046d2b631c1a4e2f9a6 (patch)
treeba94476d276aa32eb59bf4a6ebb3142de67b2d53 /include/linux/qed
parentMerge branch 'Dynamic-toggling-of-vlan_filtering-for-SJA1105-DSA' (diff)
downloadlinux-dev-2d4c849530a9771ed38d4046d2b631c1a4e2f9a6.tar.xz
linux-dev-2d4c849530a9771ed38d4046d2b631c1a4e2f9a6.zip
qed: Add APIs for reading config id attributes.
The patch adds driver support for reading the config id attributes from NVM flash partition. Signed-off-by: Sudarsana Reddy Kalluru <skalluru@marvell.com> Signed-off-by: Ariel Elior <aelior@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/qed')
-rw-r--r--include/linux/qed/qed_if.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/qed/qed_if.h b/include/linux/qed/qed_if.h
index e366399874f3..06fd9580c9e5 100644
--- a/include/linux/qed/qed_if.h
+++ b/include/linux/qed/qed_if.h
@@ -1132,6 +1132,17 @@ struct qed_common_ops {
* @param cdev
*/
u8 (*get_affin_hwfn_idx)(struct qed_dev *cdev);
+
+/**
+ * @brief read_nvm_cfg - Read NVM config attribute value.
+ * @param cdev
+ * @param buf - buffer
+ * @param cmd - NVM CFG command id
+ * @param entity_id - Entity id
+ *
+ */
+ int (*read_nvm_cfg)(struct qed_dev *cdev, u8 **buf, u32 cmd,
+ u32 entity_id);
};
#define MASK_FIELD(_name, _value) \