Skip to content

Commit c0eb926

Browse files
committed
Merge remote-tracking branch 'lib/master'
# Conflicts: # LibreHardwareMonitorLib/LibreHardwareMonitorLib.csproj # OpenHardwareMonitor/OpenHardwareMonitor.csproj # OpenHardwareMonitorLib/Hardware/Computer.cs # OpenHardwareMonitorLib/Hardware/IComputer.cs # OpenHardwareMonitorLib/Hardware/Motherboard/Lpc/LpcIO.cs
2 parents 258daee + 3b1c1cb commit c0eb926

6 files changed

Lines changed: 31 additions & 2 deletions

File tree

OpenHardwareMonitorLib/Hardware/Computer.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public class Computer : IComputer
4040
private bool _psuEnabled;
4141
private SMBios _smbios;
4242
private bool _storageEnabled;
43+
private bool _ring0Enabled = true;
4344

4445
/// <summary>
4546
/// Creates a new <see cref="IComputer" /> instance with basic initial <see cref="Settings" />.
@@ -273,6 +274,16 @@ public bool IsStorageEnabled
273274
}
274275
}
275276

277+
/// <inheritdoc />
278+
public bool IsRing0Enabled
279+
{
280+
get { return _ring0Enabled; }
281+
set
282+
{
283+
_ring0Enabled = value;
284+
}
285+
}
286+
276287
/// <summary>
277288
/// Contains computer information table read in accordance with <see href="https://www.dmtf.org/standards/smbios">System Management BIOS (SMBIOS) Reference Specification</see>.
278289
/// </summary>
@@ -486,7 +497,9 @@ public void Open(bool portable)
486497

487498
_smbios = new SMBios();
488499

489-
Ring0.Open(portable);
500+
if (IsRing0Enabled)
501+
Ring0.Open(portable);
502+
490503
Mutexes.Open();
491504
OpCode.Open();
492505

OpenHardwareMonitorLib/Hardware/IComputer.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,13 @@ public interface IComputer : IElement
103103
bool IsStorageEnabled { get; }
104104

105105
/// <summary>
106-
/// Generates full OpenHardwareMonitor report for devices that have been enabled.
106+
/// Gets or sets a value indicating whether the Ring0 driver should be installed if user privileges is sufficient.
107+
/// </summary>
108+
/// <returns><see langword="true" /> if Ring0 driver installation is enabled</returns>
109+
/// <remarks>Default value is <see langword="true" />. Only affects Windows.</remarks>
110+
bool IsRing0Enabled { get; }
111+
112+
/// <summary>
107113
/// </summary>
108114
/// <returns>A formatted text string with library, OS and hardware information.</returns>
109115
string GetReport();

OpenHardwareMonitorLib/Hardware/Motherboard/Identification.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,10 @@ public static Model GetModel(string name)
675675
return Model.Z890P_PRO_WIFI;
676676
case var _ when name.Equals("PRO Z890-A WIFI (MS-7E32)", StringComparison.OrdinalIgnoreCase):
677677
return Model.Z890A_PRO_WIFI;
678+
case var _ when name.Equals("Z890 GAMING PLUS WIFI (MS-7E34)", StringComparison.OrdinalIgnoreCase):
679+
return Model.Z890_GAMING_PLUS_WIFI;
680+
case var _ when name.Equals("PRO Z890-S WIFI PZ (MS-7E58)", StringComparison.OrdinalIgnoreCase):
681+
return Model.Z890S_PRO_WIFI_PROJECT_ZERO;
678682
case var _ when name.Equals("B850M Steel Legend WiFi", StringComparison.OrdinalIgnoreCase):
679683
return Model.B850M_STEEL_LEGEND_WIFI;
680684
case var _ when name.Equals("Base Board Product Name", StringComparison.OrdinalIgnoreCase):

OpenHardwareMonitorLib/Hardware/Motherboard/Lpc/LpcIO.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,8 @@ private bool DetectWinbondFintek(LpcPort port, Motherboard motherboard)
405405
case Model.Z890_EDGE_TI_WIFI:
406406
case Model.Z890P_PRO_WIFI:
407407
case Model.Z890A_PRO_WIFI:
408+
case Model.Z890_GAMING_PLUS_WIFI:
409+
case Model.Z890S_PRO_WIFI_PROJECT_ZERO:
408410
chip = Chip.NCT6687DR; // MSI AM5/LGA1851 Compatibility
409411
break;
410412
default:

OpenHardwareMonitorLib/Hardware/Motherboard/Model.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ public enum Model
153153
Z890_EDGE_TI_WIFI,
154154
Z890P_PRO_WIFI,
155155
Z890A_PRO_WIFI,
156+
Z890_GAMING_PLUS_WIFI,
157+
Z890S_PRO_WIFI_PROJECT_ZERO,
156158

157159
// EVGA
158160
X58_SLI_Classified,

OpenHardwareMonitorLib/Hardware/Motherboard/SuperIOHardware.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,8 @@ private static void GetBoardSpecificConfiguration
622622
case Model.Z890_EDGE_TI_WIFI:
623623
case Model.Z890P_PRO_WIFI:
624624
case Model.Z890A_PRO_WIFI:
625+
case Model.Z890_GAMING_PLUS_WIFI:
626+
case Model.Z890S_PRO_WIFI_PROJECT_ZERO:
625627
v.Add(new Voltage("+12V", 0));
626628
v.Add(new Voltage("+5V", 1));
627629
v.Add(new Voltage("Vcore", 2));

0 commit comments

Comments
 (0)