diff options
| author | Michael Biebl <biebl@debian.org> | 2025-08-01 19:15:13 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2025-08-01 19:15:13 +0200 |
| commit | 7e9091a5960f67a84787c03153324915220e4816 (patch) | |
| tree | dc743de962532932ebc3b4ed3a36ddd093d97d68 /src/libnm-platform/nm-platform-utils.h | |
| parent | 582eb4472a0f3375042afb9026cbeb50e058a27d (diff) | |
New upstream version 1.54.0 upstream/1.54.0
Diffstat (limited to 'src/libnm-platform/nm-platform-utils.h')
| -rw-r--r-- | src/libnm-platform/nm-platform-utils.h | 57 |
1 files changed, 1 insertions, 56 deletions
diff --git a/src/libnm-platform/nm-platform-utils.h b/src/libnm-platform/nm-platform-utils.h index f47bcd49..4477d7ed 100644 --- a/src/libnm-platform/nm-platform-utils.h +++ b/src/libnm-platform/nm-platform-utils.h @@ -8,72 +8,17 @@ #include "libnm-base/nm-base.h" #include "libnm-platform/nmp-base.h" +#include "libnm-platform/nm-platform.h" /*****************************************************************************/ -const char *nmp_utils_ethtool_get_driver(int ifindex); -gboolean nmp_utils_ethtool_supports_carrier_detect(int ifindex); -gboolean nmp_utils_ethtool_supports_vlans(int ifindex); -int nmp_utils_ethtool_get_peer_ifindex(int ifindex); -gboolean nmp_utils_ethtool_get_wake_on_lan(int ifindex); -gboolean nmp_utils_ethtool_set_wake_on_lan(int ifindex, - _NMSettingWiredWakeOnLan wol, - const char *wol_password); - const char *nm_platform_link_duplex_type_to_string(NMPlatformLinkDuplexType duplex); extern const guint8 _nmp_link_mode_all_advertised_modes_bits[79]; extern const guint32 _nmp_link_mode_all_advertised_modes[3]; -gboolean nmp_utils_ethtool_get_link_settings(int ifindex, - gboolean *out_autoneg, - guint32 *out_speed, - NMPlatformLinkDuplexType *out_duplex); -gboolean nmp_utils_ethtool_set_link_settings(int ifindex, - gboolean autoneg, - guint32 speed, - NMPlatformLinkDuplexType duplex); - -gboolean nmp_utils_ethtool_get_permanent_address(int ifindex, guint8 *buf, size_t *length); - -gboolean nmp_utils_ethtool_get_driver_info(int ifindex, NMPUtilsEthtoolDriverInfo *data); - -NMEthtoolFeatureStates *nmp_utils_ethtool_get_features(int ifindex); - -gboolean nmp_utils_ethtool_set_features( - int ifindex, - const NMEthtoolFeatureStates *features, - const NMOptionBool *requested /* indexed by NMEthtoolID - _NM_ETHTOOL_ID_FEATURE_FIRST */, - gboolean do_set /* or reset */); - -gboolean nmp_utils_ethtool_get_coalesce(int ifindex, NMEthtoolCoalesceState *coalesce); - -gboolean nmp_utils_ethtool_set_coalesce(int ifindex, const NMEthtoolCoalesceState *coalesce); - -gboolean nmp_utils_ethtool_get_ring(int ifindex, NMEthtoolRingState *ring); - -gboolean nmp_utils_ethtool_set_ring(int ifindex, const NMEthtoolRingState *ring); - -gboolean nmp_utils_ethtool_get_channels(int ifindex, NMEthtoolChannelsState *channels); - -gboolean nmp_utils_ethtool_set_channels(int ifindex, const NMEthtoolChannelsState *channels); - -gboolean nmp_utils_ethtool_get_pause(int ifindex, NMEthtoolPauseState *pause); - -gboolean nmp_utils_ethtool_set_pause(int ifindex, const NMEthtoolPauseState *pause); - -gboolean nmp_utils_ethtool_get_eee(int ifindex, NMEthtoolEEEState *eee); - -gboolean nmp_utils_ethtool_set_eee(int ifindex, const NMEthtoolEEEState *eee); - -gboolean nmp_utils_ethtool_get_fec_mode(int ifindex, uint32_t *fec_mode); - -gboolean nmp_utils_ethtool_set_fec_mode(int ifindex, uint32_t fec_mode); - /*****************************************************************************/ -gboolean nmp_utils_mii_supports_carrier_detect(int ifindex); - struct udev_device; const char *nmp_utils_udev_get_driver(struct udev_device *udevice); |