mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
Add progress notifications ability to user space while flashing modules' firmware by implementing the interface between the user space and the kernel. Signed-off-by: Danielle Ratson <danieller@nvidia.com> Reviewed-by: Petr Machata <petrm@nvidia.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
32 lines
980 B
C
32 lines
980 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
#include <uapi/linux/ethtool.h>
|
|
|
|
/**
|
|
* struct ethnl_module_fw_flash_ntf_params - module firmware flashing
|
|
* notifications parameters
|
|
* @portid: Netlink portid of sender.
|
|
* @seq: Sequence number of sender.
|
|
* @closed_sock: Indicates whether the socket was closed from user space.
|
|
*/
|
|
struct ethnl_module_fw_flash_ntf_params {
|
|
u32 portid;
|
|
u32 seq;
|
|
bool closed_sock;
|
|
};
|
|
|
|
void
|
|
ethnl_module_fw_flash_ntf_err(struct net_device *dev,
|
|
struct ethnl_module_fw_flash_ntf_params *params,
|
|
char *err_msg, char *sub_err_msg);
|
|
void
|
|
ethnl_module_fw_flash_ntf_start(struct net_device *dev,
|
|
struct ethnl_module_fw_flash_ntf_params *params);
|
|
void
|
|
ethnl_module_fw_flash_ntf_complete(struct net_device *dev,
|
|
struct ethnl_module_fw_flash_ntf_params *params);
|
|
void
|
|
ethnl_module_fw_flash_ntf_in_progress(struct net_device *dev,
|
|
struct ethnl_module_fw_flash_ntf_params *params,
|
|
u64 done, u64 total);
|