Changeset 2851

Show
Ignore:
Timestamp:
01/19/05 19:18:15 (9 years ago)
Author:
khali
Message:

Update with VGN-S260 info provided by Kent Hunt.

Files:
1 modified

Legend:

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

    r2782 r2851  
    11#!/usr/bin/perl -w 
    22# 
    3 # Copyright (C) 2002-2004 Jean Delvare <khali@linux-fr.org> 
     3# Copyright (C) 2002-2005 Jean Delvare <khali@linux-fr.org> 
    44# 
    55#    This program is free software; you can redistribute it and/or modify 
     
    3838# Version 1.1  2004-01-17  Jean Delvare <khali@linux-fr.org> 
    3939#  Added support for Linux 2.5/2.6 (i.e. sysfs). 
    40 # Version 1.1  2004-11-28  Jean Delvare <khali@linux-fr.org> 
     40# Version 1.2  2004-11-28  Jean Delvare <khali@linux-fr.org> 
    4141#  Support bus number 0 to 4 instead of only 0. 
     42# Version 1.3  2005-01-18  Jean Delvare <khali@linux-fr.org> 
     43#  Revision might be a Service Tag. 
    4244# 
    4345# EEPROM data decoding for Sony Vaio laptops.  
     
    6567#   PCG-Z600LEK  : No EEPROM 
    6668#   PCG-Z600NE   : No EEPROM 
     69#   VGN-S260     : OK 
    6770# Any feedback appreciated anyway. 
    6871# 
    6972# Thanks to Werner Heuser, Carsten Blume, Christian Gennerat, Joe Wreschnig, 
    70 # Xavier Roche, Sebastien Lefevre, Lars Heer, Steve Dobson and others for 
    71 # their precious help. 
    72 # 
     73# Xavier Roche, Sebastien Lefevre, Lars Heer, Steve Dobson, Kent Hunt and 
     74# others for their precious help. 
     75 
    7376 
    7477use strict; 
     
    180183        print_item('Serial Number', decode_string($bus, $addr, 192, 32)); 
    181184        print_item('UUID', decode_uuid($bus, $addr, 16)); 
    182         print_item('Revision', decode_string($bus, $addr, 160, 10)); 
     185        my $revision = decode_string($bus, $addr, 160, 10); 
     186        print_item(length($revision) > 2 ? 'Service Tag' : 'Revision', 
     187                   $revision); 
    183188        print_item('Model Name', 'PCG-'.decode_string($bus, $addr, 170, 4)); 
    184189        print_item('OEM Data', decode_string($bus, $addr, 32, 16)); 
     
    189194{ 
    190195        print("Sony Vaio EEPROM Decoder\n"); 
    191         print("Copyright (c) 2002-2004  Jean Delvare\n"); 
    192         print("Version 1.1\n\n"); 
     196        print("Copyright (C) 2002-2005  Jean Delvare\n"); 
     197        print("Version 1.3\n\n"); 
    193198} 
    194199