Changeset 2851
- Timestamp:
- 01/19/05 19:18:15 (8 years ago)
- Files:
-
- 1 modified
-
lm-sensors/trunk/prog/eeprom/decode-vaio.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/prog/eeprom/decode-vaio.pl
r2782 r2851 1 1 #!/usr/bin/perl -w 2 2 # 3 # Copyright (C) 2002-200 4Jean Delvare <khali@linux-fr.org>3 # Copyright (C) 2002-2005 Jean Delvare <khali@linux-fr.org> 4 4 # 5 5 # This program is free software; you can redistribute it and/or modify … … 38 38 # Version 1.1 2004-01-17 Jean Delvare <khali@linux-fr.org> 39 39 # Added support for Linux 2.5/2.6 (i.e. sysfs). 40 # Version 1. 12004-11-28 Jean Delvare <khali@linux-fr.org>40 # Version 1.2 2004-11-28 Jean Delvare <khali@linux-fr.org> 41 41 # 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. 42 44 # 43 45 # EEPROM data decoding for Sony Vaio laptops. … … 65 67 # PCG-Z600LEK : No EEPROM 66 68 # PCG-Z600NE : No EEPROM 69 # VGN-S260 : OK 67 70 # Any feedback appreciated anyway. 68 71 # 69 72 # Thanks to Werner Heuser, Carsten Blume, Christian Gennerat, Joe Wreschnig, 70 # Xavier Roche, Sebastien Lefevre, Lars Heer, Steve Dobson and others for71 # their precious help.72 # 73 # Xavier Roche, Sebastien Lefevre, Lars Heer, Steve Dobson, Kent Hunt and 74 # others for their precious help. 75 73 76 74 77 use strict; … … 180 183 print_item('Serial Number', decode_string($bus, $addr, 192, 32)); 181 184 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); 183 188 print_item('Model Name', 'PCG-'.decode_string($bus, $addr, 170, 4)); 184 189 print_item('OEM Data', decode_string($bus, $addr, 32, 16)); … … 189 194 { 190 195 print("Sony Vaio EEPROM Decoder\n"); 191 print("Copyright ( c) 2002-2004Jean 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"); 193 198 } 194 199
