mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-08-29 13:28:04 +00:00
Release version 0.1.8. Added support for W83627DHG-P super i/o chips.
This commit is contained in:
parent
432a947633
commit
8bb54fb542
@ -12,6 +12,7 @@ namespace OpenHardwareMonitor.Hardware.LPC {
|
||||
IT8720 = 0x8720,
|
||||
IT8726 = 0x8726,
|
||||
W83627DHG = 0xA020,
|
||||
W83627DHGP = 0xB070,
|
||||
F71862 = 0x0601,
|
||||
F71869 = 0x0814,
|
||||
F71882 = 0x0541,
|
||||
|
@ -176,6 +176,17 @@ namespace OpenHardwareMonitor.Hardware.LPC {
|
||||
logicalDeviceNumber = 0;
|
||||
break;
|
||||
} break;
|
||||
case 0xB0:
|
||||
switch (revision & 0xF0) {
|
||||
case 0x70:
|
||||
chip = Chip.W83627DHGP;
|
||||
logicalDeviceNumber = W83627DHG_HARDWARE_MONITOR_LDN;
|
||||
break;
|
||||
default:
|
||||
chip = Chip.Unknown;
|
||||
logicalDeviceNumber = 0;
|
||||
break;
|
||||
} break;
|
||||
default:
|
||||
chip = Chip.Unknown;
|
||||
logicalDeviceNumber = 0;
|
||||
@ -199,7 +210,8 @@ namespace OpenHardwareMonitor.Hardware.LPC {
|
||||
|
||||
switch (chip) {
|
||||
case Chip.W83627DHG:
|
||||
W83627DHG w83627dhg = new W83627DHG(revision, address);
|
||||
case Chip.W83627DHGP:
|
||||
W83627DHG w83627dhg = new W83627DHG(chip, revision, address);
|
||||
if (w83627dhg.IsAvailable)
|
||||
hardware.Add(w83627dhg);
|
||||
break;
|
||||
|
@ -43,6 +43,7 @@ using System.Text;
|
||||
namespace OpenHardwareMonitor.Hardware.LPC {
|
||||
public class W83627DHG : IHardware {
|
||||
|
||||
private Chip chip;
|
||||
private byte revision;
|
||||
|
||||
private string name;
|
||||
@ -95,7 +96,8 @@ namespace OpenHardwareMonitor.Hardware.LPC {
|
||||
(ushort)(address + DATA_REGISTER_OFFSET));
|
||||
}
|
||||
|
||||
public W83627DHG(byte revision, ushort address) {
|
||||
public W83627DHG(Chip chip, byte revision, ushort address) {
|
||||
this.chip = chip;
|
||||
this.revision = revision;
|
||||
this.address = address;
|
||||
|
||||
@ -121,7 +123,12 @@ namespace OpenHardwareMonitor.Hardware.LPC {
|
||||
for (int i = 0; i < FAN_NAME.Length; i++)
|
||||
fans[i] = new Sensor(FAN_NAME[i], i, SensorType.Fan, this);
|
||||
|
||||
this.name = "Winbond W83627DHG";
|
||||
switch (chip) {
|
||||
case Chip.W83627DHG: name = "Winbond W83627DHG"; break;
|
||||
case Chip.W83627DHGP: name = "Winbond W83627DHG-P"; break;
|
||||
default: return;
|
||||
}
|
||||
|
||||
this.icon = Utilities.EmbeddedResources.GetImage("chip.png");
|
||||
available = true;
|
||||
}
|
||||
@ -135,7 +142,7 @@ namespace OpenHardwareMonitor.Hardware.LPC {
|
||||
}
|
||||
|
||||
public string Identifier {
|
||||
get { return "/lpc/w83627dhg"; }
|
||||
get { return "/lpc/" + chip.ToString().ToLower(); }
|
||||
}
|
||||
|
||||
public Image Icon {
|
||||
@ -151,6 +158,7 @@ namespace OpenHardwareMonitor.Hardware.LPC {
|
||||
|
||||
r.AppendLine("LPC W83627DHG");
|
||||
r.AppendLine();
|
||||
r.Append("Chip ID: 0x"); r.AppendLine(chip.ToString("X"));
|
||||
r.Append("Chip revision: 0x"); r.AppendLine(revision.ToString("X"));
|
||||
r.Append("Base Adress: 0x"); r.AppendLine(address.ToString("X4"));
|
||||
r.AppendLine();
|
||||
|
@ -69,5 +69,5 @@ using System.Runtime.InteropServices;
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("0.1.7.0")]
|
||||
[assembly: AssemblyFileVersion("0.1.7.0")]
|
||||
[assembly: AssemblyVersion("0.1.8.0")]
|
||||
[assembly: AssemblyFileVersion("0.1.8.0")]
|
||||
|
Loading…
x
Reference in New Issue
Block a user