summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/mellanox/mlxfw/mlxfw.h
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2019-06-04 15:40:41 +0200
committerDavid S. Miller <davem@davemloft.net>2019-06-04 14:21:40 -0700
commit5853c41823ddbf1910fc1e43e46830ec6f4958c0 (patch)
tree8e0b59ef59f4bc60f5e53989c43c7634f64d5b62 /drivers/net/ethernet/mellanox/mlxfw/mlxfw.h
parent191ed2024de9fcfaab24106f9dbf7e544b07d633 (diff)
mlxfw: Introduce status_notify op and call it to notify about the status
Add new op status_notify which is called to update the user about flashing status. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Reviewed-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxfw/mlxfw.h')
-rw-r--r--drivers/net/ethernet/mellanox/mlxfw/mlxfw.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxfw/mlxfw.h b/drivers/net/ethernet/mellanox/mlxfw/mlxfw.h
index 83286b90593f..c50e74ab02c4 100644
--- a/drivers/net/ethernet/mellanox/mlxfw/mlxfw.h
+++ b/drivers/net/ethernet/mellanox/mlxfw/mlxfw.h
@@ -58,6 +58,10 @@ struct mlxfw_dev_ops {
void (*fsm_cancel)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle);
void (*fsm_release)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle);
+
+ void (*status_notify)(struct mlxfw_dev *mlxfw_dev,
+ const char *msg, const char *comp_name,
+ u32 done_bytes, u32 total_bytes);
};
struct mlxfw_dev {