1.1 --- a/Hardware/LPC/W83627DHG.cs Mon Feb 01 21:04:14 2010 +0000
1.2 +++ b/Hardware/LPC/W83627DHG.cs Mon Feb 01 22:11:06 2010 +0000
1.3 @@ -43,6 +43,7 @@
1.4 namespace OpenHardwareMonitor.Hardware.LPC {
1.5 public class W83627DHG : IHardware {
1.6
1.7 + private Chip chip;
1.8 private byte revision;
1.9
1.10 private string name;
1.11 @@ -95,7 +96,8 @@
1.12 (ushort)(address + DATA_REGISTER_OFFSET));
1.13 }
1.14
1.15 - public W83627DHG(byte revision, ushort address) {
1.16 + public W83627DHG(Chip chip, byte revision, ushort address) {
1.17 + this.chip = chip;
1.18 this.revision = revision;
1.19 this.address = address;
1.20
1.21 @@ -121,7 +123,12 @@
1.22 for (int i = 0; i < FAN_NAME.Length; i++)
1.23 fans[i] = new Sensor(FAN_NAME[i], i, SensorType.Fan, this);
1.24
1.25 - this.name = "Winbond W83627DHG";
1.26 + switch (chip) {
1.27 + case Chip.W83627DHG: name = "Winbond W83627DHG"; break;
1.28 + case Chip.W83627DHGP: name = "Winbond W83627DHG-P"; break;
1.29 + default: return;
1.30 + }
1.31 +
1.32 this.icon = Utilities.EmbeddedResources.GetImage("chip.png");
1.33 available = true;
1.34 }
1.35 @@ -135,7 +142,7 @@
1.36 }
1.37
1.38 public string Identifier {
1.39 - get { return "/lpc/w83627dhg"; }
1.40 + get { return "/lpc/" + chip.ToString().ToLower(); }
1.41 }
1.42
1.43 public Image Icon {
1.44 @@ -151,6 +158,7 @@
1.45
1.46 r.AppendLine("LPC W83627DHG");
1.47 r.AppendLine();
1.48 + r.Append("Chip ID: 0x"); r.AppendLine(chip.ToString("X"));
1.49 r.Append("Chip revision: 0x"); r.AppendLine(revision.ToString("X"));
1.50 r.Append("Base Adress: 0x"); r.AppendLine(address.ToString("X4"));
1.51 r.AppendLine();