Show
Ignore:
Timestamp:
12/11/08 17:56:54 (3 years ago)
Author:
khali
Message:

Strip trailing whitespace and redundant spaces.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • i2c-tools/trunk/eeprom/decode-xeon

    r5162 r5561  
    77# 
    88# 
    9 # ID ROM data decoding for Xeon processors.  
     9# ID ROM data decoding for Xeon processors. 
    1010# Each Xeon processor contains two memories: 
    1111#       - A scratch EEPROM at an even location 0x50, 52, 54, or 56; 
     
    2525#       Decode flags in byte 0x7B (cartridge feature flags) 
    2626# 
    27 # References:  
     27# References: 
    2828# "Pentium II Xeon Processor at 400 and 450 MHz" Data Sheet 
    29 # Intel  
     29# Intel 
    3030# 
    3131# 
     
    4444        if ((/^eeprom-/) && (/-51$/ || /-53$/ || /-55$/ || /-57$/)) { 
    4545                $dimm_count=$dimm_count + 1; 
    46                  
     46 
    4747                print "\nDecoding Xeon ROM: /proc/sys/dev/sensors/$dimm_list[$i]\n"; 
    4848                if (/^[^-]+-[^-]+-[^-]+-([^-]+)$/) { 
     
    5555                $_=`cat /proc/sys/dev/sensors/$dimm_list[$i]/00`; 
    5656                @bytes=split(" "); 
    57                  
     57 
    5858                printf("\tData Format Revision: \t\t\t\t0x%.4X\n", $bytes[0]); 
    5959 
     
    7070                printf("\tFeature Data Address:\t\t\t\t0x%.2X\n", $bytes[9]); 
    7171                printf("\tOther Data Address:\t\t\t\t0x%.2X\n", $bytes[10]); 
    72                  
     72 
    7373                print "\t\t----=== Xeon ROM Processor Data ===----\n"; 
    74                  
     74 
    7575# Decode next 16 bytes 
    7676                $_=`cat /proc/sys/dev/sensors/$dimm_list[$i]/10`; 
    7777                @bbytes=split(" "); 
    78                 print "\tS-spec/QDF Number:\t\t\t\t\""; 
     78                print "\tS-spec/QDF Number:\t\t\t\t\""; 
    7979                print pack("cccccc",$bytes[14],$bytes[15],$bbytes[0], 
    80                                     $bbytes[1],$bbytes[2],$bbytes[3]); 
     80                                    $bbytes[1],$bbytes[2],$bbytes[3]); 
    8181                print "\"\n"; 
    8282                $tmp =  $bbytes[4] & 0xC0 >> 6; 
     
    8989 
    9090                print "\t\t----=== Xeon ROM Core Data ===----\n"; 
    91                  
     91 
    9292                printf("\tProcessor Core Type:\t\t\t\t0x%.2X\n", 
    9393                        ($bbytes[6] & 0xC0) >> 6); 
     
    101101                print ($bbytes[13] << 4) + $bbytes[14]; 
    102102                print "\n"; 
    103                  
     103 
    104104# Decode next 16 bytes (32-47) 
    105105                $_=`cat /proc/sys/dev/sensors/$dimm_list[$i]/20`; 
     
    116116 
    117117                print "\t\t----=== Xeon ROM L2 Cache Data ===----\n"; 
    118                  
     118 
    119119                print "\tL2 Cache Size (KB):\t\t\t\t"; 
    120120                print ($bytes[9] << 4) + $bytes[10]; 
     
    174174 
    175175# Decode next 16 bytes (96-111) 
    176 # Not used...    
     176# Not used... 
    177177 
    178178# Decode next 16 bytes (112-127) 
    179179                $_=`cat /proc/sys/dev/sensors/$dimm_list[$i]/70`; 
    180180                @bytes=split(" "); 
    181                  
     181 
    182182                print "\t\t----=== Xeon Thermal Reference Data ===----\n"; 
    183183 
     
    192192                printf("\tNumber of Devices in TAP Chain:\t\t\t%d\n", 
    193193                        ($bytes[12] & 0xF0) >> 4); 
    194                  
     194 
    195195        } 
    196196}