Changeset 1621

Show
Ignore:
Timestamp:
11/18/02 21:45:35 (11 years ago)
Author:
khali
Message:

Misc cleanups and two more fields labelled

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/prog/eeprom/decode-vaio.pl

    r1325 r1621  
    1919# Version 0.1  2002-02-06  Jean Delvare <khali@linux-fr.org> 
    2020# Version 0.2  2002-02-16  Jean Delvare <khali@linux-fr.org> 
    21 #  Fixed to work with the new, simplified /proc interface names of the eeprom driver 
    22 (lm_sensors 2.6.3 and greater.) 
     21#  Fixed to work with the new, simplified /proc interface names of the eeprom 
     22  driver (lm_sensors 2.6.3 and greater). 
    2323#  Shifted data display by 4 columns left. 
    2424# Version 0.3  2002-02-17  Jean Delvare <khali@linux-fr.org> 
    25 #  Added UUID field at 0x10 (added decode_uuid.) 
     25#  Added UUID field at 0x10 (added decode_uuid). 
    2626#  Merged decode_string and decode_string32. 
    2727#  Added unknown field at 0x20. 
    28 #  Moved header and footer to BEGIN and END, respectivly. 
     28#  Moved header and footer to BEGIN and END, respectively. 
    2929#  Reformated history to match those of the other decode scripts. 
    30 #  Deleted decode_char (made useless by decode_string.) 
     30#  Deleted decode_char (made useless by decode_string). 
    3131#  Reordered field display, changed some labels. 
    3232#  Added old /proc interface check. 
     33# Version 1.0  2002-11-15  Jean Delvare <khali@linux-fr.org> 
     34#  Gave the label "OEM Data" to the field at 0x20. 
     35#  Gave the label "Timestamp" to the field at 0xE0. 
     36#  Renamed "Model Number" to "Model Name". 
     37#  Added some Documentation. 
    3338# 
    3439# EEPROM data decoding for Sony Vaio laptops.  
     
    3843# 
    3944# Please note that this is a guess-only work.  Sony support refused to help 
    40 # me, so if someone can provide information, please contact me.  I used my 
    41 # PCG-GR214EP as a base, but I can't promise that this script will work with 
    42 # other models.  Any feedback appreciated anyway. 
     45# me, so if someone can provide information, please contact me. 
     46# 
     47# It seems that if present, the EEPROM is always at 0x57. 
     48# 
     49# Models tested so far: 
     50#   PCG-GR214EP : OK 
     51#   PCG-F403 : No EEPROM 
     52#   PCG-Z600LEK : No EEPROM 
     53#   PCG-Z600NE : No EEPROM 
     54#   PCG-F707 : No EEPROM 
     55#   PCG-GRX570 : OK 
     56#   PCG-GRX316G : OK 
     57# Any feedback appreciated anyway. 
     58# 
     59# Thanks to Werner Heuser, Carsten Blume, Christian Gennerat, Joe Wreschnig, 
     60# Xavier Roche, Sebastien Lefevre and Philippe H. for their precious help. 
    4361# 
    4462 
     
    113131        print_item('UUID',decode_uuid($bus,$addr,16)); 
    114132        print_item('Revision',decode_string($bus,$addr,160,0,10)); 
    115         print_item('Model Number','PCG-'.decode_string($bus,$addr,160,10,4)); 
    116         print_item('?',decode_string($bus,$addr,32,0,16)); 
    117         print_item('?',decode_string($bus,$addr,224,0,32)); 
     133        print_item('Model Name','PCG-'.decode_string($bus,$addr,160,10,4)); 
     134        print_item('OEM Data',decode_string($bus,$addr,32,0,16)); 
     135        print_item('Timestamp',decode_string($bus,$addr,224,0,32)); 
    118136} 
    119137 
     
    122140        print("Sony Vaio EEPROM Decoder\n"); 
    123141        print("Written by Jean Delvare.  Copyright 2002.\n"); 
    124         print("Version 0.3\n\n"); 
     142        print("Version 1.0\n\n"); 
    125143} 
    126144