From 8bb54fb5425bf39b6e5d5a19c88db6125065fad5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=B6ller?= Date: Mon, 1 Feb 2010 22:11:06 +0000 Subject: [PATCH] Release version 0.1.8. Added support for W83627DHG-P super i/o chips. --- Hardware/LPC/Chip.cs | 1 + Hardware/LPC/LPCGroup.cs | 16 ++++++++++++++-- Hardware/LPC/W83627DHG.cs | 14 +++++++++++--- Properties/AssemblyInfo.cs | 4 ++-- 4 files changed, 28 insertions(+), 7 deletions(-) diff --git a/Hardware/LPC/Chip.cs b/Hardware/LPC/Chip.cs index 00f8716..e529617 100644 --- a/Hardware/LPC/Chip.cs +++ b/Hardware/LPC/Chip.cs @@ -12,6 +12,7 @@ namespace OpenHardwareMonitor.Hardware.LPC { IT8720 = 0x8720, IT8726 = 0x8726, W83627DHG = 0xA020, + W83627DHGP = 0xB070, F71862 = 0x0601, F71869 = 0x0814, F71882 = 0x0541, diff --git a/Hardware/LPC/LPCGroup.cs b/Hardware/LPC/LPCGroup.cs index 725c96e..0c6ea3f 100644 --- a/Hardware/LPC/LPCGroup.cs +++ b/Hardware/LPC/LPCGroup.cs @@ -175,7 +175,18 @@ namespace OpenHardwareMonitor.Hardware.LPC { chip = Chip.Unknown; logicalDeviceNumber = 0; break; - } 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; diff --git a/Hardware/LPC/W83627DHG.cs b/Hardware/LPC/W83627DHG.cs index 90b445d..5ce691c 100644 --- a/Hardware/LPC/W83627DHG.cs +++ b/Hardware/LPC/W83627DHG.cs @@ -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(); diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index 9303358..727e226 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -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")]