~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/net/ethtool/module_fw.h

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0-only */
  2 
  3 #include <uapi/linux/ethtool.h>
  4 #include "netlink.h"
  5 
  6 /**
  7  * struct ethnl_module_fw_flash_ntf_params - module firmware flashing
  8  *                                              notifications parameters
  9  * @portid: Netlink portid of sender.
 10  * @seq: Sequence number of sender.
 11  * @closed_sock: Indicates whether the socket was closed from user space.
 12  */
 13 struct ethnl_module_fw_flash_ntf_params {
 14         u32 portid;
 15         u32 seq;
 16         bool closed_sock;
 17 };
 18 
 19 /**
 20  * struct ethtool_module_fw_flash_params - module firmware flashing parameters
 21  * @password: Module password. Only valid when @pass_valid is set.
 22  * @password_valid: Whether the module password is valid or not.
 23  */
 24 struct ethtool_module_fw_flash_params {
 25         __be32 password;
 26         u8 password_valid:1;
 27 };
 28 
 29 /**
 30  * struct ethtool_cmis_fw_update_params - CMIS firmware update specific
 31  *                                              parameters
 32  * @dev: Pointer to the net_device to be flashed.
 33  * @params: Module firmware flashing parameters.
 34  * @ntf_params: Module firmware flashing notification parameters.
 35  * @fw: Firmware to flash.
 36  */
 37 struct ethtool_cmis_fw_update_params {
 38         struct net_device *dev;
 39         struct ethtool_module_fw_flash_params params;
 40         struct ethnl_module_fw_flash_ntf_params ntf_params;
 41         const struct firmware *fw;
 42 };
 43 
 44 /**
 45  * struct ethtool_module_fw_flash - module firmware flashing
 46  * @list: List node for &module_fw_flash_work_list.
 47  * @dev_tracker: Refcount tracker for @dev.
 48  * @work: The flashing firmware work.
 49  * @fw_update: CMIS firmware update specific parameters.
 50  */
 51 struct ethtool_module_fw_flash {
 52         struct list_head list;
 53         netdevice_tracker dev_tracker;
 54         struct work_struct work;
 55         struct ethtool_cmis_fw_update_params fw_update;
 56 };
 57 
 58 void ethnl_module_fw_flash_sock_destroy(struct ethnl_sock_priv *sk_priv);
 59 
 60 void
 61 ethnl_module_fw_flash_ntf_err(struct net_device *dev,
 62                               struct ethnl_module_fw_flash_ntf_params *params,
 63                               char *err_msg, char *sub_err_msg);
 64 void
 65 ethnl_module_fw_flash_ntf_start(struct net_device *dev,
 66                                 struct ethnl_module_fw_flash_ntf_params *params);
 67 void
 68 ethnl_module_fw_flash_ntf_complete(struct net_device *dev,
 69                                    struct ethnl_module_fw_flash_ntf_params *params);
 70 void
 71 ethnl_module_fw_flash_ntf_in_progress(struct net_device *dev,
 72                                       struct ethnl_module_fw_flash_ntf_params *params,
 73                                       u64 done, u64 total);
 74 
 75 void ethtool_cmis_fw_update(struct ethtool_cmis_fw_update_params *params);
 76 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php