Release version 0.1.8. Added support for W83627DHG-P super i/o chips.
authormoel.mich
Mon, 01 Feb 2010 22:11:06 +0000
changeset 19890e8fca7f33
parent 18 49220085218d
child 20 022f9fc23784
Release version 0.1.8. Added support for W83627DHG-P super i/o chips.
Hardware/LPC/Chip.cs
Hardware/LPC/LPCGroup.cs
Hardware/LPC/W83627DHG.cs
Properties/AssemblyInfo.cs
     1.1 --- a/Hardware/LPC/Chip.cs	Mon Feb 01 21:04:14 2010 +0000
     1.2 +++ b/Hardware/LPC/Chip.cs	Mon Feb 01 22:11:06 2010 +0000
     1.3 @@ -12,6 +12,7 @@
     1.4      IT8720 = 0x8720,
     1.5      IT8726 = 0x8726,
     1.6      W83627DHG = 0xA020,
     1.7 +    W83627DHGP = 0xB070,
     1.8      F71862 = 0x0601, 
     1.9      F71869 = 0x0814,
    1.10      F71882 = 0x0541,
     2.1 --- a/Hardware/LPC/LPCGroup.cs	Mon Feb 01 21:04:14 2010 +0000
     2.2 +++ b/Hardware/LPC/LPCGroup.cs	Mon Feb 01 22:11:06 2010 +0000
     2.3 @@ -175,7 +175,18 @@
     2.4                  chip = Chip.Unknown;
     2.5                  logicalDeviceNumber = 0;
     2.6                  break;
     2.7 -            } break;          
     2.8 +            } break;
     2.9 +          case 0xB0:
    2.10 +            switch (revision & 0xF0) {
    2.11 +              case 0x70:
    2.12 +                chip = Chip.W83627DHGP;
    2.13 +                logicalDeviceNumber = W83627DHG_HARDWARE_MONITOR_LDN;
    2.14 +                break;
    2.15 +              default:
    2.16 +                chip = Chip.Unknown;
    2.17 +                logicalDeviceNumber = 0;
    2.18 +                break;
    2.19 +            } break;  
    2.20            default:
    2.21              chip = Chip.Unknown; 
    2.22              logicalDeviceNumber = 0;
    2.23 @@ -199,7 +210,8 @@
    2.24            
    2.25            switch (chip) {
    2.26              case Chip.W83627DHG:
    2.27 -              W83627DHG w83627dhg = new W83627DHG(revision, address);
    2.28 +            case Chip.W83627DHGP:
    2.29 +              W83627DHG w83627dhg = new W83627DHG(chip, revision, address);
    2.30                if (w83627dhg.IsAvailable)
    2.31                  hardware.Add(w83627dhg);
    2.32                break;
     3.1 --- a/Hardware/LPC/W83627DHG.cs	Mon Feb 01 21:04:14 2010 +0000
     3.2 +++ b/Hardware/LPC/W83627DHG.cs	Mon Feb 01 22:11:06 2010 +0000
     3.3 @@ -43,6 +43,7 @@
     3.4  namespace OpenHardwareMonitor.Hardware.LPC {
     3.5    public class W83627DHG : IHardware {
     3.6  
     3.7 +    private Chip chip;
     3.8      private byte revision;
     3.9  
    3.10      private string name;
    3.11 @@ -95,7 +96,8 @@
    3.12          (ushort)(address + DATA_REGISTER_OFFSET));
    3.13      }    
    3.14  
    3.15 -    public W83627DHG(byte revision, ushort address) {      
    3.16 +    public W83627DHG(Chip chip, byte revision, ushort address) {
    3.17 +      this.chip = chip;
    3.18        this.revision = revision;
    3.19        this.address = address;
    3.20  
    3.21 @@ -121,7 +123,12 @@
    3.22        for (int i = 0; i < FAN_NAME.Length; i++)
    3.23          fans[i] = new Sensor(FAN_NAME[i], i, SensorType.Fan, this);
    3.24  
    3.25 -      this.name = "Winbond W83627DHG";
    3.26 +      switch (chip) {
    3.27 +        case Chip.W83627DHG: name = "Winbond W83627DHG"; break;
    3.28 +        case Chip.W83627DHGP: name = "Winbond W83627DHG-P"; break;
    3.29 +        default: return;
    3.30 +      }
    3.31 +
    3.32        this.icon = Utilities.EmbeddedResources.GetImage("chip.png");
    3.33        available = true;
    3.34      }
    3.35 @@ -135,7 +142,7 @@
    3.36      }
    3.37  
    3.38      public string Identifier {
    3.39 -      get { return "/lpc/w83627dhg"; }
    3.40 +      get { return "/lpc/" + chip.ToString().ToLower(); }
    3.41      }
    3.42  
    3.43      public Image Icon {
    3.44 @@ -151,6 +158,7 @@
    3.45  
    3.46        r.AppendLine("LPC W83627DHG");
    3.47        r.AppendLine();
    3.48 +      r.Append("Chip ID: 0x"); r.AppendLine(chip.ToString("X"));
    3.49        r.Append("Chip revision: 0x"); r.AppendLine(revision.ToString("X"));
    3.50        r.Append("Base Adress: 0x"); r.AppendLine(address.ToString("X4"));
    3.51        r.AppendLine();
     4.1 --- a/Properties/AssemblyInfo.cs	Mon Feb 01 21:04:14 2010 +0000
     4.2 +++ b/Properties/AssemblyInfo.cs	Mon Feb 01 22:11:06 2010 +0000
     4.3 @@ -69,5 +69,5 @@
     4.4  // You can specify all the values or you can default the Build and Revision Numbers 
     4.5  // by using the '*' as shown below:
     4.6  // [assembly: AssemblyVersion("1.0.*")]
     4.7 -[assembly: AssemblyVersion("0.1.7.0")]
     4.8 -[assembly: AssemblyFileVersion("0.1.7.0")]
     4.9 +[assembly: AssemblyVersion("0.1.8.0")]
    4.10 +[assembly: AssemblyFileVersion("0.1.8.0")]