Hardware/LPC/Chip.cs
author moel.mich
Sun, 10 Oct 2010 16:57:11 +0000
changeset 219 ce04404774d6
parent 170 31858ba46e9c
child 245 f8e72b2efcc0
permissions -rw-r--r--
Reading the timeStampCounterMultiplier right at the beginning when the time stamp counter is estimated instead of reading it at each update. Refactored the IntelCPU code a bit.
moel@182
     1
/*
moel@182
     2
  
moel@182
     3
  Version: MPL 1.1/GPL 2.0/LGPL 2.1
moel@182
     4
moel@182
     5
  The contents of this file are subject to the Mozilla Public License Version
moel@182
     6
  1.1 (the "License"); you may not use this file except in compliance with
moel@182
     7
  the License. You may obtain a copy of the License at
moel@182
     8
 
moel@182
     9
  http://www.mozilla.org/MPL/
moel@182
    10
moel@182
    11
  Software distributed under the License is distributed on an "AS IS" basis,
moel@182
    12
  WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
moel@182
    13
  for the specific language governing rights and limitations under the License.
moel@182
    14
moel@182
    15
  The Original Code is the Open Hardware Monitor code.
moel@182
    16
moel@182
    17
  The Initial Developer of the Original Code is 
moel@182
    18
  Michael Möller <m.moeller@gmx.ch>.
moel@182
    19
  Portions created by the Initial Developer are Copyright (C) 2009-2010
moel@182
    20
  the Initial Developer. All Rights Reserved.
moel@182
    21
moel@182
    22
  Contributor(s):
moel@182
    23
moel@182
    24
  Alternatively, the contents of this file may be used under the terms of
moel@182
    25
  either the GNU General Public License Version 2 or later (the "GPL"), or
moel@182
    26
  the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
moel@182
    27
  in which case the provisions of the GPL or the LGPL are applicable instead
moel@182
    28
  of those above. If you wish to allow use of your version of this file only
moel@182
    29
  under the terms of either the GPL or the LGPL, and not to allow others to
moel@182
    30
  use your version of this file under the terms of the MPL, indicate your
moel@182
    31
  decision by deleting the provisions above and replace them with the notice
moel@182
    32
  and other provisions required by the GPL or the LGPL. If you do not delete
moel@182
    33
  the provisions above, a recipient may use your version of this file under
moel@182
    34
  the terms of any one of the MPL, the GPL or the LGPL.
moel@182
    35
 
moel@182
    36
*/
moel@1
    37
moel@1
    38
namespace OpenHardwareMonitor.Hardware.LPC {
moel@1
    39
moel@165
    40
  internal enum Chip : ushort {
moel@1
    41
    Unknown = 0,
moel@93
    42
    IT8712F = 0x8712,
moel@21
    43
    IT8716F = 0x8716,
moel@21
    44
    IT8718F = 0x8718,
moel@21
    45
    IT8720F = 0x8720,
moel@170
    46
    IT8721F = 0x8721,
moel@21
    47
    IT8726F = 0x8726,
moel@7
    48
    W83627DHG = 0xA020,
moel@19
    49
    W83627DHGP = 0xB070,
moel@108
    50
    W83627EHF = 0x8800,    
moel@31
    51
    W83627HF = 0x5200,
moel@147
    52
    W83627THF = 0x8280,
moel@34
    53
    W83667HG = 0xA510,
moel@34
    54
    W83667HGB = 0xB350,
moel@67
    55
    W83687THF = 0x8541,
moel@68
    56
    F71858 = 0x0507,
moel@16
    57
    F71862 = 0x0601, 
moel@16
    58
    F71869 = 0x0814,
moel@16
    59
    F71882 = 0x0541,
moel@103
    60
    F71889ED = 0x0909,
moel@167
    61
    F71889F = 0x0723      
moel@167
    62
  }
moel@167
    63
moel@167
    64
  internal class ChipName {
moel@167
    65
moel@167
    66
    private ChipName() { }
moel@167
    67
moel@167
    68
    public static string GetName(Chip chip) {
moel@167
    69
      switch (chip) {
moel@167
    70
        case Chip.F71858: return "Fintek F71858";
moel@167
    71
        case Chip.F71862: return "Fintek F71862";
moel@167
    72
        case Chip.F71869: return "Fintek F71869";
moel@167
    73
        case Chip.F71882: return "Fintek F71882";
moel@167
    74
        case Chip.F71889ED: return "Fintek F71889ED";
moel@167
    75
        case Chip.F71889F: return "Fintek F71889F";
moel@167
    76
        case Chip.IT8712F: return "ITE IT8712F";
moel@167
    77
        case Chip.IT8716F: return "ITE IT8716F";
moel@167
    78
        case Chip.IT8718F: return "ITE IT8718F";
moel@170
    79
        case Chip.IT8721F: return "ITE IT8721F";
moel@167
    80
        case Chip.IT8720F: return "ITE IT8720F";
moel@167
    81
        case Chip.IT8726F: return "ITE IT8726F";
moel@167
    82
        case Chip.W83627DHG: return "Winbond W83627DHG";
moel@167
    83
        case Chip.W83627DHGP: return "Winbond W83627DHG-P";
moel@167
    84
        case Chip.W83627EHF: return "Winbond W83627EHF";
moel@167
    85
        case Chip.W83627HF: return "Winbond W83627HF";
moel@167
    86
        case Chip.W83627THF: return "Winbond W83627THF";
moel@167
    87
        case Chip.W83667HG: return "Winbond W83667HG";
moel@167
    88
        case Chip.W83667HGB: return "Winbond W83667HG-B";
moel@167
    89
        case Chip.W83687THF: return "Winbond W83687THF";
moel@167
    90
        case Chip.Unknown: return "Unkown";
moel@167
    91
        default: return "Unknown";
moel@167
    92
      }
moel@167
    93
    }
moel@1
    94
  }
moel@1
    95
moel@1
    96
}