qed: Support NVM-image reading API
Storage drivers require images from the nvram in boot-from-SAN scenarios. This provides the necessary API between qed and the protocol drivers to perform such reads. Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3c5da94278
commit
20675b37ee
4 changed files with 144 additions and 0 deletions
|
|
@ -156,6 +156,11 @@ struct qed_dcbx_get {
|
|||
struct qed_dcbx_admin_params local;
|
||||
};
|
||||
|
||||
enum qed_nvm_images {
|
||||
QED_NVM_IMAGE_ISCSI_CFG,
|
||||
QED_NVM_IMAGE_FCOE_CFG,
|
||||
};
|
||||
|
||||
enum qed_led_mode {
|
||||
QED_LED_MODE_OFF,
|
||||
QED_LED_MODE_ON,
|
||||
|
|
@ -630,6 +635,19 @@ struct qed_common_ops {
|
|||
void (*chain_free)(struct qed_dev *cdev,
|
||||
struct qed_chain *p_chain);
|
||||
|
||||
/**
|
||||
* @brief nvm_get_image - reads an entire image from nvram
|
||||
*
|
||||
* @param cdev
|
||||
* @param type - type of the request nvram image
|
||||
* @param buf - preallocated buffer to fill with the image
|
||||
* @param len - length of the allocated buffer
|
||||
*
|
||||
* @return 0 on success, error otherwise
|
||||
*/
|
||||
int (*nvm_get_image)(struct qed_dev *cdev,
|
||||
enum qed_nvm_images type, u8 *buf, u16 len);
|
||||
|
||||
/**
|
||||
* @brief get_coalesce - Get coalesce parameters in usec
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue