mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-12 17:32:21 -04:00
Realign enums that had UnsupportedFeature to start at 0
This commit is contained in:
parent
c37bd22db0
commit
35e520712d
5 changed files with 24 additions and 24 deletions
|
@ -47,7 +47,7 @@
|
||||||
|
|
||||||
Controls the wifi chip's power management features.
|
Controls the wifi chip's power management features.
|
||||||
|
|
||||||
Valid states: 0 = Unsupported Feature, 1 = Disabled, 2 = Enabled
|
Valid states: 0 = Disabled, 1 = Enabled
|
||||||
|
|
||||||
Version available: 7
|
Version available: 7
|
||||||
-->
|
-->
|
||||||
|
@ -58,7 +58,7 @@
|
||||||
|
|
||||||
Controls whether the OS or the BIOS should manage fan speed
|
Controls whether the OS or the BIOS should manage fan speed
|
||||||
|
|
||||||
Valid states: 0 = Unsupported Feature, 1 = BIOS, 2 = OS
|
Valid states: 0 = BIOS, 1 = OS
|
||||||
|
|
||||||
Version available: 7
|
Version available: 7
|
||||||
-->
|
-->
|
||||||
|
@ -69,7 +69,7 @@
|
||||||
|
|
||||||
Reports whether the current hardware is supported or not.
|
Reports whether the current hardware is supported or not.
|
||||||
|
|
||||||
Valid states: 0 = Unsupported Feature, 1 = Unsupported, 2 = Supported
|
Valid states: 0 = Unsupported, 1 = Supported
|
||||||
|
|
||||||
Version available: 7
|
Version available: 7
|
||||||
-->
|
-->
|
||||||
|
@ -105,7 +105,7 @@
|
||||||
|
|
||||||
Reports whether a BIOS update is available.
|
Reports whether a BIOS update is available.
|
||||||
|
|
||||||
Valid states: 0 = Unsupported Feature, 1 = Up to date, 2 = Update available
|
Valid states: 0 = Up to date, 1 = Update available
|
||||||
|
|
||||||
Version available: 7
|
Version available: 7
|
||||||
-->
|
-->
|
||||||
|
@ -138,7 +138,7 @@
|
||||||
|
|
||||||
Reports whether a Dock Firmware update is available.
|
Reports whether a Dock Firmware update is available.
|
||||||
|
|
||||||
Valid states: 0 = Unsupported Feature, 1 = Up to date, 2 = Update available
|
Valid states: 0 = Up to date, 1 = Update available
|
||||||
|
|
||||||
Version available: 7
|
Version available: 7
|
||||||
-->
|
-->
|
||||||
|
@ -199,7 +199,7 @@
|
||||||
|
|
||||||
The current GPU performance level.
|
The current GPU performance level.
|
||||||
|
|
||||||
Valid states: 0 = Feature Unsupported, 1 = Auto, 2 = Low, 3 = High, 4 = Manual, 5 = Profile Peak
|
Valid states: 0 = Auto, 1 = Low, 2 = High, 3 = Manual, 4 = Profile Peak
|
||||||
|
|
||||||
Version available: 7
|
Version available: 7
|
||||||
-->
|
-->
|
||||||
|
@ -238,7 +238,7 @@
|
||||||
|
|
||||||
Controls the system TDP limit.
|
Controls the system TDP limit.
|
||||||
|
|
||||||
Valid states: 0 = Feature Unsupported, or in range of [ TDPLimitMin, TDPLimitMax ]
|
Valid states: In range of [ TDPLimitMin, TDPLimitMax ]
|
||||||
|
|
||||||
Version available: 7
|
Version available: 7
|
||||||
-->
|
-->
|
||||||
|
@ -268,7 +268,7 @@
|
||||||
|
|
||||||
Whether wifi debug mode is currently enabled.
|
Whether wifi debug mode is currently enabled.
|
||||||
|
|
||||||
Valid states: 0 = Feature Unsupported, 1 = Disabled, 2 = Enabled
|
Valid states: 0 = Disabled, 1 = Enabled
|
||||||
|
|
||||||
Version available: 7
|
Version available: 7
|
||||||
-->
|
-->
|
||||||
|
@ -309,7 +309,7 @@
|
||||||
|
|
||||||
Controls which Wifi backend is used by NetworkManager
|
Controls which Wifi backend is used by NetworkManager
|
||||||
|
|
||||||
Valid states: 0 = Feature Unsupported, 1 = iwd, 2 = wpa_supplicant
|
Valid states: 0 = iwd, 1 = wpa_supplicant
|
||||||
|
|
||||||
Version available: 7
|
Version available: 7
|
||||||
-->
|
-->
|
||||||
|
|
|
@ -26,8 +26,8 @@ pub enum HardwareVariant {
|
||||||
#[derive(PartialEq, Debug, Copy, Clone)]
|
#[derive(PartialEq, Debug, Copy, Clone)]
|
||||||
#[repr(u32)]
|
#[repr(u32)]
|
||||||
pub enum HardwareCurrentlySupported {
|
pub enum HardwareCurrentlySupported {
|
||||||
Unsupported = 1,
|
Unsupported = 0,
|
||||||
Supported = 2,
|
Supported = 1,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl FromStr for HardwareVariant {
|
impl FromStr for HardwareVariant {
|
||||||
|
|
|
@ -36,8 +36,8 @@ enum PrepareFactoryReset {
|
||||||
#[derive(PartialEq, Debug, Copy, Clone)]
|
#[derive(PartialEq, Debug, Copy, Clone)]
|
||||||
#[repr(u32)]
|
#[repr(u32)]
|
||||||
enum FanControl {
|
enum FanControl {
|
||||||
BIOS = 1,
|
BIOS = 0,
|
||||||
OS = 2,
|
OS = 1,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl TryFrom<u32> for FanControl {
|
impl TryFrom<u32> for FanControl {
|
||||||
|
|
10
src/power.rs
10
src/power.rs
|
@ -22,11 +22,11 @@ const GPU_CLOCKS_PATH: &str = "/sys/class/drm/card0/device/pp_od_clk_voltage";
|
||||||
#[derive(PartialEq, Debug, Copy, Clone)]
|
#[derive(PartialEq, Debug, Copy, Clone)]
|
||||||
#[repr(u32)]
|
#[repr(u32)]
|
||||||
pub enum GPUPerformanceLevel {
|
pub enum GPUPerformanceLevel {
|
||||||
Auto = 1,
|
Auto = 0,
|
||||||
Low = 2,
|
Low = 1,
|
||||||
High = 3,
|
High = 2,
|
||||||
Manual = 4,
|
Manual = 3,
|
||||||
ProfilePeak = 5,
|
ProfilePeak = 4,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl TryFrom<u32> for GPUPerformanceLevel {
|
impl TryFrom<u32> for GPUPerformanceLevel {
|
||||||
|
|
12
src/wifi.rs
12
src/wifi.rs
|
@ -35,22 +35,22 @@ const WIFI_BACKEND_PATH: &str = "/etc/NetworkManager/conf.d/wifi_backend.conf";
|
||||||
#[derive(PartialEq, Debug, Copy, Clone)]
|
#[derive(PartialEq, Debug, Copy, Clone)]
|
||||||
#[repr(u32)]
|
#[repr(u32)]
|
||||||
pub enum WifiDebugMode {
|
pub enum WifiDebugMode {
|
||||||
Off = 1,
|
Off = 0,
|
||||||
On = 2,
|
On = 1,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(PartialEq, Debug, Copy, Clone)]
|
#[derive(PartialEq, Debug, Copy, Clone)]
|
||||||
#[repr(u32)]
|
#[repr(u32)]
|
||||||
pub enum WifiPowerManagement {
|
pub enum WifiPowerManagement {
|
||||||
Disabled = 1,
|
Disabled = 0,
|
||||||
Enabled = 2,
|
Enabled = 1,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(PartialEq, Debug, Copy, Clone)]
|
#[derive(PartialEq, Debug, Copy, Clone)]
|
||||||
#[repr(u32)]
|
#[repr(u32)]
|
||||||
pub enum WifiBackend {
|
pub enum WifiBackend {
|
||||||
IWD = 1,
|
IWD = 0,
|
||||||
WPASupplicant = 2,
|
WPASupplicant = 1,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl TryFrom<u32> for WifiDebugMode {
|
impl TryFrom<u32> for WifiDebugMode {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue