Jean Delvare
99011f3649
Move print_i2c_busses from i2cbusses.c to i2cdetect.c, as it is
only used there.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5202 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
7ba65d9e69
Unify and shorten the usage messages. The details can be found in
the man pages so no need to be verbose.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5201 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
336626872c
Don't print the list of i2c buses as part of the help.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5200 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
312c733bf0
Make the includes order correct and consistent accross all tools.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5199 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
9a58d32b99
Minor consistency fix.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5198 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
1100d3f024
Update.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5197 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
de29763e09
Limit the stack usage in gather_i2c_busses:
* Reuse variables where possible.
* Don't assign things we don't need in sscanf.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5196 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
2fa93b4a57
Make it possible to pass the i2c bus by name instead of by number. As
there is no guarantee that i2c bus numbering will stay the same over
time (for example if hardware is added of removed, or simply due to
loading the drivers in a different order), passing the i2c bus by name
is more robust.
The i2c bus names are supposed to be unique. If you request a bus by
name and this name happens to not be unique, then the tools will play
it safe and quit. This is better than writing to the wrong device.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5195 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
e07cb9b133
Split print_i2c_busses into a gathering part and a printing part.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5194 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
688f0e6eca
Refactor the handling of the I2CBUS parameter. This ensures more
consistency accross the i2c tools.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5193 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
11b8b02ca7
Set version to SVN.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5173 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
bb65659537
Remove history, it belongs to SVN.
Don't tell people to contact me, they'll find out by themselves if
they want to.
Make the header text shorter.
Bump version to 1.6.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5172 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
96972e2027
Set version to 3.0.1.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5167 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
cdefc6774d
Fix directory creation.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5166 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
cead957434
Minor rewording.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5165 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
7b893fcc25
Update the FSF address.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5164 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
68e82f5a52
Drop the trailing .pl from all perl script names.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5162 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
2207d7d545
Cache the parsed hexdumps so that each dump file is only parsed once.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5161 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
c12f721d2b
Drop $opt_body, name was confusing and we can easily do without it.
Update header comment, drop redundant command line interface documentation.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5160 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
6e9e29ae45
Make command line parsing more robust.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5159 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
1d05c16643
More coding-style fixes.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5158 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
9c55a38225
Patch from Trent Piepho:
This adds a "-x" option to decode-dimms.pl, which lets one supply a list of
file names to read SPD data from. It can parse various hexdump formats, such
as the output from i2cdump, eeprog, and the util-linux and Busybox hexdump
progams run on a sysfs eeprom file.
Useful for decoding SPD data that you cut and pasted from a manufacturer's
website or from a DIMM installed on an embedded system that does not have
perl/etc, but does have a serial console with busybox.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5157 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
3d13987c5e
More coding-style fixes.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5156 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
a8c14363cd
More consistency in output.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5155 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
9ee08afadb
Use the same formatting for CAS latencies for all memory types.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5154 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
2d4ecb7ae9
Strip trailing whitespace.
Coding-style fixes.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5153 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
a90204d162
Patch from Trent Piepho:
This lets decode-dimms.pl decode almost all of the SPD data for DDR2 dimms.
Included are all the detailed timing parameters with their standard tXXX
names, useful if one is trying to program a DDR memory controller for
example. Or just to compare against any other SPD dump or memory spec
sheet.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5152 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
3475df8b5e
Let the user specify a register range.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5151 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
fc06b224b3
Hard-code program name in header comment.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5150 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
956bb63873
Add support for word register access mode.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5149 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
89fa7ca617
Remove reference to hardware monitoring chips. i2cdump works on all I2C/SMBus
chips, not just hardware monitoring chips.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5140 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
5aad5e54c5
According to Tobias Klauser:
"The placement of a storage-class specifier other than at the
beginning of the declaration specifiers in a declaration is an
obsolescent feature."
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5122 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
915c944deb
Add support for kernel < 2.6.19, where the i2c-stub module didn't yet have
a chip_addr parameter.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5091 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
eea919d30b
Switch to SVN revision numbering, so that the version is always up-to-date.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5089 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
bb28420857
Drop the embedded changelog, SVN has a better revision history and the
parallel version numbering was rather confusing.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5088 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
c2005584fc
Don't print anything by default if the checksum fails. There are many more
EEPROMs in modern computers than just SPD EEPROMs, and there's no reason
to include them in the output of decode-dimms.pl.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5087 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
01b7d448e2
Return the correct error code on I2C block read failure.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5073 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
4e6f3a7057
The timestamp is only 18-byte long.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5029 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
56b9dd850b
More Vaio models tested successfully.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5028 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
581a2d18bf
The model name is actually the first half of the asset tag.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5027 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
b0eab1586b
Private Sony Vaio data might not be readable by non-root users.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5026 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Rudolf Marek
97346c5f45
Update IDs (JEP106W). Change 'formerly' to 'former'.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5017 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
4584afd793
decode-dimms: Fix DDR2 SDRAM module speed decoding.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5011 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
e38f906839
Add a manual page for i2c-stub-from-dump.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5005 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
fafd6b1ac9
Install i2c-stub-from-dump to /usr/sbin rather than /usr/bin, as only root
can use it.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5004 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
ce35cbc7c9
Tag as a SVN version.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5003 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
4570dd2ff2
i2c-stub-from-dump: New helper script to use with the i2c-stub kernel
driver.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5002 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
c2f0191aa1
Final status messages go to stdout.
Fix two harmless file descriptor leaks.
Don't return an error when readback fails or doesn't match, it might be OK.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5001 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
704284a86b
Prepare for the 3.0.0 release.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@4954 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
d3f502a28d
Rename I2C_FUNC_SMBUS_HWPEC_CALC to I2C_FUNC_SMBUS_PEC, as was done
in the Linux 2.6 kernel.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@4948 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago