Added support for F71889ED super I/O chips.
3 Version: MPL 1.1/GPL 2.0/LGPL 2.1
5 The contents of this file are subject to the Mozilla Public License Version
6 1.1 (the "License"); you may not use this file except in compliance with
7 the License. You may obtain a copy of the License at
9 http://www.mozilla.org/MPL/
11 Software distributed under the License is distributed on an "AS IS" basis,
12 WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13 for the specific language governing rights and limitations under the License.
15 The Original Code is the Open Hardware Monitor code.
17 The Initial Developer of the Original Code is
18 Michael Möller <m.moeller@gmx.ch>.
19 Portions created by the Initial Developer are Copyright (C) 2009-2010
20 the Initial Developer. All Rights Reserved.
24 Alternatively, the contents of this file may be used under the terms of
25 either the GNU General Public License Version 2 or later (the "GPL"), or
26 the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27 in which case the provisions of the GPL or the LGPL are applicable instead
28 of those above. If you wish to allow use of your version of this file only
29 under the terms of either the GPL or the LGPL, and not to allow others to
30 use your version of this file under the terms of the MPL, indicate your
31 decision by deleting the provisions above and replace them with the notice
32 and other provisions required by the GPL or the LGPL. If you do not delete
33 the provisions above, a recipient may use your version of this file under
34 the terms of any one of the MPL, the GPL or the LGPL.
39 using System.Collections.Generic;
42 using OpenHardwareMonitor.Hardware.LPC;
44 namespace OpenHardwareMonitor.Hardware.Mainboard {
45 public class Mainboard : IHardware {
46 private SMBIOS smbios;
50 private LPCGroup lpcGroup;
53 this.smbios = new SMBIOS();
55 if (smbios.Board != null) {
56 if (smbios.Board.ProductName != null
57 && smbios.Board.ProductName != "") {
58 if (smbios.Board.Manufacturer == Manufacturer.Unkown)
59 this.name = smbios.Board.ProductName;
61 this.name = smbios.Board.Manufacturer + " " +
62 smbios.Board.ProductName;
64 this.name = smbios.Board.Manufacturer.ToString();
67 this.name = Manufacturer.Unkown.ToString();
70 this.icon = Utilities.EmbeddedResources.GetImage("mainboard.png");
71 this.lpcGroup = new LPCGroup();
78 public string Identifier {
79 get { return "/mainboard"; }
86 public string GetReport() {
87 StringBuilder r = new StringBuilder();
89 r.AppendLine("Mainboard");
91 r.Append(smbios.GetReport());
93 r.Append(lpcGroup.GetReport());
98 public void Update() { }
100 public void Close() {
104 public IHardware[] SubHardware {
105 get { return lpcGroup.Hardware; }
108 public ISensor[] Sensors {
109 get { return new ISensor[0]; }
112 #pragma warning disable 67
113 public event SensorEventHandler SensorAdded;
114 public event SensorEventHandler SensorRemoved;
115 #pragma warning restore 67