# HG changeset patch # User moel.mich # Date 1265062266 0 # Node ID 890e8fca7f3380253a41cbc5ac76a4966bef1a66 # Parent 49220085218d10841b5ac87749f0fbe5f0f97e09 Release version 0.1.8. Added support for W83627DHG-P super i/o chips. diff -r 49220085218d -r 890e8fca7f33 Hardware/LPC/Chip.cs --- a/Hardware/LPC/Chip.cs Mon Feb 01 21:04:14 2010 +0000 +++ b/Hardware/LPC/Chip.cs Mon Feb 01 22:11:06 2010 +0000 @@ -12,6 +12,7 @@ IT8720 = 0x8720, IT8726 = 0x8726, W83627DHG = 0xA020, + W83627DHGP = 0xB070, F71862 = 0x0601, F71869 = 0x0814, F71882 = 0x0541, diff -r 49220085218d -r 890e8fca7f33 Hardware/LPC/LPCGroup.cs --- a/Hardware/LPC/LPCGroup.cs Mon Feb 01 21:04:14 2010 +0000 +++ b/Hardware/LPC/LPCGroup.cs Mon Feb 01 22:11:06 2010 +0000 @@ -175,7 +175,18 @@ 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 @@ 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 -r 49220085218d -r 890e8fca7f33 Hardware/LPC/W83627DHG.cs --- a/Hardware/LPC/W83627DHG.cs Mon Feb 01 21:04:14 2010 +0000 +++ b/Hardware/LPC/W83627DHG.cs Mon Feb 01 22:11:06 2010 +0000 @@ -43,6 +43,7 @@ namespace OpenHardwareMonitor.Hardware.LPC { public class W83627DHG : IHardware { + private Chip chip; private byte revision; private string name; @@ -95,7 +96,8 @@ (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 @@ 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 @@ } public string Identifier { - get { return "/lpc/w83627dhg"; } + get { return "/lpc/" + chip.ToString().ToLower(); } } public Image Icon { @@ -151,6 +158,7 @@ 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 -r 49220085218d -r 890e8fca7f33 Properties/AssemblyInfo.cs --- a/Properties/AssemblyInfo.cs Mon Feb 01 21:04:14 2010 +0000 +++ b/Properties/AssemblyInfo.cs Mon Feb 01 22:11:06 2010 +0000 @@ -69,5 +69,5 @@ // 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")]