Jean Delvare
386982ae7f
Update.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5197 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
e34ebe15e7
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
31e9db10d0
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
f7b64dce7e
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
eda5918d0f
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
3b4d0d1940
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
d4e25f3d8f
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
85443f4b8f
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
b8a49711c0
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
3fd5ca4133
Minor rewording.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5165 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
aed7163f2b
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
ef4592db09
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
a605ad3a0a
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
a8a3f9c7ac
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
3e5a8f656d
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
5ba98d1c2c
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
a56e6baf47
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
bc9cda32fd
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
96d349d27d
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
353700c0fb
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
a6f7f8e857
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
09e1d02772
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
8e4ddd1f56
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
53115213c6
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
b8322b2fc5
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
0d1b482ef0
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
ee8afcb05c
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
49481878a2
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
35cef6eb2c
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
f1c7a0def7
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
726895ced3
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
7abc52d779
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
000c929755
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
5d4ed1f765
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
16a99f4b96
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
670d3a6d92
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
49683302a6
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
d928de76a7
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
5d732a3e27
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
5f9471e63a
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
8a9a4585c2
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
87c129180f
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
afff1260eb
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
53ebfce9dc
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
fcb6bce3c8
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
Jean Delvare
abe30a288d
Add a description of the package, together with installation instructions.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@4945 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
86154825bd
Typo fix.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@4926 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
7d011355c6
Fix the build of i2cset and i2cget. They were accidentally swapped.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@4915 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
5db6cac12c
Fix path to include directory. Reported by Ryan Mallon.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@4911 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago
Jean Delvare
ff5531a0f5
Install i2c-dev.h.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@4909 7894878c-1315-0410-8ee3-d5d059ff63e0
18 years ago