summaryrefslogtreecommitdiff
path: root/dmidecode.c
diff options
context:
space:
mode:
authorkhali <khali>2003-10-12 16:22:53 +0000
committerkhali <khali>2003-10-12 16:22:53 +0000
commit45891c4997a72392ae07f9a53a1d326311f4ea77 (patch)
tree37a64f7e43fda24aa64699de714d14600c022079 /dmidecode.c
parentfc79edba67948fa2dbb538dde40f8604e5d4dc30 (diff)
downloaddmidecode-45891c4997a72392ae07f9a53a1d326311f4ea77.tar.gz
Handle unknown processor voltage.
Fix typo in event log method. One additional processor type (Pentium M).
Diffstat (limited to 'dmidecode.c')
-rw-r--r--dmidecode.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/dmidecode.c b/dmidecode.c
index 0152261..e4eb3d3 100644
--- a/dmidecode.c
+++ b/dmidecode.c
@@ -36,7 +36,7 @@
* - Intel AP-485 revision 23
* "Intel Processor Identification and the CPUID Instruction"
* http://developer.intel.com/design/xeon/applnots/241618.htm
- * - DMTF Master MIF version 021205
+ * - DMTF Master MIF version 030621
* "DMTF approved standard groups"
* http://www.dmtf.org/standards/standard_dmi.php
* - IPMI 1.5 revision 1.1
@@ -801,8 +801,8 @@ static const char *dmi_processor_family(u8 code)
"Athlon XP",
"Athlon MP",
"Itanium 2",
- NULL, /* 0xB9 */
- NULL,
+ "Pentium M",
+ NULL, /* 0xBA */
NULL,
NULL,
NULL,
@@ -956,7 +956,8 @@ static void dmi_processor_id(u8 type, u8 *p, const char *version, const char *pr
else if((type>=0x0B && type<=0x13) /* Intel, Cyrix */
|| (type>=0x18 && type<=0x1D) || type==0x1F /* AMD */
|| (type>=0xB0 && type<=0xB3) /* Intel */
- || (type>=0xB5 && type<=0xB7)) /* Intel, AMD */
+ || (type>=0xB5 && type<=0xB7) /* Intel, AMD */
+ || (type==0x84)) /* AMD Opteron */
cpuid=1;
else if(type==0x01)
{
@@ -1009,9 +1010,13 @@ static void dmi_processor_voltage(u8 code)
if(code&0x80)
printf(" %.1f V", (float)(code&0x7f)/10);
else
+ {
for(i=0; i<=2; i++)
if(code&(1<<i))
printf(" %s", voltage[i]);
+ if(code==0x00)
+ printf(" Unknown");
+ }
}
static void dmi_processor_frequency(u16 code)
@@ -1766,7 +1771,7 @@ static const char *dmi_event_log_method(u8 code)
"Indexed I/O, two 8-bit index ports, one 8-bit data port",
"Indexed I/O, one 16-bit index port, one 8-bit data port",
"Memory-mapped physical 32-bit address",
- "General-pupose non-volatile data functions" /* 0x04 */
+ "General-purpose non-volatile data functions" /* 0x04 */
};
if(code<=0x04)