Hardware/Mainboard/Identification.cs
changeset 370 8e4dedc41924
child 382 ba6abd47a80c
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Hardware/Mainboard/Identification.cs	Mon Jul 23 21:54:35 2012 +0000
     1.3 @@ -0,0 +1,200 @@
     1.4 +/*
     1.5 + 
     1.6 +  This Source Code Form is subject to the terms of the Mozilla Public
     1.7 +  License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 +  file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.9 + 
    1.10 +  Copyright (C) 2012 Michael Möller <mmoeller@openhardwaremonitor.org>
    1.11 +	
    1.12 +*/
    1.13 +
    1.14 +namespace OpenHardwareMonitor.Hardware.Mainboard {
    1.15 +  internal class Identification {
    1.16 +
    1.17 +    public static Manufacturer GetManufacturer(string name) {
    1.18 +      switch (name) {
    1.19 +        case "Alienware":
    1.20 +          return Manufacturer.Alienware;
    1.21 +        case "Apple Inc.":
    1.22 +          return Manufacturer.Apple;
    1.23 +        case "ASRock":
    1.24 +          return Manufacturer.ASRock;
    1.25 +        case "ASUSTeK Computer INC.":
    1.26 +        case "ASUSTeK COMPUTER INC.":
    1.27 +          return Manufacturer.ASUS;
    1.28 +        case "Dell Inc.":
    1.29 +          return Manufacturer.Dell;
    1.30 +        case "DFI":
    1.31 +        case "DFI Inc.":
    1.32 +          return Manufacturer.DFI;
    1.33 +        case "ECS":
    1.34 +          return Manufacturer.ECS;
    1.35 +        case "EPoX COMPUTER CO., LTD":
    1.36 +          return Manufacturer.EPoX;
    1.37 +        case "EVGA":
    1.38 +          return Manufacturer.EVGA;
    1.39 +        case "First International Computer, Inc.":
    1.40 +          return Manufacturer.FIC;
    1.41 +        case "FUJITSU":
    1.42 +        case "FUJITSU SIEMENS":
    1.43 +          return Manufacturer.Fujitsu;
    1.44 +        case "Gigabyte Technology Co., Ltd.":
    1.45 +          return Manufacturer.Gigabyte;
    1.46 +        case "Hewlett-Packard":
    1.47 +          return Manufacturer.HP;
    1.48 +        case "IBM":
    1.49 +          return Manufacturer.IBM;
    1.50 +        case "Intel":
    1.51 +        case "Intel Corp.":
    1.52 +        case "Intel Corporation":
    1.53 +        case "INTEL Corporation":
    1.54 +          return Manufacturer.Intel;
    1.55 +        case "Lenovo":
    1.56 +        case "LENOVO":
    1.57 +          return Manufacturer.Lenovo;
    1.58 +        case "Micro-Star International":
    1.59 +        case "MICRO-STAR INTERNATIONAL CO., LTD":
    1.60 +        case "MICRO-STAR INTERNATIONAL CO.,LTD":
    1.61 +        case "MSI":
    1.62 +          return Manufacturer.MSI;
    1.63 +        case "Shuttle":
    1.64 +          return Manufacturer.Shuttle;
    1.65 +        case "Supermicro":
    1.66 +          return Manufacturer.Supermicro;
    1.67 +        case "TOSHIBA":
    1.68 +          return Manufacturer.Toshiba;
    1.69 +        case "XFX":
    1.70 +          return Manufacturer.XFX;
    1.71 +        case "To be filled by O.E.M.":
    1.72 +          return Manufacturer.Unknown;
    1.73 +        default:
    1.74 +          return Manufacturer.Unknown;
    1.75 +      }
    1.76 +    }
    1.77 +
    1.78 +    public static Model GetModel(string name) {
    1.79 +      switch (name) {
    1.80 +        case "880GMH/USB3":
    1.81 +          return Model._880GMH_USB3;
    1.82 +        case "ASRock AOD790GX/128M":
    1.83 +          return Model.AOD790GX_128M;
    1.84 +        case "P55 Deluxe":
    1.85 +          return Model.P55_Deluxe;
    1.86 +        case "Crosshair III Formula":
    1.87 +          return Model.Crosshair_III_Formula;
    1.88 +        case "M2N-SLI DELUXE":
    1.89 +          return Model.M2N_SLI_DELUXE;
    1.90 +        case "M4A79XTD EVO":
    1.91 +          return Model.M4A79XTD_EVO;
    1.92 +        case "P5W DH Deluxe":
    1.93 +          return Model.P5W_DH_Deluxe;
    1.94 +        case "P6T":
    1.95 +          return Model.P6T;
    1.96 +        case "P6X58D-E":
    1.97 +          return Model.P6X58D_E;
    1.98 +        case "P8P67":
    1.99 +          return Model.P8P67;
   1.100 +        case "P8P67 EVO":
   1.101 +          return Model.P8P67_EVO;
   1.102 +        case "P8P67 PRO":
   1.103 +          return Model.P8P67_PRO;
   1.104 +        case "P8P67-M PRO":
   1.105 +          return Model.P8P67_M_PRO;
   1.106 +        case "P8Z77-V":
   1.107 +          return Model.P8Z77_V;
   1.108 +        case "P9X79":
   1.109 +          return Model.P9X79;
   1.110 +        case "Rampage Extreme":
   1.111 +          return Model.Rampage_Extreme;
   1.112 +        case "Rampage II GENE":
   1.113 +          return Model.Rampage_II_GENE;
   1.114 +        case "LP BI P45-T2RS Elite":
   1.115 +          return Model.LP_BI_P45_T2RS_Elite;
   1.116 +        case "LP DK P55-T3eH9":
   1.117 +          return Model.LP_DK_P55_T3eH9;
   1.118 +        case "A890GXM-A":
   1.119 +          return Model.A890GXM_A;
   1.120 +        case "X58 SLI Classified":
   1.121 +          return Model.X58_SLI_Classified;
   1.122 +        case "965P-S3":
   1.123 +          return Model._965P_S3;
   1.124 +        case "EP45-DS3R":
   1.125 +          return Model.EP45_DS3R;
   1.126 +        case "EP45-UD3R":
   1.127 +          return Model.EP45_UD3R;
   1.128 +        case "EX58-EXTREME":
   1.129 +          return Model.EX58_EXTREME;
   1.130 +        case "EX58-UD3R":
   1.131 +          return Model.EX58_UD3R;
   1.132 +        case "G41M-Combo":
   1.133 +          return Model.G41M_Combo;
   1.134 +        case "G41MT-S2":
   1.135 +          return Model.G41MT_S2;
   1.136 +        case "G41MT-S2P":
   1.137 +          return Model.G41MT_S2P;
   1.138 +        case "GA-MA770T-UD3":
   1.139 +          return Model.GA_MA770T_UD3;
   1.140 +        case "GA-MA770T-UD3P":
   1.141 +          return Model.GA_MA770T_UD3P;
   1.142 +        case "GA-MA785GM-US2H":
   1.143 +          return Model.GA_MA785GM_US2H;
   1.144 +        case "GA-MA785GMT-UD2H":
   1.145 +          return Model.GA_MA785GMT_UD2H;
   1.146 +        case "GA-MA78LM-S2H":
   1.147 +          return Model.GA_MA78LM_S2H;
   1.148 +        case "GA-MA790X-UD3P":
   1.149 +          return Model.GA_MA790X_UD3P;
   1.150 +        case "H55-USB3":
   1.151 +          return Model.H55_USB3;
   1.152 +        case "H55N-USB3":
   1.153 +          return Model.H55N_USB3;
   1.154 +        case "H61M-DS2 REV 1.2":
   1.155 +          return Model.H61M_DS2_REV_1_2;
   1.156 +        case "H61M-USB3-B3 REV 2.0":
   1.157 +          return Model.H61M_USB3_B3_REV_2_0;
   1.158 +        case "H67A-UD3H-B3":
   1.159 +          return Model.H67A_UD3H_B3;
   1.160 +        case "H67A-USB3-B3":
   1.161 +          return Model.H67A_USB3_B3;
   1.162 +        case "P35-DS3":
   1.163 +          return Model.P35_DS3;
   1.164 +        case "P35-DS3L":
   1.165 +          return Model.P35_DS3L;
   1.166 +        case "P55-UD4":
   1.167 +          return Model.P55_UD4;
   1.168 +        case "P55A-UD3":
   1.169 +          return Model.P55A_UD3;
   1.170 +        case "P55M-UD4":
   1.171 +          return Model.P55M_UD4;
   1.172 +        case "P67A-UD3-B3":
   1.173 +          return Model.P67A_UD3_B3;
   1.174 +        case "P67A-UD3R-B3":
   1.175 +          return Model.P67A_UD3R_B3;
   1.176 +        case "P67A-UD4-B3":
   1.177 +          return Model.P67A_UD4_B3;
   1.178 +        case "P8Z68-V PRO":
   1.179 +          return Model.P8Z68_V_PRO;
   1.180 +        case "X38-DS5":
   1.181 +          return Model.X38_DS5;
   1.182 +        case "X58A-UD3R":
   1.183 +          return Model.X58A_UD3R;
   1.184 +        case "Z68A-D3H-B3":
   1.185 +          return Model.Z68A_D3H_B3;
   1.186 +        case "Z68AP-D3":
   1.187 +          return Model.Z68AP_D3;
   1.188 +        case "Z68X-UD3H-B3":
   1.189 +          return Model.Z68X_UD3H_B3;
   1.190 +        case "Z68X-UD7-B3":
   1.191 +          return Model.Z68X_UD7_B3;
   1.192 +        case "FH67":
   1.193 +          return Model.FH67;
   1.194 +        case "Base Board Product Name":
   1.195 +        case "To be filled by O.E.M.":
   1.196 +          return Model.Unknown;
   1.197 +        default:
   1.198 +          return Model.Unknown;
   1.199 +      }
   1.200 +    }
   1.201 +
   1.202 +  }
   1.203 +}