diff options
author | Sudarsana Reddy Kalluru <skalluru@marvell.com> | 2019-08-30 00:42:03 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-08-31 13:32:30 -0700 |
commit | 2d4c849530a9771ed38d4046d2b631c1a4e2f9a6 (patch) | |
tree | ba94476d276aa32eb59bf4a6ebb3142de67b2d53 /include/linux/qed | |
parent | b0274eb0d76e5912398b3a23eaabc56c91d2d78f (diff) |
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.h | 11 |
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) \ |