1.1 --- a/Hardware/Mainboard/SuperIOHardware.cs Mon Oct 11 20:37:37 2010 +0000
1.2 +++ b/Hardware/Mainboard/SuperIOHardware.cs Thu Oct 14 16:52:23 2010 +0000
1.3 @@ -50,7 +50,6 @@
1.4 private readonly List<Sensor> temperatures = new List<Sensor>();
1.5 private readonly List<Sensor> fans = new List<Sensor>();
1.6
1.7 -
1.8 public SuperIOHardware(Mainboard mainboard, ISuperIO superIO,
1.9 Manufacturer manufacturer, Model model, ISettings settings)
1.10 {
1.11 @@ -116,6 +115,40 @@
1.12 break;
1.13 }
1.14 break;
1.15 +
1.16 + case Manufacturer.ASRock:
1.17 + switch (model) {
1.18 + case Model.P55_Deluxe: // IT8720F
1.19 + v.Add(new Voltage("CPU VCore", 0));
1.20 + v.Add(new Voltage("+3.3V", 2));
1.21 + v.Add(new Voltage("+12V", 4, 30, 10));
1.22 + v.Add(new Voltage("+5V", 5, 6.8f, 10));
1.23 + v.Add(new Voltage("VBat", 8));
1.24 + t.Add(new Temperature("CPU", 0));
1.25 + t.Add(new Temperature("Motherboard", 1));
1.26 + f.Add(new Fan("CPU Fan", 0));
1.27 + f.Add(new Fan("Chassis Fan #1", 1));
1.28 + // fan channel 2 can connect to 3 different fan headers
1.29 + // which fan is read is configured with gpio 83-85
1.30 + break;
1.31 + default:
1.32 + v.Add(new Voltage("CPU VCore", 0));
1.33 + v.Add(new Voltage("Voltage #2", 1, true));
1.34 + v.Add(new Voltage("Voltage #3", 2, true));
1.35 + v.Add(new Voltage("Voltage #4", 3, true));
1.36 + v.Add(new Voltage("Voltage #5", 4, true));
1.37 + v.Add(new Voltage("Voltage #6", 5, true));
1.38 + v.Add(new Voltage("Voltage #7", 6, true));
1.39 + v.Add(new Voltage("Voltage #8", 7, true));
1.40 + v.Add(new Voltage("VBat", 8));
1.41 + for (int i = 0; i < superIO.Temperatures.Length; i++)
1.42 + t.Add(new Temperature("Temperature #" + (i + 1), i));
1.43 + for (int i = 0; i < superIO.Fans.Length; i++)
1.44 + f.Add(new Fan("Fan #" + (i + 1), i));
1.45 + break;
1.46 + };
1.47 + break;
1.48 +
1.49 case Manufacturer.DFI:
1.50 switch (model) {
1.51 case Model.LP_BI_P45_T2RS_Elite: // IT8718F
1.52 @@ -458,10 +491,8 @@
1.53 v.Add(new Voltage("VBAT", 8, 34, 34));
1.54 t.Add(new Temperature("CPU", 0));
1.55 t.Add(new Temperature("Motherboard", 2));
1.56 - f.Add(new Fan("Chassis Fan", 0));
1.57 - f.Add(new Fan("CPU Fan", 1));
1.58 - f.Add(new Fan("NB Fan", 2));
1.59 - f.Add(new Fan("Power Fan", 4));
1.60 + f.Add(new Fan("CPU Fan", 0));
1.61 + f.Add(new Fan("Chassis Fan", 1));
1.62 break;
1.63 default:
1.64 v.Add(new Voltage("CPU VCore", 0));