Skip to content

Commit b9a936a

Browse files
committed
Name change: DellSmmIoLib → DellSmbiosSmiLib.
1 parent 9a33f54 commit b9a936a

22 files changed

+48
-54
lines changed

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
/DellSmbiosBzhLib/bin
44
/DellSmbiosBzhLib/obj
55
/packages
6-
/DellSmmIoLib/bin
7-
/DellSmmIoLib/obj
6+
/DellSmbiosSmiLib/bin
7+
/DellSmbiosSmiLib/obj
88
/DellFanManagementApp/bin
99
/DellFanManagementApp/obj
1010
/DellSmmIoLibTest/bin

DellFanManagement.sln

+1-7
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ VisualStudioVersion = 16.0.30114.105
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DellSmbiosBzhLib", "DellSmbiosBzhLib\DellSmbiosBzhLib.csproj", "{84CECE63-519A-406B-BB8F-2991F6191817}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DellSmmIoLib", "DellSmmIoLib\DellSmmIoLib.csproj", "{C7B8C793-52D8-493B-84FD-5670C4A6585D}"
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DellSmbiosSmiLib", "DellSmbiosSmiLib\DellSmbiosSmiLib.csproj", "{C7B8C793-52D8-493B-84FD-5670C4A6585D}"
99
EndProject
1010
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DellFanManagementApp", "DellFanManagementApp\DellFanManagementApp.csproj", "{7C7964C3-620E-456B-A2C1-D9F9A851ED96}"
1111
EndProject
@@ -24,12 +24,6 @@ Global
2424
Release|x64 = Release|x64
2525
EndGlobalSection
2626
GlobalSection(ProjectConfigurationPlatforms) = postSolution
27-
{9218997E-E503-49B3-8E72-FD28A45E1873}.Debug|Any CPU.ActiveCfg = Debug|Win32
28-
{9218997E-E503-49B3-8E72-FD28A45E1873}.Debug|x64.ActiveCfg = Debug|x64
29-
{9218997E-E503-49B3-8E72-FD28A45E1873}.Debug|x64.Build.0 = Debug|x64
30-
{9218997E-E503-49B3-8E72-FD28A45E1873}.Release|Any CPU.ActiveCfg = Release|Win32
31-
{9218997E-E503-49B3-8E72-FD28A45E1873}.Release|x64.ActiveCfg = Release|x64
32-
{9218997E-E503-49B3-8E72-FD28A45E1873}.Release|x64.Build.0 = Release|x64
3327
{84CECE63-519A-406B-BB8F-2991F6191817}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
3428
{84CECE63-519A-406B-BB8F-2991F6191817}.Debug|Any CPU.Build.0 = Debug|Any CPU
3529
{84CECE63-519A-406B-BB8F-2991F6191817}.Debug|x64.ActiveCfg = Debug|Any CPU

DellFanManagementApp/Core.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using DellFanManagement.App.TemperatureReaders;
22
using DellFanManagement.DellSmbiozBzhLib;
3-
using DellFanManagement.SmmIo;
3+
using DellFanManagement.DellSmbiosSmiLib;
44
using System;
55
using System.Collections.Generic;
66
using System.Threading;
@@ -318,7 +318,7 @@ private void BackgroundThread()
318318
{
319319
if (_requestedThermalSetting != _state.ThermalSetting)
320320
{
321-
DellSmmIoLib.SetThermalSetting((ThermalSetting)_requestedThermalSetting);
321+
DellSmbiosSmi.SetThermalSetting((ThermalSetting)_requestedThermalSetting);
322322
_state.UpdateThermalSetting();
323323
}
324324

DellFanManagementApp/DellFanManagementApp.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
<ItemGroup>
3838
<ProjectReference Include="..\DellSmbiosBzhLib\DellSmbiosBzhLib.csproj" />
39-
<ProjectReference Include="..\DellSmmIoLib\DellSmmIoLib.csproj" />
39+
<ProjectReference Include="..\DellSmbiosSmiLib\DellSmbiosSmiLib.csproj" />
4040
</ItemGroup>
4141

4242
<ItemGroup>

DellFanManagementApp/DellFanManagementGuiForm.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using DellFanManagement.App.TemperatureReaders;
22
using DellFanManagement.DellSmbiozBzhLib;
3-
using DellFanManagement.SmmIo;
3+
using DellFanManagement.DellSmbiosSmiLib;
44
using System;
55
using System.Collections.Generic;
66
using System.Drawing;

DellFanManagementApp/PackageTest.cs

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using DellFanManagement.DellSmbiozBzhLib;
2-
using DellFanManagement.SmmIo;
2+
using DellFanManagement.DellSmbiosSmiLib;
33
using LibreHardwareMonitor.Hardware;
44
using NvAPIWrapper.GPU;
55
using NvAPIWrapper.Native.Exceptions;
@@ -19,7 +19,7 @@ static class PackageTest
1919
/// <returns>True if all tests were successful, false otherwise</returns>
2020
public static bool RunPackageTests()
2121
{
22-
return OpenHardwareMonitorTest() && NvapiTest() && DellSmbiosBzhTest() && DellSmmIoLibTest() && IrrKlangTest();
22+
return OpenHardwareMonitorTest() && NvapiTest() && DellSmbiosBzhTest() && DellSmbiosSmiTest() && IrrKlangTest();
2323
}
2424

2525
/// <summary>
@@ -122,7 +122,7 @@ private static bool DellSmbiosBzhTest()
122122
{
123123
try
124124
{
125-
Console.WriteLine("Running DellFanLib test.");
125+
Console.WriteLine("Running DellSmbiosBzhLib test.");
126126

127127
if (!DellSmbiosBzh.Initialize())
128128
{
@@ -149,13 +149,13 @@ private static bool DellSmbiosBzhTest()
149149
/// Run a quick test of the DellSmmIoLib package.
150150
/// </summary>
151151
/// <returns>True if the test was successful, false otherwise</returns>
152-
private static bool DellSmmIoLibTest()
152+
private static bool DellSmbiosSmiTest()
153153
{
154154
try
155155
{
156-
Console.WriteLine("Running DellSmmIoLib test.");
156+
Console.WriteLine("Running DellSmbiosSmiLib test.");
157157

158-
ThermalSetting currentSetting = DellSmmIoLib.GetThermalSetting();
158+
ThermalSetting currentSetting = DellSmbiosSmi.GetThermalSetting();
159159
Console.WriteLine("Thermal setting: {0}", currentSetting);
160160
}
161161
catch (Exception exception)

DellFanManagementApp/SetThermalSetting.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using DellFanManagement.SmmIo;
1+
using DellFanManagement.DellSmbiosSmiLib;
22
using System;
33

44
namespace DellFanManagement.App
@@ -44,18 +44,18 @@ public static int ExecuteSetThermalSetting(string[] args)
4444
}
4545

4646
// Check the current setting.
47-
currentSetting = DellSmmIoLib.GetThermalSetting();
47+
currentSetting = DellSmbiosSmi.GetThermalSetting();
4848
Console.WriteLine("Thermal setting, before change: {0}", currentSetting);
4949

5050
// Apply the new setting.
51-
if (!DellSmmIoLib.SetThermalSetting(newSetting))
51+
if (!DellSmbiosSmi.SetThermalSetting(newSetting))
5252
{
5353
Console.Error.WriteLine("Failed to apply the new thermal setting.");
5454
return -1;
5555
}
5656

5757
// Check the new setting.
58-
currentSetting = DellSmmIoLib.GetThermalSetting();
58+
currentSetting = DellSmbiosSmi.GetThermalSetting();
5959
Console.WriteLine("Thermal setting, after change: {0}", currentSetting);
6060

6161
if (currentSetting == ThermalSetting.Error)

DellFanManagementApp/State.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using DellFanManagement.App.FanSpeedReaders;
22
using DellFanManagement.App.TemperatureReaders;
33
using DellFanManagement.DellSmbiozBzhLib;
4-
using DellFanManagement.SmmIo;
4+
using DellFanManagement.DellSmbiosSmiLib;
55
using System.Collections.Generic;
66
using System.Threading;
77

@@ -192,7 +192,7 @@ public void UpdateThermalSetting()
192192
}
193193
else
194194
{
195-
ThermalSetting = DellSmmIoLib.GetThermalSetting();
195+
ThermalSetting = DellSmbiosSmi.GetThermalSetting();
196196

197197
if (ThermalSetting == ThermalSetting.Error)
198198
{

DellSmmIoLib/DellSmmIoLib.cs DellSmbiosSmiLib/DellSmbiosSmi.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
using DellFanManagement.SmmIo.DellSmi;
1+
using DellFanManagement.DellSmbiosSmiLib.DellSmi;
22
using System;
33
using System.Management;
44
using System.Runtime.InteropServices;
55

6-
namespace DellFanManagement.SmmIo
6+
namespace DellFanManagement.DellSmbiosSmiLib
77
{
88
/// <summary>
99
/// Handles issuing commands to the SMM BIOS via the ACPI/WMI interface.
1010
/// </summary>
11-
public static class DellSmmIoLib
11+
public static class DellSmbiosSmi
1212
{
1313
private static readonly string WmiScopeRoot = "root/wmi";
1414
private static readonly string WmiClassNameBdat = "BDat";

DellSmmIoLib/DellSmmIoLib.csproj DellSmbiosSmiLib/DellSmbiosSmiLib.csproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
<ProjectGuid>{C7B8C793-52D8-493B-84FD-5670C4A6585D}</ProjectGuid>
88
<OutputType>Library</OutputType>
99
<AppDesignerFolder>Properties</AppDesignerFolder>
10-
<RootNamespace>DellFanManagement.SmmIo</RootNamespace>
11-
<AssemblyName>DellSmmIoLib</AssemblyName>
10+
<RootNamespace>DellFanManagement.DellSmbiosSmiLib</RootNamespace>
11+
<AssemblyName>DellSmbiosSmiLib</AssemblyName>
1212
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
1313
<FileAlignment>512</FileAlignment>
1414
<Deterministic>true</Deterministic>
@@ -49,7 +49,7 @@
4949
<Compile Include="DellSmi\SmiPassword.cs" />
5050
<Compile Include="DellSmi\SmiPasswordFormat.cs" />
5151
<Compile Include="DellSmi\SmiObject.cs" />
52-
<Compile Include="DellSmmIoLib.cs" />
52+
<Compile Include="DellSmbiosSmi.cs" />
5353
<Compile Include="Properties\AssemblyInfo.cs" />
5454
<Compile Include="DellSmi\Selector.cs" />
5555
<Compile Include="ThermalSetting.cs" />

DellSmmIoLib/DellSmi/Class.cs DellSmbiosSmiLib/DellSmi/Class.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace DellFanManagement.SmmIo.DellSmi
1+
namespace DellFanManagement.DellSmbiosSmiLib.DellSmi
22
{
33
public enum Class : ushort
44
{

DellSmmIoLib/DellSmi/PasswordProperties.cs DellSmbiosSmiLib/DellSmi/PasswordProperties.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace DellFanManagement.SmmIo.DellSmi
1+
namespace DellFanManagement.DellSmbiosSmiLib.DellSmi
22
{
33
/// <summary>
44
/// Contains property about the BIOS passwords supported on the target system.

DellSmmIoLib/DellSmi/Selector.cs DellSmbiosSmiLib/DellSmi/Selector.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace DellFanManagement.SmmIo.DellSmi
1+
namespace DellFanManagement.DellSmbiosSmiLib.DellSmi
22
{
33
public enum Selector : ushort
44
{

DellSmmIoLib/DellSmi/SmiObject.cs DellSmbiosSmiLib/DellSmi/SmiObject.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System.Runtime.InteropServices;
22

3-
namespace DellFanManagement.SmmIo.DellSmi
3+
namespace DellFanManagement.DellSmbiosSmiLib.DellSmi
44
{
55
/// <summary>
66
/// Structure used to interact with the BIOS.

DellSmmIoLib/DellSmi/SmiPassword.cs DellSmbiosSmiLib/DellSmi/SmiPassword.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace DellFanManagement.SmmIo.DellSmi
1+
namespace DellFanManagement.DellSmbiosSmiLib.DellSmi
22
{
33
/// <summary>
44
/// Identifier for which password operations are being performed on.

DellSmmIoLib/DellSmi/SmiPasswordFormat.cs DellSmbiosSmiLib/DellSmi/SmiPasswordFormat.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace DellFanManagement.SmmIo.DellSmi
1+
namespace DellFanManagement.DellSmbiosSmiLib.DellSmi
22
{
33
/// <summary>
44
/// Identifiers for the Dell BIOS password format, which is needed to derivate the security key.

DellSmmIoLib/DellSmi/Token.cs DellSmbiosSmiLib/DellSmi/Token.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace DellFanManagement.SmmIo.DellSmi
1+
namespace DellFanManagement.DellSmbiosSmiLib.DellSmi
22
{
33
/// <summary>
44
/// Each "token" represents an aspect of the system behavior that can be configured.

DellSmmIoLib/ThermalSetting.cs DellSmbiosSmiLib/ThermalSetting.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace DellFanManagement.SmmIo
1+
namespace DellFanManagement.DellSmbiosSmiLib
22
{
33
/// <summary>
44
/// Representation of a "thermal setting".

DellSmmIoLib/Utility.cs DellSmbiosSmiLib/Utility.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using System.Text;
55
using System.Threading.Tasks;
66

7-
namespace DellFanManagement.SmmIo
7+
namespace DellFanManagement.DellSmbiosSmiLib
88
{
99
/// <summary>
1010
/// General helper methods.

DellSmmIoLibTest/DellSmmIoLibTest.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@
5151
<None Include="App.config" />
5252
</ItemGroup>
5353
<ItemGroup>
54-
<ProjectReference Include="..\DellSmmIoLib\DellSmmIoLib.csproj">
54+
<ProjectReference Include="..\DellSmbiosSmiLib\DellSmbiosSmiLib.csproj">
5555
<Project>{c7b8c793-52d8-493b-84fd-5670c4a6585d}</Project>
56-
<Name>DellSmmIoLib</Name>
56+
<Name>DellSmbiosSmiLib</Name>
5757
</ProjectReference>
5858
</ItemGroup>
5959
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

DellSmmIoLibTest/Test.cs

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
using DellFanManagement.SmmIo;
2-
using DellFanManagement.SmmIo.DellSmi;
1+
using DellFanManagement.DellSmbiosSmiLib;
2+
using DellFanManagement.DellSmbiosSmiLib.DellSmi;
33
using System;
44
using System.Collections.Generic;
55
using System.Linq;
@@ -23,7 +23,7 @@ static void Main(string[] args)
2323
//ReadTokens();
2424
//SetTokens();
2525

26-
Console.WriteLine(DellSmmIoLib.GetPasswordFormat(SmiPassword.Admin));
26+
Console.WriteLine(DellSmbiosSmi.GetPasswordFormat(SmiPassword.Admin));
2727
}
2828
catch (Exception exception)
2929
{
@@ -43,7 +43,7 @@ private static void ReadTokens()
4343
foreach (Token token in tokens)
4444
{
4545
Console.WriteLine(token);
46-
DellSmmIoLib.GetToken(token);
46+
DellSmbiosSmi.GetToken(token);
4747
Console.WriteLine();
4848
}
4949
}
@@ -55,17 +55,17 @@ private static void SetTokens()
5555
Token token = index % 2 == 0 ? Token.KeyboardIlluminationAuto50 : Token.KeyboardIlluminationAuto100;
5656
uint value = (uint)(index % 2 == 0 ? 6 : 8);
5757

58-
DellSmmIoLib.GetToken(token);
59-
DellSmmIoLib.SetToken(token, 1);
58+
DellSmbiosSmi.GetToken(token);
59+
DellSmbiosSmi.SetToken(token, 1);
6060
//DellSmmIoLib.SetToken(token, value, SelectToken.AC);
61-
DellSmmIoLib.GetToken(token);
61+
DellSmbiosSmi.GetToken(token);
6262
Thread.Sleep(1000);
6363
}
6464
}
6565

6666
private static void ThermalSetting()
6767
{
68-
Console.WriteLine(DellSmmIoLib.GetThermalSetting());
68+
Console.WriteLine(DellSmbiosSmi.GetThermalSetting());
6969
Console.WriteLine();
7070
}
7171

@@ -78,7 +78,7 @@ private static void RfInfo()
7878
};
7979

8080
// RF information.
81-
DellSmmIoLib.ExecuteCommand(ref message);
81+
DellSmbiosSmi.ExecuteCommand(ref message);
8282

8383
Console.WriteLine("{0}\t{1}\t{2}\t{3}", message.Output1, message.Output2, message.Output3, message.Output4);
8484

@@ -89,7 +89,7 @@ private static void RfInfo()
8989
Input1 = 2
9090
};
9191

92-
DellSmmIoLib.ExecuteCommand(ref message);
92+
DellSmbiosSmi.ExecuteCommand(ref message);
9393

9494
Console.WriteLine("{0}\t{1}\t{2}\t{3}", message.Output1, message.Output2, message.Output3, message.Output4);
9595

@@ -107,7 +107,7 @@ private static void KeyboardBacklightInfo()
107107
Selector = Selector.KeyboardBacklight
108108
};
109109

110-
DellSmmIoLib.ExecuteCommand(ref message);
110+
DellSmbiosSmi.ExecuteCommand(ref message);
111111

112112
Console.WriteLine("Modes: {0}", message.Output2 & 0xFFFF);
113113
Console.WriteLine("Type: {0}", (message.Output2 >> 24) & 0xFF);
@@ -139,7 +139,7 @@ private static void Enumerate()
139139

140140
try
141141
{
142-
bool result = DellSmmIoLib.ExecuteCommand(ref message);
142+
bool result = DellSmbiosSmi.ExecuteCommand(ref message);
143143
if (result)
144144
{
145145
Console.WriteLine("{0}\t{1}\t{2}\t{3}", message.Output1, message.Output2, message.Output3, message.Output4);

0 commit comments

Comments
 (0)