Changeset 5561 for i2c-tools/trunk/eeprom/decode-xeon
- Timestamp:
- 12/11/08 17:56:54 (3 years ago)
- Files:
-
- 1 modified
-
i2c-tools/trunk/eeprom/decode-xeon (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
i2c-tools/trunk/eeprom/decode-xeon
r5162 r5561 7 7 # 8 8 # 9 # ID ROM data decoding for Xeon processors. 9 # ID ROM data decoding for Xeon processors. 10 10 # Each Xeon processor contains two memories: 11 11 # - A scratch EEPROM at an even location 0x50, 52, 54, or 56; … … 25 25 # Decode flags in byte 0x7B (cartridge feature flags) 26 26 # 27 # References: 27 # References: 28 28 # "Pentium II Xeon Processor at 400 and 450 MHz" Data Sheet 29 # Intel 29 # Intel 30 30 # 31 31 # … … 44 44 if ((/^eeprom-/) && (/-51$/ || /-53$/ || /-55$/ || /-57$/)) { 45 45 $dimm_count=$dimm_count + 1; 46 46 47 47 print "\nDecoding Xeon ROM: /proc/sys/dev/sensors/$dimm_list[$i]\n"; 48 48 if (/^[^-]+-[^-]+-[^-]+-([^-]+)$/) { … … 55 55 $_=`cat /proc/sys/dev/sensors/$dimm_list[$i]/00`; 56 56 @bytes=split(" "); 57 57 58 58 printf("\tData Format Revision: \t\t\t\t0x%.4X\n", $bytes[0]); 59 59 … … 70 70 printf("\tFeature Data Address:\t\t\t\t0x%.2X\n", $bytes[9]); 71 71 printf("\tOther Data Address:\t\t\t\t0x%.2X\n", $bytes[10]); 72 72 73 73 print "\t\t----=== Xeon ROM Processor Data ===----\n"; 74 74 75 75 # Decode next 16 bytes 76 76 $_=`cat /proc/sys/dev/sensors/$dimm_list[$i]/10`; 77 77 @bbytes=split(" "); 78 print "\tS-spec/QDF Number:\t\t\t\t\"";78 print "\tS-spec/QDF Number:\t\t\t\t\""; 79 79 print pack("cccccc",$bytes[14],$bytes[15],$bbytes[0], 80 $bbytes[1],$bbytes[2],$bbytes[3]);80 $bbytes[1],$bbytes[2],$bbytes[3]); 81 81 print "\"\n"; 82 82 $tmp = $bbytes[4] & 0xC0 >> 6; … … 89 89 90 90 print "\t\t----=== Xeon ROM Core Data ===----\n"; 91 91 92 92 printf("\tProcessor Core Type:\t\t\t\t0x%.2X\n", 93 93 ($bbytes[6] & 0xC0) >> 6); … … 101 101 print ($bbytes[13] << 4) + $bbytes[14]; 102 102 print "\n"; 103 103 104 104 # Decode next 16 bytes (32-47) 105 105 $_=`cat /proc/sys/dev/sensors/$dimm_list[$i]/20`; … … 116 116 117 117 print "\t\t----=== Xeon ROM L2 Cache Data ===----\n"; 118 118 119 119 print "\tL2 Cache Size (KB):\t\t\t\t"; 120 120 print ($bytes[9] << 4) + $bytes[10]; … … 174 174 175 175 # Decode next 16 bytes (96-111) 176 # Not used... 176 # Not used... 177 177 178 178 # Decode next 16 bytes (112-127) 179 179 $_=`cat /proc/sys/dev/sensors/$dimm_list[$i]/70`; 180 180 @bytes=split(" "); 181 181 182 182 print "\t\t----=== Xeon Thermal Reference Data ===----\n"; 183 183 … … 192 192 printf("\tNumber of Devices in TAP Chain:\t\t\t%d\n", 193 193 ($bytes[12] & 0xF0) >> 4); 194 194 195 195 } 196 196 }
