Chameleon

Chameleon Commit Details

Date:2015-01-02 01:23:18 (9 years 2 months ago)
Author:ErmaC
Commit:2526
Parents: 2525
Message:define recursive cpu series for BrandString
Changes:
M/trunk/i386/libsaio/smbios_getters.c
M/trunk/CHANGES

File differences

trunk/i386/libsaio/smbios_getters.c
1818
1919
2020
21
22
23
24
2125
26
2227
2328
2429
......
183188
184189
185190
186
191
187192
188193
189194
......
198203
199204
200205
201
206
202207
203208
204209
......
221226
222227
223228
224
229
225230
226231
227232
228233
229
234
230235
231236
232237
233238
234
239
235240
236241
237242
238243
239
244
240245
241246
242247
......
250255
251256
252257
253
258
254259
255260
256261
257262
258
263
259264
260265
261266
262267
263
268
264269
265270
266271
267272
268
273
269274
270275
271276
......
278283
279284
280285
281
286
282287
283288
284289
285290
286
291
287292
288293
289294
290295
291
296
292297
293298
294299
295300
296
301
297302
298303
299304
......
305310
306311
307312
308
313
309314
310315
311316
312317
313
318
314319
315320
316321
317322
318
323
319324
320325
321326
322327
323
328
324329
325330
326331
......
339344
340345
341346
342
347
343348
344349
345350
346351
347
352
348353
349354
350355
351356
352
357
353358
354359
355360
356361
357
362
358363
359364
360365
#define DBG(x...)
#endif
#define XEON "Xeon"
#define CORE_I3 "Core(TM) i3"
#define CORE_I5 "Core(TM) i5"
#define CORE_I7 "Core(TM) i7"
bool getProcessorInformationExternalClock(returnType *value)
{
if (Platform.CPU.Vendor == CPUID_VENDOR_INTEL) // Intel
case CPUID_MODEL_DOTHAN:// 0x0D - Intel Pentium M model D
case CPUID_MODEL_PRESCOTT:
case CPUID_MODEL_NOCONA:
if (strstr(Platform.CPU.BrandString, "Xeon"))
if (strstr(Platform.CPU.BrandString, XEON))
{
value->word = 0x402;// 1026 - Xeon
}
case CPUID_MODEL_MEROM:// 0x0F - Intel Mobile Core 2 Solo, Duo, Xeon 30xx, Xeon 51xx, Xeon X53xx, Xeon E53xx, Xeon X32xx
case CPUID_MODEL_XEON_MP:// 0x1D - Six-Core Xeon 7400, "Dunnington", 45nm
case CPUID_MODEL_PENRYN:// 0x17 - Intel Core 2 Solo, Duo, Quad, Extreme, Xeon X54xx, Xeon X33xx
if (strstr(Platform.CPU.BrandString, "Xeon"))
if (strstr(Platform.CPU.BrandString, XEON))
{
value->word = 0x402;// 1026 - Xeon
return true;
case CPUID_MODEL_NEHALEM:// 0x1A - Intel Core i7, Xeon W35xx, Xeon X55xx, Xeon E55xx LGA1366 (45nm)
case CPUID_MODEL_FIELDS:// 0x1E - Intel Core i5, i7, Xeon X34xx LGA1156 (45nm)
case CPUID_MODEL_DALES:// 0x1F - Intel Core i5, i7 LGA1156 (45nm) (Havendale, Auburndale)
if (strstr(Platform.CPU.BrandString, "Xeon"))
if (strstr(Platform.CPU.BrandString, XEON))
{
value->word = 0x501;// 1281 - Lynnfiled Quad-Core Xeon
return true;
}
if (strstr(Platform.CPU.BrandString, "Core(TM) i3"))
if (strstr(Platform.CPU.BrandString, CORE_I3))
{
value->word = 0x901;// 2305 - Core i3
return true;
}
if (strstr(Platform.CPU.BrandString, "Core(TM) i5"))
if (strstr(Platform.CPU.BrandString, CORE_I5))
{
value->word = 0x601;// Core i5
return true;
}
if (strstr(Platform.CPU.BrandString, "Core(TM) i7"))
if (strstr(Platform.CPU.BrandString, CORE_I7))
{
value->word = 0x701;// 1793 - Core i7
return true;
case CPUID_MODEL_DALES_32NM:// 0x25 - Intel Core i3, i5 LGA1156 (32nm) (Clarkdale, Arrandale)
case CPUID_MODEL_WESTMERE:// 0x2C - Intel Core i7, Xeon X56xx, Xeon E56xx, Xeon W36xx LGA1366 (32nm) 6 Core
case CPUID_MODEL_WESTMERE_EX:// 0x2F - Intel Xeon E7
if (strstr(Platform.CPU.BrandString, "Xeon"))
if (strstr(Platform.CPU.BrandString, XEON))
{
value->word = 0x501;// 1281 - Xeon
return true;
}
if (strstr(Platform.CPU.BrandString, "Core(TM) i3"))
if (strstr(Platform.CPU.BrandString, CORE_I3))
{
value->word = 0x901;// 2305 - Core i3
return true;
}
if (strstr(Platform.CPU.BrandString, "Core(TM) i5"))
if (strstr(Platform.CPU.BrandString, CORE_I5))
{
value->word = 0x602;// 1538 - Core i5
return true;
}
if (strstr(Platform.CPU.BrandString, "Core(TM) i7"))
if (strstr(Platform.CPU.BrandString, CORE_I7))
{
value->word = 0x702;// 1794 -Core i7
return true;
case CPUID_MODEL_JAKETOWN:// 0x2D - Intel Core i7, Xeon E5-xxxx LGA2011 (32nm)
case CPUID_MODEL_SANDYBRIDGE:// 0x2A - Intel Core i3, i5, i7 LGA1155 (32nm)
if (strstr(Platform.CPU.BrandString, "Xeon"))
if (strstr(Platform.CPU.BrandString, XEON))
{
value->word = 0x501;// 1281 - Xeon
return true;
}
if (strstr(Platform.CPU.BrandString, "Core(TM) i3"))
if (strstr(Platform.CPU.BrandString, CORE_I3))
{
value->word = 0x902;// 2306 -Core i3
return true;
}
if (strstr(Platform.CPU.BrandString, "Core(TM) i5"))
if (strstr(Platform.CPU.BrandString, CORE_I5))
{
value->word = 0x603;// 1539 - Core i5
return true;
}
if (strstr(Platform.CPU.BrandString, "Core(TM) i7"))
if (strstr(Platform.CPU.BrandString, CORE_I7))
{
value->word = 0x703;// 1795 - Core i7
return true;
return true;
case CPUID_MODEL_IVYBRIDGE:// 0x3A - Intel Core i3, i5, i7 LGA1155 (22nm)
if (strstr(Platform.CPU.BrandString, "Xeon"))
if (strstr(Platform.CPU.BrandString, XEON))
{
value->word = 0xA01;// 2561 - Xeon
return true;
}
if (strstr(Platform.CPU.BrandString, "Core(TM) i3"))
if (strstr(Platform.CPU.BrandString, CORE_I3))
{
value->word = 0x903;// 2307 - Core i3 - Apple doesn't use it
return true;
}
if (strstr(Platform.CPU.BrandString, "Core(TM) i5"))
if (strstr(Platform.CPU.BrandString, CORE_I5))
{
value->word = 0x604;// 1540 - Core i5
return true;
}
if (strstr(Platform.CPU.BrandString, "Core(TM) i7"))
if (strstr(Platform.CPU.BrandString, CORE_I7))
{
value->word = 0x704;// 1796 - Core i7
return true;
case CPUID_MODEL_HASWELL_SVR:// 0x3F -
case CPUID_MODEL_HASWELL_ULT:// 0x45 -
case CPUID_MODEL_CRYSTALWELL:// 0x46
if (strstr(Platform.CPU.BrandString, "Xeon"))
if (strstr(Platform.CPU.BrandString, XEON))
{
value->word = 0xA01;// 2561 - Xeon
return true;
}
if (strstr(Platform.CPU.BrandString, "Core(TM) i3"))
if (strstr(Platform.CPU.BrandString, CORE_I3))
{
value->word = 0x904;// 2308 - Core i3 - Apple doesn't use it - but we yes:-)
return true;
}
if (strstr(Platform.CPU.BrandString, "Core(TM) i5"))
if (strstr(Platform.CPU.BrandString, CORE_I5))
{
value->word = 0x605;// 1541 - Core i5
return true;
}
if (strstr(Platform.CPU.BrandString, "Core(TM) i7"))
if (strstr(Platform.CPU.BrandString, CORE_I7))
{
value->word = 0x705;// 1797 - Core i7
return true;
trunk/CHANGES
1
12
23
34
- ErmaC : define recursive cpu series for BrandString
- Zenith432 : saio_types.h, biosfn.c - minor typo in bios-defined data structure that isn't actually used.
fake_efi.c - eliminate redundant scan of bt(0,0) in setupSmbiosConfigFile. loadConfigFile already does a fall-back scan of bt(0,0), so another scan isn't needed.
sys.c - While scanning a volume, getOSVersion looks for 5 files and switches back-n-forth between hd(X,Y)/....SystemVersion.plist on the newly scanned volume and bt(0,0)/hd(X,Y)/...SystemVersion.plist - which is an invalid path - should always return an error.

Archive Download the corresponding diff file

Revision: 2526